/* Generated by radio-tooling/tools/qmdwrap.py from the app's own
 * stylesheet. Every rule has been scoped to #sx, so a page
 * carrying the site navigation is not restyled by the app inside it.
 * Edit the source stylesheet, not this. Comments are stripped because
 * they belong with the source. */

#sx {
  --ink: #1a1f24;
  --ink-soft: #5a6672;
  --rule: #ccd4da;
  --grid: #e8edf1;
  --paper: #ffffff;
  --accent: #1c5d7a;
  --wash: #f4f7f9; }
#sx * { box-sizing: border-box; }
#sx {
  margin: 0;
  padding: 0 1.25rem 4rem;
  font: 15px/1.55 "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper); font-family: inherit; }
#sx .sub { margin: 0 0 .4rem; color: var(--ink-soft); max-width: 46rem; }
#sx .sub.small { font-size: .84rem; }
#sx .home { font-size: .8rem; margin: 0 0 .6rem; }
#sx .home a { color: var(--ink-soft); text-decoration: none; }
#sx .home a:hover { color: var(--accent); text-decoration: underline; }
#sx .sub code { background: var(--wash); padding: .05rem .3rem; border-radius: 3px; }
#sx nav#presets { display: block; }
#sx nav#presets .grp { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
                   margin: 0 0 .5rem; }
#sx nav#presets .grp > h3 { font-size: .72rem; text-transform: uppercase;
                        letter-spacing: .07em; color: var(--ink-soft);
                        margin: 0 .5rem 0 0; font-weight: 600; min-width: 6.5rem; }
#sx main { max-width: 78rem; margin: 0 auto; }
#sx h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
     color: var(--ink-soft); margin: 0 0 .7rem; font-weight: 600; }
#sx nav#presets {
  padding: 1rem 0 .6rem;
  border-bottom: 1px solid var(--grid); }
#sx nav#presets button {
  font: inherit; font-size: .84rem;
  padding: .34rem .7rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  cursor: pointer; }
#sx nav#presets button:hover { background: var(--wash); }
#sx nav#presets button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff; }
#sx nav#presets button .p { font-weight: 600; margin-right: .4rem; opacity: .55;
                        font-size: .72rem; letter-spacing: .02em; }
#sx nav#presets button[aria-pressed="true"] .p { opacity: .8; }
#sx select#c-source { font: inherit; font-size: .85rem; padding: .25rem; width: 100%; }
#sx button#c-audio { font: inherit; font-size: .88rem; padding: .4rem .8rem;
                 border: 1px solid var(--accent); border-radius: 4px;
                 background: var(--accent); color: #fff; cursor: pointer; }
#sx button#c-audio[aria-pressed="true"] { background: var(--paper); color: var(--accent); }
#sx #blurb { padding: .9rem 0 1.1rem; max-width: 52rem; }
#sx #blurb-text { margin: 0 0 .4rem; font-size: 1.02rem; }
#sx #blurb-origin { margin: 0; font-size: .8rem; color: var(--ink-soft); }
#sx .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem; }
#sx .panel {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
  background: var(--paper);
  display: flex; flex-direction: column; }
#sx .panel figcaption {
  font-size: .74rem; font-weight: 600;
  padding: .4rem .55rem;
  border-bottom: 1px solid var(--grid);
  background: var(--wash); }
#sx .panel .hint { font-weight: 400; color: var(--ink-soft); }
#sx .panel canvas { display: block; width: 100%; flex: 1 1 auto; }
#sx .panel.wide { grid-column: span 2; }
#sx .panel.tall { grid-column: span 2; grid-row: span 2; }
#sx .panel.wide canvas { height: 190px; }
#sx .panel.tall canvas { height: 460px; }
#sx .panel canvas { height: 190px; }
#sx .controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--grid); }
#sx .ctl { display: block; margin: 0 0 .75rem; font-size: .85rem; }
#sx .ctl > span { display: block; margin-bottom: .18rem; color: var(--ink-soft); }
#sx .ctl b { color: var(--ink); font-variant-numeric: tabular-nums; }
#sx .ctl input[type="range"] { width: 100%; accent-color: var(--accent); }
#sx .ctl.radio label { display: block; font-size: .85rem; color: var(--ink); margin: .1rem 0; }
#sx .ctl[hidden] { display: none; }
#sx .note { font-size: .76rem; color: var(--ink-soft); margin: -.35rem 0 1rem; }
#sx button#c-clear, #sx button#c-wav-clear {
  font: inherit; font-size: .8rem; padding: .3rem .65rem;
  border: 1px solid var(--rule); border-radius: 4px;
  background: var(--paper); cursor: pointer; }
#sx button#c-clear:hover, #sx button#c-wav-clear:hover { background: var(--wash); }
#sx .readout { margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--grid); }
#sx #stats { border-collapse: collapse; font-size: .85rem; }
#sx #stats td { padding: .18rem 1.4rem .18rem 0; }
#sx #stats td:first-child { color: var(--ink-soft); }
#sx #stats td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }
#sx .colophon { margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--grid);
            max-width: 46rem; }
#sx .colophon p { font-size: .84rem; color: var(--ink-soft); }
@media (max-width: 1100px) {
  #sx .grid { grid-template-columns: repeat(2, 1fr); }
  #sx .panel.tall { grid-column: span 2; grid-row: auto; }
  #sx .panel.tall canvas { height: 380px; }
  #sx .controls { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  #sx .grid { grid-template-columns: 1fr; }
  #sx .panel.wide, #sx .panel.tall { grid-column: span 1; }
  #sx .controls { grid-template-columns: 1fr; }
  #sx nav#presets .grp {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: .2rem; }
  #sx nav#presets .grp > h3 {
    position: sticky; left: 0;
    background: var(--paper);
    padding-right: .4rem;
    min-width: auto;
    z-index: 1; }
  #sx nav#presets button { flex: 0 0 auto; }
  #sx .grid { display: flex; flex-direction: column; }
  #sx .panel.tall { order: -1; }
  #sx .panel.tall canvas { height: 320px; }
  #sx .panel canvas, #sx .panel.wide canvas { height: 150px; }
}

/* Beta badge and notice */
.beta-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.15em 0.55em;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #d97706;
  border-radius: 999px;
}
.app-beta {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-radius: 4px;
}
