/* The command line (ui/commandline.js): a field over the studio near its bottom (above the keys),
   and what the line typed would do, a row each, stacked up from it (the overlay: shell.css). */

.cl-overlay {
  place-items: end center;
  padding-bottom: clamp(16px, 14vh, 132px);
  /* The music stays readable under it: what the line changes is in sight. */
  background: rgba(4, 3, 6, 0.22);
  backdrop-filter: none;
}
.cl-scrim {
  position: absolute;
  inset: 0;
}
.cl-box {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(36, 31, 42, 0.98), rgba(18, 16, 22, 0.98));
  border: 1px solid var(--line-3);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    var(--glow);
  overflow: hidden;
  animation: cl-rise 0.16s ease-out;
}
@keyframes cl-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.cl-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-2);
}
.cl-slash {
  font: 600 18px/1 var(--mono);
  color: var(--gold);
}
.cl-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ivory);
  font: 500 18px/1.3 var(--sans);
}
.cl-input::placeholder {
  color: var(--dim);
  font-size: 15px;
}
/* The best row nearest the field: the list runs upward. */
.cl-rows {
  display: flex;
  flex-direction: column-reverse;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 6px;
}
.cl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font: 500 14px/1.3 var(--sans);
}
.cl-row:hover {
  background: rgba(212, 175, 55, 0.07);
}
.cl-row.on {
  background: rgba(212, 175, 55, 0.16);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.cl-row.dim {
  opacity: 0.45;
}
.cl-kind {
  flex: none;
  min-width: 64px;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  font: 700 9.5px/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  border: 1px solid var(--line-2);
}
.cl-kind.shorthand {
  background: var(--metal);
  color: #251a06;
  border-color: transparent;
}
.cl-kind.agent {
  color: var(--rose);
  border-color: rgba(208, 138, 147, 0.4);
}
.cl-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-keys {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.3);
  font: 600 11px/1.2 var(--mono);
  color: var(--gold-hi);
}
.cl-none {
  padding: 14px;
  color: var(--muted);
  font: italic 14px/1.3 var(--serif);
}
.cl-foot {
  padding: 8px 16px 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 500 11px/1.2 var(--sans);
}

/* Note input's dynamic, in its bar. */
.input-dynamic {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--gold-hi);
  font: italic 700 14px/1.2 var(--serif);
}
