/* ui.css */
.jev-play {
  color: #041b19;
  background:
    linear-gradient(
      125deg,
      #4fd1c5,
      #a6eadb);
  white-space: nowrap;
}
.jev-play.stop {
  border-color: #4fd1c5;
  color: #9de5dc;
}
.jev-active .controls label:has(input:disabled) {
  opacity: .35;
}
.jev-active .decision {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jev-active .context {
  max-height: 270px;
  overflow: auto;
}
.jev-active .panels {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.jev-legend-left {
  color: #4fd1c5;
}
.jev-legend-right {
  color: #f5b544;
}
.jev-recipe-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.jev-recipe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  border: 1px solid #2a3443;
  border-radius: 7px;
  padding: 10px 12px;
  background:
    linear-gradient(
      120deg,
      #1a2430,
      #161c27);
}
.jev-recipe-name {
  color: #79cfc5;
  font: 10px var(--mono);
  letter-spacing: .02em;
}
.jev-recipe strong {
  grid-row: 2;
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 500;
}
.jev-recipe-ms {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font: 10px var(--mono);
}
.jev-hands {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jev-hand-heading,
.jev-queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font: 10px var(--mono);
  letter-spacing: .05em;
}
.jev-hand.lh {
  --finger-color: #4fd1c5;
  --finger-wash: rgba(79, 209, 197, .08);
}
.jev-hand.rh {
  --finger-color: #f5b544;
  --finger-wash: rgba(245, 181, 68, .08);
}
.jev-hand-heading {
  color: var(--finger-color);
}
.jev-hand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.jev-finger {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 7px 7px;
  border: 1px solid #293141;
  border-radius: 7px;
  text-align: left;
  background: #151b26;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.jev-finger.sounding {
  background: var(--finger-wash);
  border-top: 2px solid var(--finger-color);
  padding-top: 9px;
}
.jev-finger.focused {
  outline: 1px solid var(--finger-color);
  outline-offset: 2px;
}
.jev-finger:focus-visible {
  outline: 2px solid var(--finger-color);
  outline-offset: 2px;
}
.jev-finger-name {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.jev-finger-note {
  font: 500 24px/1.3 var(--mono);
  color: var(--finger-color);
}
.jev-finger.resting .jev-finger-note {
  color: #4e596d;
}
.jev-finger-action {
  color: var(--muted);
  font: 10px var(--mono);
}
.jev-finger-confidence {
  margin: 5px 0 4px;
  color: #818ba0;
  font-size: 9px;
  white-space: nowrap;
}
.jev-alternative {
  position: relative;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  background: #0c111a;
}
.jev-alternative i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--finger-wash);
}
.jev-alternative span {
  position: relative;
  display: block;
  padding: 2px 3px;
  white-space: nowrap;
  font: 8px var(--mono);
  color: #9ca7bb;
}
.jev-queue {
  margin: 0 0 18px;
}
.jev-queue-heading {
  color: #b4becf;
}
.jev-queue-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 28px;
}
.jev-queue-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 6px 9px;
  border-left: 2px solid #4fd1c5;
  border-radius: 2px;
  background: #101620;
  font: 10px var(--mono);
  color: #bdc8d8;
}
.jev-queue-beat {
  color: #69768b;
}
@media (max-width: 1000px) {
  .jev-active .panels {
    grid-template-columns: 1fr;
  }
  .jev-hand-grid {
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .jev-recipe-strip {
    grid-template-columns: 1fr;
  }
  .jev-hand-grid {
    gap: 5px;
  }
  .jev-finger {
    padding-left: 4px;
    padding-right: 4px;
  }
  .jev-finger-confidence {
    font-size: 8px;
  }
  .jev-alternative span {
    font-size: 7px;
  }
}
.jev-mode select {
  font: 11px var(--mono);
}
.jevthoven {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jevthoven-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font: 10px var(--mono);
  letter-spacing: .05em;
}
.jevthoven-section {
  color: #f5b544;
  text-transform: uppercase;
}
.jevthoven-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-left: 2px solid #f5b544;
  background: #131a25;
  font-size: 11px;
}
.jevthoven-cell-name {
  color: #f5b544;
  font: 11px var(--mono);
}
.jevthoven-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.jevthoven-bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border: 1px solid #293141;
  border-radius: 6px;
  background: #151b26;
  font-size: 11px;
}
.jevthoven-bar strong {
  color: #4fd1c5;
  font-weight: 500;
}
.jevthoven-bar-no {
  color: #69768b;
  font: 10px var(--mono);
}
.jevthoven-notes {
  color: #f5b544;
  font: 10px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jevthoven-expression {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font: 10px var(--mono);
  color: #b4becf;
}
.jevthoven-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px;
}
.jevthoven-choice {
  --finger-color: #f5b544;
  --finger-wash: rgba(245, 181, 68, .08);
  cursor: default;
}
.jevthoven-choice-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
@media (max-width: 700px) {
  .jevthoven-bar {
    grid-template-columns: 44px 1fr;
  }
  .jevthoven-bar span:last-child {
    grid-column: 1 / -1;
  }
}
.jevthoven-design {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 7px;
  background:
    linear-gradient(
      120deg,
      #1d2431,
      #151b26);
  border: 1px solid #2a3443;
  font-size: 11px;
}
.jevthoven-design-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.jevthoven-design-line {
  color: #f5b544;
  font: 11px var(--mono);
}
.jevthoven-path {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.jevthoven-path span {
  padding: 2px 6px;
  border-radius: 3px;
  font: 9px var(--mono);
  background: #0f141d;
  color: #69768b;
}
.jevthoven-path .jevthoven-path-now {
  color: #041b19;
  background: #4fd1c5;
}
.jevthoven-conductor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border-left: 2px solid #4fd1c5;
  background: #101821;
}
.jevthoven-conductor pre {
  margin: 0;
  white-space: pre-wrap;
  font: 10px/1.5 var(--mono);
  color: #b4becf;
}
.jev-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid #2a3443;
  border-radius: 7px;
  background: #131a25;
  font-size: 12px;
}
.jev-downloads-title {
  color: #b4becf;
  font: 11px var(--mono);
}
.jev-download {
  color: #041b19;
  background: #4fd1c5;
  border-radius: 5px;
  padding: 5px 10px;
  text-decoration: none;
  font-weight: 500;
}
.jev-download:hover {
  background: #a6eadb;
}
.jev-survey {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #2a3443;
  border-radius: 7px;
  background: #131a25;
  font-size: 12px;
}
.jev-survey-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}
.jev-survey label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #b4becf;
}
.jev-survey textarea {
  width: 100%;
  resize: vertical;
  padding: 6px 8px;
  border: 1px solid #2a3443;
  border-radius: 6px;
  background: #0c111a;
  color: var(--text);
  font: inherit;
}
.jev-survey fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #b4becf;
}
.jev-survey legend {
  padding: 0;
  margin-bottom: 4px;
}
.jev-survey fieldset label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.jev-survey-rating {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}
.jev-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}
.jev-stars input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.jev-stars label {
  font-size: 20px;
  color: #3a4356;
  cursor: pointer;
}
.jev-stars label:hover,
.jev-stars label:hover ~ label,
.jev-stars input:checked ~ label {
  color: #f5b544;
}
.jev-stars input:focus-visible + label {
  outline: 2px solid #f5b544;
  border-radius: 3px;
}
.jev-survey-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.jev-survey-actions .jev-download {
  border: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
