
.rsp-app{font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;color:#111;--accent:var(--rsp-accent,#ff6a00);}

/* iOS/Safari sometimes forces blue link styling (tel/mailto + default anchors). Keep it on-brand. */
.rsp-app a,
.rsp-app a:visited,
.rsp-app a:hover,
.rsp-app a:active,
.rsp-app a:focus{
  color: inherit;
  text-decoration: none;
}
@media (max-width: 768px){
  #rspHelpWidgetRoot{ bottom:110px !important; }
}
/* Mobile: compact Inputs table (CH / INS / DI-MIC / … / 🗑) */
@media (max-width: 768px){
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table{
    table-layout: fixed;
    width: 100%;
  }

  /* Mobile columns: hide desktop handle + Group + Stand + Notes. Keep Ch, Instrument, Mic/DI, Actions */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(1),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(1),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(4),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(4),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(6),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(6),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(7),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(7){
    display:none !important;
  }

  /* Alternating full-row backgrounds (native list feel) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr:nth-child(odd){
    background:#ffffff;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr:nth-child(even){
    background:#f7f7f8;
  }

  /* Full-width subtle divider (avoid per-cell borders) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td{
    background:transparent !important;
    border-top:none !important;
    border-bottom:none !important;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr{
    box-shadow: inset 0 -1px rgba(0,0,0,0.06);
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr:last-child{
    box-shadow:none;
  }


  /* Column widths */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(2),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(2){
    width:66px !important;
    max-width:66px;
    text-align:left;
    padding-left:12px;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(3),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(3){
    width:auto !important;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(4),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(4){
    width:126px !important;
    max-width:126px;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(8),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(8){
    width:88px !important;
    max-width:88px;
    text-align:right;
  }

  /* Mobile: drag on the CH cell (no icon) */
  .rsp-is-mobile #rspMobilePanelInputs td.rsp-td-ch{
    cursor:grab;
  }
  .rsp-is-mobile #rspMobilePanelInputs td.rsp-td-ch:active{
    cursor:grabbing;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-ch-num{
    font-weight:800;
    font-size:18px;
    color:#111;
    display:inline-block;
    min-width:18px;
  }

  /* Remove any per-row rounding/shadows inside the table (keep only outer container rounding) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr,
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td{
    border-radius:0 !important;
    box-shadow:none !important;
  }

  /* Actions: split visually into … and 🗑 columns */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-td-actions{
    display:grid !important;
    grid-template-columns: 36px 36px;
    justify-content:end;
    gap:8px;
    background:transparent !important;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-row-more,
  .rsp-is-mobile #rspMobilePanelInputs .rsp-row-del{
    width:36px;
    height:36px;
    border-radius:12px;
  }

  /* Prevent header overlap on small screens */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th{ font-size:12px; }
}
}
.rsp-app a[href^="tel"],
.rsp-app a[href^="mailto"]{
  color: inherit;
}
.rsp-topbar{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #e6e6e6;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.06);position:sticky;top:12px;z-index:5}
.rsp-brand{font-weight:900;letter-spacing:.8px}
.rsp-title{flex:1;min-width:160px;border:1px solid #eee;border-radius:999px;padding:10px 14px;background:#fafafa}
.rsp-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.rsp-mobile-head{display:none}
.rsp-mob-right{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.rsp-btn.rsp-mob-action{border-radius:14px}
.rsp-btn.rsp-mob-hamb{border-radius:14px;width:44px;height:44px;padding:0;display:grid;place-items:center}
.rsp-btn{border:1px solid #e8e8e8;background:#fff;border-radius:999px;padding:10px 14px;font-weight:600;cursor:pointer}
.rsp-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08)}
.rsp-primary{background:#111;color:#fff;border-color:#111}
.rsp-accent{background:var(--accent);color:#fff;border-color:var(--accent)}
.rsp-body{display:grid;grid-template-columns:320px 1fr 280px;gap: 16px;margin-top:14px;padding-bottom: 16px;}
.rsp-sidebar{border-radius:16px;background:linear-gradient(180deg,#222833,#0f141c);color:#fff;padding:14px;position:sticky;top:92px;height:calc(100vh - 110px);overflow:auto}
.rsp-sidebar-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}
.rsp-sidebar-title{font-weight:800}
.rsp-sidebar-sub{opacity:.7;font-size:12px}
.rsp-group{border-top:1px solid rgba(255,255,255,.10);padding-top:10px;margin-top:10px}
.rsp-group-head{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:6px 6px;border-radius:10px}
.rsp-group-head:hover{background:rgba(255,255,255,.06)}
.rsp-group-title{font-weight:700}
.rsp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;padding:8px 6px 2px}
.rsp-icon{background:#fff;border:1px solid rgba(255,255,255,.14);border-radius:12px;display:grid;place-items:center;cursor:grab;user-select:none;height:96px}
.rsp-icon img{max-width:56px;max-height:56px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.35))}
.rsp-upload-hint{margin-top:12px;font-size:12px;opacity:.85;line-height:1.4}
.rsp-chip{display:inline-block;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:700;margin-right:6px}
.rsp-canvas-wrap{min-width:0}

/* Layers sidebar (extra option) */
.rsp-layers{border-radius:16px;background:#fff;border:1px solid #e6e6e6;box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:14px;position:sticky;top:92px;height:calc(100vh - 110px);overflow:auto}
.rsp-layers-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:12px}
.rsp-layers-title{font-weight:900;letter-spacing:.2px}
.rsp-layers-sub{font-size:12px;opacity:.65}
.rsp-layers-list{display:flex;flex-direction:column;gap:8px}
.rsp-layer{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa;cursor:grab;user-select:none}
.rsp-layer:active{cursor:grabbing}
.rsp-layer-dot{width:10px;height:10px;border-radius:3px;background:var(--accent);opacity:.85}
.rsp-layer-name{font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.rsp-layer-meta{font-size:11px;opacity:.65}
.rsp-layer.is-active{outline:2px solid var(--accent);outline-offset:2px;background:#fff}
.rsp-layer.drag-over{border-color:var(--accent)}
.rsp-canvas-toolbar{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #ececec;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.05);flex-wrap:wrap}
.rsp-tool{border:1px solid #eee;background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;font-weight:700}
.rsp-tool:hover{box-shadow:0 8px 18px rgba(0,0,0,.08)}
.rsp-tool.is-active{background:#111;color:#fff;border-color:#111}

/* Desktop selection actions (appear in the header toolbar when an item is selected) */
.rsp-selection-actions{display:flex;align-items:center;gap:8px;margin-left:8px}
.rsp-selection-actions .rsp-selact{padding:8px 10px;min-width:38px;display:flex;align-items:center;justify-content:center}
.rsp-selection-actions .rsp-selact-sep{width:1px;height:24px;background:rgba(0,0,0,.10);border-radius:99px;margin:0 2px}

/* Desktop: second row under toolbar for selection actions (prevents overflow on smaller screens) */
.rsp-desktop-selection-row{
  display:none;
  width:100%;
  margin-top:10px;
  justify-content:center;
}
.rsp-desktop-selection-row .rsp-selection-actions{
  margin-left:0;
  width:fit-content;
  max-width:calc(100% - 24px);
  padding:8px;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.rsp-desktop-selection-row .rsp-selection-actions::-webkit-scrollbar{height:0}

/* Mobile: second action row under the main canvas toolbar (only visible on selection) */
.rsp-mobile-selection-actions{
  /* Must override .rsp-mobile-only { display: inline-flex !important; } */
  display:none !important;
  width:fit-content;
  max-width:calc(100% - 24px);
  align-items:center;
  gap:8px;
  padding:8px;
  margin-top:10px;
  margin-left:auto;
  margin-right:auto;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  justify-content:center;
}
.rsp-mobile-selection-actions .rsp-selact{min-width:40px;display:flex;align-items:center;justify-content:center}
.rsp-mobile-selection-actions::-webkit-scrollbar{height:0}

/* ------------------------------------------------------------
   Canvas item hover tooltip (same vibe as RiffBuddy bubble)
   NOTE: we use a single JS-positioned tooltip (clamped + flips)
------------------------------------------------------------- */
.rsp-item[data-tooltip]{position:absolute}
/* Disable legacy pseudo-element tooltips */
.rsp-item[data-tooltip]::after,
.rsp-item[data-tooltip]::before{display:none !important}

.rsp-canvas-tooltip{
  position:absolute;
  left:0;
  top:0;
  /* Centered over the canvas item */
  transform:translate(-50%, -50%);
  background:rgba(15,20,28,.92);
  color:#fff;
  padding:4px 8px;
  border-radius:10px;
  font-weight:800;
  font-size:11px;
  white-space:nowrap;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
  opacity:0;
  transition:opacity .12s ease;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index:9999;
}
.rsp-canvas-tooltip.is-visible{opacity:1}
.rsp-canvas-tooltip::after{
  display:none;
}
.rsp-spacer{flex:1}
.rsp-zoom{display:flex;align-items:center;gap:8px}
.rsp-zoomval{font-weight:800;min-width:58px;text-align:center}
.rsp-canvas{margin-top:12px;border:1px solid #ececec;border-radius:18px;background:#fff;
  box-shadow:0 18px 50px rgba(0,0,0,.10);
  /* Editor viewport stays stable; stage is a contained rectangle inside. */
  /* IMPORTANT: this must have a real height. If it's 'auto', the absolutely-positioned stage
     does not contribute to layout, so the viewport collapses to min-height and the stage becomes tiny. */
  height:min(62vh, 620px);
  min-height:360px;
  overflow:auto; /* allow panning when zoomed */
  position:relative;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action: pan-y; /* we manage gestures ourselves */
}

/* World provides scroll size; stage is scaled via transform but world grows with zoom */
.rsp-stage-world{
  position:relative;
  min-width:100%;
  min-height:100%;
}

/* The actual stage area (ratio-based) inside the viewport */
.rsp-stage{
  position:absolute;
  left:24px; top:24px;
  transform-origin:0 0;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:
    linear-gradient(#f2f2f2 1px, transparent 1px),
    linear-gradient(90deg, #f2f2f2 1px, transparent 1px);
  background-size:26px 26px;
  overflow:hidden;
}

/* Pan mode cursors */
.rsp-canvas.rsp-pan-mode{ cursor:grab; }
.rsp-canvas.rsp-pan-mode:active{ cursor:grabbing; }
.rsp-bottom{grid-column:1/-1;margin-top:0;border:1px solid #ececec;border-radius:18px;background:#fff;overflow:hidden}
.rsp-tabs{display:flex;gap:10px;padding:10px;border-bottom:1px solid #eee}
.rsp-tab{border:1px solid #eee;background:#fff;border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer}
.rsp-tab.is-active{background:#111;color:#fff;border-color:#111}
.rsp-badge{display:inline-block;margin-left:6px;font-size:11px;padding:2px 6px;border-radius:999px;background:var(--accent);color:#fff}
.rsp-panel{display:none;padding:12px}
.rsp-panel.is-active{display:block}
.rsp-table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:14px;border:1px solid #eee}
.rsp-table thead th{background:#f7f7f7;text-align:left;padding:10px;font-size:12px}
.rsp-table tbody td{padding:10px;border-top:1px solid #eee;font-size:14px}

/* Input List editable cells */
.rsp-table td{ vertical-align:middle; }
.rsp-cell{ width:100%; border:0; background:transparent; font:inherit; outline:none; padding:0; }
.rsp-cell:focus{ outline:none; box-shadow:0 0 0 2px rgba(255,122,0,.22); border-radius:8px; }
.rsp-cell-ch{ text-align:center; max-width:70px; }
.rsp-row-del{ cursor:pointer; font-weight:700; font-size:16px; color:#ff3b30; opacity:.9; }
.rsp-row-del:hover{ opacity:1; }
.rsp-drag-handle{ cursor:grab; font-size:16px; letter-spacing:-2px; }
/* Inline (mobile) drag handle that sits before the channel number */
.rsp-drag-handle-inline{ display:none; }

.rsp-empty{padding:12px 14px;text-align:center;opacity:.65;font-size:12px;line-height:1.35}

/* Bandleden (card layout) */
.rsp-band-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.rsp-bandlist{padding:12px 2px 8px 2px;display:grid;gap:10px}
.rsp-bandlist{display:grid;grid-template-columns:repeat(3, minmax(0,2fr));gap:14px}
@media (max-width:1200px){.rsp-bandlist{grid-template-columns:repeat(2, minmax(0,1fr))}}
@media (max-width:960px){.rsp-bandlist{grid-template-columns:1fr}}

.rsp-bandcard{
  background:#f3f3f3;
  border:1px solid rgba(0,0,0,.06);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 26px 70px rgba(0,0,0,.10);
  transition:transform .12s ease, box-shadow .12s ease;
}
.rsp-bandcard:hover{ transform:translateY(-3px); box-shadow:0 34px 92px rgba(0,0,0,.12); }
.rsp-bandcard.is-dragging{opacity:.85;transform:scale(.995)}

.rsp-band-photo{
  position:relative;
  height:250px;
  margin:12px;
  border-radius:22px;
  overflow:hidden;
  background:#dcdcdc;
  background-size:cover;
  background-position:center;
}

/* Centered "profile" block (no image upload; keeps PDF-like header area) */
.rsp-band-photo-center{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  gap:10px;
  padding:18px;
  z-index:1;
  text-align:center;
  pointer-events:none;
}
.rsp-band-photo-icon{
  font-size:46px;
  line-height:1;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.28));
}
.rsp-band-photo-role{
  font-weight:900;
  font-size:14px;
  letter-spacing:-.2px;
  color:rgba(255,255,255,.95);
  text-shadow:0 10px 26px rgba(0,0,0,.35);
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}
.rsp-band-photo-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.28) 100%);
}
.rsp-band-photo-top{
  position:absolute; top:12px; left:12px; right:12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  z-index:2;
}
.rsp-band-handle{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.28);
  color:#fff;
  cursor:grab; user-select:none;
  backdrop-filter: blur(8px);
}
.rsp-band-handle:active{cursor:grabbing}
.rsp-band-idx{
  font-weight:900;
  color:#fff;
  opacity:.92;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.rsp-band-photo-actions{display:flex;gap:8px;align-items:center}
.rsp-band-iconbtn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.26);
  color:#fff;
  display:grid;place-items:center;
  cursor:pointer;
  backdrop-filter: blur(8px);
  transition:transform .12s ease;
}
.rsp-band-iconbtn:hover{transform:translateY(-2px) scale(1.02)}

.rsp-band-photo-actions{display:flex;gap:8px;align-items:center}

.rsp-band-body{
  margin:0 12px 12px 12px;
  padding:16px 16px 14px 16px;
  background:#fff;
  border-radius:22px;
  display:grid;
  gap:10px;
}

.rsp-band-headline{
  display:flex;
  align-items:center;
  gap:10px;
}
.rsp-band-name{
  flex:1;
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:#111;
  font-weight:900;
  font-size:22px;
  letter-spacing:-.2px;
  padding:0;
}
.rsp-band-role{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:#111;
  font-weight:700;
  font-size:13px;
  opacity:.65;
  padding:0;
}

.rsp-band-bio{
  width:100%;
  resize:vertical;
  border:none;
  outline:none;
  background:transparent;
  color:#111;
  font-size:12px;
  line-height:1.35;
  opacity:.72;
  min-height:42px;
}

/* Make inputs feel like native typography (less "HTML-ish") */
.rsp-bandcard input,
.rsp-bandcard textarea{
  -webkit-appearance:none;
  appearance:none;
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
}
.rsp-bandcard textarea{ resize:none; }
.rsp-bandcard input::placeholder,
.rsp-bandcard textarea::placeholder{ color:rgba(0,0,0,.32); }

.rsp-band-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.10);
}
/* Email krijgt een volle rij zodat het altijd op 1 regel leesbaar blijft */
.rsp-band-stat--email{
  grid-column:1 / -1;
}
.rsp-band-stat{ padding-top:0; text-align:left; }

/* subtle vertical divider between the bottom stats */
.rsp-band-stats .rsp-band-stat:nth-child(3){
  border-left:1px solid rgba(0,0,0,.08);
  padding-left:14px;
}
.rsp-band-stat-val{overflow:hidden}
.rsp-band-stat-val input{
  width:100%;
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:none;
  outline:none;
  background:transparent;
  text-align:left;
  font-weight:900;
  line-height:1.12;
  font-size:14px;
  letter-spacing:-.2px;
  color:#111;
}
/* Email: nooit afkappen */
.rsp-band-stat--email .rsp-band-stat-val{overflow:visible}
.rsp-band-stat--email .rsp-band-stat-val input{
  overflow:visible;
  text-overflow:clip;
  font-size:13px;
}
@media (max-width: 520px){
  .rsp-band-stat-val input{font-size:13px}
  .rsp-band-stat--email .rsp-band-stat-val input{font-size:12px}
}
.rsp-band-stat-label{
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.55;
  margin:0 0 6px 0;
}
.rsp-band-name::placeholder{color:rgba(0,0,0,.35)}
.rsp-band-role::placeholder{color:rgba(0,0,0,.35)}
.rsp-band-color{
  width:16px;height:16px;border-radius:999px;
  border:2px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  cursor:pointer;
  flex:0 0 auto;
}
.rsp-band-color-input{
  position:absolute;
  width:0;height:0;
  opacity:0;
  pointer-events:none;
}

/* Old bandcard info styles removed (new layout uses inline inputs in the stats row) */

.rsp-band-details{
  border-top:1px solid rgba(0,0,0,.06);
  background:#fafafa;
  padding:12px 14px 14px;
  display:none;
}
.rsp-bandcard.is-open .rsp-band-details{display:block}
.rsp-band-details .rsp-field label{
  font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;opacity:.55;display:block;margin-bottom:6px
}
.rsp-band-details .rsp-field textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
  resize:vertical;
  min-height:90px;
}
.rsp-modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;align-items:center;justify-content:center;padding:16px;z-index:9999}
.rsp-modal[aria-hidden="false"]{display:flex}
.rsp-modal-card{width:min(720px,100%);background:#fff !important;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden}
.rsp-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}
.rsp-modal-title{font-weight:900}
.rsp-modal-title:empty{display:none}
.rsp-modal-body{padding:16px}

/*
  Fallback modal markup (injected by JS when theme/template strips modal HTML)
  Must look identical to the normal .rsp-modal-card version.
*/
.rsp-modal__backdrop{display:none;} /* .rsp-modal already provides the dim overlay */
.rsp-modal__card{width:min(720px,100%);background:#fff !important;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden}
.rsp-modal__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}
.rsp-modal__title{font-weight:900}
.rsp-modal__title:empty{display:none}
.rsp-modal__body{padding:16px;background:#fff !important}
.rsp-modal__close{width:44px;height:44px;border-radius:14px;border:1px solid #e6e6e6;background:#fff;display:grid;place-items:center;font-size:22px;line-height:1;cursor:pointer}
.rsp-modal__close:hover{background:#f7f7f7}
.rsp-iconbtn{border:1px solid #eee;background:#fff;border-radius:12px;padding:6px 10px;cursor:pointer}

/* Universal close button (X) – used in modals & mobile panels */
.rsp-xclose,
.rsp-modal-head .rsp-iconbtn,
.rsp-mvclose,
.rsp-sheet-close{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#f7f7f8;
  cursor:pointer;
  font-size:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.rsp-xclose:hover,
.rsp-modal-head .rsp-iconbtn:hover,
.rsp-mvclose:hover,
.rsp-sheet-close:hover{
  background:#ececee;
}

/* Monitor mix board */
.rsp-mixrows{display:flex;flex-direction:column;gap:10px}
.rsp-mixrow{display:flex;gap:10px;align-items:center}

/* Make monitor-mix cards wider & clearer (desktop) */
.rsp-bandlist-monitors{
  display:grid;
  grid-template-columns:repeat(2, minmax(360px, 1fr));
  gap:16px;
  align-items:start;
}
@media (max-width: 1100px){
  .rsp-bandlist-monitors{grid-template-columns:1fr;}
}

/* 10-segment bar (RiffTools style) – bigger, higher contrast & obviously clickable */
.rsp-segbar{display:flex;gap:6px;align-items:center;flex:1;min-width:260px;max-width:420px}
.rsp-seg{
  height:16px;
  flex:1;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.10);
  cursor:pointer;
  padding:0;
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.rsp-seg.is-on{
  background:rgba(255,122,0,.95);
  border-color:rgba(255,122,0,.65);
  box-shadow:0 4px 16px rgba(255,122,0,.18);
}
.rsp-seg:hover{filter:brightness(1.08); transform: translateY(-1px)}
.rsp-seg:active{transform: translateY(0px) scale(.98)}
.rsp-seg:focus{outline:none}
.rsp-seg:focus-visible{box-shadow:0 0 0 3px rgba(255,122,0,.18), 0 4px 16px rgba(255,122,0,.18)}
.rsp-mixstep{display:flex;gap:6px;align-items:center}
.rsp-mixstep .rsp-iconbtn{padding:6px 10px;border-radius:12px}

/* Monitor mix cards – light version (PDF stays as-is; this is UI only) */
.rsp-mixcard{
  background:#fff;
  color:#0e1116;
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px;
  box-shadow:0 16px 34px rgba(0,0,0,.08);
}
.rsp-mixcard{padding:12px 12px 10px}
.rsp-mixcard .rsp-mixrow{padding:6px 6px;border-radius:14px}
.rsp-mixcard .rsp-mixrow:hover{background:rgba(0,0,0,.03)}
.rsp-mixcard .rsp-mixhint{font-size:12px;opacity:.72;margin:6px 2px 0}
.rsp-mixcard .rsp-mixhelp{font-size:12px;opacity:.70;margin:2px 2px 10px}
.rsp-mixcard .rsp-empty{display:none}
.rsp-mixcard .rsp-input{background:#fff;border:1px solid rgba(0,0,0,.10);color:#0e1116}
.rsp-mixcard .rsp-input::placeholder{color:rgba(0,0,0,.45)}
.rsp-mixcard .rsp-muted,.rsp-mixcard .rsp-empty{color:rgba(0,0,0,.62)}
.rsp-mixcard .rsp-iconbtn{background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.10);color:#0e1116}

/* Segments tuned for light cards */
.rsp-mixcard .rsp-seg{
  flex:0 0 auto;
  width:18px;height:12px;border-radius:10px;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(0,0,0,.10);
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease, background .12s ease;
}
.rsp-mixcard .rsp-seg:hover{transform:translateY(-1px);filter:brightness(1.05)}
.rsp-mixcard .rsp-seg.is-on{background:rgba(255,122,0,.95);border-color:rgba(255,122,0,.65)}
.rsp-mixcard .rsp-seg.is-on:hover{filter:brightness(1.02)}
@media (max-width: 980px){
  .rsp-body{grid-template-columns:1fr}
  .rsp-sidebar{position:relative;top:auto;height:auto}
  .rsp-layers{position:relative;top:auto;height:auto}
  .rsp-topbar{flex-wrap:wrap}

  /* Mobile header: hamburger left + actions right */
  .rsp-actions{display:none !important}
  .rsp-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
}

/* Venue PDF inputs */
.rsp-form{padding:14px 2px; display:flex; flex-direction:column; gap:12px;}
.rsp-form-row{display:flex; gap:12px; flex-wrap:wrap;}
.rsp-field{display:flex; flex-direction:column; gap:6px; flex:1; min-width:220px;}
.rsp-field label{font-size:12px; opacity:.75;}
.rsp-field input,.rsp-field textarea{border:1px solid rgba(0,0,0,.10); border-radius:12px; padding:10px 12px; font:inherit; outline:none;}
.rsp-field textarea{resize:vertical;}
.rsp-setlist{padding:10px 2px;}
.rsp-setlist-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.rsp-setlist-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px;}

/* ------------------------------
   Setlist v2 (songs + cues)
------------------------------ */
.rsp-setlist-sub{margin:6px 0 10px 0;opacity:.75;font-size:12px}
.rsp-song{display:flex;align-items:flex-start;gap:10px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:10px}
.rsp-song.is-dragging{opacity:.85;transform:scale(.99)}
.rsp-song-handle{width:22px;min-width:22px;height:22px;border-radius:8px;display:grid;place-items:center;cursor:grab;user-select:none;opacity:.55;background:rgba(0,0,0,.04)}
.rsp-song-body{flex:1;min-width:0}
.rsp-song-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rsp-song-title{font-weight:900;font-size:14px;line-height:18px;outline:none;min-width:0;word-break:break-word}
.rsp-song-meta{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.rsp-song-mini{width:54px;max-width:54px;padding:6px 8px;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff;font-size:12px;line-height:14px;outline:none}
.rsp-song-mini[data-song-dur]{width:70px;max-width:70px}
.rsp-song-expand,.rsp-song-del{width:30px;height:30px;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff;display:grid;place-items:center;cursor:pointer;font-weight:900;line-height:1}
.rsp-song-del{color:#b00020}
.rsp-song-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.rsp-chip{font-size:11px;line-height:12px;padding:6px 8px;border-radius:999px;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06);white-space:nowrap}
.rsp-chip-foh{background:rgba(0,0,0,.045)}
.rsp-chip-light{background:rgba(0,0,0,.045)}
.rsp-chip-note{background:rgba(0,0,0,.045)}
.rsp-song-details{margin-top:10px}
.rsp-song-detailgrid{display:grid;gap:10px}
.rsp-song-detailgrid label{display:grid;gap:6px;font-size:12px;opacity:.9}
.rsp-song-detailgrid textarea{width:100%;border-radius:12px;border:1px solid rgba(0,0,0,.10);padding:10px 10px;background:#fff;resize:vertical;font-size:13px;line-height:16px;outline:none}

@media (max-width: 820px){
  .rsp-song{border-radius:16px;padding:10px}
  .rsp-song-mini{width:52px;max-width:52px}
  .rsp-song-mini[data-song-dur]{width:68px;max-width:68px}
  .rsp-song-expand,.rsp-song-del{width:32px;height:32px;border-radius:12px}
}
.rsp-setlist-item{display:grid; grid-template-columns: 46px 1fr 80px; gap:10px; align-items:center;
  border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:10px 12px; background:#fff;}
.rsp-setlist-item input{width:100%; border:1px solid rgba(0,0,0,.10); border-radius:10px; padding:8px 10px;}
.rsp-setlist-item .rsp-del-small{border:none; background:rgba(0,0,0,.06); border-radius:10px; padding:8px; cursor:pointer;}


/* Setlist (Songs) */
.rsp-song{display:grid; grid-template-columns: 26px 1fr 46px; gap:10px; align-items:center; padding:10px 12px; border:1px solid rgba(0,0,0,.08); border-radius:14px; background:#fff;}
.rsp-song.is-dragging{opacity:.6;}
.rsp-song-handle{cursor:grab; user-select:none; display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:10px; background:rgba(0,0,0,.05); font-weight:900;}
.rsp-song-title{outline:none; min-height:20px; padding:6px 8px; border-radius:10px; border:1px solid rgba(0,0,0,.08);}
.rsp-song-title:focus{border-color:rgba(255,122,0,.55); box-shadow:0 0 0 3px rgba(255,122,0,.15);}
.rsp-song-del{border:none; background:rgba(0,0,0,.06); border-radius:12px; padding:8px; cursor:pointer;}
.rsp-btn.rsp-small{padding:8px 10px; border-radius:12px; font-size:12px;}
.rsp-muted{opacity:.7; font-size:12px;}




/*
  Setlist v2 (Optie 2) – scoped to .rsp-setlist-v2 so legacy styles don't interfere.
  This keeps the UI clean and ensures the “2 regels + chips + details” layout renders.
*/
.rsp-setlist-v2 .rsp-song{display:flex;align-items:flex-start;gap:10px;background:rgba(255,255,255,.85);border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:10px}
.rsp-setlist-v2 .rsp-song.is-dragging{opacity:.85;transform:scale(.99)}
.rsp-setlist-v2 .rsp-song-handle{width:22px;min-width:22px;height:22px;border-radius:8px;display:grid;place-items:center;cursor:grab;user-select:none;opacity:.55;background:rgba(0,0,0,.04);font-weight:900}
.rsp-setlist-v2 .rsp-song-body{flex:1;min-width:0}
.rsp-setlist-v2 .rsp-song-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rsp-setlist-v2 .rsp-song-title{font-weight:900;font-size:14px;line-height:18px;outline:none;min-width:0;word-break:break-word;border:0;padding:0;background:transparent}
.rsp-setlist-v2 .rsp-song-meta{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.rsp-setlist-v2 .rsp-song-mini{width:54px;max-width:54px;padding:6px 8px;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff;font-size:12px;line-height:14px;outline:none}
.rsp-setlist-v2 .rsp-song-mini[data-song-dur]{width:70px;max-width:70px}
.rsp-setlist-v2 .rsp-song-expand,.rsp-setlist-v2 .rsp-song-del{width:30px;height:30px;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff;display:grid;place-items:center;cursor:pointer;font-weight:900;line-height:1}
.rsp-setlist-v2 .rsp-song-del{color:#b00020}
.rsp-setlist-v2 .rsp-song-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.rsp-setlist-v2 .rsp-chip{font-size:11px;line-height:12px;padding:6px 8px;border-radius:999px;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06);white-space:nowrap}
.rsp-setlist-v2 .rsp-chip-foh,.rsp-setlist-v2 .rsp-chip-light,.rsp-setlist-v2 .rsp-chip-note{background:rgba(0,0,0,.045)}
.rsp-setlist-v2 .rsp-song-details{margin-top:10px}
.rsp-setlist-v2 .rsp-song-detailgrid{display:grid;gap:10px}
.rsp-setlist-v2 .rsp-song-detailgrid label{display:grid;gap:6px;font-size:12px;opacity:.9}
.rsp-setlist-v2 .rsp-song-detailgrid textarea{width:100%;border-radius:12px;border:1px solid rgba(0,0,0,.10);padding:10px 10px;background:#fff;resize:vertical;font-size:13px;line-height:16px;outline:none}

@media (max-width: 820px){
  .rsp-setlist-v2 .rsp-song{border-radius:16px;padding:10px}
  .rsp-setlist-v2 .rsp-song-mini{width:52px;max-width:52px}
  .rsp-setlist-v2 .rsp-song-mini[data-song-dur]{width:68px;max-width:68px}
  .rsp-setlist-v2 .rsp-song-expand,.rsp-setlist-v2 .rsp-song-del{width:32px;height:32px;border-radius:12px}
}

/* Input list controls */
.rsp-td-handle, .rsp-td-del{ width:26px; text-align:center; }
.rsp-drag-handle, .rsp-row-del{
  border:0; background:transparent; cursor:grab; font-size:14px; line-height:1;
  opacity:.75;
}
.rsp-row-del{ cursor:pointer; }
.rsp-drag-handle:hover, .rsp-row-del:hover{ opacity:1; }
tr.rsp-input-row.is-dragging{ opacity:.65; }

/* Desktop: group kleur bolletje (per row) */
.rsp-td-group{ display:flex; align-items:center; gap:8px; }
.rsp-td-group select{ flex:1; min-width:0; }
.rsp-color-dot{
  width:12px; height:12px; border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  padding:0; background:#8e8e93;
  cursor:pointer;
  flex:0 0 12px;
}
.rsp-color-dot:hover{ transform:scale(1.06); }

/* Make it obvious that Instrument/Mic cells open a popup */
td.rsp-cell-open-editor{
  cursor: pointer;
  position: relative;
  padding-right: 28px;
}
td.rsp-cell-open-editor::after{
  content: "✎";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .55;
}
td.rsp-cell-open-editor:empty::before{
  content: "Klik om te kiezen…";
  opacity: .35;
}
td.rsp-cell-open-editor:hover{ background: rgba(0,0,0,.03); }
td.rsp-cell-open-editor:hover::after{ opacity: .9; }


.rsp-color-modal .rsp-color-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.rsp-chipgrid{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.rsp-chipbtn{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff; border-radius:999px;
  padding:8px 10px;
  font-weight:800; cursor:pointer;
}
.rsp-chipbtn .dot{ width:10px; height:10px; border-radius:50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.rsp-chipbtn:hover{ border-color: rgba(0,0,0,.18); transform: translateY(-1px); }

.rsp-swatchgrid{ display:grid; grid-template-columns: repeat(8, 1fr); gap:8px; margin-top:8px; }
.rsp-swatch{
  width:100%; aspect-ratio:1/1;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.10);
  cursor:pointer;
}
.rsp-swatch:hover{ transform: translateY(-1px); border-color: rgba(0,0,0,.18); }

/* Group dropdown */
.rsp-td-group{ width:130px; }
.rsp-group-select{
  width:100%;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-weight:800;
  font-size:12px;
  outline:none;
}
.rsp-group-select:focus{
  border-color:rgba(255,122,0,.55);
  box-shadow:0 0 0 3px rgba(255,122,0,.15);
}



/* Stand dropdown in Input List */
.rsp-td-stand{min-width:110px;}
.rsp-stand-select{
  width:100%;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  font-size:13px;
  line-height:1.2;
}
.rsp-stand-custom{
  width:100%;
  margin-top:6px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.12);
  font-size:13px;
  line-height:1.2;
}

/* Library item preview (modal) */
/* Library item preview modal (side-by-side, more "tool" feel) */
.rsp-lib-preview-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:center}
.rsp-lib-preview{border-radius:14px;overflow:hidden;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:18px;background:#fff}
.rsp-lib-preview img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center center;}
.rsp-lib-preview-side{display:flex;flex-direction:column;gap:14px}
.rsp-lib-preview-title{font-size:20px;font-weight:900;line-height:1.1}
.rsp-lib-preview-desc{font-size:14px;opacity:.75;line-height:1.35}
.rsp-lib-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}

@media (max-width: 720px){
  .rsp-lib-preview-wrap{grid-template-columns:1fr}
  .rsp-lib-preview-actions{justify-content:space-between}
}


/* When gestures are active (hand tool), we lock touch actions so pinch/pan works without page scrolling */
.rsp-canvas.rsp-gesture-lock{touch-action:none;}


/* ===== Beta card ===== */
.rsp-beta-card{
  margin: 14px 16px 0;
  padding: 16px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  position: relative;
}

.rsp-beta-card:before{
  content:"";
  position:absolute;
  left:10px;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius: 8px;
  background:#ff6a00;
  opacity:.9;
}

.rsp-beta-left{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-left: 10px; /* space from accent bar */
}

.rsp-beta-title{
  font-weight: 900;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
}

.rsp-beta-title:after{
  content:"BETA";
  font-size: 11px;
  font-weight: 800;
  letter-spacing:.08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #f7f7f7;
  color:#111;
}

.rsp-beta-text{
  font-size: 13px;
  color: rgba(0,0,0,.68);
  max-width: 620px;
}
.rsp-beta-form{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.rsp-beta-form .rsp-input{ width: 220px; max-width: 46vw; }

@media (max-width: 900px){
  .rsp-beta-card{ flex-direction:column; align-items:stretch; }
  .rsp-beta-form{ justify-content:flex-start; }
  .rsp-beta-form .rsp-input{ width: 100%; max-width: none; }
}

/* =========================================================
   MOBILE (iPhone) FIX: Inputs table inside the *mobile panel*
   Desired columns (mobile): ≡ | CH | INS | … | 🗑
   There is older legacy CSS for narrow screens that hides Mic/DI.
   This override is more specific and placed at the end to win.
   ========================================================= */
@media (max-width: 900px){
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table{ width:100%; table-layout:fixed; }

  /* Reset legacy ellipsis on headers/cells inside this panel */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table th,
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table td{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

    /* Hide: group (4), mic/di (5), stand (6), notes (7) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(3),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(3),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(5),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(5),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(6),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(6),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(7),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(7){
    display:none !important;
  }

  /* Force show: CH (3), INS (4), ACTIONS (9) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(2),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(2){
    display:table-cell !important;
    width:52px !important;
    max-width:52px !important;
    text-align:center;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(3),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(3){
    display:table-cell !important;
    width:auto !important;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th:nth-child(8),
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody td:nth-child(8){
    display:table-cell !important;
    width: 65px !important;
    max-width: 85px !important;
    text-align:right;
  }

  /* Make header labels fit */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table thead th{ font-size:12px; letter-spacing:0.02em; }

  /* Row separators for readability */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table{ border-collapse:collapse; }

  /* Alternating row background */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr.rsp-input-row:nth-child(odd){ background:#ffffff; }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr.rsp-input-row:nth-child(even){ background:#f7f7f8; }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr.rsp-input-row td{
    border-bottom:1px solid rgba(0,0,0,0.08);
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-table tbody tr.rsp-input-row:last-child td{
    border-bottom:none;
  }

  /* Dragging: use the ≡ handle on mobile (same as desktop). */
  
  

  /* Actions: … + 🗑 (side-by-side) */
  .rsp-is-mobile #rspMobilePanelInputs .rsp-td-actions{
    display:grid !important;
    grid-template-columns: 36px 36px;
    justify-content:end;
    gap:8px;
    white-space:normal;
  }
  .rsp-is-mobile #rspMobilePanelInputs .rsp-row-more,
  .rsp-is-mobile #rspMobilePanelInputs .rsp-row-del{
    width:36px;
    height:36px;
    border-radius:12px;
  }
}

/* QR modal layout */
.rsp-qr-wrap{ display:flex; gap:16px; align-items:center; }
.rsp-qr-box{ width:180px; height:180px; display:grid; place-items:center; border-radius:16px; background: rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.08); }
.rsp-qr-actions{ flex:1; display:grid; gap:10px; }



/* ===========================
   RiffTools Newsletter Form (A + D vibe)
   =========================== */
/* ===========================
   RiffTools Form (clean)
   No glow / no blur / no shadow
   =========================== */

.rsp-beta-form.rsp-form--rifftools{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* Inputs */
.rsp-beta-form.rsp-form--rifftools .rsp-input{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:46px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #d9d9d9;
  background:#ffffff;
  font-size:14px;
  color:#111;
  outline:none;
  transition:border-color .18s ease;
  flex: 1 1 240px;
  min-width: 220px;
}
.rsp-beta-form.rsp-form--rifftools .rsp-input::placeholder{ color:#8a8a8a; }
.rsp-beta-form.rsp-form--rifftools .rsp-input:hover{ border-color:#bdbdbd; }
.rsp-beta-form.rsp-form--rifftools .rsp-input:focus{ border-color:#ff6a00; }

/* Checkbox */
.rsp-beta-form.rsp-form--rifftools .rsp-check{
  display:flex;
  align-items:center;
  gap:10px;
  color:#555;
  font-size:13px;
  white-space: nowrap;
  user-select:none;
}
.rsp-beta-form.rsp-form--rifftools .rsp-check input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid #cfcfcf;
  background:#fff;
  position:relative;
  cursor:pointer;
}
.rsp-beta-form.rsp-form--rifftools .rsp-check input[type="checkbox"]:checked{
  background:#ff6a00;
  border-color:#ff6a00;
}
.rsp-beta-form.rsp-form--rifftools .rsp-check input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:5px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* Button (solid, no glow) */
.rsp-beta-form.rsp-form--rifftools .rsp-btn.rsp-accent{
  height:46px;
  padding:0 18px;
  border-radius:999px;
  border:none;
  background:#ff6a00;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:opacity .18s ease, transform .08s ease;
  white-space: nowrap;
}
.rsp-beta-form.rsp-form--rifftools .rsp-btn.rsp-accent:hover{ opacity:.92; }
.rsp-beta-form.rsp-form--rifftools .rsp-btn.rsp-accent:active{ transform: scale(.98); }

@media (max-width: 640px){
  .rsp-beta-form.rsp-form--rifftools{ gap:10px; }
  .rsp-beta-form.rsp-form--rifftools .rsp-input{ min-width: 100%; flex-basis: 100%; }
  .rsp-beta-form.rsp-form--rifftools .rsp-btn.rsp-accent{ width:100%; }
}





.rsp-beta-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rsp-beta-form .rsp-input {
  min-width: 220px;
}

.rsp-beta-form .rsp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rsp-beta-form button {
  width: auto !important;
  margin-left: auto;
}


/* === Beta card wireframe layout (left text + right form on one row) === */
.rsp-beta-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:22px 22px;
}

.rsp-beta-left{
  flex: 1 1 46%;
  min-width: 280px;
}

.rsp-beta-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.rsp-beta-title::after{
  content:"BETA";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  letter-spacing:.08em;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.rsp-beta-text{
  margin-top:8px;
  line-height:1.6;
  max-width: 560px;
}

.rsp-beta-form{
  flex: 1 1 54%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:nowrap; /* desktop: 1 lijn */
  min-width: 520px;
}

.rsp-beta-form .rsp-input{
  width: 320px;
  max-width: 100%;
  min-width: 240px;
}

.rsp-beta-form .rsp-check{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  margin:0;
}

.rsp-beta-form button{
  width:auto !important;
  white-space:nowrap;
  margin-left: 0;
}

/* Tablet: laat 'm wrappen als er geen ruimte is */
@media (max-width: 980px){
  .rsp-beta-card{
    gap:18px;
  }
  .rsp-beta-form{
    flex-wrap:wrap;
    min-width: 0;
    justify-content:flex-start;
  }
  .rsp-beta-form .rsp-input{
    width: 100%;
  }
}

/* Mobile: netjes onder elkaar */
@media (max-width: 640px){
  .rsp-beta-card{
    flex-direction:column;
    align-items:stretch;
  }
  .rsp-beta-left{
    flex: 1 1 auto;
  }
  .rsp-beta-form{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .rsp-beta-form button{
    width:100% !important;
  }
}


/* === CLEAN ALIGNMENT FIX === */
/* Remove artificial height syncing. Let canvas define row height. */

.rsp-sidebar,
.rsp-layers{
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: auto;
}

.rsp-body{
  align-items: start;
}



/* === Layers: tools + folders + marquee select === */
.rsp-layers-tools{display:flex;flex-direction:column;gap:10px;margin:10px 0 14px}
.rsp-layers-tools .rsp-inspector{padding:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa}
.rsp-layers-tools .rsp-inspector-title{font-weight:900;font-size:12px;letter-spacing:.2px;margin-bottom:8px;opacity:.85}
.rsp-layers-tools .rsp-inspector-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rsp-layers-tools .rsp-inspector-row label{font-size:12px;font-weight:800;opacity:.75;min-width:44px}
.rsp-layers-tools input[type="number"],
.rsp-layers-tools input[type="text"],
.rsp-layers-tools input[type="color"]{border:1px solid rgba(0,0,0,.12);border-radius:10px;padding:8px 10px;font-weight:700;background:#fff}
.rsp-layers-tools input[type="color"]{padding:0;width:46px;height:38px}
.rsp-layers-tools .rsp-layerbtns{display:flex;gap:8px;flex-wrap:wrap}
.rsp-layers-tools .rsp-layerbtn{border:1px solid #eee;background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;font-weight:800;font-size:12px}
.rsp-layers-tools .rsp-layerbtn:disabled{opacity:.45;cursor:not-allowed}
.rsp-layers-tools .rsp-layerbtn:hover{box-shadow:0 8px 18px rgba(0,0,0,.08)}
.rsp-layers-tools .rsp-layerbtn.rsp-accent{border-color:var(--accent);color:#111}

/* Folder rows */
.rsp-layer.rsp-folder{cursor:pointer}
.rsp-layer.rsp-folder .rsp-layer-dot{background:#111;opacity:.9}
.rsp-layer.rsp-folder .rsp-layer-meta{opacity:.55}
.rsp-layer.rsp-folder .rsp-layer-name{font-weight:900}
.rsp-layer.rsp-folder .rsp-folder-caret{opacity:.7;font-weight:900}
.rsp-layer.rsp-folder.is-open .rsp-folder-caret{transform:rotate(90deg)}
.rsp-folder-children{display:none;flex-direction:column;gap:8px;padding-left:18px}
.rsp-layer.rsp-folder.is-open + .rsp-folder-children{display:flex}

/* Marquee select */
.rsp-marquee{
  position:absolute;
  border:2px dashed var(--accent);
  background:rgba(255,106,0,.10);
  pointer-events:none;
  border-radius:10px;
  z-index:9999;
}


/* Preset locked mode banner */
.rsp-input-mode-banner{margin:10px 0 0 0; padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.08); display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px;}
.rsp-input-mode-banner strong{font-weight:700;}
.rsp-input-mode-banner .rsp-input-mode-left{display:flex; align-items:center; gap:8px;}
.rsp-input-mode-banner .rsp-lock{width:18px; height:18px; display:grid; place-items:center; border-radius:8px; background:rgba(0,0,0,.06);}


/* Preset banner toggle */
.rsp-input-mode-text{display:flex; flex-direction:column; gap:6px;}
.rsp-link-toggle{display:flex; align-items:center; gap:8px; font-weight:600; user-select:none; cursor:pointer;}
.rsp-link-toggle input{width:16px; height:16px; accent-color: var(--rsp-accent, #ff7a1a);}

/* ------------------------------------------------------------
   Mobile Layout v2 (clean shell)
   - Breakpoint: <= 980px
   - Stage: canvas fullscreen
   - Inputs/Monitor: fullscreen panels
   - Library: bottom sheet
   ------------------------------------------------------------ */

.rsp-mobilebar-v2{display:none}
.rsp-mvpanel{display:none}

@media (max-width: 980px){
  .rsp-app{padding-bottom:78px}

  /* Hide desktop sidebars by default */
  .rsp-body{grid-template-columns: 1fr !important;}
  .rsp-sidebar,
  .rsp-layers{display:none !important;}

  /* Canvas takes space */
  .rsp-canvas-wrap{min-height:60vh}
  .rsp-bottom{display:none !important;}

/* Mobile bottom nav (RiffTools style) */
.rsp-mobilebar-v2{
  display:flex;
  position:fixed;
  left:12px; right:12px; bottom:12px;
  height:74px;
  border-radius:26px;
  z-index:50;
  padding:8px 12px;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  overflow:visible;
  background:transparent; /* background drawn via ::before so we can notch it without clipping buttons */
  border:0;
  box-shadow:none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

/* Dark bar with integrated notch (like the reference) */
.rsp-mobilebar-v2::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:26px;
  background:#0F1115;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 60px rgba(0,0,0,.30);
  z-index:0;
  pointer-events:none;
}

/* Notch “cut-out” (shows page background) so the FAB feels embedded */
.rsp-mobilebar-v2::after{
  content:"";
  position:absolute;
  left:50%;
  top: -20px;                 /* controls how deep the notch sits */
  transform:translateX(-50%);
  width: 65px;
  height: 65px;
  border-radius:999px;
  background: #0e1012;        /* page background */
  z-index:1;                 /* above the bar background, below buttons + fab */
  pointer-events:none;
}
.rsp-mobilebar-v2{ position:fixed; }
.rsp-mobilebar-v2{ -webkit-tap-highlight-color: transparent; }
.rsp-mobilebar-v2{ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }


/* Center FAB (+) */
.rsp-nav-fab{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top: -12px;
  width: 50px;
  height: 50px;
  border-radius:999px;
  border:0;
  background: var(--rsp-accent, #ff5a1f);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  -webkit-tap-highlight-color: transparent;
}
.rsp-nav-fab:active{ transform:translateX(-50%) scale(.98); }

.rsp-nav-fab:active{ transform:translateX(-50%) scale(.98); }
.rsp-nav-fab-plus{
  font-weight:900;
  font-size:32px;
  line-height:1;
  color:#ffffff;
  margin-top:-2px;
}

/* Bottom nav buttons */
.rsp-mvbtn{
  flex:1;
  height:58px;
  border:0;
  background:transparent;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-weight:800;
  font-size:11px;
  color:rgba(255,255,255,.78);
  cursor:pointer;
  user-select:none;
  z-index:2;
  position:relative;
}
.rsp-mvbtn .ico{font-size:16px; line-height:1; opacity:.95}
.rsp-mvbtn.is-active{
  background:rgba(255,255,255,.10);
  color:#fff;
}
  

  /* Floating add/library button on Stage */
  .rsp-fab{
    position:fixed;
    right:18px;
    bottom:92px;
    width:54px;height:54px;
    border-radius:999px;
    border:0;
    background:var(--rsp-accent,#ff7a1a);
    color:#fff;
    box-shadow:0 18px 40px rgba(0,0,0,.24);
    display:grid;
    place-items:center;
    z-index:55;
    cursor:pointer;
    font-size:22px;
  }

  /* Turn the FAB into a labeled pill button on mobile ("Open Library") */
  .rsp-fab.rsp-openlib{
    width:auto;
    height:48px;
    padding:0 16px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:14px;
    font-weight:900;
    right:auto;
    left:50%;
    transform:translateX(-50%);
  }
  .rsp-fab.rsp-openlib .ico{font-size:18px; line-height:1;}
  .rsp-fab.rsp-openlib .txt{line-height:1;}

  /* Fullscreen panels for Inputs/Monitor */
  .rsp-mvpanel{
    position:fixed;
    inset:0;
    background:#fff;
    z-index:60;
    /*
      IMPORTANT (iOS Safari):
      Scrolling inside overflow:auto elements can break when any ancestor is transformed.
      We therefore avoid transform-based slide animations for these panels.
      Instead we toggle display + opacity, which keeps inner scrolling reliable.
    */
    display:none;
    flex-direction:column;
    min-height:0;
    opacity:0;
    transition:opacity .16s ease;
  }
  .rsp-mvpanel.is-open{display:flex; opacity:1}

  /* Variant: slide-up bottom sheet (for Library) */
  .rsp-mvpanel--sheet{
    top:auto;
    height:78vh;
    border-top-left-radius:22px;
    border-top-right-radius:22px;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 -22px 60px rgba(0,0,0,.18);
    /* same iOS rule: no transforms on scroll containers */
    display:none;
    opacity:0;
    transition:opacity .16s ease;
  }
  .rsp-mvpanel--sheet.is-open{display:flex; opacity:1}
  .rsp-mvhead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:14px 14px 10px;
    border-bottom:1px solid rgba(0,0,0,.08);
    position:sticky;
    top:0;
    background:#fff;
    z-index:2;
  }
  .rsp-mvhead .ttl{font-weight:900; font-size:15px;}
  .rsp-mvclose{
    width:42px;height:42px;border-radius:12px;
    border:1px solid rgba(0,0,0,.10);
    background:#f7f7f8;
    cursor:pointer;
    font-size:18px;
  }
  /*
    The mobile panels are full-screen fixed containers.
    The scroll MUST happen inside the panel body (not on the page behind).
    For that, the body needs flex:1 + min-height:0 so overflow can take effect.
  */
  .rsp-mvbody{
    padding:12px 12px 18px;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex:1;
    min-height:0;
    /* Show a visible scrollbar inside mobile popups (where supported) */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.28) transparent;
  }

  .rsp-mvbody::-webkit-scrollbar{width:8px; height:8px;}
  .rsp-mvbody::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.22);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .rsp-mvbody::-webkit-scrollbar-track{background: transparent;}

  /* When a mobile panel is open, lock background scroll */
  html.rsp-scrolllock,
  body.rsp-scrolllock{
    overflow:hidden;
    height:100%;
    overscroll-behavior: contain;
    touch-action: auto;
  }

  /* Allow scrolling INSIDE the active panel while body is locked */
  .rsp-mvpanel.is-open{touch-action: pan-y; overscroll-behavior: contain;}

  /* Library bottom sheet (reuses sidebar content) */
  .rsp-mobile-sheet{
    position:fixed;
    left:0; right:0; bottom:0;
    height:78vh;
    background:#fff;
    border-top-left-radius:22px;
    border-top-right-radius:22px;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 -22px 60px rgba(0,0,0,.18);
    z-index:58;
    transform:translateY(105%);
    transition:transform .22s ease;
    display:flex;
    flex-direction:column;
  }
  .rsp-mobile-sheet.is-open{transform:translateY(0)}
  .rsp-sheet-grip{width:44px;height:5px;border-radius:999px;background:rgba(0,0,0,.18);margin:10px auto 6px;}
  .rsp-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:6px 14px 10px}
  .rsp-sheet-title{font-weight:900}
  .rsp-sheet-close{width:42px;height:42px;border-radius:12px;border:1px solid rgba(0,0,0,.10);background:#f7f7f8;cursor:pointer;font-size:18px}
  .rsp-sheet-body{padding:0 12px 14px; overflow:auto;}


  /* Stage view layout: canvas + library + layers (2 columns) */
  .rsp-app.rsp-mv-stage .rsp-body{display:flex; flex-wrap:wrap; gap:12px;}
  .rsp-app.rsp-mv-stage .rsp-canvas-wrap{width:100%;}
  .rsp-app.rsp-mv-stage .rsp-sidebar,
  .rsp-app.rsp-mv-stage .rsp-layers{
    position:static !important;
    height:auto !important;
    max-height:unset !important;
    width:calc(50% - 6px);
    min-width:240px;
  }

  /* View switching */
  .rsp-app.rsp-mv-input .rsp-nav-fab,
  .rsp-app.rsp-mv-monitor .rsp-nav-fab{display:none}
}


/* ------------------------------
   Mobile app shell (bottom nav)
------------------------------ */
@media (max-width: 900px){
  /* Give space for bottom nav */
  .rsp-app{padding-bottom:84px;}

  /* Mobile: keep the topbar clean (actions live in 'Meer') */
  .rsp-topbar{
    padding:12px 12px;
    gap:10px;
  }
  .rsp-actions{display:none !important;}
  .rsp-beta-card{display:none !important;}
  /* If there are any desktop-only action rows/cards, hide them on mobile */
  .rsp-desktop-only{display:none !important;}
  .rsp-mobile-nav{
    position:fixed;
    left:10px; right:10px; bottom:10px;
    height:64px;
    border-radius:18px;
    border:1px solid rgba(0,0,0,.10);
    background:rgba(255,255,255,.92);
    backdrop-filter:saturate(180%) blur(14px);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    box-shadow:0 18px 45px rgba(0,0,0,.16);
    z-index:70;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    padding:6px;
  }
  .rsp-mnav-btn{
    border:0;
    background:transparent;
    border-radius:14px;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    color:#1d1d1f;
    user-select:none;
    -webkit-tap-highlight-color: transparent;
  }
  .rsp-mnav-btn.is-active{
    background:rgba(0,0,0,.06);
  }
  .rsp-mnav-ico{font-size:18px; line-height:18px;}
  .rsp-mnav-txt{font-size:12px; font-weight:800; opacity:.85;}

  /* More view container (simple stacked cards) */
  .rsp-mobile-more{
    display:block;
    padding:12px;
  }
  .rsp-mobile-more .rsp-card{
    background:#fff;
    border:1px solid rgba(0,0,0,.10);
    border-radius:16px;
    padding:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
  }

  /* Stage layout on mobile = canvas + 2 compact cards (library/layers) */
  .rsp-body{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
  }
  .rsp-canvas-wrap{order:1; width:100%;}
  .rsp-sidebar{order:2; width:calc(50% - 6px); min-width:240px;}
  .rsp-layers{order:3; width:calc(50% - 6px); min-width:240px;}
  .rsp-sidebar, .rsp-layers{
    position:static !important;
    height:auto !important;
    max-height:unset !important;
  }

  /* Views */
  .rsp-app[data-mview="stage"] .rsp-body{display:flex;}
  .rsp-app[data-mview="stage"] .rsp-bottom{display:none;}
  .rsp-app[data-mview="stage"] .rsp-tabs{display:none;}

  .rsp-app[data-mview="inputs"] .rsp-body{display:none;}
  .rsp-app[data-mview="inputs"] .rsp-tabs{display:none;}
  .rsp-app[data-mview="inputs"] .rsp-bottom{display:block;}
  .rsp-app[data-mview="inputs"] .rsp-bottom{padding-bottom:6px;}
  .rsp-app[data-mview="inputs"] .rsp-bottom .rsp-tabs{display:none !important;}

  .rsp-app[data-mview="monitor"] .rsp-body{display:none;}
  .rsp-app[data-mview="monitor"] .rsp-tabs{display:none;}
  .rsp-app[data-mview="monitor"] .rsp-bottom{display:block;}
  /* Ensure monitor section scrolls nicely */
  .rsp-app[data-mview="monitor"] .rsp-bottom{padding-bottom:6px;}

  /* Compact input list on mobile (table layout: CH | Instrument | ⋯ | 🗑) */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table{
    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
    border-spacing:0;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th{
    font-size:13px;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
  }

  /* Hide non-essential columns on mobile: drag, color, group, mic/di, stand, notes */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(1),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(2),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(5),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(6),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(7),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(8),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(1),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(2),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(5),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(6),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(7),
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(8){
    display:none;
  }

  /* Column widths */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(3){width:56px;}
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(4){width:auto;}
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(9){width:98px;}

  /* Alternating rows + subtle divider (native list feel) */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody tr{
    background:#fff;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody tr:nth-child(even){
    background:rgba(0,0,0,.025);
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td{
    padding:14px 12px !important;
    background:transparent;
    border-top:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    vertical-align:middle;
  }
  /* 1px full-width divider, but avoid double line at the very end */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody tr:not(:last-child) td{
    border-bottom:1px solid rgba(0,0,0,.07) !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(3){
    font-weight:900;
    text-align:center;
  }

  /* CH cell: show ≡ + number nicely aligned */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-ch{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-drag-handle-inline{
    display:inline-flex;
    width:auto;
    height:auto;
    padding:0;
    margin:0;
    border:0;
    background:transparent;
    opacity:.5;
    line-height:1;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-drag-handle-inline:active{opacity:.85;}
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-ch-num{min-width:18px; text-align:right;}
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(4){
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Actions: ⋯ and 🗑 always visible */
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-more,
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-del{
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.10);
    background:#f7f7f8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    cursor:pointer;
    flex:0 0 auto;
  }
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-more{font-size:20px; line-height:1;}
  .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-del{font-size:18px; line-height:1;}

  /*
    iOS Safari fix: Inputs is rendered inside #rspMobilePanelInputs (a fixed overlay panel).
    The app mview can still be "stage", so the selectors above won't match.
    Force a clean 4-column layout inside that mobile panel:
      CH | Instrument | ⋯ | 🗑
  */
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table{
    width: 100%;
    table-layout:fixed;
    border-collapse:separate;
    border-spacing: 0px 0px;
    padding: 0px;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th{
    font-size:13px;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
  }
  /* Hide everything except: Ch (3), Instrument (4), Actions (9) */
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(1),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(2),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(5),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(6),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(7),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(8),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(1),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(2),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(5),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(6),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(7),
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(8){
    display:none;
  }
  /* Column widths: CH | Instrument | Actions */
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(3){width:58px;}
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(4){width:auto;}
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(8){width:104px;}

  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody tr{
    background:#fff;
    border:1px solid rgba(0,0,0,.10);
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    overflow:visible; /* don't clip the action buttons */
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody td{
    padding: 0px 20px !important;
    background:#fff;
    border-top:0 !important;
    border-bottom:0 !important;
    vertical-align:middle;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody tr td:nth-child(3){
    border-top-left-radius:16px;
    border-bottom-left-radius:16px;
    font-weight:900;
    text-align:center;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody tr td:nth-child(4){
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-table tbody tr td:nth-child(8){
    border-top-right-radius: 17px;
    border-bottom-right-radius:16px;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-td-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    padding-right:10px !important;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-more,
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-del{
    width:40px;
    height: 40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.10);
    background:#f7f7f8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    cursor:pointer;
    flex:0 0 auto;
  }
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-more{font-size:20px;line-height:1;margin-bottom: 5px;margin-top: 5px;}
  #rspMobilePanelInputs .rsp-panel[data-panel="input"] .rsp-td-actions .rsp-row-del{font-size:18px;line-height:1;margin-bottom: 6px;}

  /* Landscape: show Mic/DI extra column when there's room */
  @media (max-width: 980px) and (orientation: landscape){
    .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(6),
    .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(6){
      display:table-cell;
    }
    .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(6){width:90px;}
    .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table tbody td:nth-child(6){
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      font-weight:800;
      opacity:.85;
    }
    .rsp-app[data-mview="inputs"] .rsp-panel[data-panel="input"] .rsp-table thead th:nth-child(9){width:98px;}
  }

  /* "Meer" sheet (bottom sheet) */
  #rspMobileMore.rsp-mobile-sheet{
    position:fixed;
    inset:0;
    height:auto;
    background:transparent;
    border:0;
    box-shadow:none;
    transform:translateY(0);
    display:none;
    z-index:80;
  }
  #rspMobileMore.is-open{display:block;}
  #rspMobileMore .rsp-mobile-sheet__backdrop{
    position:absolute; inset:0;
    background:rgba(255,255,255,.98);
  }
  #rspMobileMore .rsp-mobile-sheet__card{
    position:absolute;
    left:10px; right:10px; bottom:10px;
    background:#fff;
    border-radius:22px;
    border:1px solid rgba(0,0,0,.10);
    box-shadow:0 18px 55px rgba(0,0,0,.22);
    overflow:hidden;
  }
  #rspMobileMore .rsp-mobile-sheet__head{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 14px;
    border-bottom:1px solid rgba(0,0,0,.08);
  }
  #rspMobileMore .rsp-mobile-sheet__title{font-weight:1000; font-size:16px;}
  #rspMobileMore .rsp-mobile-sheet__list{padding:10px 12px 14px; display:grid; gap:10px;}
  #rspMobileMore .rsp-mobile-sheet__item{
    width:100%;
    text-align:left;
    border-radius:16px;
    border:1px solid rgba(0,0,0,.10);
    background:#fff;
    padding:12px 14px;
    font-weight:900;
    cursor:pointer;
  }
  #rspMobileMore .rsp-mobile-sheet__item.rsp-accent{
    background:var(--rsp-accent, #ff6a00);
    color:#fff;
    border-color:rgba(0,0,0,.00);
  }
}


/* --- Mobile class fallback (for cases where viewport meta/iframe scaling prevents media queries) --- */
.rsp-is-mobile .rsp-actions{display:none !important;}
.rsp-is-mobile .rsp-beta-card{display:none !important;}
.rsp-is-mobile .rsp-mobile-nav{display:flex !important;}
.rsp-is-mobile .rsp-mvpanel{display:none !important;}
.rsp-is-mobile .rsp-mvpanel.is-open{display:flex !important;}
.rsp-is-mobile .rsp-mobilesheet{display:block !important;}
.rsp-is-mobile .rsp-nav-fab{display:block !important;}

/* When we mount desktop panels inside mobile slide-up panels, force them visible */
.rsp-is-mobile .rsp-mvpanel .rsp-panel{display:block !important; padding:0 !important;}


/* === Mobile visibility guards (added) === */

/* Hide mobile-only UI on desktop by default */
.rsp-nav-fab,
.rsp-mobilebar-v2,
.rsp-mobile-sheet,
.rsp-mvpanel,
.rsp-mobilesheet { display: none !important; }

/* Generic helpers */
.rsp-mobile-only { display: none !important; }
.rsp-desktop-only { display: initial; }

/* Mobile top nav (hamburger + actions) */
.rsp-mobile-topnav{ display:none; }

@media (max-width: 900px) {
  /* Mobile top nav sits ABOVE the title/name block */
  .rsp-mobile-topnav{
    display:flex;
    position:fixed;
    top:0; left:0; right:0;
    z-index:95;
    padding:10px 12px;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    background:#1f2128;
    border-bottom:1px solid rgba(255,255,255,.10);
  }
  .rsp-mobile-topnav .rsp-mob-right{display:flex; gap:10px; align-items:center;}
  .rsp-mob-hamb{width:44px; height:44px; border-radius:14px; font-weight:900;}
  .rsp-mob-action{border-radius:14px; padding:10px 12px; font-weight:900; white-space:nowrap;}

  /* Push the existing topbar down so the fixed nav doesn't overlap */
  .rsp-topbar{ margin-top:64px !important; }

  /*
    Fullscreen mobile panels (Inputs / Monitor / More / Menu)
    must start *below* the fixed topnav, otherwise the header + close
    button sit underneath the top bar.
    Library uses the --sheet variant and stays a bottom sheet.
  */
  .rsp-mvpanel{
    top:64px;
    left:0;
    right:0;
    bottom:0;
    height:auto;
  }
  .rsp-mvpanel--sheet{ top:auto; bottom:0; height:78vh; }

  /* Panels are hidden until opened (prevents iOS scroll bugs + avoids background scroll capture) */
  .rsp-mvpanel{ display:none !important; }
  .rsp-mvpanel.is-open{ display:flex !important; }
  .rsp-mvpanel--sheet{ display:none !important; }
  .rsp-mvpanel--sheet.is-open{ display:flex !important; }

  /* Show mobile UI */
  .rsp-fab { display: flex !important; }
  .rsp-mobilebar-v2 { display: flex !important; }
  .rsp-mobile-sheet { display: block !important; }
  .rsp-mvpanel { display: block !important; }
  /* We removed the old actions sheet, but keep the class in case other sheets exist */
  .rsp-mobilesheet { display: block !important; }

  .rsp-mobile-only { display: inline-flex !important; }
  .rsp-desktop-only { display: none !important; }

  /* Mobile selection actions row must NOT be forced visible by .rsp-mobile-only */
  .rsp-mobile-only.rsp-mobile-selection-actions{ display:none !important; }
  .rsp-mobile-only.rsp-mobile-selection-actions.is-visible{ display:flex !important; }
}

/* More panel chips */
.rsp-more-shortcuts{display:flex; gap:10px; padding:12px 12px 6px;}
.rsp-more-chip{
  flex:1;
  justify-content:center;
  border-radius:16px;
  padding:12px 12px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}


/* MOBILE SHEETS */
html.rsp-scrolllock,
html.rsp-scrolllock body{
  overflow:hidden !important;
  height:100%;
}

.rsp-mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  z-index:57;
}
.rsp-mobile-overlay.is-open{display:block;}

@media (max-width: 980px){
  /* Desktop sidebar stays in DOM for data/events, but is hidden on mobile (library lives in the bottom sheet) */
  #rspSidebar{display:none !important;}

  /* Make sure desktop sidebar layout doesn't reserve space */
  .rsp-layout{
    grid-template-columns:1fr !important;
  }
}


/* ----------------------------
   Mobile interaction fixes
   - prevent off-screen sheets/panels from blocking taps
   - ensure Library sidebar can appear on mobile
---------------------------- */
@media (max-width: 980px){
  /* Sidebar is used as the Library bottom-sheet on mobile */
  .rsp-sidebar{display:block !important;}

  /* Off-canvas elements should NOT capture taps when closed */
  .rsp-mobile-sheet,
  .rsp-mvpanel{
    pointer-events:none;
  }
  .rsp-mobile-sheet.is-open,
  .rsp-mvpanel.is-open{
    pointer-events:auto;
  }

  /* When Library overlay is not open, make sure it can't block anything */
  .rsp-mobile-overlay{pointer-events:none;}
  .rsp-mobile-overlay.is-open{pointer-events:auto;}
}


.rsp-nav-fab-inner{display:grid; place-items:center; width:100%; height:100%;}


/* ===============================
   INPUT LIST HEADER - MOBILE FIX
   Option A: Stack layout on small screens
================================= */

.rsp-inputlist-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.rsp-inputlist-header .rsp-title{
  flex: 1 1 100%;
  min-width: 0;
}

.rsp-inputlist-header .rsp-actions{
  display:flex;
  gap:10px;
  flex: 1 1 100%;
  min-width: 0;
}

.rsp-inputlist-header .rsp-actions > *{
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 520px){
  .rsp-inputlist-header{
    align-items:flex-start;
  }
  .rsp-inputlist-header .rsp-actions{
    width:100%;
  }
  .rsp-inputlist-header .rsp-actions .rsp-pill,
  .rsp-inputlist-header .rsp-actions .rsp-btn{
    width:100%;
    justify-content:center;
  }
}



/* ===============================
   Input List header responsive (Optie A)
   - voorkomt afkappen op mobiel
================================= */

.rsp-input-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Desktop/tablet: keep as row */
.rsp-input-head{flex-wrap:nowrap;}

/* Mobile: stack title + actions */
@media (max-width: 520px){
  .rsp-input-head{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:10px;
  }
  .rsp-input-head .rsp-muted{
    flex: 1 1 100%;
    min-width:0;
  }
  .rsp-input-actions{
    flex: 1 1 100%;
    width:100%;
    display:flex;
    gap:10px;
  }
  .rsp-input-actions > .rsp-btn{
    flex: 1 1 0;
    min-width:0;
    justify-content:center;
  }
}

/* Extra-smal: buttons onder elkaar */
@media (max-width: 380px){
  .rsp-input-actions{
    flex-direction:column;
  }
  .rsp-input-actions > .rsp-btn{
    width:100%;
  }
}

/* Reduce excessive white spacing around stage canvas */
.rsp-stage,
.rsp-canvas-wrapper,
.rsp-main {
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

.rsp-canvas {
  min-height: 420px !important;
}


/* ===============================
   INPUT LIST TABLE - MOBILE COLUMNS
   Show only: Ch / Instrument / Group + a "…" details button.
   Other columns stay in DOM and are editable via the Channel details popup.
================================= */
.rsp-td-actions{white-space:nowrap;}
.rsp-row-more{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight:900;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  margin-right:8px;
}
.rsp-row-more:active{transform:scale(.98);}

@media (max-width: 900px){
  /* Keep table inside the panel and avoid horizontal overflow */
  .rsp-table{width:100%; table-layout:fixed;}
  .rsp-table th, .rsp-table td{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}

  /* Hide non-essential columns: handle, color, mic/DI, stand, notes */
  .rsp-table thead th:nth-child(1),
  .rsp-table tbody td:nth-child(1),
  .rsp-table thead th:nth-child(2),
  .rsp-table tbody td:nth-child(2),
  .rsp-table thead th:nth-child(6),
  .rsp-table tbody td:nth-child(6),
  .rsp-table thead th:nth-child(7),
  .rsp-table tbody td:nth-child(7),
  .rsp-table thead th:nth-child(8),
  .rsp-table tbody td:nth-child(8){
    display:none;
  }

  /* Ch */
  .rsp-table thead th:nth-child(3),
  .rsp-table tbody td:nth-child(3){
    width:52px !important;
    max-width:52px;
  }

  /* Instrument */
  .rsp-table thead th:nth-child(4),
  .rsp-table tbody td:nth-child(4){
    width:auto;
  }

  /* Group select */
  .rsp-table thead th:nth-child(5),
  .rsp-table tbody td:nth-child(5){
    width:110px !important;
    max-width:110px;
  }
  .rsp-table .rsp-group-select{
    width:100%;
    max-width:100%;
  }

  /* Actions column (… + delete) */
  .rsp-table thead th:nth-child(9),
  .rsp-table tbody td:nth-child(9){
    width:92px !important;
    max-width:92px;
    text-align:right;
  }
  .rsp-td-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:0;
  }
}



/* === Mobile Inputs: CH | Instrument | More | Trash (override) === */
@media (max-width: 900px){
  .rsp-app[data-mview="inputs"] .rsp-table{
    width:100% !important;
    table-layout:fixed !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-table thead{display:table-header-group !important;}
  .rsp-app[data-mview="inputs"] .rsp-table thead th{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Hide non-essential columns */
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(1),
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(2),
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(5),
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(6),
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(7),
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(8){
    display:none !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(1),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(2),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(5),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(6),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(7),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(8){
    display:none !important;
  }

  /* Column sizing */
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(3),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(3){
    width:52px !important;
    max-width:52px !important;
    text-align:left !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-table thead th:nth-child(9),
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(9){
    width:92px !important;
    max-width:92px !important;
    text-align:right !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-table tbody td:nth-child(4){
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Actions (⋯ + 🗑) */
  .rsp-app[data-mview="inputs"] .rsp-td-actions{
    display:flex !important;
    justify-content:flex-end !important;
    gap:8px !important;
    padding-right:6px !important;
  }
  .rsp-app[data-mview="inputs"] .rsp-row-more,
  .rsp-app[data-mview="inputs"] .rsp-row-del{
    width:38px !important;
    height:34px !important;
    border-radius:12px !important;
    border:1px solid rgba(0,0,0,.12) !important;
    background:#fff !important;
    font-weight:900 !important;
    line-height:1 !important;
  }
}


/* --- Mobile Input List: ≡ handle + channel number (no color dot) --- */
@media (max-width: 900px){
  .rsp-panel[data-panel="input"] .rsp-table thead th:first-child{display:none;}
  .rsp-panel[data-panel="input"] .rsp-table tbody td.rsp-td-handle{display:none;}
  .rsp-panel[data-panel="input"] .rsp-table tbody td.rsp-td-ch{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:0;
    padding-left:16px;
    cursor:grab;
  }
  /* Mobile: hide the color dot in CH column (desktop only) */
  .rsp-panel[data-panel="input"] .rsp-table tbody td.rsp-td-ch .rsp-color-dot{
    display:none !important;
  }
.rsp-panel[data-panel="input"] .rsp-table tbody td.rsp-td-ch:active{cursor:grabbing;}
  .rsp-panel[data-panel="input"] .rsp-ch-num{font-weight:800; font-size:18px; min-width:18px; text-align:left;}

  /* Make rows perfectly straight (no inner rounding) */
  .rsp-panel[data-panel="input"] .rsp-table tbody tr.rsp-input-row,
  .rsp-panel[data-panel="input"] .rsp-table tbody tr.rsp-input-row td{
    border-radius:0 !important;
    box-shadow:none !important;
  }

  /* alternating rows + subtle divider */
  .rsp-panel[data-panel="input"] tr.rsp-input-row{border-bottom:1px solid rgba(0,0,0,.06);}
  .rsp-panel[data-panel="input"] tr.rsp-input-row:last-child{border-bottom:none;}
  .rsp-panel[data-panel="input"] tr.rsp-input-row:nth-child(even){background:#f7f7f8;}
  .rsp-panel[data-panel="input"] tr.rsp-input-row:nth-child(odd){background:#fff;}
}

/* toggled by JS when an item is selected */
.rsp-mobile-selection-actions.is-visible{display:flex !important;}

/* Channel cell: show color dot LEFT of the channel number (● 1) */
.rsp-panel[data-panel="input"] .rsp-table tbody td.rsp-td-ch{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:6px;
}


/* === Mobile Overlay Scroll Fix === */
@media (max-width: 768px){

  .rsp-overlay,
  .rsp-menu,
  .rsp-help-menu {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.menu-open{
    overflow: hidden;
  }

}


/* === Mobile Overlay Half Height Update === */
@media (max-width: 768px){

  .rsp-overlay,
  .rsp-menu,
  .rsp-help-menu {
    height: 50dvh !important;
    max-height: 50dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

}


/* i18n language toggle */
.rsp-lang-toggle{display:flex;gap:4px;align-items:center;margin-left:10px;padding:4px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.22);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.rsp-langbtn{border:0;background:transparent;color:rgba(0,0,0,.85);padding:7px 12px;border-radius:999px;font-size:12px;line-height:1;font-weight:900;letter-spacing:.35px;cursor:pointer;transition:all .15s ease}
.rsp-langbtn:hover{background:rgba(0,0,0,.06)}
.rsp-langbtn.is-active{background:#ff6a00;color:#fff;box-shadow:0 6px 14px rgba(255,106,0,.28)}
@media (max-width: 768px){.rsp-lang-toggle{display:none;}}


/* ===== Compact band member cards ===== */
.rsp-bandcard--compact{
  border-radius:20px;
  border:1px solid rgba(0,0,0,.06);
  background:#f5f5f5;
  overflow:hidden;
}
.rsp-bandcard--compact .rsp-band-photo{
  height:auto;
  min-height:108px;
  margin:0;
  border-radius:0;
  background:#fff;
}
.rsp-bandcard--compact .rsp-band-photo-overlay,
.rsp-bandcard--compact .rsp-band-photo-icon,
.rsp-bandcard--compact .rsp-band-idx,
.rsp-bandcard--compact .rsp-band-details,
.rsp-bandcard--compact .rsp-band-color,
.rsp-bandcard--compact .rsp-band-color-input,
.rsp-bandcard--compact .rsp-band-headline,
.rsp-bandcard--compact .rsp-band-role,
.rsp-bandcard--compact .rsp-band-bio,
.rsp-bandcard--compact [data-band-toggle]{display:none !important}
.rsp-bandcard--compact .rsp-band-photo-top{
  top:10px;left:10px;right:10px;
}
.rsp-bandcard--compact .rsp-band-handle,
.rsp-bandcard--compact .rsp-band-iconbtn{
  width:34px;height:34px;border-radius:12px;
  background:#f2f2f2;border:1px solid rgba(0,0,0,.06);color:#666;
  backdrop-filter:none;
}
.rsp-bandcard--compact .rsp-band-iconbtn--danger{color:#777}
.rsp-band-preview{
  display:flex;align-items:center;gap:14px;
  padding:18px 20px 16px;
  min-height:108px;
}
.rsp-band-avatar{
  width:74px;height:74px;border-radius:999px;background:#050505;color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:32px;line-height:1;flex:0 0 auto;
}
.rsp-band-preview-meta{min-width:0;display:grid;gap:8px}
.rsp-band-preview-name{
  font-size:20px;line-height:1.05;font-weight:900;color:#1c1c1c;letter-spacing:-.03em;
}
.rsp-band-preview-rolechip:empty,
.rsp-band-preview-name:empty{display:none}
.rsp-band-preview-rolechip{
  display:inline-flex;align-items:center;align-self:start;
  min-height:34px;padding:0 16px;border-radius:999px;background:#f3f3f3;
  color:#5e5e5e;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.rsp-bandcard--compact .rsp-band-body{
  margin:0;padding:12px 14px 14px;background:#f5f5f5;border-radius:0;display:block;
}
.rsp-band-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rsp-band-field{
  background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:16px;padding:11px 13px 12px;
}
.rsp-band-field--full{grid-column:1 / -1}
.rsp-band-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.rsp-band-create-mix{
  height:30px;padding:0 12px;border-radius:999px;border:1px solid rgba(0,0,0,.08);
  background:#111;color:#fff;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;
}
.rsp-band-inlineinput{
  width:100%;border:none;outline:none;background:transparent;color:#1f1f1f;
  font-size:15px;font-weight:800;letter-spacing:-.02em;padding:0;margin:0;min-height:22px;
}
.rsp-band-inlineinput::placeholder{color:rgba(0,0,0,.28)}
.rsp-bandcard--compact .rsp-band-stat-label{margin:0 0 6px;font-size:10px;letter-spacing:.12em;color:rgba(0,0,0,.48)}
@media (max-width: 640px){
  .rsp-band-preview{padding:16px 16px 14px;gap:12px}
  .rsp-band-avatar{width:64px;height:64px;font-size:28px}
  .rsp-band-preview-name{font-size:18px}
  .rsp-band-formgrid{grid-template-columns:1fr 1fr;gap:8px}
  .rsp-band-field{padding:10px 11px}
  .rsp-band-inlineinput{font-size:14px}
  .rsp-band-field-head{flex-direction:column;align-items:flex-start}
  .rsp-band-create-mix{height:28px;padding:0 10px}
}

/* Mic/DI badge spacing fix */
.rsp-mic-badge{display:inline-block;margin-right:6px;}
.rsp-mic-full{display:inline-block;}
