/* Hero Energy V1 tuning chrome.

   Lifted from the Energy V1 bench (src/harness.css) so the two panels read
   as the same instrument. Nothing here is part of the hero: the whole panel
   lives behind #dlPanel and can be deleted in one piece when the settings
   have been taken out of it. */

#dlPanel {
  position: fixed;
  top: calc(var(--dl-nav-h, 82px) + 12px);
  right: 14px;
  z-index: 60;
  width: 244px;
  max-height: calc(100vh - var(--dl-nav-h, 82px) - 26px);
  overflow-y: auto;
  padding: 12px 13px 11px;
  border-radius: 12px;
  background: rgba(11, 22, 32, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #C8D6E0;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 18px 44px -18px rgba(6, 20, 32, .7);
}
#dlPanel.hidden { display: none; }

#dlPanel h1 {
  margin: 0 0 2px;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6FE7DC;
}
#dlPanel .hint { margin: 0 0 10px; color: #7B8C9A; font-size: 10px; }
#dlPanel .keys { margin: 9px 0 0; color: #66788A; font-size: 10px; line-height: 1.5; }

/* the way back in once `h` has hidden the panel · without it the only way to
   see the sliders again is to remember the shortcut */
#dlPanelShow {
  position: fixed;
  top: calc(var(--dl-nav-h, 82px) + 12px);
  right: 14px;
  z-index: 60;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(11, 22, 32, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #6FE7DC;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
#dlPanelShow[hidden] { display: none; }

#dlPanel .grp { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; margin-top: 10px; }
#dlPanel .grp:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
#dlPanel summary {
  margin: 0 0 6px;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #55697A;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
#dlPanel summary::-webkit-details-marker { display: none; }
#dlPanel summary::before { content: '- '; color: #3E5063; }
#dlPanel .grp:not([open]) > summary { color: #45586A; margin-bottom: 0; }
#dlPanel .grp:not([open]) > summary::before { content: '+ '; }
#dlPanel summary:hover { color: #7E93A4; }

#dlPanel .ctl { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; margin: 0 0 5px; }
#dlPanel .ctl label { font-size: 10px; color: #8FA1B0; }
#dlPanel .ctl output { font-size: 10px; color: #6FE7DC; font-variant-numeric: tabular-nums; }
#dlPanel .ctl input[type=range] {
  grid-column: 1 / -1;
  width: 100%; height: 14px; margin: 0;
  accent-color: #22C9E0;
  background: transparent;
}

/* five bars in the space three would normally take, so the panel is shorter
   with the mix in it than it was without */
#dlPanel .mixrow {
  grid-template-columns: 9px 38px 1fr 32px;
  align-items: center;
  gap: 0 6px;
  margin: 0 0 3px;
}
#dlPanel .mixrow i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
#dlPanel .mixrow input[type=range] { grid-column: auto; height: 13px; }
#dlPanel .mixrow output { text-align: right; color: #A8BAC8; }
#dlPanel .mixsum {
  margin: 0 0 6px;
  padding-left: 15px;
  font-size: 10px;
  color: #4E6072;
}

#dlPanel .seg { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 7px; }
#dlPanel .seg button, #dlPanel .row button {
  flex: 1 1 auto;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  color: #C8D6E0;
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
#dlPanel .seg button:hover, #dlPanel .row button:hover { background: rgba(255, 255, 255, .12); }
#dlPanel .seg button.on {
  background: #22C9E0;
  border-color: #22C9E0;
  color: #06283F;
}
#dlPanel .row { display: flex; gap: 5px; margin-top: 10px; }


#dlPanel { width: min(290px, calc(100vw - 28px)); overscroll-behavior: contain; }
#dlPanel .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
#dlPanelHide { color: #C8D6E0; border: 0; background: transparent; font: 22px/1 monospace; cursor: pointer; padding: 2px 4px; }
#dlPanel .tabs { position: sticky; top: -12px; background: #101e2a; padding: 8px 0; z-index: 2; }
#dlPanel .tabs button { min-height: 34px; }
#dlPanel summary, #dlPanel .grp:not([open]) > summary { color: #95aabd; }
#dlPanel .mixsum, #dlPanel .hint, #dlPanel .keys { color: #9baebd; }
#dlPanelSave { font-size: 10px; color: #a2c9c6; margin: 8px 0 0; }
#dlPanel :focus-visible, #dlPanelShow:focus-visible { outline: 2px solid #6FE7DC; outline-offset: 3px; }
@media (max-width: 720px) {
  #dlPanel { max-height: min(65dvh, calc(100dvh - var(--dl-nav-h, 82px) - 26px)); }
  #dlPanel .ctl input[type=range] { height: 26px; }
}
#dlPanelExport { width: 100%; height: 140px; margin-top: 10px; padding: 8px; border: 1px solid #547181; border-radius: 6px; background: #0d1a25; color: #c8d6e0; font: 11px/1.4 monospace; resize: vertical; } #dlPanelExport[hidden] { display: none; }
