/* styles/controls.css
   Buttons, form fields, labels, the status line and the progress bar. */
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font:
    600 15px "Public Sans",
    system-ui,
    sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--jet);
  flex: 1;
  justify-content: center;
  font-size: 16px;
  min-height: 52px;
  font-weight: 700;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn.primary:not(:disabled):active {
  transform: translateY(1px);
}
.btn.primary:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--mute);
  cursor: not-allowed;
}
.btn:disabled {
  cursor: not-allowed;
}
.btn.link {
  border: 0;
  background: none;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}
@media (hover: hover) {
  .drop:hover {
    border-color: var(--flame);
  }
  .btn.primary:not(:disabled):hover {
    filter: brightness(1.08);
  }
  .btn:not(.primary):not(.link):not(:disabled):hover {
    background: var(--ink);
    color: var(--bg);
  }
}
:focus-visible {
  outline: 3px solid var(--hi);
  outline-offset: 2px;
}
.locked {
  opacity: 0.5;
  pointer-events: none;
}
.req {
  font-weight: 600;
  font-size: 12px;
  color: var(--red);
}
.req.opt {
  font-weight: 400;
  color: var(--mute);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: #141820
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  padding-right: 36px;
  min-height: 48px;
}
textarea,
select,
input[type="text"] {
  width: 100%;
  font:
    16px/1.5 "Public Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
select:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
textarea {
  min-height: 220px;
  resize: vertical;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--flame);
  outline: none;
}
.need {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(232, 104, 66, 0.3);
}
label.f {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 16px 0 6px;
}
.hint {
  color: var(--mute);
  font-size: 14px;
  margin: 6px 0 0;
}
.status {
  margin-top: 12px;
  font-size: 15px;
  color: var(--mute);
  min-height: 24px;
}
.status.err {
  color: var(--red);
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
  display: none;
}
.bar i {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--flame);
  animation: slide 1.2s ease-in-out infinite;
}
@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar i {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}

.scope-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--amber);
  color: var(--ink);
  font-size: 14px;
}
