/* YT·DJ — "Modell D2"
 *
 * A Rams/Braun reading of the mixer: warm paper ground, hairline rules instead
 * of boxes, Helvetica set small and tracked, and colour reserved for signal —
 * orange = deck A, green = deck B, yellow = loop. The platters are clock faces,
 * not vinyl: the disc holds still, one hand sweeps it, the rim fills with the
 * track. No gradients, no shadows, no glow.
 */

:root {
  --paper:  #E7E4DC;
  --card:   #F1EFE9;
  --well:   #FBFAF7;
  --ink:    #16150F;
  --ink-2:  #4A4840;
  --grey:   #8D8A80;
  --line:   #D2CEC4;
  --line-2: #B6B1A5;

  --a:      #D8451B;   /* signal orange */
  --b:      #1E7A5A;   /* signal green  */
  --warn:   #E4A11B;   /* caution yellow */

  --acc: var(--ink);

  --thumb:      #16150F;
  --thumb-line: #9A968B;

  font-size: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Inter, Helvetica, Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow-x: auto;
  user-select: none;
}

/* Everything numeric lines up in columns. */
.readout, .pad, .tempo-scale, .lib-row .n, .bpm-input,
.fader-scale, .xscale { font-variant-numeric: tabular-nums; }

/* ============================================================
   masthead
   ============================================================ */
#masthead {
  padding: 28px 28px 12px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: flex-end;
  gap: 22px;
  min-width: 1080px;
}
.mast-name {
  font-size: 30px;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.025em;
}
.mast-name i { font-style: normal; color: var(--a); }

.mast-spec {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
  padding-bottom: 2px;
}
.mast-spec .rule { width: 1px; height: 9px; background: var(--line-2); }

.mast-key {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-bottom: 1px;
}
.mast-key span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.mast-key i { width: 8px; height: 8px; }
.mast-key .k-a { background: var(--a); }
.mast-key .k-b { background: var(--b); }
.mast-key .k-l { background: var(--warn); }

#masthead .btn { margin-left: 4px; }

/* ============================================================
   console — one ruled sheet, three columns
   ============================================================ */
#console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  min-width: 1080px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.deck {
  padding: 20px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deck-body { display: flex; flex-direction: column; gap: 14px; }
.deck-controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Wide enough for an instrument layout: the dial sits beside its controls
 * instead of the whole column stretching to fill the sheet. */
@media (min-width: 1500px) {
  .deck-body {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    column-gap: 34px;
  }
  .vinyl-wrap { width: min(100%, 380px); margin: 4px auto 0; }
}
@media (min-width: 1900px) {
  .deck-body { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
}
#deckA { --acc: var(--a); }
#deckB { --acc: var(--b); }

/* The centre column is the instrument's front panel: dark glass, light scale
 * markings. It anchors the whole sheet — the Braun receiver move. */
#mixer {
  --ink:    #F2F0EA;
  --ink-2:  #CFCBBF;
  --grey:   #918D80;
  --line:   #34312A;
  --line-2: #514D43;
  --well:   #211F19;
  --card:   #16150F;
  --a:      #F2683B;
  --b:      #35A87C;
  --warn:   #EDB53E;

  --thumb:      #EDEBE4;
  --thumb-line: #6E6A5F;

  background: #16150F;
  color: var(--ink);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#mixer .sel option { background: #F1EFE9; color: #16150F; }

/* panel logotype, top-left, the way Braun set it */
.mx-mark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
}
.mx-mark b {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mx-mark b i { font-style: normal; color: var(--a); }
.mx-mark span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

/* ============================================================
   deck header
   ============================================================ */
.deck-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.deck-id {
  font-size: 34px;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--acc);
}
.deck-lamp {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  align-self: flex-start;
  margin-top: 2px;
}
.deck.is-playing .deck-lamp { background: var(--acc); }
.deck-kind {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
  align-self: flex-end;
}

.load-row { display: flex; gap: 6px; margin-left: auto; }
.load-row input[type="text"] {
  width: 190px;
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink);
  padding: 7px 9px;
  font-family: inherit;
  font-size: 11px;
}
.load-row input[type="text"]::placeholder { color: var(--grey); }
.load-row input[type="text"]:focus { outline: 0; border-color: var(--acc); }

