/* The console. Layout, panels, cockpit, chart chrome.
 *
 * NO HEX CODES IN THIS FILE. Every colour is a token from tokens.css, which is the only file
 * allowed to name one — the same rule survey.css follows. If you need a colour that is not here,
 * add a token; do not inline it, or the next theme costs a search-and-replace.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--dash-bg);
  color: var(--dash-ink);
  font-family: var(--dash-font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Numbers that are read in columns must not dance as they change. Tabular figures everywhere a
   figure sits next to another figure. */
.hero, .tick, .n, .delta, .rate, .theme-n, .reply-score, .brandrow-score { font-variant-numeric: tabular-nums; }

button { font: inherit; color: inherit; }

/* One visible focus treatment for the whole page. Never remove it — a keyboard user who cannot
   see where they are has no way back. */
:focus-visible {
  outline: 2px solid var(--dash-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- frame */

#dash {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.work { display: grid; min-height: 0; }

/* The dock. The cockpit starts on the right — the reading hand on a wide screen — and can be
   moved to any edge while the layout is unlocked. */
[data-dock="right"]  .work { grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-areas: "grid ck"; }
[data-dock="left"]   .work { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-areas: "ck grid"; }
[data-dock="bottom"] .work { grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "grid" "ck"; }
[data-dock="top"]    .work { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "ck" "grid"; }

:root { --rail: 262px; }

.cockpit { grid-area: ck; }
.grid { grid-area: grid; }

/* ---------------------------------------------------------------- top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--dash-line);
  background: var(--dash-panel);
  flex-wrap: wrap;
}

.bar-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.bar-sub { margin: 0; font-size: 12px; color: var(--dash-ink-3); }
.bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cross-page links. Identical to the rules in admin.css and insights.css — the third copy of the
   shared console chrome, which is the point at which extracting a css/console.css stops being
   premature. Left duplicated deliberately: this is a throwaway proposal artefact, and editing
   three working pages to save forty lines buys nothing it can spend. */
.bar-nav { display: inline-flex; gap: 10px; }
.bar-nav a {
  font-size: 11.5px;
  color: var(--dash-ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--dash-line);
}
.bar-nav a:hover { color: var(--dash-accent); border-bottom-color: var(--dash-accent); }

.themetoggle, .langpick {
  display: inline-flex;
  border: 1px solid var(--dash-line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--dash-bg);
}
.themetoggle button, .lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 9px; display: grid; place-items: center;
  color: var(--dash-ink-3);
}
.lang-btn { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.themetoggle svg { width: 15px; height: 15px; display: block; }
.themetoggle button[aria-pressed="true"], .lang-btn[aria-pressed="true"] {
  background: var(--dash-accent); color: var(--dash-accent-ink);
}

.lockbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; cursor: pointer;
  border: 1px solid var(--dash-line); border-radius: 7px;
  background: var(--dash-bg); color: var(--dash-ink-2);
  font-size: 12px;
}
.lockbtn[aria-pressed="true"] {
  border-color: var(--dash-accent);
  color: var(--dash-accent);
}
/* A padlock drawn in CSS: the shackle is a bordered half-circle that swings open when unlocked,
   so the control shows its state rather than only naming it. */
.lock-ico { position: relative; width: 11px; height: 13px; display: inline-block; }
.lock-ico::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 7px;
  border: 1.5px solid currentColor; border-radius: 2px;
}
.lock-ico::after {
  content: ""; position: absolute; left: 2px; top: 0; width: 7px; height: 7px;
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transition: transform var(--t-fast, 140ms) ease, left var(--t-fast, 140ms) ease;
}
.lockbtn[aria-pressed="true"] .lock-ico::after { transform: rotate(-24deg); left: 5px; }

/* ---------------------------------------------------------------- cockpit */

.cockpit {
  padding: 16px 14px 24px;
  border-left: 1px solid var(--dash-line);
  background: var(--dash-panel);
  overflow-y: auto;
}
/* Sticky on the side docks. Ten panels scroll well past a screen, and a filter rail that scrolls
   away with them means every change of mind costs a scroll to the top and back. */
