    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


    html, body {
      height: 100%;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      font-size: 13px;
      background: var(--bg);
      color: var(--text);
      overflow: hidden;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior: none;
    }

    /* ── Panneau plat ── */
    .card {
      background: var(--surf);
      border: 1px solid var(--border2);
      border-radius: 0;
    }

    /* ── Layout principal ── */
    .ctrl-wrap {
      display: flex;
      flex-direction: column;
      height: 100vh;
      height: 100dvh;
      gap: 0;
    }
    .ctrl-wrap .page-topbar {
      margin-left: 0;
    }

    /* ── Popover radio ── */
    .radio-popover {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      width: 260px;
      background: var(--surf2, #1a1a1a);
      border: 1px solid var(--border, #2a2a2a);
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0,0,0,.35);
      z-index: 999;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .radio-popover[aria-hidden="true"] { display: none; }
    .radio-pop-head {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .radio-pop-head span {
      flex: 1;
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .radio-pop-btn {
      background: none;
      border: 1px solid var(--border, #2a2a2a);
      color: var(--text);
      border-radius: 4px;
      width: 28px; height: 28px;
      cursor: pointer;
      font-size: 12px;
      display: flex; align-items: center; justify-content: center;
      transition: background .1s;
      flex-shrink: 0;
    }
    .radio-pop-btn:hover { background: var(--surf3, #222); }
    .radio-pop-btn.playing { color: var(--green, #22c55e); border-color: var(--green, #22c55e); }
    .radio-pop-vol {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .radio-pop-range {
      flex: 1;
      -webkit-appearance: none;
      height: 4px;
      border-radius: 2px;
      background: linear-gradient(to right, var(--blue, #3b82f6) var(--v, 60%), var(--border, #2a2a2a) var(--v, 60%));
      outline: none;
      cursor: pointer;
    }
    .radio-pop-range::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 12px; height: 12px;
      border-radius: 50%;
      background: var(--blue, #3b82f6);
    }
    .radio-pop-stations {
      display: flex;
      flex-direction: column;
      gap: 2px;
      max-height: 160px;
      overflow-y: auto;
    }
    .radio-pop-station {
      background: none;
      border: none;
      color: var(--muted, #888);
      font-size: 12px;
      padding: 5px 8px;
      border-radius: 4px;
      cursor: pointer;
      text-align: left;
      transition: background .1s, color .1s;
    }
    .radio-pop-station:hover { background: var(--surf3); color: var(--text); }
    .radio-pop-station.active { color: var(--blue, #3b82f6); background: var(--surf3); font-weight: 600; }
    /* Bouton Radio Auto ON/OFF, déplacé dans le popover */
    .radio-pop-auto { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
    .radio-pop-auto-btn { width: 100%; justify-content: center; }
    @keyframes radio-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); border-color: var(--border, #2a2a2a); color: var(--text); }
      50% { box-shadow: 0 0 0 4px rgba(34,197,94,0.25); border-color: #22c55e; color: #22c55e; }
    }
    .ctrl-hbtn.radio-live { animation: radio-pulse 1.4s ease-in-out infinite; }

    /* ── Header ── */
    .ctrl-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 900;
      height: var(--dock-h);
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 6px;
      background: var(--surf3);
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      scrollbar-width: none;
    }
    body.has-rail .ctrl-header { left: var(--rail-current-w, var(--rail-w, 220px)); }
    .ctrl-header::-webkit-scrollbar { display: none; }

    .ctrl-header-brand {
      font-weight: 600;
      font-size: 13px;
      color: var(--text);
      flex-shrink: 0;
      white-space: nowrap;
    }
    .ctrl-header-brand span { color: var(--blue-l); }

    .ctrl-brand {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      margin-right: 4px;
    }
    .ctrl-brand-logo {
      height: 26px;
      width: auto;
      display: block;
    }
    .beta-badge {
      font-size: 10px;
      font-weight: 700;
      background: var(--warm);
      color: #fff;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      flex-shrink: 0;
    }
    :root[data-theme="dark"] .logo-light { display: none; }
    :root:not([data-theme="dark"]) .logo-dark { display: none; }

    /* ── Radio dans le header ── */
    .hdr-radio {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
      border-left: 1px solid var(--border);
      padding-left: 10px;
      margin-left: 2px;
    }
    .hdr-radio-now {
      font-size: 10px;
      font-weight: 600;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 120px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .hdr-radio-now.on { color: var(--blue-l); }
    .hdr-radio-btn {
      width: 26px; height: 26px;
      border-radius: 2px;
      border: 1px solid var(--border);
      background: var(--surf2);
      color: var(--muted);
      font-size: 0.8rem;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.1s, border-color 0.1s, color 0.1s;
      font-family: inherit;
      flex-shrink: 0;
    }
    .hdr-radio-btn:hover { border-color: var(--blue); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
    .hdr-radio-btn.rb-play {
      width: 30px; height: 30px;
      background: var(--blue);
      border-color: var(--blue);
      color: #fff;
    }
    .hdr-radio-btn.rb-play:hover { background: #0068b0; border-color: #0068b0; }
    .hdr-radio-btn.rb-play.playing { background: #1a4a2e; border-color: var(--green); color: var(--green); }
    .hdr-radio-vol {
      width: 70px;
      -webkit-appearance: none; appearance: none;
      height: 3px;
      border-radius: 2px;
      outline: none; border: none; cursor: pointer;
      background: linear-gradient(to right, var(--blue) var(--v,60%), var(--border) var(--v,60%));
      flex-shrink: 0;
    }
    .hdr-radio-vol::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--blue-l);
      cursor: pointer;
    }
    .hdr-radio-vol::-moz-range-thumb {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--blue-l);
      border: none; cursor: pointer;
    }

    /* Boutons header */
    .ctrl-hbtn, .ctrl-back {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      height: 28px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 2px;
      font-size: 12px;
      font-weight: 400;
      font-family: inherit;
      color: var(--muted);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.1s, color 0.1s, border-color 0.1s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .ctrl-hbtn:hover,
    .ctrl-back:hover {
      background: var(--surf2);
      color: var(--text);
      border-color: var(--border);
    }
    .ctrl-hbtn.active { color: var(--blue-l); border-color: var(--blue); }
    .ctrl-hbtn.red { color: var(--red); border-color: rgba(244,71,71,.35); }
    .ctrl-hbtn.red:hover { background: rgba(244,71,71,.1); color: var(--red); border-color: rgba(244,71,71,.6); }

    /* ── Menu burger (toujours visible) ── */
    .ctrl-menu-toggle { display: inline-flex; flex-shrink: 0; }
    .ctrl-actions {
      display: none;
      position: fixed;
      top: var(--dock-h);
      left: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 6px;
      background: var(--surf3);
      border: 1px solid var(--border);
      border-top: none;
      box-shadow: 0 4px 20px rgba(0,0,0,.5);
      border-radius: 0 0 4px 0;
      z-index: 8500;
      min-width: 180px;
    }
    body.has-rail .ctrl-actions { left: var(--rail-current-w, var(--rail-w, 220px)); }
    .ctrl-actions.open { display: flex; }
    .ctrl-actions .ctrl-hbtn,
    .ctrl-actions .ctrl-back { justify-content: flex-start; }

    /* ── Corps (colonnes) ── */
    .ctrl-body {
      flex: 1;
      display: flex;
      min-height: 0;
    }

    /* ── Mini navigateur de médias (no-form-panel) ── */
    #no-form-panel {
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }
    .ctrl-media-tabs {
      display: flex;
      gap: 2px;
      padding: 6px 8px;
      border-bottom: 1px solid var(--border2);
      flex-shrink: 0;
      background: var(--surf);
      overflow-x: auto;
      scrollbar-width: none;
    }
    .ctrl-media-tabs::-webkit-scrollbar { display: none; }
    .ctrl-media-tab {
      background: none;
      border: 1px solid transparent;
      color: var(--muted);
      border-radius: 4px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background .12s, color .12s, border-color .12s;
    }
    .ctrl-media-tab:hover { background: var(--surf2); color: var(--text); }
    .ctrl-media-tab.active {
      background: var(--surf2);
      color: var(--text);
      border-color: var(--border);
    }
    .ctrl-media-content {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }
    .ctrl-mini-breadcrumb {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-bottom: 1px solid var(--border2);
      font-size: 12px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }
    .ctrl-mini-bc-link {
      background: none; border: none; cursor: pointer;
      color: var(--blue, #3b82f6); font-size: 12px; padding: 0;
      text-decoration: none;
    }
    .ctrl-mini-bc-link:hover { text-decoration: underline; }
    .ctrl-mini-bc-sep { color: var(--muted); font-size: 11px; }
    .ctrl-mini-bc-cur { color: var(--text); font-size: 12px; font-weight: 600; }
    .ctrl-mini-folder-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
      gap: 6px;
      padding: 10px 10px 4px;
    }
    .ctrl-mini-folder-tile {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 10px 6px 8px;
      background: var(--surf2);
      border: 1px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      text-align: center;
      transition: background .12s, border-color .12s;
      font-size: 11px;
      color: var(--text);
      word-break: break-word;
    }
    .ctrl-mini-folder-tile:hover { background: var(--surf3); border-color: var(--blue); }
    .ctrl-mini-folder-tile svg { color: var(--muted); flex-shrink: 0; }
    .ctrl-mini-folder-back { border-style: dashed; color: var(--muted); }
    .ctrl-mini-folder-back:hover { border-color: var(--muted); border-style: solid; }
    .ctrl-mini-item-list { display: flex; flex-direction: column; }
    .ctrl-mini-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-bottom: 1px solid var(--border2);
      cursor: pointer;
      transition: background .1s;
    }
    .ctrl-mini-item:hover { background: var(--surf2); }
    .ctrl-mini-item-icon {
      width: 28px; height: 28px;
      border-radius: 4px;
      background: var(--surf2);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: 11px; font-weight: 700; color: var(--blue);
    }
    .ctrl-mini-item-name {
      flex: 1;
      font-size: 12px;
      color: var(--text);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .ctrl-mini-item-sub {
      font-size: 11px;
      color: var(--muted);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .ctrl-mini-play { color: var(--blue); flex-shrink: 0; }
    .mission-done-label { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; padding: 2px; }
    .mission-done-chk {
      appearance: none; -webkit-appearance: none;
      width: 20px; height: 20px; border-radius: 5px;
      border: 2px solid var(--border); background: var(--surf2);
      cursor: pointer; flex-shrink: 0; position: relative;
      transition: background .15s, border-color .15s;
    }
    .mission-done-chk:checked {
      background: var(--green); border-color: var(--green);
    }
    .mission-done-chk:checked::after {
      content: ''; position: absolute;
      left: 4px; top: 1px; width: 8px; height: 12px;
      border: 2.5px solid #fff; border-top: none; border-left: none;
      transform: rotate(45deg);
    }
    .mission-done-chk:hover:not(:checked) { border-color: var(--green); }
    .ctrl-mini-item.mission-done .ctrl-mini-item-name { opacity: .45; text-decoration: line-through; }

    .ctrl-mini-voir-btn {
      flex-shrink: 0;
      background: color-mix(in srgb, var(--accent2) 12%, transparent);
      border: 1px solid color-mix(in srgb, var(--accent2) 35%, transparent);
      border-radius: 6px; padding: 4px 10px;
      font-size: 11px; font-weight: 700; font-family: inherit;
      cursor: pointer; color: var(--blul);
      transition: background .12s, border-color .12s;
    }
    .ctrl-mini-voir-btn:hover { background: color-mix(in srgb, var(--accent2) 22%, transparent); border-color: var(--blul); }

    .ctrl-mini-formateur-btn {
      flex-shrink: 0;
      background: rgba(124,58,237,.12);
      border: 1px solid rgba(124,58,237,.35);
      border-radius: 6px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      color: #a78bfa;
      transition: background .12s, border-color .12s, color .12s;
    }
    .ctrl-mini-formateur-btn:hover {
      background: rgba(124,58,237,.22);
      border-color: #a78bfa;
      color: #c4b5fd;
    }
    .ctrl-mini-empty {
      padding: 24px;
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }
    .ctrl-mini-formation-badge {
      font-size: 10px;
      color: var(--muted);
      background: var(--surf3);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1px 7px;
      flex-shrink: 0;
    }
    .ctrl-mini-activate-btn {
      font-size: 11px;
      font-weight: 600;
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 3px 9px;
      cursor: pointer;
      flex-shrink: 0;
      transition: opacity .15s;
    }
    .ctrl-mini-activate-btn:hover { opacity: .85; }

    /* ── Séparateurs redimensionnables ── */
    .h-resizer {
      flex-shrink: 0;
      width: 12px;
      cursor: col-resize;
      position: relative;
      z-index: 5;
      background: var(--border2);
      transition: background 0.1s;
    }
    .h-resizer::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 2px;
      height: 32px;
      border-left: 2px dotted rgba(128,128,128,0.5);
      border-right: 2px dotted rgba(128,128,128,0.5);
    }
    .h-resizer:hover,
    .h-resizer.dragging { background: var(--blue); }
    .h-resizer:hover::after,
    .h-resizer.dragging::after {
      border-color: rgba(255,255,255,0.6);
    }

    .v-resizer {
      flex-shrink: 0;
      height: 12px;
      cursor: row-resize;
      position: relative;
      z-index: 5;
      background: var(--border2);
      transition: background 0.1s;
    }
    .v-resizer::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      height: 2px;
      width: 32px;
      border-top: 2px dotted rgba(128,128,128,0.5);
      border-bottom: 2px dotted rgba(128,128,128,0.5);
    }
    .v-resizer:hover,
    .v-resizer.dragging { background: var(--blue); }
    .v-resizer:hover::after,
    .v-resizer.dragging::after {
      border-color: rgba(255,255,255,0.6);
    }

    /* ── Colonne gauche ── */
    .col-left {
      flex: 0 0 52%;
      display: flex;
      flex-direction: column;
      min-height: 0;
      border-right: 1px solid var(--border);
      position: relative;
    }

    .j-tabs-card {
      flex-shrink: 0;
      padding: 6px 8px;
      display: flex;
      gap: 2px;
      background: var(--surf3);
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      border: none;
      border-bottom: 1px solid var(--border);
    }

    .j-tab {
      flex: 1;
      padding: 8px 4px;
      border-radius: 2px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.1s, color 0.1s, border-color 0.1s;
    }
    .j-tab:hover { background: var(--surf2); color: var(--text); }
    .j-tab.active {
      background: var(--blue);
      border-color: var(--blue);
      color: #ffffff;
    }

    .j-frame-card {
      flex: 1;
      min-height: 0;
      padding: 0;
      overflow: hidden;
      border: none;
      background: var(--bg);
    }
    #j-frame {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

    /* ── Colonne droite ── */
    .col-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    /* Bloc présentation */
    .pres-card {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: none;
      background: var(--surf);
    }

    .block-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 7px 12px;
      border-bottom: 1px solid var(--border2);
      flex-shrink: 0;
      background: var(--surf3);
    }

    .block-label-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--muted);
      flex-shrink: 0;
    }
    .block-label-dot.live {
      background: var(--red);
      animation: blink 1.4s ease-in-out infinite;
    }
    @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

    .pres-frame-wrap {
      flex: 1;
      min-height: 0;
      position: relative;
      overflow: hidden;
      background: #000000;
    }

    #pres-frame {
      position: absolute;
      top: 0; left: 0;
      border: none;
      display: block;
      transform-origin: top left;
      will-change: transform;
    }

    .res-select {
      font-family: inherit;
      font-size: 11px;
      font-weight: 400;
      background: var(--surf2);
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--muted);
      padding: 2px 6px;
      cursor: pointer;
      outline: none;
      transition: border-color 0.1s, color 0.1s;
    }
    .res-select:hover, .res-select:focus {
      border-color: var(--blue);
      color: var(--text);
    }
    .res-select option { background: var(--surf2); }

    #pres-custom-res {
      display: none;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }
    .res-input {
      width: 52px;
      font-family: inherit;
      font-size: 11px;
      background: var(--surf2);
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--text);
      padding: 2px 4px;
      outline: none;
      text-align: center;
      appearance: textfield;
      -moz-appearance: textfield;
    }
    .res-input::-webkit-outer-spin-button,
    .res-input::-webkit-inner-spin-button { -webkit-appearance: none; }
    .res-input:hover, .res-input:focus { border-color: var(--blue); }

    .pres-empty {
      flex: 1;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 16px;
      color: var(--muted);
      font-size: 13px;
    }


    /* ── Modal tirage ── */
    .tirage-backdrop {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1000;
      background: rgba(0,0,0,0.55);
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .tirage-backdrop.open { display: flex; }

    .tirage-modal {
      width: min(860px, 96%);
      height: min(88vh, 800px);
      background: var(--surf);
      border: 1px solid var(--border);
      border-radius: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }

    /* Sliders affichage projecteur */
    .disp-slider {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 4px;
      border-radius: 2px;
      outline: none; border: none; cursor: pointer;
      background: linear-gradient(to right, var(--blue) var(--sv,50%), var(--border) var(--sv,50%));
    }
    .disp-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 14px; height: 14px;
      border-radius: 50%;
      background: var(--blue-l);
      cursor: pointer;
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent2) 25%, transparent);
    }
    .disp-slider::-moz-range-thumb {
      width: 14px; height: 14px;
      border-radius: 50%;
      background: var(--blue-l);
      border: none; cursor: pointer;
    }

    .tirage-modal-head {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
      background: var(--surf3);
    }
    .tirage-modal-title {
      font-weight: 600;
      font-size: 12px;
      flex: 1;
      color: var(--text);
    }

    .tirage-frame {
      flex: 1;
      border: none;
      background: var(--bg);
      min-height: 0;
    }

    .formateur-body {
      padding: 14px 16px 16px;
      overflow-y: auto;
      max-height: min(72vh, 620px);
      font-size: 13px;
      line-height: 1.6;
      color: var(--text);
    }
    .formateur-text {
      white-space: pre-wrap;
      background: var(--surf2);
      border: 1px solid var(--border);
      padding: 12px;
    }

    /* ── Overlay gestes présentation ── */
    .vpan-overlay {
      position: absolute;
      inset: 0;
      z-index: 10;
      cursor: grab;
      touch-action: none;
      user-select: none;
    }
    .vpan-overlay.dragging { cursor: grabbing; }

    /* ── Optimisations écran tactile ── */
    @media (pointer: coarse) {
      /* Supprime les transitions CSS — inutiles sur tactile, coûteuses sur GPU mobile */
      .ctrl-hbtn, .ctrl-back, .j-tab, .h-resizer, .v-resizer,
      .hdr-radio-btn, .res-select { transition: none; }

      /* Cibles tactiles ≥ 44 dp (recommandation WCAG / Apple HIG) */
      .ctrl-hbtn, .ctrl-back {
        min-height: 40px;
        padding: 0 12px;
      }
      .hdr-radio-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
      }
      .hdr-radio-btn.rb-play {
        width: 40px;
        height: 40px;
      }

      /* Slider volume plus large */
      .hdr-radio-vol { width: 80px; height: 22px; }
      .hdr-radio-vol::-webkit-slider-thumb { width: 18px; height: 18px; }
      .hdr-radio-vol::-moz-range-thumb     { width: 18px; height: 18px; }

      /* Poignée de redimensionnement plus facile à saisir */
      .h-resizer { width: 20px; }
      .v-resizer { height: 20px; }

    }

    @media (max-width: 900px) {
      body.has-rail .ctrl-header,
      body.has-rail .ctrl-actions { left: 0; }
      .ctrl-header { padding: 0 8px; gap: 4px; }
      .ctrl-hbtn, .ctrl-back { padding: 4px 8px; font-size: 11px; }
      .form-bar-name { max-width: 130px; }
    }

    @media (max-width: 680px) {
      .hdr-radio-now,
      #rb-prev,
      #rb-next,
      #rb-vol,
      #rb-vol-dn,
      #rb-vol-up {
        display: none;
      }
      .hdr-radio { padding-left: 6px; margin-left: 0; }
    }

    /* ── Formation sélectionnée ── */
    .form-bar-name {
      flex-shrink: 0;
      font-weight: 700; font-size: 15px;
      color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      max-width: 200px;
    }

    /* ── Panneau aucune formation ── */
    #no-form-panel {
      flex: 1; min-height: 0;
      display: flex; flex-direction: column;
      overflow: hidden;
    }
    .ctrl-list-scroll {
      flex: 1; min-height: 0;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
    }
    .ctrl-list-scroll::-webkit-scrollbar { width: 4px; }
    .ctrl-list-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
    .ctrl-list-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 14px;
      border-bottom: 1px solid var(--border2);
      cursor: pointer;
      transition: background 0.1s;
    }
    .ctrl-list-item:hover { background: var(--surf2); }
    .ctrl-list-item:last-child { border-bottom: none; }
    .ctrl-list-item-icon { font-size: 1rem; flex-shrink: 0; opacity: 0.65; }
    .ctrl-list-item-body { flex: 1; min-width: 0; }
    .ctrl-list-item-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ctrl-list-item-sub { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ctrl-mission-btn {
      width: 100%;
      display: block;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .ctrl-mission-row {
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid var(--border2);
      padding-right: 8px;
    }
    .ctrl-mission-row:last-child { border-bottom: none; }
    .ctrl-mission-main {
      flex: 1;
      min-width: 0;
      border-bottom: none;
    }
    .ctrl-mission-formateur {
      height: 28px;
      padding: 0 9px;
      border-radius: 2px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.1s, color 0.1s, border-color 0.1s;
    }
    .ctrl-mission-formateur:hover {
      background: var(--surf2);
      color: var(--blue-l);
      border-color: var(--blue);
    }
    .ctrl-list-empty { text-align: center; padding: 20px 16px; font-size: 12px; color: var(--muted); font-style: italic; }

    /* ── Mode portrait ── */
    @media (orientation: portrait), (max-width: 1100px) {
      .ctrl-body { flex-direction: column; }
      .col-left {
        flex: 0 0 34%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
      .col-right { flex: 1; min-height: 0; }
      .h-resizer {
        width: 100%;
        height: 12px;
        cursor: row-resize;
      }
      .hdr-radio-now { display: none; }
      .hdr-radio-vol  { width: 50px; }
    }

  