/* ============================================================
   the platter, as a clock face
   ============================================================ */
.vinyl-wrap {
  --prog: 0;
  position: relative;
  width: min(78%, 340px);
  aspect-ratio: 1;
  margin: 8px auto 12px;
}

/* rim: fills clockwise with the track */
.dial-arc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--acc) calc(var(--prog) * 360deg), var(--line) 0);
  -webkit-mask: radial-gradient(closest-side, #0000 97%, #000 97.4%);
          mask: radial-gradient(closest-side, #0000 97%, #000 97.4%);
}

/* sixty minute ticks, with a longer one every five */
.dial-ticks {
  position: absolute; inset: 4.4%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -90deg, var(--line-2) 0 0.55deg, #0000 0.55deg 6deg);
  -webkit-mask: radial-gradient(closest-side, #0000 95.2%, #000 95.6%);
          mask: radial-gradient(closest-side, #0000 95.2%, #000 95.6%);
}
.dial-ticks::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -90deg, var(--ink-2) 0 0.8deg, #0000 0.8deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #0000 89.4%, #000 89.9%);
          mask: radial-gradient(closest-side, #0000 89.4%, #000 89.9%);
}

/* index mark at twelve */
.vinyl-needle {
  position: absolute;
  top: -9px; left: calc(50% - 1px);
  width: 2px; height: 12px;
  background: var(--ink);
  z-index: 3;
}

/* the disc holds still — only the hand moves */
.vinyl {
  position: absolute; inset: 19%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
}
.vinyl-media { position: absolute; inset: 0; }
.vinyl-media iframe {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  width: 177.78%;          /* 16:9 covers the square, then the circle crops it */
  transform: translateX(-50%);
  border: 0;
}

.platter-hand {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
}
/* a single index marker riding the empty ring, clock-hand fashion */
.platter-hand i {
  position: absolute;
  left: calc(50% - 1px);
  top: 11.4%;
  width: 2px; height: 6.4%;
  background: var(--acc);
}
.platter-hand i::after {
  content: "";
  position: absolute;
  top: -10px; left: calc(50% - 3.5px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc);
}

.vinyl-spindle {
  position: absolute;
  left: calc(50% - 4.5px); top: calc(50% - 4.5px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 3;
}

.video-shield { position: absolute; inset: 19%; border-radius: 50%; cursor: default; z-index: 1; }

.video-idle {
  position: absolute; inset: 19%;
  border-radius: 50%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 21%;          /* clear of the spindle, dial-label fashion */
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
  z-index: 2;
}
.video-idle span {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--grey);
}

/* ============================================================
   readout
   ============================================================ */
.track-title {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 14px;
}

.readout {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.readout .time {
  font-size: 30px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.readout .remain { font-size: 11px; color: var(--grey); }
.readout .bpm {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  justify-self: end;
  color: var(--acc);
}
.readout .bpm.unset { color: var(--line-2); }
.readout .rate { font-size: 11px; color: var(--grey); min-width: 44px; text-align: right; }

.wave {
  width: 100%;
  height: 64px;
  display: block;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: crosshair;
}

/* ============================================================
   keys
   ============================================================ */
.btn {
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 9px;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn:active { background: var(--paper); }
.btn.small { font-size: 9px; padding: 7px 9px; letter-spacing: 0.16em; }
.btn:disabled { color: var(--line-2); border-color: var(--line); cursor: default; }

.transport { display: flex; gap: 6px; }
.btn-play { flex: 2.2; }
.btn-play.on { background: var(--acc); border-color: var(--acc); color: var(--well); }
.btn-cue { flex: 2.2; }
.btn-cue.held { background: var(--ink); border-color: var(--ink); color: var(--well); }
.btn-sync { flex: 1; }
.btn-sync.on { border-color: var(--acc); color: var(--acc); }
.btn-tap { flex: 1; }

/* ============================================================
   hot cues
   ============================================================ */
.section-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  margin-top: 2px;
}

.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pad {
  aspect-ratio: 2.3 / 1;
  max-height: 58px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--well);
  color: var(--grey);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.pad:hover { border-color: var(--ink); }
.pad .pad-time { font-size: 9px; font-weight: 400; letter-spacing: 0.02em; }
.pad.set { color: var(--well); border-color: transparent; box-shadow: none; }
.pad.set .pad-time { opacity: 0.72; }

/* ============================================================
   loop / beat jump
   ============================================================ */
.loop-row, .jump-row { display: flex; gap: 5px; }
.loop-row .btn, .jump-row .btn { flex: 1; padding: 8px 2px; font-size: 10px; letter-spacing: 0.06em; }
.btn.loop-armed { border-color: var(--warn); color: #8A6208; }
.btn.loop-on { background: var(--warn); border-color: var(--warn); color: var(--ink); }

/* direction reads from the data, not from glyphs in the label */
.jump-row .btn { position: relative; }
.jump-row .btn[data-beats^="-"]::before,
.jump-row .btn:not([data-beats^="-"])::after {
  color: var(--grey);
  font-size: 8px;
  position: relative;
  top: -0.5px;
}
.jump-row .btn[data-beats^="-"]::before { content: "\25C0\00A0"; }
.jump-row .btn:not([data-beats^="-"])::after { content: "\00A0\25B6"; }

/* ============================================================
   tempo
   ============================================================ */
.tempo-strip { display: flex; gap: 14px; align-items: flex-start; padding-top: 4px; }
.tempo-fader-wrap { flex: 1; display: flex; flex-direction: column; gap: 7px; padding-top: 6px; }
.tempo-fader { width: 100%; }
.tempo-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.tempo-scale .t-tick { width: 1px; height: 5px; background: var(--line-2); }

.tempo-side { display: flex; flex-direction: column; gap: 5px; width: 116px; }
.tempo-side .row { display: flex; gap: 5px; }
.tempo-side .btn { flex: 1; padding: 7px 2px; font-size: 10px; }

.sel {
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 5px;
  cursor: pointer;
}
.sel:hover { border-color: var(--ink); }

.bpm-input {
  width: 100%;
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--acc);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 7px 6px;
  text-align: center;
}
.bpm-input::placeholder { color: var(--grey); font-weight: 400; }
.bpm-input:focus { outline: 0; border-color: var(--acc); }

/* ============================================================
   mixer column
   ============================================================ */
.mx-block { display: flex; flex-direction: column; gap: 9px; }
.mx-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.mx-note {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--line-2);
  text-transform: uppercase;
}
.btn.wide { width: 100%; }

#masterVol { height: 28px; }
.autofade { display: flex; gap: 5px; align-items: stretch; }
.autofade .btn { flex: 1; }
.autofade .sel { flex: 0 0 54px; text-align: center; }

.eq-band { display: flex; align-items: center; gap: 8px; }
.eq-band label {
  width: 28px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--grey);
}
.eq-band input[type="range"] { flex: 1; min-width: 0; height: 28px; }
.btn.kill { padding: 5px 0; font-size: 9px; width: 24px; text-align: center; letter-spacing: 0; }
.btn.kill.on { background: var(--a); border-color: var(--a); color: var(--well); }
#eqEnable.on { background: var(--ink); border-color: var(--ink); color: var(--well); }

/* bus level: three tabular numbers, the way a Braun tuner shows its scale */
#mixLevels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px 8px;
  background: var(--well);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
}
.lv-k {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--grey);
}
.lv-k.lv-ka { color: var(--a); }
.lv-k.lv-kb { color: var(--b); }

/* channel + crossfader sit at the foot of the column */
.fader-group { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }

.mixer-top { display: flex; justify-content: center; align-items: flex-start; gap: 26px; padding-top: 6px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.channel label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.channel.ch-a label { color: var(--a); }
.channel.ch-b label { color: var(--b); }

.fader-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 156px;
  padding: 12px 0;
}
.fader-scale i { width: 9px; height: 1px; background: var(--line-2); }
.fader-scale i.major { width: 15px; background: var(--ink-2); }

.vfader { writing-mode: vertical-lr; direction: rtl; width: 30px; height: 156px; }

.mixer-mid { display: flex; flex-direction: column; gap: 8px; }
.xfader-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
}
.xl { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.xl.a { color: var(--a); }
.xl.b { color: var(--b); }
#xfader { width: 100%; height: 34px; }

.xscale { display: flex; justify-content: space-between; align-items: flex-start; height: 6px; }
.xscale i { width: 1px; height: 4px; background: var(--line-2); }
.xscale i.major { height: 7px; background: var(--ink-2); }

.mix-hint {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--grey);
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   faders — Braun handle: a solid block with one index line
   ============================================================ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  background: var(--line-2);
  border: 0;
  border-radius: 0;
}
input[type="range"]:not(.vfader)::-webkit-slider-runnable-track { height: 2px; }
input[type="range"].vfader::-webkit-slider-runnable-track { width: 2px; height: 100%; }

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 26px;
  border: 0;
  border-radius: 1px;
  background: linear-gradient(var(--thumb) 0 12px, var(--thumb-line) 12px 14px, var(--thumb) 14px 26px);
  margin-top: -12px;
}
input[type="range"].vfader::-webkit-slider-thumb {
  width: 26px;
  height: 12px;
  margin-top: 0;
  margin-left: -12px;
  background: linear-gradient(90deg, var(--thumb) 0 12px, var(--thumb-line) 12px 14px, var(--thumb) 14px 26px);
}
#xfader::-webkit-slider-thumb {
  width: 14px;
  height: 32px;
  margin-top: -15px;
  background: linear-gradient(var(--thumb) 0 15px, var(--thumb-line) 15px 17px, var(--thumb) 17px 32px);
}

