:root {
  --bg: #EEF1F5; --surface: #FFFFFF; --surface-2: #F6F8FA; --line: #D6DCE5;
  --text: #182030; --muted: #5B6578; --accent: #B86E0C; --accent-ink: #FFFFFF;
  --onair: #D93A40; --ok: #1E9467; --warn: #B86E0C; --focus: #2F6FEB;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --r-sm: 4px; --r-md: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161B26; --surface: #1F2533; --surface-2: #252C3C; --line: #2F3747;
    --text: #E7EAF0; --muted: #8C96A8; --accent: #F2A33A; --accent-ink: #1A1206;
    --onair: #F0484E; --ok: #3DBE8B; --warn: #F2A33A; --focus: #7AA7FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161B26; --surface: #1F2533; --surface-2: #252C3C; --line: #2F3747;
  --text: #E7EAF0; --muted: #8C96A8; --accent: #F2A33A; --accent-ink: #1A1206;
  --onair: #F0484E; --ok: #3DBE8B; --warn: #F2A33A; --focus: #7AA7FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-ui); font-variant-numeric: tabular-nums; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-stretch: 87%; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 750; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

/* Structure */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; font-family: var(--font-head); font-stretch: 80%; font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 14px; fill: var(--bg); }
.brand small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: 13px; }
.side-foot .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 28px 36px 60px; max-width: 1240px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--muted); }

/* Boutons et champs */
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 14px var(--font-ui); padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--onair); }
.btn.danger:hover { border-color: var(--onair); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select { font: 15px var(--font-ui); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 14px; }

/* Panneaux */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }

/* Indicateurs du tableau de bord : une bande de mesures, pas des cartes */
.meters { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 18px; }
.meter { padding: 16px 20px; border-left: 1px solid var(--line); }
.meter:first-child { border-left: 0; }
.meter .v { font-family: var(--font-head); font-stretch: 80%; font-size: 30px; font-weight: 750; line-height: 1.1; }
.meter .l { color: var(--muted); font-size: 13px; }
.gauge { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--ok); }
.gauge i.hi { background: var(--warn); }
.gauge i.full { background: var(--onair); }

/* Le voyant de régie : élément signature */
.tally { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; height: 24px; padding: 0 8px; border-radius: 3px; font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 12px; letter-spacing: .06em; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tally.air { background: var(--onair); color: #fff; border-color: var(--onair); box-shadow: 0 0 0 3px color-mix(in srgb, var(--onair) 22%, transparent), 0 0 18px color-mix(in srgb, var(--onair) 45%, transparent); }
.tally.auto { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) { .tally.air { animation: glow 2.4s ease-in-out infinite; } }
@keyframes glow { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--onair) 12%, transparent), 0 0 8px color-mix(in srgb, var(--onair) 25%, transparent); } }

