/* Usine Parfaite — WEB-CAB. Marine #0f2a40, cyan #1fb6e6 (logo #28c1ed), vert « utilisé » #17a673. */
:root {
  --navy: #0f2a40; --navy-2: #173a57; --deep: #0a1c2b; --cyan: #1fb6e6; --cyan-2: #28c1ed; --blue: #0a78b8;
  --ink: #1d3247; --muted: #5f7488; --line: #dfe6ed; --bg: #f2f5f8; --card: #fff; --soft: #eef3f7;
  --used: #17a673; --used-bg: #e7f7f0; --want: #1d9bd7; --want-bg: #e6f5fc; --reserve: #7a52c7; --internal: #c4571f;
  --lv1: #2f7fa8; --lv2: #4b55c4; --lv3: #8048b6;
  --radius: 12px; --shadow: 0 1px 2px #0f2a4012, 0 6px 20px #0f2a400f; --shadow-lg: 0 12px 40px #0a1c2b33;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; } h2 { font-size: 18px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
p { margin: .3em 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan-2); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .grow { flex: 1; }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

/* Boutons */
.primary, .ghost, .button { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 9px 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.primary { background: var(--cyan); color: #fff; box-shadow: 0 2px 8px #1fb6e655; }
.primary:hover { background: #12a2d0; }
.ghost, .button { background: #fff; border-color: #cfd9e2; color: var(--ink); }
.ghost:hover, .button:hover { border-color: var(--blue); color: var(--blue); }
.button.primary { border: 0; color: #fff; background: var(--cyan); }
.button.primary:hover { background: #12a2d0; color: #fff; }
.ghost.danger { color: #b3261e; border-color: #ecc5c2; }
.small { padding: 5px 10px; font-size: 13px; }
.wide { width: 100%; justify-content: center; }
.icon { border: 0; background: none; padding: 4px 8px; border-radius: 7px; color: var(--muted); font-size: 18px; line-height: 1; }
.icon:hover { background: var(--soft); color: var(--blue); }
.link { border: 0; background: none; color: var(--blue); padding: 0; font-size: 13px; text-decoration: underline; }

/* Icônes officielles WEB-CAB (cercle gris) : grises = éteintes, teintées bleu = allumées */
.ico { width: 56px; height: 56px; object-fit: contain; display: block; transition: filter .35s, transform .35s; }
.ico.sm { width: 32px; height: 32px; } .ico.xs { width: 22px; height: 22px; } .ico.lg { width: 64px; height: 64px; flex: none; }

.tile.on .ico, .stile.used .ico, .stile.new .ico, .stile.reached .ico, .gain .ico, .st-pop .ico, .added .ico { filter: sepia(1) saturate(5) hue-rotate(160deg) brightness(.92); }
.tile.off .ico, .stile.dim .ico, .stile.ghost .ico { filter: grayscale(1) opacity(.45); }

/* En-tête */
.top { display: flex; align-items: center; gap: 26px; background: var(--navy); color: #fff; padding: 0 24px; height: 62px; position: sticky; top: 0; z-index: 30; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #a9c3d6; border-left: 1px solid #ffffff33; padding-left: 12px; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: #cfe0ec; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.top nav a:hover { background: var(--navy-2); color: #fff; }
.top nav a.active { background: var(--navy-2); color: #fff; box-shadow: inset 0 -2px 0 var(--cyan-2); }
.lang { display: inline-flex; background: #ffffff1a; border-radius: 8px; padding: 3px; }
.lang button { border: 0; background: none; color: #cfe0ec; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.lang button[aria-pressed=true] { background: #fff; color: var(--navy); }
.usermenu { position: relative; }
.usermenu summary { cursor: pointer; list-style: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.usermenu summary::after { content: " ▾"; color: #8fb0c6; }
.usermenu > div { position: absolute; right: 0; top: 40px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; min-width: 240px; display: grid; gap: 4px; }
.usermenu > div span { font-size: 12px; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); }
.usermenu > div button { text-align: left; border: 0; background: none; padding: 8px; border-radius: 6px; }
.usermenu > div button:hover { background: var(--soft); }

/* Pages */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.page.narrow { max-width: 900px; } .page.wide { max-width: 1500px; }
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters input[type=search] { width: 320px; max-width: 100%; }
input, select, textarea { border: 1px solid #cfd9e2; border-radius: 8px; padding: 8px 10px; background: #fff; max-width: 100%; }
textarea { width: 100%; resize: vertical; }
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed=true], .seg button[aria-selected=true] { background: #fff; color: var(--blue); box-shadow: 0 1px 3px #0f2a4022; }
.hint { background: #eef6fb; border-left: 3px solid var(--blue); padding: 8px 12px; border-radius: 0; font-size: 13px; color: #33536b; }

/* Tableaux */
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.grid td { padding: 10px 12px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.grid tbody tr[data-id] { cursor: pointer; }
.grid tbody tr:hover td { background: #f5fafd; }
.grid tr.inactive td { opacity: .55; }
.grid .num { text-align: right; }
td.progress { min-width: 170px; white-space: nowrap; }
.bar { display: inline-flex; width: 110px; height: 8px; border-radius: 5px; overflow: hidden; background: var(--soft); vertical-align: middle; }
.bar i { display: block; height: 100%; }
.bar i.st-in_place { background: var(--used); } .bar i.st-p1, .bar i.st-p2, .bar i.st-p3 { background: var(--want); } .bar i.st-p2 { opacity: .75; } .bar i.st-p3 { opacity: .5; }
.pct { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 600; }

/* Pastilles */
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--soft); color: var(--muted); vertical-align: middle; }
.tag.client { background: var(--used-bg); color: #0d7a52; } .tag.prospect { background: var(--want-bg); color: #0a6596; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.pill.used { background: var(--used-bg); color: #0d7a52; } .pill.want { background: var(--want-bg); color: #0a6596; }
.pill.reserve { background: #f1eafb; color: #5f3ca0; } .pill.internal { background: #fdeadf; color: #a2461a; }
.vis { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.vis-client { background: var(--used-bg); color: #0d7a52; } .vis-reserve { background: #f1eafb; color: #5f3ca0; } .vis-internal { background: #fdeadf; color: #a2461a; }
.nature { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; color: #fff; background: #6d7d8b; }
.nat-available { background: #1f9d6b; } .nat-config { background: #0a7cc1; } .nat-integration { background: #7a4fc0; } .nat-development { background: #d9661f; } .nat-concept { background: #b89400; }
.lvl-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px; border: 1px solid; }
.lv-standard { --lv: var(--lv1); } .lv-advanced { --lv: var(--lv2); } .lv-expert { --lv: var(--lv3); }
.lvl-tag { color: var(--lv); border-color: color-mix(in srgb, var(--lv) 40%, #fff); background: color-mix(in srgb, var(--lv) 7%, #fff); }

/* Cartes, modèles */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tpl { display: flex; flex-direction: column; gap: 8px; }
.tpl .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.tpl.showcase { background: linear-gradient(135deg, #fff 55%, #e5f6fd); border: 1px solid #bfe7f5; }

/* Connexion : photo réelle de l'écran d'accueil Production Assistant */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(120deg, #0a1c2bee, #0f2a40cc 55%, #0f2a4088), url(img/app/home-receiving.png) center / cover; }
.login .card { width: 390px; max-width: 100%; display: grid; gap: 12px; padding: 34px; box-shadow: var(--shadow-lg); }
.login .brand-login img { height: 38px; }
.login .brand-login small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.login h1 { font-size: 18px; margin-top: 6px; }
.lang.center { justify-self: center; background: var(--soft); }
.lang.center button { color: var(--muted); } .lang.center button[aria-pressed=true] { background: #fff; color: var(--navy); }

/* Formulaires / dialogues */
.field { display: grid; gap: 4px; font-size: 13px; }
.field > span, .field > legend { font-weight: 600; color: #3c5368; }
.field input, .field select { width: 100%; }
fieldset.field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check.inline { display: inline-flex; margin-right: 14px; }
.form-error { color: #b3261e; font-size: 13px; min-height: 1em; margin: 0 20px; }
dialog { border: 0; border-radius: 16px; padding: 0; width: 480px; max-width: calc(100vw - 32px); box-shadow: 0 24px 70px #0a1c2b66; }
dialog.wide { width: 860px; }
dialog::backdrop { background: #0a1c2b99; backdrop-filter: blur(3px); }
dialog header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 18px 20px; display: grid; gap: 12px; max-height: 70vh; overflow: auto; }
.dialog-body h3 { margin-top: 6px; }
dialog footer { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #f8fafc; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cols2 .field:has(textarea), .cols2 fieldset, .cols2 .asset { grid-column: 1 / -1; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pick { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--cyan); background: #effafe; box-shadow: 0 0 0 1px var(--cyan); }
.pick span { display: grid; gap: 3px; font-size: 13px; } .pick small { font-size: 12px; } .pick select { margin-top: 4px; }
.asset-row { display: flex; gap: 12px; align-items: center; }
.asset-prev { max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.asset-prev.icons { width: 56px; height: 56px; border: 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow-lg); font-weight: 600; }
.toast.warn { background: #a2461a; }

/* ===================================================== Atelier */
.atelier { display: flex; flex-direction: column; height: calc(100vh - 62px); }

.save-state { font-size: 12.5px; color: var(--muted); min-width: 90px; text-align: right; }
.save-state.saved { color: var(--used); } .save-state.error { color: #b3261e; }
.icon-btn { padding: 9px 12px; }

/* Plan par zones */
.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.zone { background: #ffffffc8; border: 1px solid var(--line); border-radius: 16px; padding: 14px; backdrop-filter: blur(2px); }
.zone h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 12px 4px; }

.tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: center; font-size: 13px; transition: transform .18s, box-shadow .18s, border-color .18s, background .18s; }
.tile strong { font-weight: 650; line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #b9dbee; z-index: 5; }
.tile.on { border-color: #bfe3f4; box-shadow: 0 2px 10px #1fb6e61f; }
.tile.off { background: #f7f9fb; border-style: dashed; color: var(--muted); }
.tile.sel { border-color: var(--cyan); box-shadow: 0 0 0 3px #1fb6e633, var(--shadow); }
.tile .qty { position: absolute; top: 8px; right: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

.lv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lv); flex: none; transform: translateY(-1px); }

/* Panneau station */
.drawer { width: 470px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; box-shadow: -10px 0 30px #0f2a400d; }

@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { border: 0; background: var(--soft); width: 32px; height: 32px; font-size: 16px; }
.stepper span { min-width: 40px; text-align: center; font-weight: 700; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; background: var(--deep); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .4s; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, #0a1c2bd9); color: #fff; font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }

.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c5d0da; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; transition: all .15s; }

 dt { font-weight: 700; margin-top: 6px; } dd { margin: 0; color: #4a5f72; }
.cap-note { width: 100%; font-size: 12.5px; margin-top: 4px; }
.opts summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.opts .field { margin-top: 10px; }

/* Feuille de route (glisser-déposer) */

.col { background: #ffffffd9; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.col.over { border-color: var(--cyan); box-shadow: 0 0 0 3px #1fb6e633; }
.col header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: #fff; background: var(--want); gap: 8px; }

.col header b { font-size: 22px; }

/* Historique */
.timeline { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { display: flex; gap: 12px; position: relative; }
.tl-dot { position: absolute; left: -18px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #c7d2dc; border: 3px solid #fff; font-size: 11px; display: grid; place-items: center; }
.timeline li.pinned .tl-dot { background: #fff; width: 22px; height: 22px; left: -22px; top: -2px; }
.tl-body { padding-left: 14px; display: grid; gap: 6px; flex: 1; }
.timeline li.auto .tl-body { opacity: .8; }
.tl-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.timeline li.pinned strong { font-size: 15px; color: var(--navy); }
.tl-sum, .tl-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; }

/* Aperçu agrandi */
dialog.lightbox { width: min(1200px, 94vw); background: transparent; box-shadow: none; overflow: visible; }
.lightbox figure { margin: 0; } .lightbox img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); display: block; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; font-weight: 600; }
.lightbox .close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 30px; }

/* ===================================================== Récit client */
body.presenting { background: var(--deep); }
.story { min-height: 100vh; background: radial-gradient(circle at 80% 0%, #1b4a6d 0, transparent 50%), radial-gradient(circle at 0% 100%, #12364f 0, transparent 45%), var(--deep); color: #eaf3f9; display: flex; flex-direction: column; }
.story-top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; }
.brand-s img { height: 28px; display: block; }
.ghost-d { border: 1px solid #ffffff33; background: transparent; color: #dbe9f3; border-radius: 9px; padding: 7px 13px; font-weight: 600; text-decoration: none; font-size: 13px; }
.ghost-d:hover { border-color: var(--cyan-2); color: #fff; }
.slides { flex: 1; display: grid; }
.slide { grid-area: 1 / 1; display: none; padding: 8px 48px 24px; }
.slide.active { display: block; animation: slideUp .45s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
.s-wrap { max-width: 1280px; margin: 0 auto; display: grid; gap: 22px; }
.s-head h2 { font-size: 40px; font-weight: 750; color: #fff; letter-spacing: -.02em; }
.s-head p { font-size: 18px; color: #9fbcd1; margin-top: 6px; }
.s-kpis { display: flex; gap: 34px; } .s-kpis div { display: grid; font-size: 14px; color: #9fbcd1; }
.s-kpis b { font-size: 44px; color: #fff; line-height: 1; } .s-kpis .used b { color: #4fe0a4; }
.s-foot { font-size: 13px; }
.story-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; position: sticky; bottom: 0; background: linear-gradient(transparent, #0a1c2bf2 40%); }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff40; background: #ffffff0d; color: #fff; font-size: 18px; }
.nav-btn:hover:not(:disabled) { background: var(--cyan); border-color: var(--cyan); }
.nav-btn:disabled { opacity: .3; cursor: default; }
.dots { display: flex; gap: 8px; } .dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: #ffffff40; padding: 0; transition: width .2s, background .2s; }
.dots button.on { width: 28px; background: var(--cyan-2); }

/* Couverture : photo réelle de l'écran d'accueil */
.cover { min-height: calc(100vh - 150px); border-radius: 22px; display: grid; align-items: end; padding: 60px; background: linear-gradient(100deg, #0a1c2bf2 0, #0a1c2bcc 45%, #0a1c2b40), url(img/app/home-receiving.png) center / cover; box-shadow: var(--shadow-lg); }
.cover-in { max-width: 720px; }
.kicker { text-transform: uppercase; letter-spacing: 3px; color: var(--cyan-2); font-weight: 700; font-size: 13px; }
.cover h1 { font-size: 64px; font-weight: 800; color: #fff; margin: 12px 0; letter-spacing: -.03em; line-height: 1.02; }
.lead-l { font-size: 20px; color: #c4d9e8; } .date { color: #8fb0c6; margin-top: 14px; }
.cta { margin-top: 28px; background: var(--cyan); color: #fff; border: 0; border-radius: 12px; padding: 14px 26px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 24px #1fb6e655; }
.cta:hover { background: #12a2d0; }

/* Plan dans le récit */
.splan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.szone { background: #ffffff08; border: 1px solid #ffffff14; border-radius: 16px; padding: 12px; }
.szone h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #7f9db3; margin: 0 0 10px; }
.stiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.stile { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid #ffffff1a; background: #ffffff0a; color: #9fb6c8; font-size: 12px; text-align: center; transition: all .3s; animation: pop .5s both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.stile .ico { width: 46px; height: 46px; }
.stile.used { background: #17a67322; border-color: #4fe0a466; color: #fff; box-shadow: 0 0 22px #17a67333; }
.stile.new { background: #1fb6e62a; border-color: var(--cyan-2); color: #fff; box-shadow: 0 0 26px #1fb6e666; animation: glow 1.2s ease-out both; }
@keyframes glow { 0% { transform: scale(.92); box-shadow: 0 0 0 #1fb6e600; } 60% { transform: scale(1.04); } }
.stile.dim { opacity: .75; } .stile.ghost { opacity: .25; border-style: dashed; }
.stile:hover { border-color: var(--cyan-2); color: #fff; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare h3 { color: #9fbcd1; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 10px; }
.compare .splan { grid-template-columns: 1fr 1fr; }

/* Gains */
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hl div { border-left: 3px solid var(--cyan-2); padding: 4px 0 4px 16px; display: grid; }
.hl b { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; } .hl span { color: #9fbcd1; font-size: 15px; }
.gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gain { display: flex; gap: 14px; background: #ffffff0c; border: 1px solid #ffffff1a; border-radius: 16px; padding: 18px; animation: pop .5s both; animation-delay: var(--d); }
.gain small { color: var(--cyan-2); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .6px; }
.gain h3 { color: #fff; font-size: 17px; margin: 4px 0; } .gain p { color: #b8cfdf; font-size: 14px; }

/* Chemin */
.path-ctl { display: grid; gap: 10px; }
.path-ctl input[type=range] { width: 100%; accent-color: var(--cyan); height: 6px; }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); }
.stops button { border: 0; background: none; color: #7f9db3; font-weight: 600; font-size: 14px; padding: 4px; text-align: center; }
.stops button:first-child { text-align: left; } .stops button:last-child { text-align: right; }
.stops button.on { color: #fff; } .stops button.past { color: #4fe0a4; }
.path-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.path-grid .splan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-side { background: #ffffff0a; border: 1px solid #ffffff1a; border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.path-side h3 { color: #fff; }
.gauge { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--cyan-2) calc(var(--p) * 1%), #ffffff14 0); position: relative; transition: background .4s; }
.gauge::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--deep); }
.gauge b, .gauge span { position: relative; } .gauge b { font-size: 34px; color: #fff; } .gauge span { font-size: 11.5px; color: #9fbcd1; max-width: 100px; margin-top: -30px; }
.added { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.added li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: #dbe9f3; animation: pop .4s both; }
.added em { font-style: normal; font-size: 10.5px; color: #c9b3f2; border: 1px solid #c9b3f255; border-radius: 10px; padding: 0 6px; }

/* Vision */
.vision .splan .stile { animation-duration: .6s; }
.levels3 { display: flex; gap: 30px; } .levels3 div { display: grid; border-top: 3px solid var(--lv); padding-top: 8px; min-width: 120px; }
.levels3 b { font-size: 36px; color: #fff; } .levels3 span { color: #9fbcd1; }
.next { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 18px; background: #1fb6e61f; border: 1px solid #1fb6e655; border-radius: 14px; padding: 16px 20px; }
.next strong { color: #fff; } .next .muted { margin-left: auto; color: #9fbcd1; font-size: 14px; }

/* Fenêtre station dans le récit */
dialog.st-pop { width: min(980px, 94vw); background: #0f2638; color: #eaf3f9; }
.st-pop-in { display: grid; grid-template-columns: 1.4fr 1fr; }
.st-pop-in > img { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 320px; }
.st-pop-txt { padding: 22px; display: grid; gap: 14px; align-content: start; }
.st-pop-txt .row { display: flex; gap: 12px; } .st-pop-txt h3 { color: #fff; font-size: 20px; } .st-pop-txt p { color: #9fbcd1; font-size: 13.5px; }
.st-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.st-pop li { display: flex; gap: 8px; align-items: baseline; }
.st-pop .close { position: absolute; top: 8px; right: 8px; color: #fff; background: #0006; }

/* Petits écrans */
@media (max-width: 1250px) {
  .plan, .splan { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 900px) {
  .atelier { height: auto; }  .drawer { width: 100%; }
  .path-grid, .compare, .st-pop-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; }
  .page { padding: 18px 16px 40px; }
  .plan, .splan, .gains { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .slide { padding: 8px 16px 24px; } .cover { padding: 28px; } .cover h1 { font-size: 40px; } .s-head h2 { font-size: 28px; }
  table.grid { display: block; overflow-x: auto; }
}

/* Impression / PDF : chaque écran du récit sur sa page (paysage) */
@media print {
  @page { size: letter landscape; margin: 10mm; }
  body, body.presenting { background: #0a1c2b; }
  .no-print { display: none !important; }
  .story { min-height: 0; }
  .slide { display: block !important; break-after: page; animation: none !important; padding: 0; }
  .slide * { animation: none !important; }
  .story, .slide, .cover, .stile, .gain, .szone, .path-side, .gauge, .next { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover { min-height: 170mm; }
}

/* ===================================================== Écran dossier (fidèle à la maquette) */
.mk { max-width: 1180px; margin: 0 auto; padding: 18px 24px 60px; display: grid; gap: 16px; overflow-x: clip; }
.mk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-head .back { text-decoration: none; font-size: 20px; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.mk-head .back:hover { background: var(--soft); }
.mk-title h1 { font-size: 22px; } .mk-title p { font-size: 13px; color: var(--muted); }
.mk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-seg { background: #fff; border: 1px solid #cfd9e2; padding: 0; overflow: hidden; }
.mk-seg button { border-radius: 0; padding: 8px 16px; font-size: 14px; }
.mk-seg button[aria-pressed=true] { background: var(--want-bg); color: var(--blue); box-shadow: none; }
.mk-count { margin-left: auto; font-size: 13px; color: var(--muted); } .mk-count b { color: var(--ink); }

.mk-st { position: relative; display: grid; justify-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px 14px; text-align: center; font-size: 14px; transition: border-color .15s, box-shadow .15s, opacity .2s; }
.mk-st strong { font-weight: 600; line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; }
.mk-st:hover { border-color: #a9d3ea; box-shadow: var(--shadow); z-index: 6; }
.mk-st.off { opacity: .5; border-style: dashed; background: #fafbfc; }
.mk-st.off .ico { filter: grayscale(1) opacity(.6); }
.mk-st.on .ico { filter: sepia(1) saturate(5) hue-rotate(160deg) brightness(.92); }
.mk-st.sel { border: 2px solid var(--cyan); padding: 15px 9px 13px; opacity: 1; }
.mk-st .qty { position: absolute; top: 8px; right: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.mk-dots { display: flex; gap: 4px; } .mk-dots i { width: 22px; height: 6px; border-radius: 3px; background: #d5dee6; }
.mk-dots i.used { background: var(--used); } .mk-dots i.want { background: var(--want); } .mk-dots i.none { visibility: hidden; }
.mk-tip { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: 250px; background: #fff; border: 1px solid #cfd9e2; border-radius: 10px; padding: 10px 12px; text-align: left; font-size: 12.5px; line-height: 1.5; display: grid; gap: 2px; box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transition: opacity .15s; z-index: 20; }
.mk-st:hover .mk-tip { visibility: visible; opacity: 1; transition-delay: .3s; }
.mk-tip b { margin-bottom: 4px; font-size: 13px; } .mk-tip span { display: flex; gap: 6px; align-items: baseline; } .mk-tip em { color: var(--muted); font-style: normal; }
.mk-leg { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.mk-leg b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #d5dee6; margin-right: 6px; vertical-align: -2px; }
.mk-leg b.used { background: var(--used); } .mk-leg b.want { background: var(--want); }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); scroll-margin: 20px; }
.mk-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mk-card-head .ico.lg { filter: sepia(1) saturate(5) hue-rotate(160deg) brightness(.92); }
.mk-card-head h2 { font-size: 20px; }
.mk-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.mk-lv { display: grid; gap: 8px; align-content: start; }
.mk-lv-name { font-size: 12.5px; font-weight: 700; color: var(--lv); text-transform: uppercase; letter-spacing: .6px; padding-bottom: 6px; border-bottom: 2px solid var(--lv); }
.mk-pill { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.35; transition: background .15s, border-color .15s; }
.mk-pill:hover:not(:disabled) { border-color: var(--cyan); }
.mk-pill strong { font-weight: 500; } .mk-pill small { display: block; font-size: 11px; color: var(--reserve); margin-top: 2px; }
.mk-pill.internal { background: repeating-linear-gradient(135deg, #fff 0 10px, #fdf6f2 10px 20px); } .mk-pill.internal small { color: var(--internal); }
.mk-ic { width: 20px; flex: none; text-align: center; color: #9aaaba; font-weight: 700; }
.mk-pill.used { background: var(--used-bg); border-color: #8fd9b9; color: #0b5e40; } .mk-pill.used .mk-ic { color: var(--used); }
.mk-pill.want { background: var(--want-bg); border-color: #9fd3ee; color: #0a557f; } .mk-pill.want .mk-ic { color: var(--want); }
.mk-internal { margin-top: 14px; }
@media (max-width: 760px) { .mk-levels { grid-template-columns: 1fr; } .mk { padding: 14px 16px 40px; } .mk-count { margin-left: 0; } }

/* Illustrations de la V1 (atlas 3 x 2) sur l'écran dossier */
.art { display: block; width: 100%; aspect-ratio: 4 / 3; background: url(img/factory-stations.png) no-repeat; background-size: 300% 200%; border-radius: 10px; }

/* Icônes dessinées des stations, palette de la maquette (bleu = dans l'usine, gris = possible) */
.sti { display: block; filter: none !important; }
.mk-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #f1f3f5; color: #9aa6b2; transition: background .2s, color .2s; }
.mk-ico .sti { width: 36px; height: 36px; }
.mk-st.on .mk-ico, .mk-ico.on { background: #E6F1FB; color: #185FA5; }
.mk-st.sel .mk-ico { background: #185FA5; color: #fff; }
.mk-st.off .mk-ico { background: #f3f4f6; color: #b4b2a9; }
.mk-ico.lg { width: 72px; height: 72px; flex: none; } .mk-ico.lg .sti { width: 42px; height: 42px; }
.mk-ico.lg.off { background: #f1efe8; color: #888780; }
/* Récit et autres écrans : même jeu d'icônes */
.ico.sti { color: #185FA5; }
.stile .ico.sti { color: #7f9db3; } .stile.used .ico.sti { color: #5DCAA5; } .stile.new .ico.sti, .stile.reached .ico.sti { color: var(--cyan-2); }
.gain .ico.sti, .added .ico.sti, .st-pop .ico.sti { color: var(--cyan-2); }

/* Pastilles de fonction : clic = état, chevron = détail */
.mk-pill { padding: 0; align-items: stretch; gap: 0; }
.mk-pill-main { flex: 1; display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 10px 6px 10px 12px; color: inherit; font: inherit; }
.mk-pill-main:disabled { cursor: default; }
.mk-more { border: 0; border-left: 1px solid #0000000f; background: none; width: 30px; font-size: 18px; color: #8a99a8; border-radius: 0 10px 10px 0; transition: transform .2s, color .15s, background .15s; }
.mk-more:hover { color: var(--blue); background: #0000000a; }
.mk-pill.focus { box-shadow: 0 0 0 2px #378ADD; }
.mk-pill.focus .mk-more { color: #185FA5; }

/* Détail de la fonction */
.mk-detail { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; animation: slideUp .3s ease-out; }
.mk-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; background: #0a1c2b; align-self: start; }
.mk-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s; }
.mk-shot:hover img { transform: scale(1.03); }
.mk-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 8px; background: linear-gradient(transparent, #0a1c2bd9); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; }
.mk-detail-txt { display: grid; gap: 8px; align-content: start; }
.mk-detail-top { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-detail-txt h3 { font-size: 19px; }

.mk-benefit { color: #0F6E56; font-weight: 600; }
.mk-kv { margin: 4px 0 0; display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 13px; } .kv dt { margin: 0; color: var(--muted); font-weight: 600; } .kv dd { margin: 0; color: var(--ink); }
.mk-sub { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fafbfc; }
.mk-sub summary { cursor: pointer; font-weight: 600; color: #185FA5; } .mk-sub summary small { color: var(--muted); font-weight: 400; }
.mk-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.mk-evos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 10px; }
.mk-evos .evo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.mk-evos .kv { grid-template-columns: 130px 1fr; font-size: 12.5px; }

@media (max-width: 860px) { .mk-detail { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0; } }

/* Palette exacte de la maquette sur l'écran dossier */
.mk { --used: #1D9E75; --want: #378ADD; --used-bg: #E1F5EE; --want-bg: #E6F1FB; }

/* Onglets de la fiche station : Fonctions / Options et matériel (mis en évidence) */
.mk-tabs { display: flex; gap: 6px; margin-top: 16px; border-bottom: 2px solid var(--line); }
.mk-tabs button { border: 0; background: none; padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; display: flex; gap: 8px; align-items: center; border-radius: 8px 8px 0 0; }
.mk-tabs button:hover { color: #185FA5; background: #f5f8fb; }
.mk-tabs button[aria-selected=true] { color: #185FA5; border-color: #378ADD; background: #E6F1FB; }
.mk-tabs .cnt { font-size: 12px; background: #e9eef3; color: var(--muted); border-radius: 10px; padding: 1px 8px; }
.mk-tabs .cnt.on { background: #1D9E75; color: #fff; }
.mk-ico.has-shot { border: 0; cursor: zoom-in; position: relative; }
.mk-ico.has-shot:hover { box-shadow: 0 0 0 3px #378ADD55; }
.shot-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #185FA5; color: #fff; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.mk-detail.no-img { grid-template-columns: 1fr; }
.mk-addon-wrap { margin-top: 16px; display: grid; gap: 10px; }
.mk-addon-title { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-top: 6px; }
.mk-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mk-addon { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; font-size: 13px; background: #fff; transition: border-color .15s, background .15s, opacity .15s; }
.mk-addon p { margin: 0; color: #4f6579; }
.mk-addon.on { border-color: #5DCAA5; background: #E1F5EE; }
.mk-addon.blocked { opacity: .5; background: #f6f7f8; filter: grayscale(1); }
.mk-addon.warn { border-color: #EF9F27; }
.mk-addon-top { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.mk-addon-top input { margin-top: 3px; width: 17px; height: 17px; accent-color: #1D9E75; }
.mk-addon.blocked .mk-addon-top { cursor: not-allowed; }
.mk-addon-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.mk-req { color: #854F0B !important; font-size: 12px; background: #FAEEDA; border-radius: 6px; padding: 4px 8px; }
.upload-btn { white-space: nowrap; }
.lib-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #E6F1FB; color: #185FA5; } .lib-ico .sti { width: 22px; height: 22px; }

/* ===================================================== Thème nuit de l'écran dossier
   Palette de la fenêtre d'accueil Production Assistant V26 : dégradé #142A48 → #0D1A2E, cartes #13243D,
   bleu #4D8FE0 / #7FB6FF, texte #EEF4FC, texte secondaire #9FB3CF, filets bleu clair translucides. */
body.mk-dark {
  --d-line: rgba(173, 201, 240, .16); --d-line-2: rgba(127, 182, 255, .55); --d-card: #13243D; --d-card-2: #172C4A;
  --d-text: #EEF4FC; --d-muted: #9FB3CF; --d-brand: #4D8FE0; --d-brand-2: #7FB6FF; --d-used: #5DCAA5;
  background: linear-gradient(135deg, #142A48 0%, #0D1A2E 55%) fixed; color: var(--d-text);
}
.mk-dark .mk { --used: #5DCAA5; --want: #7FB6FF; --lv1: #79B8E0; --lv2: #A2A6F2; --lv3: #C9A2EC; color: var(--d-text); }
.mk-dark .mk-title h1, .mk-dark .mk-card h2, .mk-dark .mk-detail-txt h3, .mk-dark .mk-st strong { color: var(--d-text); }
.mk-dark .muted, .mk-dark .mk-title p, .mk-dark .mk-count, .mk-dark .mk-leg, .mk-dark .mk-addon-title, .mk-dark small.muted { color: var(--d-muted); }
.mk-dark .mk-count b { color: var(--d-text); }
.mk-dark .link { color: var(--d-brand-2); }
.mk-dark .mk-head .back { color: var(--d-muted); } .mk-dark .mk-head .back:hover { background: rgba(255,255,255,.06); }
.mk-dark .ghost, .mk-dark .button.ghost { background: rgba(255,255,255,.06); border-color: var(--d-line); color: var(--d-text); }
.mk-dark .ghost:hover { border-color: var(--d-line-2); color: #fff; }
.mk-dark .button.primary { background: var(--d-brand); box-shadow: 0 4px 14px rgba(77,143,224,.35); }
.mk-dark .button.primary:hover { background: #3B7BCC; }
.mk-dark .save-state { color: var(--d-muted); } .mk-dark .save-state.saved { color: var(--d-used); }
.mk-dark .mk-seg { background: var(--d-card); border-color: var(--d-line); }
.mk-dark .mk-seg button { color: var(--d-muted); }
.mk-dark .mk-seg button[aria-pressed=true] { background: rgba(77,143,224,.28); color: #fff; }
/* Tuiles */
.mk-dark .mk-st { background: var(--d-card); border-color: var(--d-line); color: var(--d-text); }
.mk-dark .mk-st:hover { border-color: var(--d-line-2); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.mk-dark .mk-st.off { background: rgba(19,36,61,.45); opacity: .55; }
.mk-dark .mk-st.sel { border-color: var(--d-brand-2); box-shadow: 0 0 0 3px rgba(127,182,255,.25); }
.mk-dark .mk-ico, .mk-dark .mk-st.on .mk-ico, .mk-dark .mk-ico.on { background: rgba(77,143,224,.18); color: var(--d-brand-2); }
.mk-dark .mk-st.sel .mk-ico { background: var(--d-brand); color: #fff; }
.mk-dark .mk-st.off .mk-ico, .mk-dark .mk-ico.lg.off { background: rgba(255,255,255,.05); color: #5D7391; }
.mk-dark .mk-dots i, .mk-dark .mk-leg b { background: rgba(255,255,255,.12); }
.mk-dark .mk-leg b.used { background: var(--d-used); } .mk-dark .mk-leg b.want { background: var(--d-brand-2); }
.mk-dark .mk-tip { background: #0D1A2E; border-color: var(--d-line-2); color: var(--d-text); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.mk-dark .mk-tip em { color: var(--d-muted); }
/* Fiche station */
.mk-dark .mk-card { background: var(--d-card); border-color: var(--d-line); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mk-dark .stepper { border-color: var(--d-line); } .mk-dark .stepper button { background: rgba(255,255,255,.06); color: var(--d-text); }
.mk-dark .mk-tabs { border-color: var(--d-line); }
.mk-dark .mk-tabs button { color: var(--d-muted); }
.mk-dark .mk-tabs button:hover { background: rgba(255,255,255,.04); color: var(--d-text); }
.mk-dark .mk-tabs button[aria-selected=true] { background: rgba(77,143,224,.2); color: #fff; border-color: var(--d-brand-2); }
.mk-dark .mk-tabs .cnt { background: rgba(255,255,255,.1); color: var(--d-muted); } .mk-dark .mk-tabs .cnt.on { background: #1D9E75; color: #fff; }
.mk-dark .mk-pill { background: rgba(255,255,255,.03); border-color: var(--d-line); color: var(--d-text); }
.mk-dark .mk-pill:hover { border-color: var(--d-line-2); }
.mk-dark .mk-pill.used { background: rgba(93,202,165,.14); border-color: rgba(93,202,165,.55); color: #D3F4E7; }
.mk-dark .mk-pill.want { background: rgba(127,182,255,.14); border-color: rgba(127,182,255,.55); color: #DCEBFF; }
.mk-dark .mk-pill.focus { box-shadow: 0 0 0 2px var(--d-brand-2); }
.mk-dark .mk-ic { color: #6E85A3; } .mk-dark .mk-pill.used .mk-ic { color: var(--d-used); } .mk-dark .mk-pill.want .mk-ic { color: var(--d-brand-2); }
.mk-dark .mk-more { color: #6E85A3; border-color: rgba(255,255,255,.06); } .mk-dark .mk-more:hover { color: #fff; background: rgba(255,255,255,.06); }
.mk-dark .mk-pill small { color: #C3A9F5; }
.mk-dark .mk-pill.internal { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, rgba(226,120,60,.08) 10px 20px); }
/* Détail, options et matériel */
.mk-dark .mk-detail { border-color: var(--d-line); }
.mk-dark .mk-detail-txt p, .mk-dark .mk-addon p, .mk-dark .evo p { color: #C3D1E3; }
.mk-dark .kv dt { color: var(--d-muted); } .mk-dark .kv dd { color: var(--d-text); }
.mk-dark .mk-benefit { color: #7FE0BE !important; }
.mk-dark .mk-sub { background: rgba(255,255,255,.03); border-color: var(--d-line); }
.mk-dark .mk-sub summary { color: var(--d-brand-2); }
.mk-dark .mk-evos .evo, .mk-dark .mk-addon { background: rgba(255,255,255,.03); border-color: var(--d-line); color: var(--d-text); }
.mk-dark .mk-addon.on { background: rgba(93,202,165,.12); border-color: rgba(93,202,165,.55); }
.mk-dark .mk-addon.blocked { background: rgba(255,255,255,.02); opacity: .42; }
.mk-dark .mk-addon.warn { border-color: #EF9F27; }
.mk-dark .mk-req { background: rgba(239,159,39,.14); color: #F5C26B !important; }
.mk-dark .tag { background: rgba(255,255,255,.08); color: var(--d-muted); }
.mk-dark .lvl-tag { background: transparent; }
.mk-dark input, .mk-dark textarea, .mk-dark select { background: #0F1F35; border-color: var(--d-line); color: var(--d-text); }
.mk-dark input::placeholder { color: #6E85A3; }
.mk-dark .check { color: var(--d-muted); }
:root:has(body.mk-dark) { background: #0D1A2E; }

/* Liste des modèles : bouton Supprimer (Admin) poussé à droite */
.card.tpl .actions .tpl-del { margin-left: auto; }