[data-dock="right"] .cockpit,
[data-dock="left"] .cockpit {
  position: sticky; top: 0; align-self: start; max-height: 100vh;
}
[data-dock="left"] .cockpit { border-left: 0; border-right: 1px solid var(--dash-line); }
[data-dock="bottom"] .cockpit { border-left: 0; border-top: 1px solid var(--dash-line); }
[data-dock="top"] .cockpit { border-left: 0; border-bottom: 1px solid var(--dash-line); }

.ck-head { margin-bottom: 12px; }
.ck-title {
  margin: 0; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dash-ink-3);
}
.ck-sep { height: 1px; background: var(--dash-line); margin: 16px 0; }

.field { margin-bottom: 14px; }
.field-label {
  margin: 0 0 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .03em; color: var(--dash-ink-2);
}

.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-btn {
  flex: 1 1 auto; min-width: 0;
  padding: 6px 8px; cursor: pointer;
  border: 1px solid var(--dash-line); border-radius: 6px;
  background: var(--dash-bg); color: var(--dash-ink-2);
  font-size: 11.5px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg-btn:hover { border-color: var(--dash-ink-3); }
.seg-btn[aria-pressed="true"] {
  background: var(--dash-accent); border-color: var(--dash-accent);
  color: var(--dash-accent-ink); font-weight: 600;
}
.seg-btn--icon { flex: 0 0 auto; width: 30px; height: 28px; display: grid; place-items: center; padding: 0; }

/* The dock picker draws four little diagrams of where the rail will go, because "top / right /
   bottom / left" as words needs a moment of thought that a picture does not. */
.dock-ico { width: 13px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.dock-ico::after { content: ""; position: absolute; background: currentColor; }
.dock-ico--right::after  { inset: 0 0 0 auto; width: 4px; }
.dock-ico--left::after   { inset: 0 auto 0 0; width: 4px; }
.dock-ico--bottom::after { inset: auto 0 0 0; height: 4px; }
.dock-ico--top::after    { inset: 0 0 auto 0; height: 4px; }

.btn {
  width: 100%; padding: 7px 10px; cursor: pointer;
  border: 1px solid var(--dash-line); border-radius: 6px;
  background: var(--dash-bg); color: var(--dash-ink-2); font-size: 12px;
}
.btn:hover { border-color: var(--dash-ink-3); color: var(--dash-ink); }
.btn--sm { padding: 5px 8px; font-size: 11px; }

/* The demo block. Scaffolding, not product — deliberately unbranded and set apart, exactly like
   the questionnaire's demo bar, so nobody reviewing the prototype mistakes it for a feature the
   marketing team would get. */
.demo-block {
  margin-top: 20px; padding: 11px;
  border: 1px dashed var(--dash-line); border-radius: 7px;
  background: var(--dash-bg);
}
.demo-title {
  margin: 0 0 8px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dash-ink-3);
}
.demo-row { display: block; font-size: 11px; color: var(--dash-ink-3); margin-bottom: 8px; }
.demo-row input { width: 100%; margin-top: 4px; accent-color: var(--dash-ink-3); }
.demo-note { margin: 8px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--dash-ink-3); }

/* ---------------------------------------------------------------- grid + panels */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  align-content: start;
  min-width: 0;
}

.panel {
  display: flex; flex-direction: column;
  min-width: 0;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-panel);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
}

.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px 9px;
  border-bottom: 1px solid var(--dash-line);
}
.panel-title {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-body {
  padding: 13px; flex: 1 1 auto; min-width: 0;
  /* Grid rows stretch every panel to the tallest in the row, so short panels carry slack.
     space-between LOOKS like the fix and is not: it floats the band strip away from the hero
     number it belongs to. Only the trailing "n = " line is pushed down, via margin-top:auto
     below — everything else stays grouped with what it describes. */
  display: flex; flex-direction: column; gap: 8px;
}
.panel-body > .n { margin-top: auto; }
.panel-foot {
  padding: 8px 13px 10px;
  border-top: 1px solid var(--dash-line);
  font-size: 10.5px; line-height: 1.45;
  color: var(--dash-ink-3);
  background: var(--dash-panel-2);
}

/* The grip and the width button only exist while unlocked. Hiding them when locked keeps the
   header quiet in the state the page spends nearly all its time in. */
.grip, .widthbtn { display: none; }
[data-locked="false"] .grip {
  display: block; width: 9px; height: 13px; cursor: grab; flex: 0 0 auto;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--dash-ink-3);
}
[data-locked="false"] .widthbtn {
  display: grid; place-items: center;
  width: 22px; height: 20px; flex: 0 0 auto; cursor: pointer;
  border: 1px solid var(--dash-line); border-radius: 5px;
  background: var(--dash-bg); color: var(--dash-ink-2);
  font-size: 10.5px; font-weight: 700;
}
[data-locked="false"] .panel { border-style: dashed; }
[data-locked="false"] .panel:hover { border-color: var(--dash-ink-3); }

