    @font-face {
      font-family: 'Geist';
      src: url('/Geist.ttf') format('truetype-variations'), url('/Geist.ttf') format('truetype');
      font-weight: 100 900; font-style: normal; font-display: swap;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: var(--wc-police);
      background: #000; color: var(--wc-text); min-height: 100vh;
    }
    .bg-glow {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--wc-accent-rgb),0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(175,82,222,0.07) 0%, transparent 55%);
    }
    .nav {
      display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
      padding: 0 24px; height: 56px;
      background: rgba(0,0,0,0.6); backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 100;
    }
    .nav-logo img { height: 28px; }
    .nav-title { font-size: 14px; font-weight: 600; text-align: center; }
    .nav-right { display: flex; justify-content: flex-end; }
    #user-badge {
      display: none; align-items: center; gap: 8px; cursor: pointer;
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
      padding: 5px 12px; border-radius: var(--wc-r-xl); font-size: 13px; font-weight: 500;
    }
    #user-badge .x { color: #8e8e93; font-size: 11px; }

    main { max-width: 1200px; margin: 0 auto; padding: 28px 20px; position: relative; z-index: 1; }

    .grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
    @media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

    .panel {
      background: rgba(12,24,41,0.5); border: 1px solid rgba(26,45,74,0.5);
      border-radius: var(--wc-r-l); padding: 20px; backdrop-filter: blur(12px);
    }
    .panel-title {
      font-size: var(--wc-surtitre-taille); font-weight: var(--wc-surtitre-graisse); letter-spacing: var(--wc-surtitre-espacement); text-transform: var(--wc-surtitre-casse);
      color: var(--wc-surtitre-couleur); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    }
    .panel-title::after { content: ''; flex: 1; height: 1px; background: rgba(26,45,74,0.6); }

    /* Artist list */
    #artist-list { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
    .artist-row {
      display: flex; align-items: center; gap: 10px;
      background: rgba(26,45,74,0.3); border: 1px solid rgba(26,45,74,0.5);
      border-radius: var(--wc-r-m); padding: 10px 12px; cursor: grab; transition: all .15s;
      user-select: none;
    }
    .artist-row:active { cursor: grabbing; }
    .artist-row.dragging { opacity: .4; }
    .artist-row.drag-over { border-color: var(--wc-accent); background: rgba(var(--wc-accent-rgb),0.12); }
    .artist-row.is-current { border-color: rgba(251,191,36,0.6); background: rgba(251,191,36,0.08); }
    .artist-row.is-next    { border-color: rgba(var(--wc-accent-rgb),0.5); background: rgba(var(--wc-accent-rgb),0.08); }
    .drag-handle { color: #3a5a7a; font-size: 14px; flex-shrink: 0; cursor: grab; }
    .artist-info { flex: 1; min-width: 0; }
    .artist-name { font-size: 14px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .artist-sub  { font-size: 12px; color: var(--wc-gris-ardoise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .artist-badges { display: flex; gap: 4px; flex-shrink: 0; }
    .badge {
      font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--wc-r-xl);
      letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
    }
    .badge-current { background: rgba(251,191,36,0.2); color: var(--wc-ambre); border: 1px solid rgba(251,191,36,0.4); }
    .badge-next    { background: rgba(var(--wc-accent-rgb),0.2); color: var(--wc-bleu-clair); border: 1px solid rgba(var(--wc-accent-rgb),0.3); }
    .artist-actions { display: flex; gap: 4px; flex-shrink: 0; }
    .btn-icon {
      background: none; border: 1px solid rgba(26,45,74,0.6); color: var(--wc-gris-ardoise);
      border-radius: var(--wc-r-s); width: 28px; height: 28px; cursor: pointer; font-size: 13px;
      display: flex; align-items: center; justify-content: center; transition: all .15s;
    }
    .btn-icon:hover { background: rgba(255,255,255,0.08); color: var(--wc-texte-doux); border-color: rgba(100,150,200,0.4); }
    .btn-icon.danger:hover { background: rgba(239,68,68,0.15); color: var(--wc-rouge-vif); border-color: rgba(239,68,68,0.4); }

    /* Add artist form */
    .add-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
    .add-form input {
      flex: 1; min-width: 120px;
      background: rgba(26,45,74,0.3); border: 1px solid rgba(26,45,74,0.6);
      color: var(--wc-texte-doux); padding: 9px 12px; border-radius: var(--wc-r-s); font-family: inherit; font-size: 13px;
    }
    .add-form input:focus { outline: none; border-color: var(--wc-bleu-clair); }
    .btn { padding: 9px 16px; border-radius: var(--wc-r-s); border: none; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; transition: all .15s; }
    .btn-primary { background: var(--wc-accent); color: #fff; }
    .btn-primary:hover { background: #0a84ff; }
    .btn-sm { padding: 7px 13px; font-size: 12px; }

    /* Live control */
    .live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 600px) { .live-grid { grid-template-columns: 1fr; } }

    .live-card {
      background: rgba(26,45,74,0.25); border: 1px solid rgba(26,45,74,0.5);
      border-radius: var(--wc-r-m); padding: 16px; display: flex; flex-direction: column; gap: 10px;
    }
    .live-card.current { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.06); }
    .live-card.next    { border-color: rgba(var(--wc-accent-rgb),0.35); background: rgba(var(--wc-accent-rgb),0.06); }

    .live-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
    .live-card.current .live-label { color: var(--wc-ambre); }
    .live-card.next    .live-label { color: var(--wc-bleu-clair); }

    .live-artist-name { font-size: 18px; font-weight: 700; color: #f1f5f9; line-height: 1.2; min-height: 22px; }
    .live-artist-sub  { font-size: 13px; color: #64748b; min-height: 16px; }

    .live-select {
      background: rgba(26,45,74,0.5); border: 1px solid rgba(26,45,74,0.6);
      color: var(--wc-texte-doux); padding: 8px 10px; border-radius: var(--wc-r-s); font-family: inherit; font-size: 13px; width: 100%;
    }
    .live-select:focus { outline: none; border-color: var(--wc-bleu-clair); }

    .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .toggle-label { font-size: 12px; color: var(--wc-gris-bleu-clair); font-weight: 500; }
    .toggle {
      position: relative; width: 44px; height: 26px; flex-shrink: 0;
    }
    .toggle input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
      position: absolute; inset: 0; background: rgba(26,45,74,0.6); border-radius: var(--wc-r-m);
      cursor: pointer; transition: background .2s;
    }
    .toggle-slider::before {
      content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
      background: #fff; left: 3px; top: 3px; transition: transform .2s;
    }
    .toggle input:checked + .toggle-slider { background: var(--wc-accent); }
    .toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

    /* Next button */
    .btn-next {
      width: 100%; padding: 12px; background: linear-gradient(135deg, rgba(var(--wc-accent-rgb),0.2), rgba(var(--wc-accent-rgb),0.1));
      border: 1px solid rgba(var(--wc-accent-rgb),0.4); color: var(--wc-bleu-clair); border-radius: var(--wc-r-m);
      font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
      transition: all .15s; letter-spacing: 0.02em;
    }
    .btn-next:hover { background: rgba(var(--wc-accent-rgb),0.25); border-color: rgba(var(--wc-accent-rgb),0.6); }
    .btn-next:active { transform: scale(.98); }

    /* Preview */
    .preview-wrap {
      background: #111; border: 1px solid rgba(26,45,74,0.5); border-radius: var(--wc-r-m);
      aspect-ratio: 16/9; overflow: hidden; position: relative;
    }
    .preview-wrap iframe {
      width: 1920px; height: 1080px; border: none;
      transform-origin: top left; position: absolute; top: 0; left: 0;
      pointer-events: none;
    }

    /* Overlay URL */
    .url-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
    .url-box {
      flex: 1; background: rgba(26,45,74,0.3); border: 1px solid rgba(26,45,74,0.5);
      color: var(--wc-gris-bleu-clair); padding: 8px 12px; border-radius: var(--wc-r-s); font-size: 12px;
      font-family: var(--wc-police-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .btn-copy { background: rgba(var(--wc-accent-rgb),0.15); border: 1px solid rgba(var(--wc-accent-rgb),0.3); color: var(--wc-bleu-clair); border-radius: var(--wc-r-s); padding: 8px 14px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; white-space: nowrap; }
    .btn-copy:hover { background: rgba(var(--wc-accent-rgb),0.25); }

    /* Design panel */
    .design-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
    .design-tab {
      flex: 1; padding: 7px; border-radius: var(--wc-r-s); border: 1px solid rgba(26,45,74,0.6);
      background: rgba(26,45,74,0.2); color: var(--wc-gris-ardoise); font-size: 12px; font-weight: 600;
      cursor: pointer; font-family: inherit; transition: all .15s; text-align: center;
    }
    .design-tab.active-cur { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.4); color: var(--wc-ambre); }
    .design-tab.active-nxt { background: rgba(var(--wc-accent-rgb),0.12); border-color: rgba(var(--wc-accent-rgb),0.35); color: var(--wc-bleu-clair); }
    .design-pane { display: none; flex-direction: column; gap: 12px; }
    .design-pane.active { display: flex; }
    .design-row { display: flex; align-items: center; gap: 10px; }
    .design-label { font-size: 12px; color: var(--wc-gris-bleu-clair); width: 90px; flex-shrink: 0; }
    .design-color { width: 36px; height: 28px; padding: 2px; border: 1px solid rgba(26,45,74,0.6); border-radius: var(--wc-r-s); background: rgba(26,45,74,0.3); cursor: pointer; }
    .design-range { flex: 1; accent-color: var(--wc-accent); }
    .design-range-val { font-size: 12px; color: var(--wc-bleu-clair); width: 32px; text-align: right; flex-shrink: 0; }
    .design-input {
      flex: 1; background: rgba(26,45,74,0.3); border: 1px solid rgba(26,45,74,0.6);
      color: var(--wc-texte-doux); padding: 7px 10px; border-radius: var(--wc-r-s); font-family: inherit; font-size: 13px;
    }
    .design-input:focus { outline: none; border-color: var(--wc-bleu-clair); }
    .btn-save-design { width: 100%; padding: 9px; background: rgba(var(--wc-accent-rgb),0.15); border: 1px solid rgba(var(--wc-accent-rgb),0.3); color: var(--wc-bleu-clair); border-radius: var(--wc-r-s); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s; margin-top: 4px; }
    .btn-save-design:hover { background: rgba(var(--wc-accent-rgb),0.25); }

    /* Templates */
    .tpl-row { display:flex; align-items:center; gap:8px; background:rgba(26,45,74,0.25); border:1px solid rgba(26,45,74,0.5); border-radius:var(--wc-r-s); padding:8px 12px; }
    .tpl-name { flex:1; font-size:13px; color:var(--wc-texte-doux); font-weight:500; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .tpl-date { font-size:11px; color:#3a5a7a; flex-shrink:0; }
    .btn-tpl-apply { background:rgba(var(--wc-accent-rgb),0.15); border:1px solid rgba(var(--wc-accent-rgb),0.3); color:var(--wc-bleu-clair); border-radius:var(--wc-r-s); padding:5px 10px; cursor:pointer; font-size:11px; font-weight:600; font-family:inherit; white-space:nowrap; }
    .btn-tpl-apply:hover { background:rgba(var(--wc-accent-rgb),0.25); }
    .btn-tpl-del { background:none; border:1px solid rgba(255,69,58,0.2); color:rgba(255,69,58,0.6); border-radius:var(--wc-r-s); width:24px; height:24px; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .btn-tpl-del:hover { border-color:rgba(255,69,58,0.6); color:var(--wc-red); }

    /* Stream Deck */
    .sd-row { display: flex; align-items: center; gap: 8px; }
    .sd-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--wc-r-xl); flex-shrink: 0; white-space: nowrap; }
    .sd-tag-cur  { background: rgba(251,191,36,0.15); color: var(--wc-ambre); border: 1px solid rgba(251,191,36,0.35); }
    .sd-tag-nxt  { background: rgba(var(--wc-accent-rgb),0.15); color: var(--wc-bleu-clair); border: 1px solid rgba(var(--wc-accent-rgb),0.3); }
    .sd-tag-go   { background: rgba(52,211,153,0.15); color: var(--wc-emeraude); border: 1px solid rgba(52,211,153,0.3); }
    .sd-url { flex: 1; background: rgba(26,45,74,0.3); border: 1px solid rgba(26,45,74,0.5); color: var(--wc-gris-bleu-clair); padding: 7px 10px; border-radius: var(--wc-r-s); font-size: 11px; font-family: var(--wc-police-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sd-copy { background: rgba(var(--wc-accent-rgb),0.12); border: 1px solid rgba(var(--wc-accent-rgb),0.25); color: var(--wc-bleu-clair); border-radius: var(--wc-r-s); padding: 7px 11px; cursor: pointer; font-size: 11px; font-weight: 600; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
    .sd-copy:hover { background: rgba(var(--wc-accent-rgb),0.22); }

    /* Edit modal */
    .modal-backdrop { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
    .modal-backdrop.open { display: flex; }
    .modal { background: rgba(8,16,32,0.98); border: 1px solid rgba(var(--wc-accent-rgb),0.15); border-radius: var(--wc-r-l); padding: 24px; width: 100%; max-width: 400px; }
    .modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: #e2e8f0; }
    .modal input { width: 100%; background: rgba(26,45,74,0.4); border: 1px solid rgba(26,45,74,0.6); color: var(--wc-texte-doux); padding: 10px 14px; border-radius: var(--wc-r-s); font-family: inherit; font-size: 14px; margin-bottom: 12px; }
    .modal input:focus { outline: none; border-color: var(--wc-bleu-clair); }
    .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
    .btn-cancel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #8e8e93; border-radius: var(--wc-r-s); padding: 9px 16px; cursor: pointer; font-family: inherit; font-size: 13px; }
    .pop-error { color: var(--wc-rouge-vif); font-size: 13px; display: none; }
    .pop-error.visible { display: block; }
    .pop-btn { width: 100%; background: var(--wc-accent); color: #fff; border: none; border-radius: var(--wc-r-m); padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
  
    /* ─── Footer ─── */
    .page-footer {
      padding: 18px 32px;
      border-top: 1px solid rgba(255,255,255,0.07);
      display: flex; justify-content: center; align-items: center;
      font-size: 12px; color: rgba(255,255,255,0.3);
      margin-top: auto;
    }
    .page-footer a { color: rgba(255,255,255,0.3); text-decoration: none; }
    .page-footer a:hover { color: rgba(255,255,255,0.6); }

    /* Cibles tactiles : sur ecran tactile uniquement, ces boutons-icones
       mesuraient 20 a 29 px de haut — trop petits pour le doigt. Aucun effet
       a la souris. */
    @media (pointer: coarse) {
      /* min-width retire : a 40 px de large, six boutons-icones faisaient
         deborder .artist-row de 231 px en mobile. La hauteur suffit. */
      .btn-icon,
      .sd-copy {
        min-height: 40px;
      }
      input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
    }

    /* Colonne fixe de 380 px dans .grid : plus large que l'ecran sous 400 px.
       C'etait la vraie cause du debordement de 261 px, pas la rangee artiste. */
    @media (max-width: 760px) {
      .grid { grid-template-columns: 1fr !important; }
      /* Sans min-width:0, un element de grille garde sa largeur min-content :
         la colonne 1fr se resolvait a 601 px dans un conteneur de 320 px. */
      .grid > * { min-width: 0; }
      /* Meme cause a l'interieur : un input en flex:1 sans min-width:0 garde
         la largeur de son placeholder et pousse le bouton hors de l'ecran. */
      .design-input, input.design-input { min-width: 0; }
    }

    /* Debordement horizontal mesure a 360 px (+261 px) : la rangee artiste ne
       pouvait pas se replier, ses boutons poussaient le panneau a 601 px. */
    @media (max-width: 520px) {
      .artist-row { flex-wrap: wrap; }
      .artist-info { flex: 1 1 100%; }
    }
