/* ui/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: 0.35;
}
.jev-active .decision {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}
.jev-decision {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  animation: jev-arrive 0.35s ease-out;
}
.jev-decision-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 11px var(--mono);
  color: #b4becf;
}
.jev-decision ~ .jev-decision {
  opacity: 0.8;
}
.jev-active .context {
  height: 270px;
  overflow: auto;
}
.jev-feed-title {
  margin-top: 18px;
}
.jev-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 560px;
  overflow: auto;
  padding-right: 4px;
}
.jev-feed:empty::before {
  content: "Every decision Jev makes will appear here, newest first.";
  color: var(--muted);
  font-size: 12px;
}
.jev-feed-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  animation: jev-arrive 0.35s ease-out;
}
.jev-feed-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  color: #b4becf;
}
@keyframes jev-arrive {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.log li {
  animation: jev-arrive 0.35s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .jev-feed-entry,
  .jev-decision,
  .log li,
  .jev-like.sent {
    animation: none;
  }
}
.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: 0.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: 0.05em;
}
.jev-hand.lh {
  --finger-color: #4fd1c5;
  --finger-wash: rgba(79, 209, 197, 0.08);
}
.jev-hand.rh {
  --finger-color: #f5b544;
  --finger-wash: rgba(245, 181, 68, 0.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 0.12s, border-color 0.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;
  height: 190px;
  overflow: hidden;
}
.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: 0.05em;
}
.jevthoven-section {
  color: #f5b544;
}
.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, 0.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;
}
.jev-song-log {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jev-song-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.jev-song-log-preview {
  max-height: 360px;
  overflow: auto;
  font-size: 11px;
  white-space: pre;
}
.jev-thought {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.jev-recipe > :nth-child(n+4) {
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.jevthoven-cell .muted,
.jevthoven-expression span {
  overflow-wrap: anywhere;
}
.jev-steer {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid #4a3d1f;
  border-radius: var(--radius);
  background: rgba(245, 181, 68, 0.06);
}
.jev-steer[hidden] {
  display: none;
}
.jev-steer-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #d8cdb4;
}
.jev-steer kbd {
  font: 11px var(--mono);
  border: 1px solid #5a4a26;
  border-radius: 4px;
  padding: 0 4px;
}
.jev-influence {
  margin-top: 4px !important;
  color: #f5b544 !important;
  font: 11px var(--mono) !important;
}
.jev-influence:empty {
  display: none;
}
.jev-like {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border: 1px solid #f5b544;
  border-radius: var(--radius-control);
  color: #1b1405;
  background:
    linear-gradient(
      125deg,
      #f5b544,
      #f8d38a);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
@media (max-width: 700px) {
  .jev-steer {
    flex-direction: column;
    align-items: stretch;
  }
}
.jev-like.sent {
  animation: jev-heart 0.6s ease-out;
}
.jev-like-decision {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid #3a4658;
  border-radius: 12px;
  padding: 2px 9px;
  background: transparent;
  color: #b4becf;
  font: 10px var(--mono);
  cursor: pointer;
}
.jev-like-decision:hover,
.jev-like-decision.sent {
  border-color: #f5b544;
  color: #f5b544;
}
.jev-leaned {
  color: #f5b544;
  font: 10px var(--mono);
}
.jev-feed-liked {
  border-left: 2px solid #f5b544;
  padding-left: 10px;
}
@keyframes jev-heart {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
    background: rgba(245, 181, 68, 0.2);
  }
  100% {
    transform: scale(1);
  }
}