.panel.is-dragging { opacity: .35; }
.panel.is-over-before { box-shadow: inset 3px 0 0 var(--dash-accent); }
.panel.is-over-after  { box-shadow: inset -3px 0 0 var(--dash-accent); }

.panel-empty { margin: 0; padding: 18px 0; color: var(--dash-ink-3); font-size: 12px; text-align: center; }

/* ---------------------------------------------------------------- tiles */

.tile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hero { margin: 0; font-size: 40px; line-height: 1; font-weight: 300; letter-spacing: -.02em; }
.hero--empty { color: var(--dash-ink-3); }
.tile-side { text-align: right; }
.scale { margin: 0; font-size: 10.5px; color: var(--dash-ink-3); }
.rate { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.n { margin: 8px 0 0; font-size: 10.5px; color: var(--dash-ink-3); }

.delta { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600; }
.delta--up { color: var(--band-promoter); }
.delta--down { color: var(--band-detractor); }
.delta--flat { color: var(--dash-ink-3); }

/* ---------------------------------------------------------------- charts */

.chart { display: block; max-width: 100%; overflow: visible; }

/* Named .gridline, NOT .grid: the panel container is .grid, and a bare .grid rule would also
   match <line class="grid"> inside every SVG and hand it display:grid and 16px of padding. */
.chart .gridline { stroke: var(--dash-grid); stroke-width: 1; }
.chart .gridline--zero { stroke: var(--dash-ink-3); stroke-width: 1; opacity: .55; }

.chart .tick { fill: var(--dash-ink-3); font-size: 9.5px; }
.chart .tick--y { text-anchor: end; }
.chart .tick--x { text-anchor: middle; }
.chart .tick--row { text-anchor: start; fill: var(--dash-ink-2); font-size: 11px; }
.chart .tick--val { fill: var(--dash-ink-2); font-size: 10.5px; font-weight: 600; }
.chart .tick--seg { fill: var(--dash-ink-2); font-size: 9.5px; }

.chart .trend { fill: none; stroke: var(--dash-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.chart .trend--brand { opacity: 1; }
.chart .trend--spark { stroke: var(--dash-accent); opacity: .85; }
.chart .dot { stroke: var(--dash-panel); stroke-width: 2; }

.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--dash-ink); fill-opacity: .045; }
.chart .crosshair { stroke: var(--dash-ink-3); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }

/* The current, unfinished month. Marked so a partial bar does not read as a collapse — the same
   trap the notebook console marks with an asterisk on its current week. */
.chart .bar--partial { opacity: .55; }

.chart-tip {
  position: fixed; top: 0; left: 0; z-index: 60;
  max-width: 260px; padding: 7px 10px;
  border: 1px solid var(--dash-line); border-radius: 7px;
  background: var(--dash-panel); color: var(--dash-ink);
  box-shadow: var(--dash-shadow);
  font-size: 11.5px; line-height: 1.45;
  pointer-events: none; opacity: 0;
  transition: opacity 100ms ease;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { display: block; font-size: 11px; margin-bottom: 1px; }
.chart-tip span { color: var(--dash-ink-2); }

/* ---------------------------------------------------------------- legend
 *
 * Present whenever a chart carries two or more series. Identity must never rest on colour alone —
 * that is what makes the light-mode promoter green legal at 2.33:1 against the surface.
 */

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; }
.key { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--dash-ink-2); }
.sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.sw--promoter { background: var(--band-promoter); }
.sw--passive { background: var(--band-passive); }
.sw--detractor { background: var(--band-detractor); }
.sw--keune { background: var(--series-keune); }
.sw--miiki { background: var(--series-miiki); }
.sw--trend { background: var(--dash-ink); opacity: .55; height: 2px; border-radius: 1px; }
.sw--hatch {
  background: repeating-linear-gradient(45deg,
    var(--dash-hatch) 0 2px, var(--dash-panel) 2px 4px);
}

