/* Scylla's Band demo page. Builds on ../../assets/site.css tokens. */

.doc-head .eyebrow { margin-bottom: 14px; }

.notice, .studio, .storage {
  max-width: 56rem; margin-top: 40px; padding: clamp(22px, 3.5vw, 34px);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.notice { border-top: 8px solid var(--orange); }
.notice h2, .storage h2 { margin: 0 0 14px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li { color: var(--muted); }
.notice li + li { margin-top: 10px; }
.notice li strong { color: var(--ink); }
.notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-quiet {
  background: var(--card); color: var(--ink); box-shadow: none; font: inherit; font-weight: 800; cursor: pointer;
}
.button-quiet:hover { color: var(--link); transform: none; box-shadow: none; }
button.button { font: inherit; font-weight: 800; cursor: pointer; }

.progress { margin-top: 22px; }
.progress progress {
  display: block; width: 100%; height: 14px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bar-track); overflow: hidden; appearance: none; -webkit-appearance: none;
}
.progress progress::-webkit-progress-bar { background: var(--bar-track); }
.progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--red), var(--coral), var(--orange), var(--apricot), var(--seafoam), var(--teal));
}
.progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--red), var(--coral), var(--orange), var(--apricot), var(--seafoam), var(--teal));
}
.progress-text { margin: 8px 0 0; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.warning {
  margin: 20px 0 0; padding: 12px 16px; border: 1.5px solid var(--red); border-radius: 12px;
  background: var(--wash); color: var(--ink); font-weight: 600;
}

.studio { border-top: 8px solid var(--teal); display: grid; gap: 22px; transition: opacity .2s ease; }
.studio[aria-disabled="true"] { opacity: .5; }
.studio[aria-disabled="true"] :is(textarea, select, input) { pointer-events: none; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .delivery legend, .axis label {
  display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: .95rem;
}
.field output, .axis output { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="range"] { width: 100%; accent-color: var(--red); }
@media (prefers-color-scheme: dark) { input[type="range"] { accent-color: var(--coral); } }
.hint { margin: 0; color: var(--muted); font-size: .86rem; }

.delivery { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; min-width: 0; }
.delivery legend { padding: 0; margin-bottom: 10px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets label { position: relative; cursor: pointer; }
.presets input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.presets span {
  display: inline-block; padding: 6px 14px; border: 1.5px solid var(--line-soft); border-radius: 999px;
  background: var(--paper); font-weight: 700; font-size: .92rem;
}
.presets input:checked + span { border-color: var(--line); background: var(--ink); color: var(--paper); }
.presets input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.axes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
.axis { display: grid; gap: 4px; min-width: 0; }
.axis label { font-size: .88rem; }

.speak-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.speak-status { margin: 0; flex: 1 1 16rem; color: var(--muted); font-size: .95rem; }
.result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.result audio { flex: 1 1 18rem; min-width: 0; }

.storage { border-top: 8px solid var(--seafoam); }
.storage p { margin: 0 0 14px; color: var(--muted); }
.storage .model-info { margin: 18px 0 0; font-size: .86rem; }

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:last-child { grid-column: 1 / -1; }
  .axes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .field-row, .axes { grid-template-columns: 1fr; }
}