/* Liste de régie */
.rack { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.rack-row { display: grid; grid-template-columns: 82px 1fr auto auto auto; gap: 18px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.rack-row:first-child { border-top: 0; }
.rack-row:hover { background: var(--surface-2); }
.rack-row .name { font-weight: 600; }
.rack-row .sub { color: var(--muted); font-size: 13px; }
.rack-row .num { text-align: right; min-width: 70px; }
.rack-row .num b { display: block; font-weight: 600; }
.rack-row .num span { color: var(--muted); font-size: 12px; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill.bad { color: var(--onair); border-color: color-mix(in srgb, var(--onair) 45%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

/* Chaîne : détail */
.ch-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.screen { aspect-ratio: 16/9; background: #05070B; border-radius: var(--r-md); overflow: hidden; position: relative; display: grid; place-items: center; color: #8C96A8; }
.screen video, .screen iframe.pv { width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; display: block; }
.screen .tally { position: absolute; top: 12px; left: 12px; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin-bottom: 10px; }
.copy input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { appearance: none; background: none; border: 0; padding: 8px 12px; font: 500 14px var(--font-ui); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a { padding: 8px 12px; font: 500 14px var(--font-ui); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--text); }
.seg { display: inline-flex; justify-self: start; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { appearance: none; border: 0; background: var(--surface); color: var(--muted); padding: 8px 14px; font: 500 14px var(--font-ui); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* Vidéos */
.drop { display: block; border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 26px; text-align: center; color: var(--muted); background: var(--surface); cursor: pointer; margin-bottom: 18px; }
.drop.over { border-color: var(--accent); color: var(--text); }
.uploads { display: grid; gap: 8px; margin-bottom: 18px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.vthumb { aspect-ratio: 16/9; background: #05070B center/cover no-repeat; position: relative; }
.vthumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.vbody { padding: 12px 14px; display: grid; gap: 8px; flex: 1; }
.vbody .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }

/* Playlist */
.pl-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pl-list { border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 460px; overflow: auto; }
.pl-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.pl-item:first-child { border-top: 0; }
.pl-item .i { color: var(--muted); font-size: 12px; text-align: right; }

/* Graphique */
.chart { width: 100%; height: 160px; display: block; }
.chart rect { fill: var(--accent); }
.chart text { fill: var(--muted); font: 11px var(--font-ui); }

/* Divers */
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
dialog { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); padding: 22px; width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(8, 10, 16, .55); }
dialog h2 { margin-bottom: 16px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; max-width: 360px; }
.toast.err { background: var(--onair); color: #fff; }
.alert { padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); margin-bottom: 16px; font-size: 14px; }

/* Connexion */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 440px); }
.login-art { background: #0F131B; color: #E7EAF0; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: clamp(40px, 6vw, 76px); font-stretch: 75%; font-weight: 800; line-height: .95; max-width: 9ch; }
.login-art .tally { width: max-content; font-size: 14px; height: 30px; padding: 0 14px; }
.login-art p { color: #8C96A8; max-width: 44ch; }
.login-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--surface); }

.mobile-bar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .main { padding: 20px 16px 48px; }
  .meters { grid-template-columns: 1fr 1fr; }
  .meter:nth-child(3) { border-left: 0; }
  .meter:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ch-layout, .pl-edit, .grid2 { grid-template-columns: 1fr; }
  .rack-row { grid-template-columns: 74px 1fr auto; }
  .rack-row .hide-m { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 240px; padding: 28px; }
  .login-form { padding: 28px; }
}

/* ---------- Programmation (v1.1) ---------- */
:root { --cat-clip: #3E7BE6; --cat-pub: #C93C8E; --cat-jingle: #D98B12; --cat-trailer: #7A5BD6; --cat-show: #1E9467; --cat-other: #6B7588; }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 13px var(--font-ui); padding: 5px 11px; border-radius: 99px; cursor: pointer; }
.chip.on { border-color: var(--text); color: var(--text); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar select { width: auto; min-width: 200px; }

/* Grille hebdomadaire : l'axe du temps est vertical, comme une conduite d'antenne */
.week { display: grid; grid-template-columns: 52px repeat(7, minmax(84px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; min-width: 680px; }
.week-h { padding: 10px 6px; font-weight: 600; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.week-h.today { color: var(--accent); }
.week-h:first-child { border-left: 0; }
.week-col { position: relative; border-left: 1px solid var(--line); height: calc(24 * var(--hr)); --hr: 26px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hr) - 1px), var(--line) calc(var(--hr) - 1px), var(--line) var(--hr)); background-blend-mode: normal; }
.week-col.hours { border-left: 0; background: none; }
.week-col.hours span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.blk { position: absolute; left: 3px; right: 3px; border-radius: 4px; padding: 4px 6px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: pointer; border: 0; text-align: left; font-family: var(--font-ui);
  background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--text); box-shadow: inset 3px 0 0 var(--c); }
.blk:hover { background: color-mix(in srgb, var(--c) 32%, var(--surface)); }
.blk b { display: block; font-weight: 600; }
.blk span { color: var(--muted); }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--onair); z-index: 2; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--onair); }
.dayset { display: flex; gap: 4px; flex-wrap: wrap; }
.dayset label { display: inline-flex; }
.dayset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dayset span { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; cursor: pointer; color: var(--muted); }
.dayset input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dayset input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Rotation : la conduite d'un tour, case par case */
.wheel { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 4px 0 18px; }
.wheel i { flex: 1; background: var(--c); }
.slots { border: 1px solid var(--line); border-radius: var(--r-sm); }
.slot { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; }
.slot .n { font-size: 12px; color: var(--muted); text-align: right; }
.slot .warn { font-size: 12px; color: var(--warn); margin-left: 8px; }
.addbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* Habillage */
.ov-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ov-preview { position: sticky; top: 16px; }
.ov-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); background: #05070B; display: block; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px 16px; margin: 0 0 14px; display: grid; gap: 12px; }
legend { padding: 0 6px; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.switch input { width: auto; }
input[type=color] { padding: 2px; height: 36px; }
textarea { font: 14px/1.45 var(--font-ui); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; resize: vertical; }
.logo-thumb { max-height: 60px; max-width: 200px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--line) 0 50%) 0 0/14px 14px; border-radius: 4px; padding: 4px; }
.np { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 18px; }
.np .t { font-weight: 600; }
@media (max-width: 900px) { .ov-layout { grid-template-columns: 1fr; } .ov-preview { position: static; } }

/* ---------- Tableau de bord et analytics (v1.2) ---------- */
:root { --map-land: #DCE2EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-land: #2A3242; } }
:root[data-theme="dark"] { --map-land: #2A3242; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dash-grid > .panel + .panel { margin-top: 0; }
.span2 { grid-column: span 2; }
.area { width: 100%; height: auto; display: block; }
.area .fill { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.area .stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.area .grid line { stroke: var(--line); stroke-width: 1; }
.area text { fill: var(--muted); font: 11px var(--font-ui); }
.map { width: 100%; height: auto; display: block; }
.map path { stroke: var(--surface); stroke-width: .5; transition: opacity .15s; }
.map path:hover { opacity: .75; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv dd.g { grid-column: 1 / -1; margin-top: -4px; }
.kv dd.g .gauge { margin-top: 0; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recent li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.recent .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent li > div { min-width: 0; }
.rthumb { width: 56px; aspect-ratio: 16/9; border-radius: 3px; background: #05070B center/cover no-repeat; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; }
.bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--accent); opacity: .85; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- WebTV clé en main (v1.4) ---------- */
.wiz .panel + .panel { margin-top: 18px; }
.wiz > .row { margin-top: 18px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; margin-right: 6px; vertical-align: 2px; }
details summary { cursor: pointer; color: var(--muted); }
.sheet h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-family: var(--font-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sheet h2 { margin-bottom: 4px; }
@media print {
  .side, .mobile-bar, .no-print, #toasts, .copy .row { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
  .panel { border: 0; padding: 0; background: #fff; }
  .copy input { border: 0; padding: 0; background: none; color: #000; font-size: 12px; }
}

/* ---------- Supervision et visuel HD (v1.5) ---------- */
.supbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--focus) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--focus) 55%, transparent); font-size: 14px; }
.cover-thumb { width: 180px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* ---------- Radio : titre et pochette (v1.6) ---------- */
.np-radio { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.np-radio img, .np-radio .np-ph { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }
.np-radio .np-ph { display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 28px; }
.np-radio .t { font-weight: 600; }
.cover-test { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; margin-top: 6px; }
video.logo-thumb { height: 60px; width: auto; }

/* ---------- v2.0 : menu en sections, commercial ---------- */
.nav-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; opacity: .8; }
.side { overflow-y: auto; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .02em; }
.lines td input { width: 100%; }
.svc-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--onair) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--onair) 55%, transparent); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cards3 { grid-template-columns: 1fr; } }
.big { font-family: var(--font-head); font-stretch: 80%; font-size: 26px; font-weight: 750; line-height: 1.15; }
.intro-video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r-md); display: block; }
.slot-file { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.slot-file:first-child { border-top: 0; }
.login-art { position: relative; }
.login-intro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-sound { position: absolute; left: 24px; bottom: 24px; z-index: 2; background: rgba(10,14,24,.75); color: #fff; border-color: rgba(255,255,255,.3); }
.cards3 > .panel { margin-top: 0; }
.lic-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; margin: 4px 0 12px; overflow-x: auto; }