/* ---------------------------------------------------------------- delivery faces */

.face-row { display: flex; justify-content: space-between; margin-top: 2px; }
.face-slot { flex: 1 1 0; display: grid; place-items: center; opacity: .3; }
.face-slot.is-mean { opacity: 1; }
.face-slot .face { width: 20px; height: 20px; display: block; }
.face .f-head { fill: none; stroke: var(--dash-ink-3); stroke-width: 2.5; }
.face .f-eye { fill: var(--dash-ink-2); }
.face .f-line { fill: none; stroke: var(--dash-ink-2); stroke-width: 2.5; stroke-linecap: round; }
.face-slot.is-mean .f-head { stroke: var(--dash-accent); }
.face-slot.is-mean .f-eye { fill: var(--dash-accent); }
.face-slot.is-mean .f-line { stroke: var(--dash-accent); }

/* ---------------------------------------------------------------- brand rows */

.brandrow + .brandrow { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dash-line); }
.brandrow-head { display: flex; align-items: baseline; justify-content: space-between; }
.brandrow-score { font-size: 17px; font-weight: 600; }

/* ---------------------------------------------------------------- themes */

.themes { list-style: none; margin: 0; padding: 0; }
.themes li + li { margin-top: 3px; }
.theme {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 5px 6px; cursor: pointer; text-align: left;
  border: 0; border-radius: 6px; background: transparent;
}
.theme:hover { background: var(--dash-panel-2); }
.theme[aria-expanded="true"] { background: var(--dash-panel-2); }
.theme-name { flex: 0 0 34%; font-size: 11.5px; color: var(--dash-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-bar { position: relative; flex: 1 1 auto; height: 13px; }
.theme-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 4px; background: var(--ramp-3);
}
/* The complaint share, drawn over the total, so a theme that is mostly gripes shows it without a
   second chart. Band hue, not brand hue — see the containment rule. */
.theme-fill--neg { background: var(--band-detractor); }
.theme-n { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--dash-ink-2); min-width: 30px; text-align: right; }

.verbatims { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--dash-line); }
.verbatims-head { margin: 0 0 7px; font-size: 11px; font-weight: 600; color: var(--dash-ink-2); }
.verbatim-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.verbatim {
  display: block; padding: 7px 9px; margin-bottom: 4px;
  border-radius: 6px; background: var(--dash-panel-2);
  border-left: 2px solid var(--dash-line);
}
.verbatim--neg { border-left-color: var(--band-detractor); }
.verbatim-text { display: block; font-size: 12px; }
.verbatim-meta { display: block; margin-top: 3px; font-size: 10px; color: var(--dash-ink-3); }

/* ---------------------------------------------------------------- replies */