input[type="range"]::-moz-range-track { background: var(--line-2); height: 2px; border: 0; }
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 26px; border: 0; border-radius: 1px;
  background: linear-gradient(var(--thumb) 0 12px, var(--thumb-line) 12px 14px, var(--thumb) 14px 26px);
}

/* ============================================================
   library — an index, not a browser
   ============================================================ */
#library {
  padding: 22px 28px 0;
  min-width: 1080px;
}
.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
}
.lib-title { font-size: 9px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink); }
.lib-head .mix-hint { text-align: right; }

#libRows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
  padding-top: 2px;
}
@media (min-width: 1500px) { #libRows { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1980px) { #libRows { grid-template-columns: repeat(4, 1fr); } }
.lib-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.lib-row .n { color: var(--line-2); width: 18px; text-align: right; font-size: 10px; }
.lib-row .t {
  flex: 1;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-row.loaded-a .t { color: var(--a); }
.lib-row.loaded-b .t { color: var(--b); }
.lib-row .btn { padding: 3px 0; width: 22px; text-align: center; font-size: 9px; letter-spacing: 0; }
.lib-row .btn.to-a:hover { background: var(--a); border-color: var(--a); color: var(--well); }
.lib-row .btn.to-b:hover { background: var(--b); border-color: var(--b); color: var(--well); }

/* ============================================================
   colophon
   ============================================================ */
#colophon {
  margin: 20px 0 0;
  padding: 9px 28px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--line-2);
  text-transform: uppercase;
  min-width: 1080px;
}
#colophon .rule { width: 1px; height: 8px; background: var(--line); }

/* ============================================================
   keyboard sheet
   ============================================================ */
#helpOverlay {
  position: fixed; inset: 0;
  background: #16150FCC;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
#helpOverlay.hidden { display: none; }
.help-card {
  background: var(--card);
  border: 0;
  border-radius: 0;
  border-top: 3px solid var(--ink);
  padding: 26px 30px 24px;
  max-width: 900px;
  max-height: 86vh;
  overflow: auto;
}
.help-card h2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.help-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.help-grid h3 {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.help-grid table { border-collapse: collapse; font-size: 11px; width: 100%; }
.help-grid td { padding: 5px 8px 5px 0; vertical-align: top; color: var(--ink-2); }
.help-grid td:first-child { white-space: nowrap; }
kbd {
  display: inline-block;
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 10px;
  color: var(--ink);
}
.help-note {
  font-size: 10px;
  color: var(--grey);
  margin-top: 12px;
  line-height: 1.65;
}
.help-note b { color: var(--ink-2); font-weight: 500; }

.flash { animation: flash 0.22s; }
@keyframes flash {
  0%   { background-color: var(--warn); }
  100% { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .flash { animation: none; }
}