.reply-count { margin: 0 0 9px; font-size: 11px; color: var(--dash-ink-3); }
.replies { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.reply { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid var(--dash-line); }
.reply:first-child { border-top: 0; }
.reply-score {
  flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 5px; font-size: 11px; font-weight: 700;
  background: var(--band-detractor); color: var(--dash-bg);
}
.reply-body { min-width: 0; }
.reply-text { display: block; font-size: 12px; }
.reply-meta { display: block; margin-top: 2px; font-size: 10px; color: var(--dash-ink-3); }

/* ---------------------------------------------------------------- responsive
 *
 * Below 900px there is one column: nothing to arrange, and HTML5 drag has no touch support
 * anyway. layout.js forces locked at this width; this hides the affordances so the page does not
 * offer a control that cannot work.
 */

@media (max-width: 1279px) {
  :root { --rail: 238px; }
}

@media (max-width: 899px) {
  .work { grid-template-columns: 1fr !important; grid-template-rows: minmax(0,1fr) auto !important;
          grid-template-areas: "grid" "ck" !important; }
  .cockpit { border: 0; border-top: 1px solid var(--dash-line); }
  .grid { padding: 12px; gap: 12px; }
  .panel { grid-column: span 1 !important; }
  .grip, .widthbtn, .lockbtn { display: none !important; }
  .hero { font-size: 34px; }
}

@media (max-width: 560px) {
  .bar { padding: 10px 12px; }
  .bar-sub { display: none; }
  .seg-btn { font-size: 11px; padding: 6px; }
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* "Not asked in this questionnaire" is a different claim from "no rows matched", and it is the
   more interesting one — it names a limit of the instrument rather than a shortage of data. */
.panel-empty--na { text-align: left; line-height: 1.5; padding: 12px 0; }

.field-note { margin: 6px 0 0; font-size: 10px; line-height: 1.4; color: var(--dash-ink-3); }

/* ---------------------------------------------------------------- the ask box */

.ask { margin-bottom: 4px; }

.ask-row { display: flex; gap: 5px; }
.ask-in {
  flex: 1 1 auto; min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--dash-line); border-radius: 6px;
  background: var(--dash-bg); color: var(--dash-ink);
  font: inherit; font-size: 12px;
}
.ask-in::placeholder { color: var(--dash-ink-3); }
.ask-in:focus { border-color: var(--dash-accent); outline: none; }
.ask-in:disabled { opacity: .55; }
.ask-go {
  flex: 0 0 auto; width: 30px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--dash-accent); border-radius: 6px;
  background: var(--dash-accent); color: var(--dash-accent-ink);
  font-size: 14px; line-height: 1;
}
.ask-go:disabled { cursor: default; opacity: .6; }

.spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ask-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-top: 6px;
}
/* Which engine answered is never hidden. A sentence from a keyword parser and a sentence from a
   model deserve different amounts of trust, and the reader can only calibrate if told which. */
.ask-engine {
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dash-ink-3);
  padding: 2px 5px; border: 1px solid var(--dash-line); border-radius: 4px;
}
.ask-engine.is-live { color: var(--dash-accent); border-color: var(--dash-accent); }
.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 10.5px; color: var(--dash-ink-3); text-decoration: underline;
  text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--dash-ink); }

.chat {
  list-style: none; margin: 0 0 8px; padding: 0;
  max-height: 190px; overflow-y: auto;
}
.msg { display: block; padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; }
.msg--you { background: var(--dash-bg); border: 1px solid var(--dash-line); }
.msg--ai { background: var(--dash-panel-2); border-left: 2px solid var(--dash-accent); }
/* "I did not understand" must not look like an answer. */
.msg--unsure { border-left-color: var(--dash-ink-3); }
.msg-who {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dash-ink-3);
  margin-bottom: 2px;
}
.msg-text { display: block; font-size: 11.5px; line-height: 1.45; }
.msg-note {
  display: block; margin-top: 4px; font-size: 10px; line-height: 1.4;
  color: var(--dash-ink-3); font-style: italic;
}

/* ---------------------------------------------------------------- knobs */

.knob-row { display: flex; gap: 6px; justify-content: space-between; }
.knob { flex: 1 1 0; min-width: 0; text-align: center; }
.knob-dial {
  width: 46px; height: 46px; margin: 0 auto;
  cursor: ns-resize;              /* the gesture is vertical; the cursor says so before the drag */
  touch-action: none;             /* without this the browser scrolls the page instead of turning */
}
.knob-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.knob-track { fill: none; stroke: var(--dash-line); stroke-width: 3.5; stroke-linecap: round; }
.knob-fill { fill: none; stroke: var(--dash-accent); stroke-width: 3.5; stroke-linecap: round; }
.knob-cap { fill: var(--dash-bg); stroke: var(--dash-line); stroke-width: 1; }
.knob-pointer { stroke: var(--dash-ink-2); stroke-width: 2; stroke-linecap: round; }
.knob.is-turning .knob-cap { stroke: var(--dash-accent); }
.knob.is-turning .knob-pointer { stroke: var(--dash-ink); }
.knob-dial:focus-visible { outline: 2px solid var(--dash-accent); outline-offset: 3px; border-radius: 50%; }

.knob-label {
  margin: 3px 0 0; font-size: 9.5px; color: var(--dash-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.knob-value {
  margin: 1px 0 0; font-size: 10.5px; font-weight: 600; color: var(--dash-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
