/* ============================================================================
   VINTAGE HARDWARE UI — exploration layer (designer handoff 2026-08-30,
   design_handoff_vintage_hardware_ui, direction 1d: Drills in context).
   EVERYTHING here is scoped under body.hw-ui — the flag is ?hw=1 / ?hw=0
   (persisted in localStorage 'ifb-hw-ui'). Flat V2 Clean stays the default;
   if this direction is adopted, flip the default and fold into DESIGN.md.
   Core principle: NO hairline borders — machined grooves, recessed wells,
   raised panels, and light. All values from the handoff (high fidelity).
   ========================================================================= */

/* One flat ground for the whole skin: main.css paints two gold glows on
   body for the flat theme — under hw-ui they read as a grey wash over the
   walnut world. Shorthand resets background-image. */
body.hw-ui { background: #1A1614; }

/* ============================================================================
   SHARED COMPONENT LAYER (2026-09-22, designer items #3+#4+#9): every value
   below is THE definition — rules elsewhere reference these tokens, so a
   surface can no longer drift on its own. Radius system: keys 4 / wells 8 /
   panels 14. Lighting is always top-down: highlight on top edges, shadow
   below — wells carry no bottom highlight.
   ========================================================================= */
body.hw-ui {
  /* surfaces */
  --hw-panel-grad: linear-gradient(180deg, #26201b, #1d1814);
  --hw-well-grad: linear-gradient(180deg, #17120f, #1c1613);
  --hw-groove-grad: linear-gradient(180deg, #16110e, #1c1613);
  --hw-counter-grad: linear-gradient(180deg, #14100d, #1c1613);
  --hw-key-grad: linear-gradient(180deg, #3E342E, #2A231F);
  --hw-key-dim-grad: linear-gradient(180deg, #332b25, #241e19);
  --hw-key-lit-grad: linear-gradient(180deg, #f3d489, #d9a94e);
  --hw-tape-grad: linear-gradient(180deg, #F3EAD5, #E9DDC2);
  /* depth */
  --hw-shadow-panel: 0 6px 16px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .5);
  --hw-shadow-well: inset 0 2px 5px rgba(0, 0, 0, .55);
  --hw-shadow-groove: inset 0 1px 4px rgba(0, 0, 0, .5);
  --hw-shadow-counter: inset 0 2px 5px rgba(0, 0, 0, .6);
  /* radii */
  --hw-r-key: 4px;
  --hw-r-well: 8px;
  --hw-r-panel: 14px;
  /* flat theme's elevation tokens re-based to hardware depth, so surfaces
     not yet swept (Welcome, Plans, modals) stop floating on flat shadows */
  --elev-1: 0 6px 16px rgba(0, 0, 0, .32);
  --elev-2: 0 8px 22px rgba(0, 0, 0, .4);
  --elev-3: 0 14px 40px rgba(0, 0, 0, .5);
}
/* The seven shared parts, as classes for all FUTURE markup. Existing screens
   reference the same tokens per-selector (cascade kept identical). */
body.hw-ui .hw-panel { border: none; border-radius: var(--hw-r-panel); background: var(--hw-panel-grad); box-shadow: var(--hw-shadow-panel); }
body.hw-ui .hw-well { border: none; border-radius: var(--hw-r-well); background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .hw-groove-panel { border: none; border-radius: var(--hw-r-well); background: var(--hw-groove-grad); box-shadow: var(--hw-shadow-groove); }
body.hw-ui .hw-key {
  border: none; border-radius: var(--hw-r-key);
  background: var(--hw-key-grad); color: #E8C36B;
  font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: 1.2px; text-transform: uppercase;
  box-shadow: 0 2px 0 #17120f, 0 3px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out;
}
body.hw-ui .hw-key:hover { color: #F3D489; }
body.hw-ui .hw-key:active { transform: translateY(1px); box-shadow: 0 1px 0 #17120f, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui .hw-key.lit {
  background: var(--hw-key-lit-grad); color: #1A1614;
  box-shadow: 0 0 12px rgba(232, 195, 107, .35), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui .hw-check {
  width: 14px; height: 14px; border-radius: 3px; display: grid; place-items: center;
  background: var(--hw-well-grad); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7); color: transparent;
}
body.hw-ui .hw-check.on { background: var(--hw-key-lit-grad); color: #1A1614; box-shadow: 0 0 8px rgba(232, 195, 107, .45), 0 1px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5); }
body.hw-ui .hw-label {
  font: 600 8.5px 'IBM Plex Mono', monospace; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8F7F72; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
body.hw-ui .hw-tape {
  font: 600 9.5px 'IBM Plex Mono', monospace; color: #3a2c1c;
  background: var(--hw-tape-grad); padding: 3px 10px; border-radius: 2px;
  transform: rotate(-.8deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
body.hw-ui .hw-counter {
  display: inline-block; padding: 3px 12px; border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad); box-shadow: var(--hw-shadow-counter);
  font: 700 12px 'IBM Plex Mono', monospace; color: #F3D489;
}


/* ---- helpers present in markup at all times, visible only under hw-ui ---- */
.hw-only { display: none !important; }
body.hw-ui .hw-only { display: flex !important; }
.hw-screw, .hw-groove, .hw-jewel, .hw-needle, .hw-vu { display: none; }

/* ============================ APP HEADER ============================ */
/* Walnut bar */
body.hw-ui .brand-header {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(93deg, #4a3322 0 7px, #3d2a1b 7px 11px, #453020 11px 19px, #382516 19px 26px),
    #402c1d;
  border-bottom: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
  padding: 14px 22px;
}
/* Brand on a small brushed-metal plate */
body.hw-ui .brand-lock {
  padding: 8px 14px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #39302a, #241e19);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
/* Dial-glass nav (1b): dark glass well, tick ruler, warm glow + needle */
body.hw-ui nav.tabs {
  position: relative;
  height: 56px;
  align-items: flex-start;
  padding: 12px 18px 0;
  gap: 18px;
  border-radius: 7px;
  background:
    radial-gradient(140px 46px at var(--hw-glow-x, 50%) 50%, rgba(232, 195, 107, .14), transparent 70%),
    linear-gradient(180deg, #211812, #150e09);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .75), inset 0 -1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
body.hw-ui nav.tabs::after {   /* tick ruler along the bottom */
  content: '';
  position: absolute;
  bottom: 11px; left: 18px; right: 18px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #5a4a41 0 1px, transparent 1px 12px);
  pointer-events: none;
}
body.hw-ui nav.tabs .tab {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8F7F72;
  transition: color .15s ease-out;
}
body.hw-ui nav.tabs .tab:hover { color: #C9BDAF; background: none; }
body.hw-ui nav.tabs .tab.active {
  background: none;
  color: #F5F1E8;
  text-shadow: 0 0 12px rgba(232, 195, 107, .8);
}
body.hw-ui .hw-needle {   /* gold station needle — JS sets left; glow follows via --hw-glow-x */
  display: block;
  position: absolute;
  top: 7px; bottom: 7px;
  width: 2px;
  background: #E8C36B;
  box-shadow: 0 0 10px rgba(232, 195, 107, .9);
  transition: left .35s ease-out;
  pointer-events: none;
}
/* Power jewel + version label tape */
body.hw-ui .hw-jewel {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #4a3f36, #17120f 75%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8);
}
body.hw-ui .hw-jewel::after {
  content: '';
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #ffe9b0, #E8C36B 42%, #7a5a1e 82%);
  box-shadow: 0 0 14px rgba(232, 195, 107, .55);
}
body.hw-ui .version-pill {
  font: 600 9.5px 'IBM Plex Mono', monospace;
  color: #3a2c1c;
  background: var(--hw-tape-grad);
  border: none;
  padding: 3px 9px;
  border-radius: 2px;
  transform: rotate(-1.2deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
body.hw-ui .resume-chip {
  border: none;
  background: var(--hw-key-grad);
  color: #E8C36B;
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 1px;
  border-radius: var(--hw-r-key);
  box-shadow: 0 2px 0 #17120f, inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* ============================ DRILLS PAGE ============================ */
body.hw-ui #view-drill {
  background: radial-gradient(1200px 500px at 50% 0%, rgba(232, 195, 107, .045), transparent 60%), #1A1614;
}

/* ---- Page hero: amp faceplate (1a) ---- */
body.hw-ui .drill-hero {
  position: relative;
  border: none;
  border-radius: var(--hw-r-panel);
  padding: 26px 30px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, rgba(0, 0, 0, .02) 1px 2px, transparent 2px 4px),
    linear-gradient(180deg, #39302a, #2A231F 55%, #231d18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
body.hw-ui .drill-hero.amp-tex::before { display: none; }   /* the faceplate replaces the tolex grain */
/* slotted corner screws */
body.hw-ui .hw-screw {
  display: block;
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7a6a5c, #241e19);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .7), 0 1px 1px rgba(0, 0, 0, .6);
  z-index: 2;
}
body.hw-ui .hw-screw::after {
  content: '';
  position: absolute;
  left: 1.5px; right: 1.5px; top: 5px;
  height: 2px;
  background: #141010;
  border-radius: 1px;
  transform: rotate(var(--slot, -24deg));
}
body.hw-ui .hw-screw.hw-tl { top: 12px; left: 12px; --slot: -24deg; }
body.hw-ui .hw-screw.hw-tr { top: 12px; right: 12px; --slot: 52deg; }
body.hw-ui .hw-screw.hw-bl { bottom: 12px; left: 12px; --slot: 78deg; }
body.hw-ui .hw-screw.hw-br { bottom: 12px; right: 12px; --slot: -48deg; }

body.hw-ui .drill-hero-kicker {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #E8C36B;
  text-shadow: 0 0 10px rgba(232, 195, 107, .4);
}
body.hw-ui .drill-hero-title {
  font: 800 34px Sora, sans-serif;
  color: #F5F1E8;
  margin: 8px 0 10px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05);
}
body.hw-ui .drill-hero-sub {
  font: 400 14px/1.6 Mulish, sans-serif;
  color: #C9BDAF;
  max-width: 560px;
}
body.hw-ui .drill-hero-meta { color: #A39383; font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: .8px; }
body.hw-ui .drill-hero-meta b { color: #E8C36B; }
/* sound toggle → small backlit rocker */
body.hw-ui .toggle-pill {
  border: none;
  background: none;
  font: 600 12px 'IBM Plex Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A39383;
  gap: 8px;
}
body.hw-ui .toggle-pill:has(input:checked) { color: #E8C36B; }
body.hw-ui .toggle-pill input {
  display: inline-block;   /* main.css hides the checkbox for the flat pill; the rocker IS the switch here */
  flex: 0 0 auto;
  appearance: none;
  width: 32px; height: 18px;
  margin: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #0f0c0a, #1c1613);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 255, 255, .05);
  position: relative;
  cursor: pointer;
}
body.hw-ui .toggle-pill input::after {
  content: '';
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  width: 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #5a4a3a, #3a2f26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .5);
  transition: left .15s ease-out, background .15s ease-out;
}
body.hw-ui .toggle-pill input:checked::after {
  left: 17px;
  background: var(--hw-key-lit-grad);
  box-shadow: 0 0 8px rgba(232, 195, 107, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}
/* machined groove + hero action row (hw-only elements) */
body.hw-ui .hw-groove {
  display: block;
  height: 5px;
  border-radius: 3px;
  margin: 20px 0 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1) 55%, rgba(255, 255, 255, .06));
}
body.hw-ui .hw-hero-actions { align-items: center; gap: 18px; }
body.hw-ui .hw-session-lbl {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #A39383;
  margin-left: auto;
}
body.hw-ui .hw-session { display: flex; gap: 3px; align-items: flex-end; }
body.hw-ui .hw-led {
  width: 9px; height: 18px;
  border-radius: 2px;
  background: #241e19;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
}
body.hw-ui .hw-led.on {
  background: linear-gradient(180deg, #e8c36b, #c99b45);
  box-shadow: 0 0 8px rgba(232, 195, 107, .4);
}

/* ============================ BUTTONS & CONTROLS ============================ */
/* Backlit pushbuttons: secondary = unlit metal w/ gold legend, primary = lit */
body.hw-ui #view-drill .btn {
  border: none;
  border-radius: var(--hw-r-key);
  padding: 12px 22px;
  background: var(--hw-key-grad);
  color: #E8C36B;
  font: 600 11.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 3px 0 #17120f, 0 6px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out, filter .13s ease-out;
}
body.hw-ui #view-drill .btn:hover { color: #F3D489; background: var(--hw-key-grad); border: none; }
body.hw-ui #view-drill .btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #17120f, 0 3px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #view-drill .btn.primary {
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 24px rgba(232, 195, 107, .35), 0 3px 0 #8a6a2e, 0 6px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-drill .btn.primary:hover { color: #1A1614; filter: brightness(1.06); }
body.hw-ui #view-drill .btn.primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 24px rgba(232, 195, 107, .35), 0 1px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* In-card controls (2026-09-22, Robert's pro pass): the rule above
   out-specifies main.css's .dsc-actions size-down, so card CTAs rendered
   at hero scale with the full ledge shadow. Inside a card, every control
   sits on ONE 30px row height (buttons, selects, range inputs — pills at
   24px), presses are shallow, and no ambient glow — the card carries the
   depth. Control clusters pin to the card floor so rows align across a
   grid row. */
body.hw-ui #view-drill .drill-skill-card .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: .6px;
  border-radius: var(--hw-r-key);
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #view-drill .drill-skill-card .btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #17120f, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #view-drill .drill-skill-card .btn.primary {
  box-shadow: 0 0 10px rgba(232, 195, 107, .2), 0 2px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-drill .drill-skill-card .btn.primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(232, 195, 107, .2), 0 1px 0 #8a6a2e, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* Note Caller string mode: the String switch and the picked strings light up */
body.hw-ui #view-drill .drill-skill-card .btn.drill-strbtn.on {
  background: var(--hw-key-lit-grad); color: #1A1614;
  box-shadow: 0 0 10px rgba(232, 195, 107, .2), 0 2px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-drill .drill-strpick .btn { min-width: 34px; padding: 0 10px; }
/* one row height for the whole control set + floor-pinned clusters */
body.hw-ui #view-drill .drill-skill-card .dsc-actions { align-items: center; gap: 8px 10px; }
body.hw-ui #view-drill .drill-skill-card .drill-key-select,
body.hw-ui #view-drill .drill-skill-card .drill-range-in {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
body.hw-ui #view-drill .drill-skill-card .opt-pill { height: 28px; padding: 0 10px; font-size: 12px; }
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) {
  display: flex;
  flex-direction: column;
}
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) .dsc-name {
  margin-bottom: auto;
  padding-bottom: 14px;
}
/* A card's one line of description sits right under its name; the spare room goes below the line, so the
   buttons of every card in a row still line up along the bottom. */
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) .dsc-name:has(+ .dsc-sub) { margin-bottom: 8px; padding-bottom: 0; }
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) .dsc-sub { margin: 0 0 auto; padding-bottom: 14px; }
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) .dsc-actions,
body.hw-ui #view-drill .drill-skill-card:not(.drill-skill-card-wide) .drill-options { margin-top: 10px; }

/* option pills → preset step buttons */
body.hw-ui #view-drill .opt-pill {
  border: none;
  border-radius: var(--hw-r-key);
  padding: 6px 11px;
  background: var(--hw-key-dim-grad);
  color: #B3A594;   /* was #6b5c50 — unlit legends must still read (audit H2) */
  font: 600 12px 'IBM Plex Mono', monospace;
  letter-spacing: .4px;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .13s ease-out, box-shadow .13s ease-out;
}
body.hw-ui #view-drill .opt-pill:hover { color: #E6DCCD; border: none; }
body.hw-ui #view-drill .opt-pill.active {
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 14px rgba(232, 195, 107, .45), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-drill .opt-pill:active { transform: translateY(1px); }
/* selects → dark wells */
body.hw-ui #view-drill .drill-key-select,
body.hw-ui #view-drill .drill-range-in {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-well-grad);
  color: #C9BDAF;
  font: 600 12px 'IBM Plex Mono', monospace;
  padding: 8px 10px;
  box-shadow: var(--hw-shadow-well);
}

/* ============================ CATEGORY + CARDS ============================ */
body.hw-ui .drill-cat-head {
  border-left: none !important;
  padding-left: 0;
  gap: 12px;
}
body.hw-ui .drill-cat-letter {
  /* was a lit color slab — read as flat V2 furniture (Robert 2026-09-22).
     Now a machined well with the letter lit in the category color; the
     color rides in on --catc from the renderer's inline style. */
  width: 30px; height: 30px;
  border-radius: var(--hw-r-key);
  background: var(--hw-well-grad) !important;
  color: var(--catc, #E8C36B) !important;
  font: 700 13px 'IBM Plex Mono', monospace;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(255, 255, 255, .05);
  text-shadow: 0 0 9px currentColor;
}
body.hw-ui .drill-cat-name {
  font: 700 17px Sora, sans-serif;
  color: #F5F1E8;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04);
}
body.hw-ui .drill-cat-desc { font: 400 13px/1.5 Mulish, sans-serif; color: #A39383; margin-left: 42px; }
@media (max-width: 700px) { body.hw-ui .drill-cat-desc { margin-left: 0; } }
body.hw-ui .drill-cat-count {   /* cream label tape */
  font: 600 11px 'IBM Plex Mono', monospace;
  color: #3a2c1c;
  background: var(--hw-tape-grad);
  padding: 3px 10px;
  border-radius: 2px;
  transform: rotate(-.8deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
/* jump row + each heading's Top button: unlit keys, like the page's other buttons */
body.hw-ui .drill-jump-btn {
  border: none; border-radius: var(--hw-r-key); background: var(--hw-key-grad); color: #F5F1E8;
  box-shadow: 0 3px 0 #17120f, 0 6px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, box-shadow .13s ease-out;
}
body.hw-ui .drill-jump-btn .drill-cat-letter { width: 26px; height: 26px; }
body.hw-ui .drill-jump-btn:active, body.hw-ui .drill-cat-top:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #17120f, 0 3px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .drill-cat-top {
  border: none; border-radius: var(--hw-r-key); background: var(--hw-key-grad); color: #E8C36B;
  box-shadow: 0 2px 0 #17120f, 0 3px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
}
/* raised console panels (1c) */
body.hw-ui .drill-skill-card {
  border: none;
  border-radius: var(--hw-r-panel);
  padding: 22px 26px;
  background: var(--hw-panel-grad);
  /* shadow shallowed from the handoff's 14px/40px at Robert's direction
     (2026-09-22) — cards sit on the console, they don't hover over it */
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .dsc-id {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.6px;
  color: var(--cat, #E8C36B);
}
body.hw-ui .dsc-name {
  font: 700 19px Sora, sans-serif;
  color: #F5F1E8;
  margin: 6px 0;
}
body.hw-ui .dsc-sub { font: 400 12.5px/1.55 Mulish, sans-serif; color: #C9BDAF; }
body.hw-ui .dsc-stat {
  font: 600 11px 'IBM Plex Mono', monospace;
  color: #3a2c1c;
  background: var(--hw-tape-grad);
  padding: 3px 10px;
  border-radius: 2px;
  transform: rotate(-.8deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
  align-self: flex-start;
}
body.hw-ui .dsc-lesson-link { color: #A39383; background: none; border: none; font-size: 12px; letter-spacing: .5px; }
body.hw-ui .dsc-lesson-link:hover { color: #C9BDAF; }
/* the tries badge sits on its salmon chip over the board — keep dark ink
   on it (the runner-wide grey made it unreadable), and let the tapped-note
   text wrap instead of running off a phone-width board */
body.hw-ui .atom-board .auto-tries-left { color: #2a1410; max-width: calc(100% - 16px); }
/* legacy drill rows → recessed wells */
body.hw-ui .drill-item {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .drill-item-name { font: 700 15px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .drill-item-desc { font: 400 12.5px/1.55 Mulish, sans-serif; color: #C9BDAF; }
body.hw-ui .drill-item-stats { font: 600 11px 'IBM Plex Mono', monospace; color: #A39383; }
body.hw-ui .drill-item-stats .big { color: #E8C36B; text-shadow: 0 0 10px rgba(232, 195, 107, .35); }
/* VU meter (cream face) — rendered inline, shown only here */
body.hw-ui .hw-vu {
  display: block;
  padding: 6px;
  border-radius: var(--hw-r-well);
  background: linear-gradient(180deg, #17120f, #241d17);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7);
}

/* ============================ STEP STRIP (Find the 3rds) ============================ */
body.hw-ui .ft-strip { display: flex; gap: 10px; border: none; background: none; }
body.hw-ui .ft-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-radius: var(--hw-r-well);
  border: none;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-counter);
}
body.hw-ui .ft-tab.cur {
  background:
    radial-gradient(80px 40px at 50% 0%, rgba(232, 195, 107, .12), transparent 70%),
    var(--hw-well-grad);
}
body.hw-ui .ft-pick {
  -webkit-mask: none; mask: none;   /* the flat design's guitar-pick mask → square take-counter button */
  padding-bottom: 0;
  width: 34px; height: 28px;
  border-radius: var(--hw-r-key);
  display: grid;
  place-items: center;
  font: 600 12px 'IBM Plex Mono', monospace;
  background: var(--hw-key-dim-grad);
  color: #A39383;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .ft-tab.done .ft-pick {
  background: linear-gradient(180deg, #8A6D3A, #5d4622);
  color: #f3e6c4;
  box-shadow: 0 2px 0 #2e2008, inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.hw-ui .ft-tab.cur .ft-pick {
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 18px rgba(232, 195, 107, .5), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui .ft-tab-l {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #A39383;
}
body.hw-ui .ft-tab.done .ft-tab-l { color: #C9BDAF; }
body.hw-ui .ft-tab.cur .ft-tab-l { color: #E8C36B; }

/* small screens (designer item #8, 2026-09-23): the dial becomes a BOTTOM
   CHANNEL STRIP — same glass well, needle and station glow, walnut cabinet
   rim, fixed in thumb reach. Tabs scroll horizontally; the needle JS
   auto-centers the active station. The tick ruler is desktop-only (an
   absolute ruler can't span a scrolled strip). */
@media (max-width: 900px) {
  body.hw-ui { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  body.hw-ui .brand-header { padding: 12px 16px; }
  body.hw-ui nav.tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 500;
    height: 52px;
    align-items: center;
    padding: 0 16px;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow:
      inset 0 3px 10px rgba(0, 0, 0, .75), inset 0 -1px 0 rgba(255, 255, 255, .05),
      0 0 0 3px #402c1d, 0 1px 0 4px rgba(0, 0, 0, .55), 0 12px 30px rgba(0, 0, 0, .6);
  }
  body.hw-ui nav.tabs::-webkit-scrollbar { display: none; }
  body.hw-ui nav.tabs::after { display: none; }
  /* The strip sits inside the header's right side, which is a layer of its own
     (z-index 1, to ride on the faceplate), so the strip's 500 never counted
     against the page: the finish row, Show edits and a card's colored edge were
     drawn over the tabs while scrolling and took their taps (2026-11-20). The
     header's right side now carries the layer the tabs are meant to have
     (studio.css: above the drawing layers, below the windows). A lesson's
     bottom bar covered the strip before and still does. */
  body.hw-ui .brand-header > .brand-right { z-index: 200; }
  body.hw-ui .view-learn .lessonbar { z-index: 210; }
  /* main.css gives the phone's tab row width: 100%, which beat right: 10px and
     pushed the strip's right end 10px off the screen. */
  body.hw-ui nav.tabs { width: auto; }
  body.hw-ui nav.tabs .tab { flex: 0 0 auto; padding: 14px 0; }
  body.hw-ui .hw-needle { top: 5px; bottom: 5px; }
}

/* iPhone Safari, upright: once the page has scrolled, Safari's own bars slide away, and a tap near the bottom
   edge then brings them back and the page gets nothing. The strip sat in that zone, so every tab took two taps
   (Robert 2026-11-23). While Safari's bars are away (100dvh is then taller than 100svh) the strip rides 48px
   higher, clear of the zone, on a plain base that runs down to the edge. With the bars showing, the difference
   is zero and the strip sits where it always did. An iPad's bars never slide away, so nothing changes there.
   -webkit-touch-callout is how a stylesheet asks "is this an iPhone or iPad". */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) and (orientation: portrait) {
    body.hw-ui { --tab-lift: min(48px, calc(100dvh - 100svh)); padding-bottom: calc(74px + var(--tab-lift) + env(safe-area-inset-bottom, 0px)); }
    body.hw-ui nav.tabs { bottom: calc(10px + var(--tab-lift) + env(safe-area-inset-bottom, 0px)); }
    /* The base belongs to the header's right side, so it goes wherever the strip goes (Full, a round, the Builder). */
    body.hw-ui .brand-header > .brand-right::after {
      content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 499; pointer-events: none;
      height: calc(var(--tab-lift) * 1.75 + env(safe-area-inset-bottom, 0px));
      background: linear-gradient(180deg, rgba(26, 22, 20, 0), #1A1614 12px);
    }
  }
}

/* ============================================================================
   HANDOFF 2 (2026-08-30) — Map screen, chord channels, SHOW tray, receiver
   header (#3b/#4a/#4b/#5b/#6a). Same scope rule: body.hw-ui only.
   ========================================================================= */

/* ---- Header refresh (3b): engraved brand on the receiver faceplate ---- */
body.hw-ui .brand-header { position: relative; padding: 24px 32px; }
body.hw-ui .brand-header::before {   /* the faceplate inside the walnut cabinet */
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #3f362c, #2e2720 60%, #272019);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .5);
}
body.hw-ui .brand-header > * { position: relative; z-index: 1; }
/* ...except the corner screws, which the rule above was pulling into the flow
   (Robert 2026-09-30: "four screws out of place"). */
body.hw-ui .brand-header > .hw-screw { position: absolute; z-index: 2; }
body.hw-ui .brand-lock {   /* no more separate plate — engraved straight in */
  background: none;
  box-shadow: none;
  padding: 0;
}
/* The slogan under the wordmark is gone (Robert 2026-11-20), so the lockup is
   one line. Bottom-aligned (main.css) it sat low on the faceplate beside the
   taller dial; centre it on the plate. Below 701px main.css stacks the header. */
@media (min-width: 701px) { body.hw-ui .brand-header { align-items: center; } }
/* ...and the one-line wordmark is shorter than the board art behind it (60px,
   48px on a phone), so where the header wraps the art poked out over the top
   edge of the plate. The lockup now keeps the art's height for itself. */
body.hw-ui .brand { display: flex; }
body.hw-ui .brand-lock { display: inline-flex; align-items: center; min-height: 56px; }
@media (max-width: 900px) { body.hw-ui .brand-lock { min-height: 40px; } }
@media (max-width: 700px) { body.hw-ui .brand-lock { min-height: 28px; } }
body.hw-ui .brand-text h1 {
  color: #d9cbb4;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08);
}
body.hw-ui .hw-screw.hw-s7 { width: 7px; height: 7px; }
body.hw-ui .hw-screw.hw-s7::after { left: 1px; right: 1px; top: 2.5px; height: 1.5px; }
body.hw-ui .hw-jewel { position: relative; }
/* The engraved "SIGNAL" legend that sat left of the jewel was removed
   2026-10-04: it was pure radio-receiver set dressing (it labelled nothing in
   the app) and the tab selector half-covered it at desktop widths. The jewel
   lamp itself stays as a decorative pilot light. */

/* ---- Shared hardware parts for the Map ---- */
/* receiver-metal raised panel. NOTE (2026-09-22, Robert): the handoff's
   faceplate gradient (#3f362c top — fine as a short band inside the walnut
   header cabinet) read washed-out stretched over the full-width key bar and
   the 500px-tall dock. Darkened into the console family, texture kept —
   pending designer ratification. */
body.hw-ui .key-bar,
body.hw-ui .fretboard-dock {
  border: none;
  border-radius: var(--hw-r-panel);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2E2620, #231D18 60%, #1F1914);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .key-bar.amp-tex::before, body.hw-ui .fretboard-dock.amp-tex::before { display: none; }
/* engraved section labels */
body.hw-ui .key-bar-label, body.hw-ui .ctrl-label, body.hw-ui .fdh-lbl {
  font: 600 7.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8F7F72;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
/* groove between key-bar groups */
body.hw-ui .key-bar-group + .key-bar-group { position: relative; padding-left: 19px; }
body.hw-ui .key-bar-group + .key-bar-group::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1) 55%, rgba(255, 255, 255, .06));
}
/* recessed select / readout wells */
body.hw-ui .key-select, body.hw-ui .prog-select, body.hw-ui .ctrl-select,
body.hw-ui .chord-card .cc-note, body.hw-ui .chord-card .cc-deg,
body.hw-ui .label-dd-trigger, body.hw-ui .band-select {
  border: none;
  border-radius: 5px;
  background: var(--hw-well-grad);
  color: #C9BDAF;
  font: 600 9px 'IBM Plex Mono', monospace;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65);
}
body.hw-ui .chord-card .cc-note-disp { font: 700 14px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .label-dd-trigger .ldd-val, body.hw-ui .label-dd-trigger .ldd-caret { color: #E8C36B; }
/* the universal unlit key (map buttons) — excludes string radios + board svg */
body.hw-ui .key-bar button:not(.quality-btn):not(.diatonic-chip),
body.hw-ui .chord-card button,
body.hw-ui .fretboard-dock .fretboard-dock-head button,
body.hw-ui .fretboard-dock .fdh-group button,
body.hw-ui #finishSeg button {
  border: none;
  border-radius: 4px;
  background: var(--hw-key-dim-grad);
  color: #8F7F72;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out, filter .13s ease-out;
}
body.hw-ui .key-bar button:hover, body.hw-ui .chord-card button:hover,
body.hw-ui .fretboard-dock button:hover { color: #C9BDAF; }
body.hw-ui .chord-card button:active, body.hw-ui .key-bar button:active,
body.hw-ui .fretboard-dock button:active { transform: translateY(1px); box-shadow: 0 1px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06); }
/* lit-gold single-selection keys */
body.hw-ui .quality-btn { border: none; border-radius: 4px; background: var(--hw-key-dim-grad); color: #6b5c50; font: 600 8.5px 'IBM Plex Mono', monospace; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06); }
body.hw-ui .quality-btn.selected,
body.hw-ui .display-mode-btn.selected, body.hw-ui .display-mode-btn.on,
body.hw-ui #finishSeg button.on,
body.hw-ui .ffb-seg button.on,
body.hw-ui .fdh-group button.on,
body.hw-ui .fretboard-dock button.active,
body.hw-ui .key-retain-btn.on,
body.hw-ui .triad-chip.on, body.hw-ui .triad-chip.selected {
  background: var(--hw-key-lit-grad) !important;
  color: #1A1614 !important;
  box-shadow: 0 0 10px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
/* key trays (segmented controls sit in a recessed strip) */
body.hw-ui .quality-toggle, body.hw-ui .display-mode, body.hw-ui .ffb-seg, body.hw-ui #finishSeg {
  border: none;
  border-radius: 6px;
  padding: 3px 4px;
  gap: 3px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-counter);
}
/* diatonic chips: two-line 42px keys; in-use lights in the chip's color */
body.hw-ui .diatonic-chip {
  border: none;
  border-radius: 5px;
  min-width: 42px;
  background: var(--hw-key-dim-grad);
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .diatonic-chip .roman { font: 600 10.5px 'IBM Plex Mono', monospace; color: #8F7F72; }
body.hw-ui .diatonic-chip .chord-label { font: 600 7px 'IBM Plex Mono', monospace; color: #6b5c50; }
body.hw-ui .diatonic-chip:hover { filter: brightness(1.15); }
body.hw-ui .diatonic-chip.in-use {
  background: linear-gradient(180deg, color-mix(in srgb, var(--chip-border, #E8C36B) 72%, #fff 24%), var(--chip-border, #E8C36B));
  box-shadow: 0 0 12px color-mix(in srgb, var(--chip-border, #E8C36B) 40%, transparent), 0 2px 0 color-mix(in srgb, var(--chip-border, #E8C36B) 42%, #000), inset 0 1px 0 rgba(255, 255, 255, .4);
}
body.hw-ui .diatonic-chip.in-use .roman { color: var(--chip-fill-ink, #1A1614); }
body.hw-ui .diatonic-chip.in-use .chord-label { color: var(--chip-fill-ink, #1A1614); opacity: .7; }

/* ---- Chord cards: console channel modules ---- */
body.hw-ui .chord-card {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .chord-card.focused {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--card-fill, #E8C36B) 35%, transparent),
    0 0 20px color-mix(in srgb, var(--card-fill, #E8C36B) 12%, transparent),
    var(--hw-shadow-panel);
}
/* unfocused cards dim when any card is focused (5b) */
body.hw-ui .chord-cards-row:has(.chord-card.focused) .chord-card:not(.focused):not(.empty) { opacity: .75; }
/* on/off jewel */
body.hw-ui .cc-ring {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 40% 32%, #4a3f36, #17120f 75%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8);
  display: grid;
  place-items: center;
}
body.hw-ui .cc-ring::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #241e19, #17120f);
}
body.hw-ui .cc-ring.on::after {
  background: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--card-fill, #E8C36B) 55%, #fff 45%), var(--card-fill, #E8C36B) 45%, color-mix(in srgb, var(--card-fill, #E8C36B) 45%, #000) 85%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--card-fill, #E8C36B) 60%, transparent);
}
/* FOCUS latch lights in the card's color */
body.hw-ui .focus-btn.focused {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-fill, #E8C36B) 72%, #fff 24%), var(--card-fill, #E8C36B)) !important;
  color: #1A1614 !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--card-fill, #E8C36B) 45%, transparent), 0 2px 0 color-mix(in srgb, var(--card-fill, #E8C36B) 42%, #000), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
/* latch-square checkboxes (6a pattern) — .mini-toggle button + .check */
body.hw-ui .mini-toggle {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font: 600 7.5px 'IBM Plex Mono', monospace !important;
  letter-spacing: .5px;
  color: #8F7F72;
  gap: 5px;
}
body.hw-ui .mini-toggle .check {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: var(--hw-well-grad);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .05);
  color: transparent;
  font: 700 9px 'IBM Plex Mono', monospace;
}
body.hw-ui .mini-toggle.on { color: #E8C36B; }
body.hw-ui .mini-toggle.on .check {
  background: var(--hw-key-lit-grad);
  box-shadow: 0 0 8px rgba(232, 195, 107, .45), 0 1px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #1A1614;
}
/* empty slots: unpopulated recessed bays, not raised panels */
body.hw-ui .chord-card.empty {
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
/* collapsed summary (5b): engraved readout strip in a recessed well */
body.hw-ui .chord-card.cc-collapsed .cc-summ {
  border: none;
  border-radius: 6px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-counter);
  font: 600 8px 'IBM Plex Mono', monospace;
  letter-spacing: .5px;
  color: #C9BDAF;
}

/* ---- SHOW dropdown as a hardware tray (4b) ---- */
body.hw-ui .label-dd-menu {
  border: none;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #211b17, #191410);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .65), inset 0 1px 4px rgba(0, 0, 0, .5);
}
body.hw-ui .ldd-sec-label {
  font: 600 7px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8F7F72;
}
body.hw-ui .ldd-deg, body.hw-ui .ldd-str {
  border: none;
  border-radius: 5px;
  min-width: 34px;
  min-height: 28px;
  background: var(--hw-key-dim-grad);
  color: #6b5c50;
  font: 600 10px 'IBM Plex Mono', monospace;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .ldd-deg:hover, body.hw-ui .ldd-str:hover { color: #C9BDAF; }
body.hw-ui .ldd-deg { --dk: #E8C36B; }
body.hw-ui .ldd-deg[data-deg="R"] { --dk: #EC6A43; }
body.hw-ui .ldd-deg[data-deg="3"], body.hw-ui .ldd-deg[data-deg="♭3"], body.hw-ui .ldd-deg[data-deg="b3"] { --dk: #4FA0EC; }
body.hw-ui .ldd-deg[data-deg="5"] { --dk: #E8C36B; }
body.hw-ui .ldd-deg[data-deg="7"], body.hw-ui .ldd-deg[data-deg="♭7"], body.hw-ui .ldd-deg[data-deg="b7"] { --dk: #C56BD0; }
body.hw-ui .ldd-deg.on, body.hw-ui .ldd-str.on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--dk, #E8C36B) 72%, #fff 24%), var(--dk, #E8C36B));
  color: #1A1614;
  box-shadow: 0 0 10px color-mix(in srgb, var(--dk, #E8C36B) 45%, transparent), 0 2px 0 color-mix(in srgb, var(--dk, #E8C36B) 42%, #000), inset 0 1px 0 rgba(255, 255, 255, .4);
}
body.hw-ui .ldd-str { --dk: #E8C36B; }
body.hw-ui .ldd-presets button { font-size: 7.5px; letter-spacing: .5px; }

/* ---- Board panel head + finish row ---- */
body.hw-ui .fretboard-context {
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #211812, #150e09);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .75);
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E8C36B;
  text-shadow: 0 0 10px rgba(232, 195, 107, .5);
}
body.hw-ui .fretboard-context strong { color: inherit; }
/* disabled dock modes: unlit at 45% text (designer note) */
body.hw-ui .fretboard-dock button.na, body.hw-ui .fretboard-dock button:disabled { color: rgba(143, 127, 114, .45); }
/* the paper tint swatch keeps its native look */
body.hw-ui .paper-color-pick { border-radius: 4px; }

/* card quality pills: MAJ/MIN/DIM light in the CARD's color when selected */
body.hw-ui .chord-card .quality-pill {
  font-size: 8px;
  letter-spacing: .5px;
}
body.hw-ui .chord-card .quality-pill.selected {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-fill, #E8C36B) 72%, #fff 24%), var(--card-fill, #E8C36B)) !important;
  color: #1A1614 !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--card-fill, #E8C36B) 40%, transparent), 0 2px 0 color-mix(in srgb, var(--card-fill, #E8C36B) 42%, #000), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
/* chord chips over the board (4a): focused = lit key in the chord's color,
   unfocused = unlit key with the chord's color as legend */
body.hw-ui .ci-chord {
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  background: var(--hw-key-dim-grad);
  font: 700 14px 'IBM Plex Mono', monospace;   /* large like the flat design — Robert 2026-08-30 */
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .ci-chord .ci-roman { font-size: 11px; }
/* chord names keep their case ("Gm", not "GM") — beats the dock-wide
   uppercase key rule above on specificity */
body.hw-ui .fretboard-dock .fretboard-dock-head .ci-chord,
body.hw-ui .fretboard-dock .fretboard-dock-head .ci-chord .ci-roman { text-transform: none; }
body.hw-ui .ci-chord.focused {
  /* lit key in the chord's own color: --ci-fill (the raw card colour, set
     inline) as the base coat, a shine gradient over it — no color-mix needed.
     The text is --ci-ink, picked by contrast in JS (light on a black card
     colour, dark on a light one). */
  background-color: var(--ci-fill, currentColor) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .18)) !important;
  box-shadow: 0 0 12px currentColor, 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
body.hw-ui .ci-chord.focused, body.hw-ui .ci-chord.focused .ci-roman { -webkit-text-fill-color: var(--ci-ink, #1A1614); }

/* ============================================================================
   DASHBOARD RACK (2026-09-22, Robert's directive: carry the hardware
   direction across the app, Dashboard first). The dashboard is the studio
   rack: a recessed readout rail, the amp-faceplate hero, weak spots as
   channel strips, the progress bay with a counter window and lamp LEDs.
   CSS-only pass over the existing dashv2 markup; same kit values as 1d.
   ========================================================================= */

/* readout rail */
body.hw-ui .dashv2-strip {
  align-items: center;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--hw-groove-grad);
  box-shadow: var(--hw-shadow-well);
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #C9BDAF;
}
body.hw-ui .ds-flame { font: 700 11px 'IBM Plex Mono', monospace; letter-spacing: 1.2px; color: #F3D489; }
body.hw-ui .ds-date { color: #8F7F72; }

/* hero: amp faceplate, same family as the Drills hero */
body.hw-ui .dashv2-hero {
  border: none;
  border-radius: var(--hw-r-panel);
  padding: 26px 30px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, rgba(0, 0, 0, .02) 1px 2px, transparent 2px 4px),
    linear-gradient(180deg, #39302a, #2A231F 55%, #231d18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
body.hw-ui .dashv2-hero.amp-tex::before { display: none; }
body.hw-ui .dh-k { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 1.8px; color: #E8C36B; }
body.hw-ui .dashv2-hero h2 { font-family: Sora, sans-serif; font-weight: 700; font-size: 24px; color: #F5F1E8; }
body.hw-ui .dashv2-hero p { color: #C9BDAF; }
body.hw-ui .dh-go {
  border-radius: var(--hw-r-key);
  padding: 12px 22px;
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  font: 600 12.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 3px 0 #8a6a2e, 0 5px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .13s ease-out, box-shadow .13s ease-out, filter .13s ease-out;
}
body.hw-ui .dh-go:hover { background: var(--hw-key-lit-grad); filter: brightness(1.06); }
body.hw-ui .dh-go:active {
  transform: translateY(2px);
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 1px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui .dh-alts { color: #A39383; font-size: 13px; }
body.hw-ui .dh-alts a { color: #C9BDAF; }

/* weak spots: recessed channel strips on a console panel */
body.hw-ui .dashv2-weak {
  border: none;
  border-radius: var(--hw-r-panel);
  padding: 20px 24px;
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .dashv2-wrow {
  border: none;
  border-radius: 8px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
  transition: box-shadow .13s ease-out;
}
body.hw-ui .dashv2-wrow:hover {
  transform: none;
  box-shadow: var(--hw-shadow-well), 0 0 0 1px rgba(232, 195, 107, .25);
}
/* the finding's icon becomes an indicator lamp in a machined bezel;
   its color still comes from the acc-* class (locked palette) */
body.hw-ui .dw-ico {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 40% 32%, #241e19, #14100d);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 13px;
  text-shadow: 0 0 8px currentColor;
}
body.hw-ui .dw-what b { color: #F5F1E8; font-size: 13.5px; }
body.hw-ui .dw-what span { color: #A39383; }
body.hw-ui .dw-fix {
  font: 600 12px 'IBM Plex Mono', monospace;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #E8C36B;
  padding: 7px 12px;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-grad);
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* progress bay */
body.hw-ui .dashv2-prog {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .dp-t {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  color: #8F7F72;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
body.hw-ui .dp-sum { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .8px; color: #C9BDAF; }
body.hw-ui .dt-t {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #A39383;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
/* the solid-skills count reads out of a counter window */
body.hw-ui .dt-big {
  display: inline-block;
  padding: 4px 14px;
  margin-top: 6px;
  border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad);
  box-shadow: var(--hw-shadow-counter);
  font: 700 22px 'IBM Plex Mono', monospace;
  color: #F3D489;
}
body.hw-ui .dt-big span { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 1px; color: #8F7F72; }
body.hw-ui .dt-sub { color: #8F7F72; }
/* practice-day lamps */
body.hw-ui .dashv2-dots i {
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 40% 32%, #2a231d, #14100d);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .75);
}
body.hw-ui .dashv2-dots i.on {
  background: radial-gradient(circle at 40% 32%, #ffe9b0, #E8C36B 45%, #8a6a2e 90%);
  box-shadow: 0 0 8px rgba(232, 195, 107, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}
/* course meters: grooves with the section's own fill color */
body.hw-ui .dm-tag, body.hw-ui .dm-n { color: #8F7F72; }
body.hw-ui .dm-bar {
  height: 6px;
  border-radius: 3px;
  background: #14100d;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7);
}

/* utility strip: machined groove panel, small keys */
body.hw-ui .progress-portability {
  border: none;
  border-radius: var(--hw-r-well);
  padding: 14px 18px;
  background: var(--hw-groove-grad);
  box-shadow: var(--hw-shadow-groove);
}
body.hw-ui .progress-portability .pp-note { color: #A39383; }
body.hw-ui .progress-portability button {
  border: none;
  border-radius: var(--hw-r-key);
  height: 32px;
  padding: 0 13px;
  background: var(--hw-key-grad);
  color: #E8C36B;
  font: 600 12px 'IBM Plex Mono', monospace;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .progress-portability button:hover { color: #F3D489; background: var(--hw-key-grad); }
body.hw-ui .progress-portability .pp-danger { color: #e07856; }

/* ============================================================================
   SKILL CHECK BENCH (2026-09-22, Robert's revamp order after the Dashboard).
   The certification bench: landing panels as console panels, category chips
   as recessed bays with a category lamp, the briefing note as a machined
   groove, and the launch buttons as backlit keys. CSS-only; the category
   color rides in on --catc like the Drills chips.
   ========================================================================= */
body.hw-ui #view-assess {
  background: radial-gradient(1200px 500px at 50% 0%, rgba(232, 195, 107, .045), transparent 60%), #1A1614;
}
body.hw-ui .assess-landing {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui #view-assess .assess-overview-title,
body.hw-ui #view-assess .assess-landing-title {
  font: 700 26px Sora, sans-serif;
  color: #F5F1E8;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05);
}
body.hw-ui .assess-landing-sub { color: #C9BDAF; }
body.hw-ui .ctt-kicker {
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #E8C36B;
  text-shadow: 0 0 10px rgba(232, 195, 107, .4);
}
/* category chips: recessed bays, colored lamp replaces the colored border */
body.hw-ui .assess-cat-chip {
  border: none !important;
  border-radius: 8px;
  padding: 12px 14px 12px 32px;
  position: relative;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .assess-cat-chip::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--catc, #E8C36B) 60%, #fff 30%), var(--catc, #E8C36B) 55%, color-mix(in srgb, var(--catc, #E8C36B) 45%, #000) 90%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--catc, #E8C36B) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
body.hw-ui #view-assess .assess-cat-chip-name { font: 600 12.5px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .assess-cat-chip-count { color: #8F7F72; }
/* briefing note: machined groove */
body.hw-ui .assess-landing-note {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-groove-grad);
  box-shadow: var(--hw-shadow-groove);
  color: #8F7F72;
}
body.hw-ui .assess-landing-note strong { color: #C9BDAF; }
body.hw-ui .assess-history-note { font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .8px; color: #8F7F72; }
/* launch keys (the hw button kit, scoped for this view) */
body.hw-ui #view-assess .btn {
  border: none;
  border-radius: var(--hw-r-key);
  padding: 10px 18px;
  background: var(--hw-key-grad);
  color: #E8C36B;
  font: 600 10.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #17120f, 0 3px 7px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out, filter .13s ease-out;
}
body.hw-ui #view-assess .btn:hover { color: #F3D489; background: var(--hw-key-grad); border: none; }
body.hw-ui #view-assess .btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #17120f, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #view-assess .btn.primary {
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 3px 0 #8a6a2e, 0 5px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-assess .btn.primary:hover { color: #1A1614; filter: brightness(1.06); }
body.hw-ui #view-assess .btn.primary:active {
  transform: translateY(2px);
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 1px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #view-assess .btn.primary.big { padding: 13px 24px; font-size: 11.5px; letter-spacing: 1.5px; }
/* self-notes fields (the runner's honest-grading inputs): recessed wells */
body.hw-ui .assess-notes-input {
  border: none;
  border-radius: 6px;
  background: var(--hw-well-grad);
  color: #C9BDAF;
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .assess-notes-input:focus { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65), 0 0 0 1px rgba(232, 195, 107, .35); outline: none; }

/* ---- Skill Check: runner + results (2026-09-22, pass 2) ---- */
/* screens and cards: console panels */
body.hw-ui .assess-atom-screen,
body.hw-ui .auto-runner,
body.hw-ui .atom-card,
body.hw-ui .auto-result {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
/* "12 of 30" position readout: counter window */
body.hw-ui .assess-atom-screen-pos,
body.hw-ui .assess-prog-num {
  font: 700 12px 'IBM Plex Mono', monospace;
  color: #F3D489;
  padding: 3px 10px;
  border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad);
  box-shadow: var(--hw-shadow-counter);
}
/* category banner on each atom screen: machined strip, letter lit */
body.hw-ui .assess-cat-banner {
  background: var(--hw-well-grad) !important;
  border-left: none !important;
  border-radius: 8px;
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .assess-cat-banner-letter { font: 700 13px 'IBM Plex Mono', monospace; text-shadow: 0 0 9px currentColor; }
body.hw-ui #view-assess .assess-cat-banner-name { font: 600 12.5px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .assess-cat-banner-id { font: 600 10px 'IBM Plex Mono', monospace; color: #8F7F72; }
body.hw-ui #view-assess .assess-atom-screen-title { font: 700 21px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .assess-atom-screen-tests { color: #8F7F72; }
/* overview: category headers reuse the machined-well chip; rows are channel strips */
body.hw-ui #view-assess .assess-cat-letter {
  border-radius: var(--hw-r-key);
  background: var(--hw-well-grad) !important;
  color: var(--catc, #E8C36B) !important;
  font: 700 12px 'IBM Plex Mono', monospace;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .05);
  text-shadow: 0 0 9px currentColor;
}
body.hw-ui #view-assess .assess-cat-title { font: 600 14px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .assess-cat-count { color: #8F7F72; }
body.hw-ui .assess-atom-row {
  border: none !important;
  border-radius: 8px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .assess-atom-row:hover { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 195, 107, .25); }
body.hw-ui #view-assess .assess-atom-label { color: #F5F1E8; }
body.hw-ui .assess-atom-tests { color: #8F7F72; }
body.hw-ui .assess-atom-go { color: #E8C36B; }
body.hw-ui .assess-atom-type { font: 600 8.5px 'IBM Plex Mono', monospace; letter-spacing: 1px; color: #8F7F72; }
/* band pips: LEDs */
body.hw-ui .assess-band-pip {
  background: radial-gradient(circle at 40% 32%, #2a231d, #14100d);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .75);
}
body.hw-ui .assess-band-pip.fill {
  background: radial-gradient(circle at 40% 32%, #ffe9b0, #E8C36B 45%, #8a6a2e 90%);
  box-shadow: 0 0 6px rgba(232, 195, 107, .5);
}
/* progress grooves */
body.hw-ui .assess-prog-bar, body.hw-ui .clock-progress-bar, body.hw-ui .drill-progress {
  border: none;
  border-radius: 4px;
  background: #14100d;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7);
}
body.hw-ui .assess-prog-fill, body.hw-ui .clock-progress-fill {
  background: var(--hw-key-lit-grad);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(232, 195, 107, .35);
}
/* self-scoring: criteria as recessed strips, grade buttons as latch keys */
body.hw-ui .assess-criterion {
  border: none;
  border-radius: 8px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .assess-criterion-title { color: #F5F1E8; }
body.hw-ui .assess-criterion-body { color: #C9BDAF; }
body.hw-ui .assess-score-label, body.hw-ui .assess-score-anchors, body.hw-ui .assess-score-anchors-legend { color: #8F7F72; }
body.hw-ui .score-btn {
  border: none;
  background: var(--hw-key-dim-grad);
  color: #8F7F72;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out;
}
body.hw-ui .score-btn:hover { border: none; color: #C9BDAF; }
body.hw-ui .score-btn:active { transform: translateY(1px); }
body.hw-ui .score-btn.selected {
  border: none;
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 14px rgba(232, 195, 107, .45), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* auto-test answer keys (also used by Drills practice embeds) */
body.hw-ui .auto-answer-btn {
  border: none;
  background: var(--hw-key-grad);
  color: #E8C36B;
  box-shadow: 0 3px 0 #17120f, 0 4px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .12s ease-out, box-shadow .12s ease-out, color .12s ease-out;
}
body.hw-ui .auto-answer-btn:hover:not(:disabled) { border: none; color: #F3D489; }
body.hw-ui .auto-answer-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #17120f, 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui .auto-answer-btn.correct {
  background: linear-gradient(180deg, #8ecba1, #5da377);
  color: #12100c;
  box-shadow: 0 0 14px rgba(107, 181, 131, .45), 0 3px 0 #3c6b4e, inset 0 1px 0 rgba(255, 255, 255, .45);
}
body.hw-ui .auto-answer-btn.wrong {
  background: linear-gradient(180deg, #e3a58a, #c47a5a);
  color: #12100c;
  box-shadow: 0 0 14px rgba(214, 138, 108, .45), 0 3px 0 #8a5138, inset 0 1px 0 rgba(255, 255, 255, .45);
}
body.hw-ui .auto-question, body.hw-ui .auto-prompt-text { color: #F5F1E8; }
body.hw-ui .auto-prompt-sub, body.hw-ui .auto-hint-text, body.hw-ui .auto-tries-left { color: #8F7F72; }
/* result screen: score in a counter window, gauge as a meter */
body.hw-ui .res-score {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad);
  box-shadow: var(--hw-shadow-counter);
  font-family: 'IBM Plex Mono', monospace;
  color: #F3D489;
}
body.hw-ui .res-bandword { font-family: Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .res-bar {
  border: none;
  border-radius: 4px;
  background: #14100d;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7);
}
body.hw-ui .res-needle { background: #E8C36B; box-shadow: 0 0 8px rgba(232, 195, 107, .8); }
body.hw-ui .res-tick { background: rgba(255, 255, 255, .18); }
body.hw-ui .res-verdict, body.hw-ui .auto-result-breakdown-title, body.hw-ui .auto-result-history-title { color: #F5F1E8; }
body.hw-ui .res-encourage, body.hw-ui .auto-result-sub, body.hw-ui .auto-result-time-label { color: #8F7F72; }
body.hw-ui .auto-result-time-value { font-family: 'IBM Plex Mono', monospace; color: #F3D489; }
body.hw-ui .auto-result-history-table { color: #C9BDAF; }
/* results map: engraved heads, dots as lamps in a bezel */
body.hw-ui #view-assess .map-title { font: 700 24px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .map-sub, body.hw-ui .map-legend, body.hw-ui .map-dot-label { color: #8F7F72; }
body.hw-ui .map-cat-head {
  border-left: none !important;
  border-radius: 8px;
  padding-left: 12px;
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui #view-assess .map-cat-name { font: 600 13px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .map-cat-letter { font: 700 12px 'IBM Plex Mono', monospace; color: #E8C36B; text-shadow: 0 0 8px currentColor; }
body.hw-ui .map-dot {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 3px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .5);
}
body.hw-ui .map-dot.notcovered, body.hw-ui .map-dot.coming { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
body.hw-ui .map-dot.partial { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55), 0 0 6px -1px var(--pc); }
body.hw-ui .sc-map-page .map-dot-part { color: #A39383; }
body.hw-ui .map-diagnostics {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-groove-grad);
  box-shadow: var(--hw-shadow-groove);
}
body.hw-ui #view-assess .map-diag-title { font: 600 16px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .map-diag-item { color: #C9BDAF; }

/* ---- SKILL CHECK LAYOUT (2026-09-30, Robert: "it all blends together";
   model it on Drills). The hero is the Drills faceplate (.drill-hero, screws
   included); categories are raised console panels like the Drills cards;
   skill rows sit flat on the panel and only sink into a well on hover. ---- */
body.hw-ui .sc-panel,
body.hw-ui .sc-cat,
body.hw-ui .sc-map-page .map-cat {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .sc-panel-kicker {
  font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 2.2px;
  color: #E8C36B; text-shadow: 0 0 10px rgba(232, 195, 107, .4);
}
body.hw-ui #view-assess .sc-panel-title { font: 700 21px Sora, sans-serif; color: #F5F1E8; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7); }
body.hw-ui .sc-panel-sub, body.hw-ui .sc-facts { color: #C9BDAF; }
body.hw-ui .sc-hero .drill-hero-sub { max-width: 82ch; }
/* category letter: machined well, letter lit in the category colour (as Drills) */
body.hw-ui .sc-letter {
  border-radius: var(--hw-r-key);
  background: var(--hw-well-grad);
  color: var(--catc, #E8C36B);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(255, 255, 255, .05);
  text-shadow: 0 0 9px currentColor;
}
/* engraved dividers instead of hairlines */
body.hw-ui .sc-cat-head,
body.hw-ui .sc-map-page .map-cat-head {
  background: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .045);
}
/* Skills: each category panel opens with a header BAND (2026-10-10, Robert:
   "add some lightened fill or the tweed texture to each section header so it
   reads as the header"). The band is the header walnut's stripe pattern
   (.brand-header), lifted and nearly colourless, over a lightened plate —
   a strip of tweed on the console, not a second walnut bar. */
body.hw-ui .sc-cat-head {
  --hw-tweed-band:
    repeating-linear-gradient(93deg, rgba(255, 255, 255, .045) 0 7px, rgba(255, 255, 255, .012) 7px 11px, rgba(255, 255, 255, .035) 11px 19px, rgba(0, 0, 0, .06) 19px 26px),
    linear-gradient(180deg, #312922, #292119);
  background: var(--hw-tweed-band);
  border-radius: var(--hw-r-panel) var(--hw-r-panel) 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 0 rgba(255, 255, 255, .04);
}
/* ...and a PLATE on the band (2026-10-10, Robert: "a plate behind it, much like
   the page header has, where the plate leaves an outline of tweed; it makes the
   text pop and read better"). The page header's plate is a brushed receiver
   faceplate; this is a different piece of gear so the two don't read as copies —
   a satin-black pedal enclosure screwed onto the tweed: fine leather grain, a
   1px lit bevel along the top, a soft shadow inside the rim, a drop onto the
   tweed, and a screw dot in each corner. The letter, name, blurb and the
   "n of m scored" bar all sit on the plate; a few px of tweed show all around. */
body.hw-ui .sc-cat-head {
  --sc-plate-inset: 7px 10px;
  position: relative;
  min-height: 100px;
  padding: 16px 32px;
}
body.hw-ui .sc-cat-head > * { position: relative; z-index: 1; }
body.hw-ui .sc-cat-head::before,
body.hw-ui .sc-cat-head::after {
  content: '';
  position: absolute;
  inset: var(--sc-plate-inset);
  border-radius: 7px;
  pointer-events: none;
}
body.hw-ui .sc-cat-head::before {   /* the enclosure */
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 0 .55px, transparent 1.1px) 0 0 / 3px 3px,
    linear-gradient(180deg, #2a2420, #1d1814 60%, #1a1511);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),       /* bevel: lit top edge */
    inset 1px 0 0 rgba(255, 255, 255, .04),       /* bevel: faint lit left edge */
    inset 0 -1px 0 rgba(0, 0, 0, .7),             /* bevel: dark bottom edge */
    inset 0 0 0 1px rgba(0, 0, 0, .5),            /* the rim */
    inset 0 0 22px rgba(0, 0, 0, .35),            /* soft inner shadow */
    0 3px 7px rgba(0, 0, 0, .45),                 /* drop onto the tweed */
    0 1px 0 rgba(255, 255, 255, .035);            /* the tweed lip the light catches */
}
body.hw-ui .sc-cat-head::after {   /* four screw dots in the corners */
  --screw: radial-gradient(circle at 50% 42%, #6f6054 0 1.1px, #332b25 1.7px, rgba(0, 0, 0, .65) 2.3px, transparent 3px);
  background:
    var(--screw) 5px 5px / 8px 8px no-repeat,
    var(--screw) calc(100% - 5px) 5px / 8px 8px no-repeat,
    var(--screw) 5px calc(100% - 5px) / 8px 8px no-repeat,
    var(--screw) calc(100% - 5px) calc(100% - 5px) / 8px 8px no-repeat;
}
/* copy on the plate: the faint inks were 4.6:1 / 6.1:1 on the black enclosure —
   body ink (#C9BDAF) is 9.8:1 against it; the name and count stay as they are */
body.hw-ui .sc-cat-head .sc-cat-blurb,
body.hw-ui .sc-cat-head .sc-cat-prog-num { color: #C9BDAF; }
@media (max-width: 560px) {
  body.hw-ui .sc-cat-head { --sc-plate-inset: 5px 7px; min-height: 0; padding: 14px 20px; }
}
body.hw-ui .sc-cover { background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); border-radius: var(--hw-r-well); }
body.hw-ui .sc-cover-row { border-top: 1px solid rgba(0, 0, 0, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
body.hw-ui .sc-cover-row:first-child { border-top: 0; box-shadow: none; }
body.hw-ui #view-assess .sc-cat-name,
body.hw-ui #view-assess .sc-map-page .map-cat-name {
  font: 700 18px Sora, sans-serif; color: #F5F1E8;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04);
}
body.hw-ui #view-assess .sc-map-page .map-cat-name { font-size: 16px; }
body.hw-ui .sc-cat-blurb, body.hw-ui .sc-cover-blurb { color: #8F7F72; }
body.hw-ui .sc-cat-prog-num, body.hw-ui .sc-cover-count, body.hw-ui .map-cat-count { color: #A39383; }
body.hw-ui .sc-cat-prog-num b { color: #F3D489; }
body.hw-ui .sc-cat-prog-bar { background: #14100d; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7); }
body.hw-ui .sc-cat-prog-bar i { box-shadow: 0 0 8px color-mix(in srgb, var(--catc, #E8C36B) 55%, transparent); }
/* progress meter: counter window */
body.hw-ui .sc-meter-num {
  display: inline-block; padding: 8px 14px 6px; border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad); box-shadow: var(--hw-shadow-counter);
}
body.hw-ui .sc-meter-num b { color: #F3D489; text-shadow: 0 0 12px rgba(232, 195, 107, .45); }
body.hw-ui .sc-meter-num span { color: #A39383; }
body.hw-ui .sc-meter-lbl { color: #A39383; }
/* skill rows: flat on the panel, sink into a well on hover */
body.hw-ui .assess-atom-row.sc-skill { background: transparent; box-shadow: none; }
body.hw-ui .assess-atom-row.sc-skill:hover { background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .assess-atom-row.sc-skill:focus-visible { outline: 2px solid #E8C36B; outline-offset: 1px; }
body.hw-ui #view-assess .sc-skill .assess-atom-label { color: #F5F1E8; }
body.hw-ui #view-assess .sc-skill.is-done .assess-atom-label { color: #C9BDAF; }
body.hw-ui .sc-skill .assess-atom-tests { color: #8F7F72; }
body.hw-ui .sc-skill.is-done .sc-skill-icon svg { filter: drop-shadow(0 0 4px rgba(95, 174, 126, .55)); }
body.hw-ui .sc-skill.is-partial .sc-skill-icon svg { filter: drop-shadow(0 0 4px rgba(232, 195, 107, .45)); }
body.hw-ui .sc-skill.is-todo .sc-skill-icon circle { stroke: #5A4A41; }
body.hw-ui .sc-badge-band { color: #E7DCCB; background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .sc-badge-band i { box-shadow: 0 0 6px var(--lamp, #5FAE7E); }
body.hw-ui .sc-badge-part { color: #F3D489; background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .sc-badge-last { color: #A39383; background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
body.hw-ui .sc-skills-link { color: #F3D489; }
body.hw-ui .sc-quiet-btn { font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: 1px; text-transform: uppercase; color: #8F7F72; }
body.hw-ui .sc-quiet-btn:hover { color: #E85D4E; }
body.hw-ui .sc-lamp.on { background: radial-gradient(circle at 40% 32%, #b8f0c8, #5FAE7E 55%, #2f6a45 95%); }
body.hw-ui .sc-map-page .map-legend {
  border: none; border-radius: var(--hw-r-well);
  background: var(--hw-groove-grad); box-shadow: var(--hw-shadow-groove); color: #C9BDAF;
}
body.hw-ui .sc-map-page .map-dot-label { color: #A39383; }

/* ============================================================================
   SERVICE HATCHES (2026-09-23, designer items #6 + #2): the overlays that
   still wore the flat design — Welcome front doors, Plans, Beta gate, the
   preset library — become service-hatch panels: console panel + slotted
   corner screws (pure CSS), doors as raised modules, rows as wells, CTAs as
   backlit keys. Every var(--rule) hairline inside these scopes dies here.
   ========================================================================= */
/* the hatch itself */
body.hw-ui #welcome .wl-card,
body.hw-ui #plans .pl-card,
body.hw-ui #betaGate .bg-card,
body.hw-ui #presetLibPanel {
  position: relative;
  border: none;
  border-radius: var(--hw-r-panel);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, rgba(0, 0, 0, .02) 1px 2px, transparent 2px 4px),
    var(--hw-panel-grad);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
/* slotted corner screws, drawn in CSS (slot angle differs per corner) */
body.hw-ui #welcome .wl-card::before,
body.hw-ui #plans .pl-card::before,
body.hw-ui #betaGate .bg-card::before,
body.hw-ui #welcome .wl-card::after,
body.hw-ui #plans .pl-card::after,
body.hw-ui #betaGate .bg-card::after {
  content: '';
  position: absolute;
  top: 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    linear-gradient(-24deg, transparent 44%, #141010 44% 56%, transparent 56%),
    radial-gradient(circle at 35% 30%, #7a6a5c, #241e19);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .7), 0 1px 1px rgba(0, 0, 0, .6);
  pointer-events: none;
}
body.hw-ui #welcome .wl-card::before, body.hw-ui #plans .pl-card::before, body.hw-ui #betaGate .bg-card::before { left: 11px; }
body.hw-ui #welcome .wl-card::after, body.hw-ui #plans .pl-card::after, body.hw-ui #betaGate .bg-card::after {
  right: 11px;
  background:
    linear-gradient(52deg, transparent 44%, #141010 44% 56%, transparent 56%),
    radial-gradient(circle at 35% 30%, #7a6a5c, #241e19);
}
/* doors and steps: raised modules with a press, not floating cards */
body.hw-ui #welcome .wl-door,
body.hw-ui #welcome .wl-step {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-panel-grad);
  box-shadow: 0 2px 0 #17120f, 0 3px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .14s ease-out, transform .14s ease-out;
}
body.hw-ui #welcome .wl-door:hover,
body.hw-ui #welcome .wl-step:hover {
  transform: none;
  border: none;
  box-shadow: 0 2px 0 #17120f, 0 3px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(232, 195, 107, .3);
}
body.hw-ui #welcome .wl-door:active, body.hw-ui #welcome .wl-step:active { transform: translateY(1px); }
/* rows, columns and list items: recessed wells */
body.hw-ui #welcome .wl-score-row,
body.hw-ui #plans .pl-col,
body.hw-ui #welcome .wl-diag {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-well-grad);
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui #presetLibPanel .plib-item { border: none; border-radius: var(--hw-r-key); }
body.hw-ui #presetLibPanel .plib-item:hover { background: var(--hw-well-grad); }
/* primary CTAs: backlit keys (size kept, hardware materials) */
body.hw-ui #welcome .wl-cta,
body.hw-ui #plans .pl-buy,
body.hw-ui #betaGate button {
  border: none;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 3px 0 #8a6a2e, 0 5px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .14s ease-out, box-shadow .14s ease-out, filter .14s ease-out;
}
body.hw-ui #welcome .wl-cta:hover, body.hw-ui #plans .pl-buy:hover, body.hw-ui #betaGate button:hover {
  transform: none;
  filter: brightness(1.06);
  background: var(--hw-key-lit-grad);
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 3px 0 #8a6a2e, 0 5px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #welcome .wl-cta:active, body.hw-ui #plans .pl-buy:active, body.hw-ui #betaGate button:active {
  transform: translateY(2px);
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 1px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* secondary CTAs: unlit keys */
body.hw-ui #welcome .wl-cta2 {
  border: none;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-grad);
  color: #C9BDAF;
  box-shadow: 0 2px 0 #17120f, 0 3px 7px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #welcome .wl-cta2:hover { border: none; color: #F3D489; }
/* inputs: recessed wells with a gold focus ring */
body.hw-ui #betaGate input,
body.hw-ui #plans .pl-lic-input {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-well-grad);
  color: #C9BDAF;
  box-shadow: var(--hw-shadow-counter);
}
body.hw-ui #betaGate input:focus,
body.hw-ui #plans .pl-lic-input:focus {
  border: none;
  outline: none;
  box-shadow: var(--hw-shadow-counter), 0 0 0 1px rgba(232, 195, 107, .35);
}
/* badges: label tape */
body.hw-ui #plans .pl-badge, body.hw-ui #plans .pl-lic-badge {
  border: none;
  font: 600 9.5px 'IBM Plex Mono', monospace;
  color: #3a2c1c;
  background: var(--hw-tape-grad);
  border-radius: 2px;
  transform: rotate(-.8deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
/* engraved kickers on all hatches */
body.hw-ui #welcome .wl-kicker, body.hw-ui #plans .pl-kicker, body.hw-ui #betaGate .bg-kicker {
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 2.5px;
  color: #E8C36B;
  text-shadow: 0 0 10px rgba(232, 195, 107, .4);
}
body.hw-ui #welcome .wl-hatch, body.hw-ui #welcome .wl-link { color: #C9BDAF; }
body.hw-ui #welcome .wl-hatch:hover, body.hw-ui #welcome .wl-link:hover { color: #F3D489; }
/* preset library innards: engraved heads, readable items, ai-maps row in kit */
body.hw-ui #presetLibPanel .plib-cat-h { color: #E8C36B; text-shadow: 0 0 8px rgba(232, 195, 107, .3); }
body.hw-ui #presetLibPanel .plib-item b { color: #F5F1E8; }
body.hw-ui #presetLibPanel .plib-item { color: #8F7F72; }
body.hw-ui #presetLibPanel .plib-expl { color: #8F7F72; }
body.hw-ui #presetLibPanel input[type="text"], body.hw-ui #presetLibPanel textarea {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-well-grad);
  color: #C9BDAF;
  box-shadow: var(--hw-shadow-counter);
}
body.hw-ui #presetLibPanel input[type="text"]:focus, body.hw-ui #presetLibPanel textarea:focus {
  outline: none;
  box-shadow: var(--hw-shadow-counter), 0 0 0 1px rgba(232, 195, 107, .35);
}
body.hw-ui #presetLibPanel button:not(.plib-item) {
  border: none;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-grad);
  color: #E8C36B;
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui #presetLibPanel button:not(.plib-item):hover { color: #F3D489; }

/* ============================================================================
   MOTION + STATES (2026-09-23, designer items #5 + #7 — closing the list).
   Restrained physical motion: keys already press (.13s), toggles already
   slide (.15s), the needle already glides (.35s). Added here: lamps fade
   their glow in/out, latch keys ease their light, the SIGNAL jewel warms up
   on power-on, and the Map's blank-view toast becomes a machined plate.
   Everything honors prefers-reduced-motion.
   ========================================================================= */
/* lamps fade (gradient swaps can't tween, but the glow and legend can —
   which is what the eye reads as the lamp coming on) */
body.hw-ui .hw-led,
body.hw-ui .dashv2-dots i,
body.hw-ui .assess-band-pip,
body.hw-ui .mini-toggle .check,
body.hw-ui .hw-check,
body.hw-ui .cc-ring::after {
  transition: box-shadow .18s ease-out, color .18s ease-out;
}
body.hw-ui .quality-btn,
body.hw-ui .display-mode-btn,
body.hw-ui .diatonic-chip,
body.hw-ui .triad-chip,
body.hw-ui .key-retain-btn {
  transition: color .15s ease-out, box-shadow .18s ease-out, transform .13s ease-out;
}
/* power-on: the jewel pilot light warms up once per load */
@keyframes hw-jewel-warm {
  from { box-shadow: 0 0 0 rgba(232, 195, 107, 0); filter: brightness(.55); }
  to { box-shadow: 0 0 14px rgba(232, 195, 107, .55); filter: brightness(1); }
}
body.hw-ui .hw-jewel::after { animation: hw-jewel-warm 1.4s ease-out 1; }
/* blank-view toast: a machined plate with keys, not a flat card */
body.hw-ui .map-blank-toast {
  border: none;
  border-radius: var(--hw-r-well);
  background: var(--hw-panel-grad);
  color: #C9BDAF;
  box-shadow: 0 2px 0 #17120f, 0 8px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .map-blank-toast button {
  border: none;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-grad);
  color: #E8C36B;
  box-shadow: 0 2px 0 #17120f, inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .map-blank-toast .mbt-reset {
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  box-shadow: 0 0 10px rgba(232, 195, 107, .3), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* restraint switch */
@media (prefers-reduced-motion: reduce) {
  body.hw-ui *, body.hw-ui *::before, body.hw-ui *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================================
   DASHBOARD v3 (2026-09-30) — hardware skin for the revamped Dashboard:
   the "Your fretboard" centrepiece (a console panel with the neck in a
   recessed well, lamp legend, string keys, a machined popover plate), the
   this-week panel (amber day lamps + counter windows) and the lower panels.
   Markup: renderToday() in js/08-app.js + IFBNeck in js/practice-journal.js.
   Flat styles: DASHBOARD v3 block at the end of css/main.css. Tokens only.
   ========================================================================= */
body.hw-ui .dv3-panel,
body.hw-ui .dn-card {
  border: none;
  border-radius: var(--hw-r-panel);
  background: var(--hw-panel-grad);
  box-shadow: var(--hw-shadow-panel);
}
body.hw-ui .dv3-weak { padding: 18px 20px; }
body.hw-ui .dv3-k,
body.hw-ui .dn-kick,
body.hw-ui .dn-strings::before {
  font: 600 11px 'IBM Plex Mono', monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #A39383;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
body.hw-ui .dn-kick { color: #E8C36B; }
body.hw-ui .dv3-link {
  font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase;
  color: #E8C36B; padding: 7px 11px; border-radius: var(--hw-r-key); background: var(--hw-key-grad);
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .dv3-link:hover { text-decoration: none; color: #F3D489; }
body.hw-ui .dv3-empty { color: #C9BDAF; }
/* counts read out of counter windows */
body.hw-ui .dv3-count b,
body.hw-ui .dv3-ro b,
body.hw-ui .dn-score b {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--hw-r-well);
  background: var(--hw-counter-grad);
  box-shadow: var(--hw-shadow-counter);
  font: 700 22px 'IBM Plex Mono', monospace;
  color: #F3D489;
  line-height: 1.25;
}
body.hw-ui .dn-score b { font-size: 26px; color: #7fe0a8; text-shadow: 0 0 10px rgba(77, 191, 131, .35); }
body.hw-ui .dv3-ro { align-items: flex-start; gap: 6px; }
body.hw-ui .dv3-ro span, body.hw-ui .dv3-count span, body.hw-ui .dn-score span {
  font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 1px; text-transform: uppercase; color: #A39383;
}
/* rows sit in a recessed list well */
body.hw-ui .dv3-rows { padding: 4px 12px; border-radius: var(--hw-r-well); background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .dv3-row { border-top: 1px solid rgba(0, 0, 0, .45); box-shadow: 0 -1px 0 rgba(255, 255, 255, .03); }
body.hw-ui .dv3-row:first-child { border-top: 0; box-shadow: none; padding-top: 9px; }
body.hw-ui .dv3-row-main b { color: #F5F1E8; font-size: 13px; }
body.hw-ui .dv3-row-main span, body.hw-ui .dv3-row-when { color: #A39383; }
body.hw-ui .dv3-row-when { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
/* week lamps: amber practice-day lamps in bezels */
body.hw-ui .dv3-lamps { padding: 12px 10px 10px; border-radius: var(--hw-r-well); background: var(--hw-groove-grad); box-shadow: var(--hw-shadow-groove); }
body.hw-ui .dv3-lamp i {
  width: 14px; height: 14px;
  background: radial-gradient(circle at 40% 32%, #2a231d, #14100d);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .75);
  transition: box-shadow .18s ease-out;
}
body.hw-ui .dv3-lamp.on i {
  background: radial-gradient(circle at 40% 32%, #ffe9b0, #E8C36B 45%, #8a6a2e 90%);
  box-shadow: 0 0 8px rgba(232, 195, 107, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}
body.hw-ui .dv3-lamp em { font: 600 11px 'IBM Plex Mono', monospace; color: #A39383; }
body.hw-ui .dv3-lamp.today em { color: #F3D489; }
body.hw-ui .dv3-note { color: #C9BDAF; }
body.hw-ui .dv3-hero h2 { margin-top: 8px; }

/* ---- Your fretboard ---- */
body.hw-ui .dn-card { padding: 22px 24px 20px; }
body.hw-ui .dn-title h2 { font-family: Sora, sans-serif; font-weight: 700; color: #F5F1E8; }
body.hw-ui .dn-go {
  border-radius: var(--hw-r-key);
  padding: 12px 20px;
  background: var(--hw-key-lit-grad);
  color: #1A1614;
  font: 600 12.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 3px 0 #8a6a2e, 0 5px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .13s ease-out, box-shadow .13s ease-out, filter .13s ease-out;
}
body.hw-ui .dn-go:hover { background: var(--hw-key-lit-grad); filter: brightness(1.06); }
body.hw-ui .dn-go:active { transform: translateY(2px); box-shadow: 0 0 18px rgba(232, 195, 107, .28), 0 1px 0 #8a6a2e, 0 3px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
/* the meter is a groove with coloured fill */
body.hw-ui .dn-meter { height: 8px; border-radius: 4px; background: #14100d; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7); }
body.hw-ui .dn-meter i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
/* the neck sits in a recessed well */
body.hw-ui .dn-board { border: none; border-radius: var(--hw-r-well); background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); padding: 14px 12px 6px; }
/* legend: indicator lamps */
body.hw-ui .dn-legend { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase; color: #C9BDAF; }
body.hw-ui .dn-leg b { color: #F3D489; font-size: 12px; }
body.hw-ui .dn-leg i { width: 12px; height: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 7px currentColor; }
body.hw-ui .dn-leg.st-solid i { color: rgba(77, 191, 131, .6); }
body.hw-ui .dn-leg.st-getting i { color: rgba(227, 185, 74, .55); }
body.hw-ui .dn-leg.st-needs i { color: rgba(220, 91, 66, .6); }
body.hw-ui .dn-leg.st-none i { border: none; background: radial-gradient(circle at 40% 32%, #2a231d, #14100d); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .75); }
/* string keys */
body.hw-ui .dn-str {
  border: none; border-radius: var(--hw-r-key); background: var(--hw-key-grad); color: #E8C36B;
  font: 600 12px 'IBM Plex Mono', monospace; padding: 6px 10px 6px 9px;
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, color .13s ease-out;
}
body.hw-ui .dn-str:hover { color: #F3D489; }
body.hw-ui .dn-str:active { transform: translateY(1px); box-shadow: 0 1px 0 #17120f, inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui .dn-str-bar { background: #14100d; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
body.hw-ui .dn-basis { color: #C9BDAF; }
body.hw-ui .dn-basis b { color: #F5F1E8; }
body.hw-ui .dn-tip { color: #A39383; }
/* popover: a machined plate */
body.hw-ui .dn-pop {
  border: none; border-radius: var(--hw-r-well);
  background: var(--hw-panel-grad);
  box-shadow: 0 2px 0 #17120f, 0 14px 36px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.hw-ui .dn-pop-x { border: none; border-radius: var(--hw-r-key); background: var(--hw-key-grad); color: #C9BDAF; box-shadow: 0 2px 0 #17120f, inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui .dn-pop-h b { color: #F5F1E8; }
body.hw-ui .dn-pop-h span { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase; color: #A39383; }
body.hw-ui .dn-pop-st { color: #C9BDAF; }
body.hw-ui .dn-pop-hist span { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase; color: #A39383; }
body.hw-ui .dn-pop-go {
  border-radius: var(--hw-r-key); background: var(--hw-key-lit-grad); color: #1A1614;
  font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 0 12px rgba(232, 195, 107, .25), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui .dn-pop-go:hover { background: var(--hw-key-lit-grad); filter: brightness(1.06); }
body.hw-ui .dn-pop-alt {
  border: none; border-radius: var(--hw-r-key); background: var(--hw-key-grad); color: #E8C36B;
  font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 2px 0 #17120f, 0 2px 5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
@media (max-width: 640px) {
  body.hw-ui .dn-card { padding: 16px 12px; }
  body.hw-ui .dn-board { padding: 8px 4px 2px; }
}

/* ============================================================================
   MAP REDESIGN v3 (2026-09-30, Robert-approved; spec
   docs/editor-package/map-redesign-spec-2026-09-30.md). The hardware skin is
   the default look, so every new/changed Map control is re-dressed here in
   the kit: grooves instead of hairlines, recessed wells, unlit keys that
   light gold. Type follows the spec's readability rules inside the kit —
   nothing you click is under 13px, and clickable legends are words in
   sentence case (Mulish); engraved mono caps stay only on the non-interactive
   group labels (10px, up from 7.5px).
   ========================================================================= */
body.hw-ui .key-bar-label, body.hw-ui .fdh-h, body.hw-ui .ctrl-label, body.hw-ui .fdh-lbl, body.hw-ui .ffb-label {
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: 1.6px;
}
/* ---- key bar ---- */
body.hw-ui .key-bar { padding: 16px 22px; }
body.hw-ui .kb-sec + .kb-sec { border-left: none; position: relative; padding-left: 22px; }
body.hw-ui .kb-sec + .kb-sec::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1) 55%, rgba(255, 255, 255, .06));
}
body.hw-ui .key-bar-group + .key-bar-group { padding-left: 22px; }
body.hw-ui .key-bar-group + .key-bar-group::before { top: 2px; bottom: 2px; }
body.hw-ui .kb-row-map { border-top: none; position: relative; padding-top: 14px; }
body.hw-ui .kb-row-map::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%, rgba(255, 255, 255, .05));
}
body.hw-ui .key-select, body.hw-ui .prog-select {
  border-radius: var(--hw-r-well);
  background-color: #17120f;
  background-image: linear-gradient(45deg, transparent 50%, #E8C36B 50%), linear-gradient(135deg, #E8C36B 50%, transparent 50%), var(--hw-well-grad);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px, 0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  color: #F5F1E8;
  box-shadow: var(--hw-shadow-well);
}
body.hw-ui .key-select { font: 700 22px Sora, sans-serif; }
body.hw-ui .prog-select { font: 600 13.5px Mulish, sans-serif; color: #E7DCCB; background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px, 0 0; }
body.hw-ui .quality-toggle { height: 38px; padding: 3px; border-radius: 7px; }
body.hw-ui .quality-btn { font: 600 13.5px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #C9BDAF; padding: 0 16px; }
body.hw-ui .quality-btn:hover:not(.selected) { color: #F5F1E8; }
body.hw-ui .quality-btn.selected { font-weight: 700; }
/* Lock chords: a rocker switch with its word */
body.hw-ui .key-bar button.kb-switch.key-retain-btn,
body.hw-ui .key-bar button.kb-switch.key-retain-btn:hover {
  background: none !important; box-shadow: none !important; transform: none;
  font: 600 13px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #C9BDAF;
}
body.hw-ui .key-bar button.kb-switch.key-retain-btn:hover { color: #F5F1E8; }
body.hw-ui .kb-switch .sw { border: none; background: var(--hw-well-grad); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
body.hw-ui .kb-switch .sw .knob { top: 3px; left: 3px; background: linear-gradient(180deg, #9b9082, #5f5446); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
body.hw-ui .kb-switch.on .sw { background: var(--hw-key-lit-grad); box-shadow: 0 0 10px rgba(232, 195, 107, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
body.hw-ui .kb-switch.on .sw .knob { left: 19px; background: linear-gradient(180deg, #2a221c, #140f0c); }
body.hw-ui .kb-switch.on { color: #F5F1E8 !important; }
/* diatonic chips: two-line keys, the chord NAME big */
body.hw-ui .diatonic-chip { width: 62px; height: 52px; min-width: 0; border-radius: 6px; }
body.hw-ui .diatonic-chip .roman { font: 700 11.5px Sora, sans-serif; letter-spacing: .02em; color: #8F7F72; }
body.hw-ui .diatonic-chip .chord-label { font: 700 19px Sora, sans-serif; color: #C9BDAF; letter-spacing: 0; }
body.hw-ui .diatonic-chip:hover .chord-label { color: #F5F1E8; }
body.hw-ui .diatonic-chip.in-use .roman { color: var(--chip-fill-ink, #1A1614); opacity: .75; }
body.hw-ui .diatonic-chip.in-use .chord-label { color: var(--chip-fill-ink, #1A1614); opacity: 1; }
@media (max-width: 1399px) { body.hw-ui .diatonic-chip { width: 58px; } }
@media (max-width: 700px) { body.hw-ui .diatonic-chip { width: auto; height: 46px; } body.hw-ui .diatonic-chip .chord-label { font-size: 15px; } }
/* Map row: unlit metal keys with words + gold-legend icons */
body.hw-ui .key-bar button.kb-btn.key-retain-btn {
  height: 34px; padding: 0 14px 0 12px; border-radius: 5px;
  font: 600 13px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #C9BDAF;
  background: var(--hw-key-grad);
  box-shadow: 0 2px 0 #100c0a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .key-bar button.kb-btn.key-retain-btn::before { background: #E8C36B; }
body.hw-ui .key-bar button.kb-btn.key-retain-btn:hover { color: #F5F1E8; }
body.hw-ui .key-bar button.kb-btn.key-retain-btn.on,
body.hw-ui .key-bar button.kb-btn.pop-open {
  background: var(--hw-key-lit-grad) !important; color: #1A1614 !important;
  box-shadow: 0 0 10px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
body.hw-ui .key-bar button.kb-btn.key-retain-btn.on::before, body.hw-ui .key-bar button.kb-btn.pop-open::before { background: #1A1614; }
body.hw-ui .key-bar button.kb-clear.clear-btn {
  height: 34px; padding: 0 14px 0 12px; border: none; border-radius: 5px;
  font: 600 13px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #F08A7C;
  background: linear-gradient(180deg, #3f2621, #2a1a16);
  box-shadow: 0 2px 0 #100c0a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .key-bar button.kb-clear.clear-btn:hover { color: #FFB0A5; filter: brightness(1.12); }
body.hw-ui .kb-hint { color: #8F7F72; }
/* ---- chord cards: same console modules, readable legends ---- */
body.hw-ui .chord-card .cc-note-disp { font: inherit; }
body.hw-ui .chord-card .cc-name { font: 800 22px Sora, sans-serif; color: #F5F1E8; }
body.hw-ui .chord-card .cc-deg-disp { font: 600 14px Sora, sans-serif; color: #8F7F72; }
body.hw-ui .chord-card .cc-note, body.hw-ui .chord-card .cc-deg { background: none; box-shadow: none; }
body.hw-ui .chord-card .cc-idfield { border: none; border-radius: var(--hw-r-well); background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); }
body.hw-ui .chord-card .cc-offtag { border: none; background: var(--hw-tape-grad); color: #3a2c1c; border-radius: 2px; transform: rotate(-1deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
body.hw-ui .chord-card.disabled > *:not(.cc-head) { opacity: .55; }
body.hw-ui .chord-card .cc-ring:not(.on) { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8), 0 0 0 1.5px color-mix(in srgb, var(--card-fill, #E8C36B) 55%, transparent); }
body.hw-ui .chord-card button.quality-pill,
body.hw-ui .chord-card button.focus-btn,
body.hw-ui .chord-card button.display-mode-btn,
body.hw-ui .chord-card button.mini-toggle,
body.hw-ui .chord-card button.label-dd-trigger,
body.hw-ui .chord-card .cc-shape-slot button[data-action="toggle-shift"] {
  font-family: Mulish, sans-serif !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none !important;
}
body.hw-ui .chord-card button.quality-pill { font-size: 12.5px !important; color: #C9BDAF; height: 26px; padding: 0 11px; }
body.hw-ui .chord-card button.focus-btn { font-size: 12.5px !important; color: #C9BDAF; }
body.hw-ui .chord-card button.display-mode-btn { font-size: 13px !important; color: #C9BDAF; }
body.hw-ui .chord-card button.display-mode-btn.selected { font-weight: 700; }
body.hw-ui .chord-card button.mini-toggle { font-size: 12.5px !important; color: #C9BDAF; }
body.hw-ui .chord-card button.mini-toggle.on { color: #E8C36B; }
body.hw-ui .chord-card button.mini-toggle:disabled, body.hw-ui .chord-card button.triad-chip:disabled { opacity: .4; }
body.hw-ui .chord-card button.label-dd-trigger { font-size: 12.5px !important; font-weight: 700; color: #C9BDAF; height: 32px; }
body.hw-ui .label-dd-trigger .ldd-val { font: 500 12.5px 'IBM Plex Mono', monospace; color: #F3D489; text-transform: none; }
body.hw-ui .chord-card .ctrl-select { font: 600 13px Mulish, sans-serif; color: #E7DCCB; height: 30px; border-radius: 6px; }
body.hw-ui .chord-card button.triad-chip { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0; text-transform: none; color: #C9BDAF; height: 24px; }
body.hw-ui .chord-card .cc-posread { font: 600 11px 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; color: #F3D489; letter-spacing: 0; }
body.hw-ui .chord-card .cc-shape-slot button[data-action="toggle-shift"] { font-size: 12.5px !important; }
body.hw-ui .chord-card .triad-row-label { font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: 1.4px; color: #8F7F72; }
body.hw-ui .chord-card .nbr-seg { font: 600 12.5px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #C9BDAF; }
body.hw-ui .chord-card button.nbr-arrow { width: 24px; height: 22px; color: #C9BDAF; }
body.hw-ui .chord-card button.nbr-arrow.on { background: var(--hw-key-lit-grad); color: #1A1614; box-shadow: 0 0 8px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5); }
body.hw-ui .ldd-presets button, body.hw-ui .ldd-isolate, body.hw-ui .ldd-str-all { font: 600 12.5px Mulish, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
body.hw-ui .ldd-deg, body.hw-ui .ldd-str { font: 700 13px 'IBM Plex Mono', monospace; color: #C9BDAF; }
body.hw-ui .ldd-sec-label { font-size: 10px; }
body.hw-ui .chord-card.cc-collapsed .cc-summ { font: 600 12px Mulish, sans-serif; }
body.hw-ui .chord-controls-grid .ctrl-label { letter-spacing: .9px; }
/* ---- board dock: three fixed rows ---- */
body.hw-ui .fdh-h { color: #8F7F72; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05); }
body.hw-ui .fdh-onboard .fretboard-context { height: 34px; padding: 0 12px; font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: 1.2px; }
body.hw-ui .chord-dim-divider, body.hw-ui .fretboard-chord-indicator .ci-tick { background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .06)); width: 2px; }
/* chord pills: unlit keys with the chord's colour as legend; focused = lit key in the chord colour */
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-chord {
  height: 34px; padding: 0 11px; border-radius: 5px;
  font: 700 20px Sora, sans-serif; letter-spacing: 0; text-transform: none;
  background: var(--hw-key-dim-grad);
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-chord .ci-roman { font-size: 13.5px; }
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-chord:hover { filter: brightness(1.15); }
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-chord.focused { box-shadow: 0 0 12px color-mix(in srgb, var(--ci-fill) 55%, transparent), 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .22) !important; }
/* per-chord switch: a small rocker lit in the chord's own colour; Off = dark well + the word */
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-sw,
body.hw-ui .fretboard-dock .fretboard-dock-head button.dim-all-btn {
  background: none; box-shadow: none; border: none; transform: none;
  font: 700 12px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #F5F1E8;
}
body.hw-ui .fretboard-dock .fretboard-dock-head button.dim-all-btn { font: 600 13px Mulish, sans-serif; color: #C9BDAF; }
body.hw-ui .fretboard-dock .fretboard-dock-head button.dim-all-btn.on { color: #F5F1E8; }
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-sw:not(.on) { color: #C9BDAF; }
body.hw-ui .ci-sw.on .ci-track {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 75%, #fff 25%), var(--cc));
  box-shadow: 0 0 10px color-mix(in srgb, var(--cc) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
body.hw-ui .ci-track .knob, body.hw-ui .dim-all-sw .knob { box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
body.hw-ui .ci-sw:not(.on) .ci-track, body.hw-ui .dim-all-btn:not(.on) .dim-all-sw {
  border: none; background: var(--hw-well-grad); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
body.hw-ui .ci-sw:not(.on) .ci-track .knob, body.hw-ui .dim-all-btn:not(.on) .dim-all-sw .knob { top: 3px; left: 3px; background: linear-gradient(180deg, #9b9082, #5f5446); }
body.hw-ui .dim-all-btn.on .dim-all-sw { border: none; background: var(--hw-key-lit-grad); box-shadow: 0 0 10px rgba(232, 195, 107, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
body.hw-ui .dim-all-btn.on .dim-all-sw .knob { top: 3px; left: 19px; background: linear-gradient(180deg, #2a221c, #140f0c); }
/* tool keys + Edit mode + Note labels: unlit metal keys, lit gold when on */
body.hw-ui .fretboard-dock button.dock-toggle {
  height: 32px; padding: 0 14px 0 12px; border: none; border-radius: 5px;
  font: 600 13px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #C9BDAF;
  background: var(--hw-key-grad);
  box-shadow: 0 2px 0 #100c0a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .fretboard-dock button.dock-toggle::before { background: #E8C36B; }
body.hw-ui .fretboard-dock button.dock-toggle:hover:not(:disabled) { color: #F5F1E8; }
body.hw-ui .fretboard-dock button.dock-toggle.on, body.hw-ui .fretboard-dock button.dock-toggle.pop-open {
  background: var(--hw-key-lit-grad) !important; color: #1A1614 !important;
  box-shadow: 0 0 10px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
body.hw-ui .fretboard-dock button.dock-toggle.on::before, body.hw-ui .fretboard-dock button.dock-toggle.pop-open::before { background: #1A1614; }
body.hw-ui .fretboard-dock button.dock-toggle:disabled, body.hw-ui .fretboard-dock button.dock-toggle.na { color: rgba(201, 189, 175, .45); opacity: .7; }
body.hw-ui .fretboard-dock button.dock-toggle:disabled::before, body.hw-ui .fretboard-dock button.dock-toggle.na::before { background: rgba(232, 195, 107, .4); }
body.hw-ui .fretboard-dock #editModeBtn { height: 34px; }
body.hw-ui .fretboard-dock #editModeBtn.on {
  background: linear-gradient(180deg, #f08a66, #d8552f) !important; color: #1A1614 !important;
  box-shadow: 0 0 12px rgba(236, 106, 67, .45), 0 2px 0 #7a2e17, inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}
body.hw-ui .fretboard-dock #editModeBtn.on::before { background: #1A1614; }
body.hw-ui .ffb-seg button, body.hw-ui .fretboard-dock .ffb-seg button, body.hw-ui #finishSeg button {
  font: 600 13px Mulish, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #C9BDAF;
}
body.hw-ui .fdh-seg button { height: 28px; padding: 0 15px; }
body.hw-ui .fdh-neck .neck-select { height: 28px; line-height: 26px; }   /* the Neck menu fits the 32px tools row */
/* the options shelf: a recessed strip */
body.hw-ui .fdh-shelf { border: none; border-radius: var(--hw-r-well); background: var(--hw-groove-grad); box-shadow: var(--hw-shadow-groove); }
body.hw-ui .shelf-grp + .shelf-grp { border-left: none; box-shadow: -2px 0 0 rgba(0, 0, 0, .35), -1px 0 0 rgba(255, 255, 255, .05); }
body.hw-ui .shelf-hint, body.hw-ui .shelf-note { color: #8F7F72; }
body.hw-ui .shelf-lbl { color: #8F7F72; }
body.hw-ui .fdh-shelf .band-select, body.hw-ui .fdh-neck .neck-select {
  height: 28px; border-radius: 6px; font: 600 13px Mulish, sans-serif; color: #E7DCCB;
  background-color: #17120f;
  background-image: linear-gradient(45deg, transparent 50%, #E8C36B 50%), linear-gradient(135deg, #E8C36B 50%, transparent 50%), var(--hw-well-grad);
  background-position: calc(100% - 13px) 12px, calc(100% - 9px) 12px, 0 0; background-size: 4px 4px, 4px 4px, 100% 100%; background-repeat: no-repeat;
}
body.hw-ui .fdh-shelf #bandSelect { font: 500 12.5px 'IBM Plex Mono', monospace; }
body.hw-ui .fretboard-dock .fdh-shelf button.shelf-btn, body.hw-ui .fretboard-dock .fdh-shelf button.step-btn, body.hw-ui .fretboard-finish-bar button.step-btn {
  border: none; border-radius: 5px; background: var(--hw-key-grad); color: #C9BDAF;
  font: 600 12.5px Mulish, sans-serif; letter-spacing: 0; text-transform: none;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .07);
}
body.hw-ui .fretboard-dock .fdh-shelf button.shelf-btn:disabled { opacity: .45; }
/* CAGED ref form chips (round 6): keycaps whose letter wears the form's neon;
   lit = the key glows in that neon (Auto lights gold like any selection). */
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip {
  height: 24px; min-width: 24px; padding: 0 6px; border: none; border-radius: 4px;
  background: var(--hw-key-dim-grad); color: var(--fc);
  font: 700 12px 'IBM Plex Mono', monospace; letter-spacing: 0; text-transform: none;
  box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip.cref-auto { color: #C9BDAF; font: 600 12px Mulish, sans-serif; padding: 0 9px; }
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip:hover:not(:disabled) { color: var(--fc); filter: brightness(1.2); }
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip.cref-auto:hover:not(:disabled) { color: #F5F1E8; }
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip.on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 72%, #fff 28%), var(--fc)); color: #120C08;
  box-shadow: 0 0 10px color-mix(in srgb, var(--fc) 45%, transparent), 0 2px 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip.cref-auto.on {
  background: var(--hw-key-lit-grad); color: #1A1614;
  box-shadow: 0 0 10px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui .fretboard-dock .fdh-shelf button.cref-fchip:disabled { opacity: .35; }
body.hw-ui .fdh-shelf #chordRefChip {
  border: none; background: var(--hw-counter-grad); box-shadow: var(--hw-shadow-counter);
  color: var(--cref, #FF2E9A); text-shadow: 0 0 8px color-mix(in srgb, var(--cref, #FF2E9A) 45%, transparent);
  font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: .02em; text-transform: none; padding: 5px 10px;
}
body.hw-ui .ffb-sep { width: 2px; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .06)); }
/* ---- Edit mode bar: the workbench drawer (three grouped rows) ---- */
@media (min-width: 741px) {
  body.hw-ui #mapEditBar.map-edit-bar {
    border: none; border-radius: var(--hw-r-panel);
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px), var(--hw-well-grad);
    box-shadow: var(--hw-shadow-well), inset 0 0 0 1px rgba(255, 255, 255, .03);
  }
}
body.hw-ui #mapEditBar .meb-h { font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: 1.6px; color: #8F7F72; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05); }
body.hw-ui #mapEditBar .meb-tool, body.hw-ui #mapEditBar .meb-btn, body.hw-ui #mapEditBar .meb-fill,
body.hw-ui #mapEditBar .meb-seg button, body.hw-ui #mapEditBar .meb-shape, body.hw-ui #mapEditBar .meb-w {
  border: none; border-radius: 5px; color: #C9BDAF;
  background: var(--hw-key-grad);
  box-shadow: 0 2px 0 #100c0a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .13s ease-out, box-shadow .13s ease-out, color .13s ease-out;
}
body.hw-ui #mapEditBar .ib::before { background: #E8C36B; }
body.hw-ui #mapEditBar .meb-tool:hover, body.hw-ui #mapEditBar .meb-btn:hover { color: #F5F1E8; background: var(--hw-key-grad); }
body.hw-ui #mapEditBar .meb-tool:active, body.hw-ui #mapEditBar .meb-btn:active { transform: translateY(1px); }
body.hw-ui #mapEditBar .meb-tool.on, body.hw-ui #mapEditBar .meb-shape.on, body.hw-ui #mapEditBar .meb-w.on,
body.hw-ui #mapEditBar .meb-btn.on, body.hw-ui #mapEditBar .meb-fill.on, body.hw-ui #mapEditBar #mebSolo.on {
  background: var(--hw-key-lit-grad); color: #1A1614;
  box-shadow: 0 0 10px rgba(232, 195, 107, .4), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.hw-ui #mapEditBar .meb-tool.on::before, body.hw-ui #mapEditBar .meb-btn.on::before { background: #1A1614; }
body.hw-ui #mapEditBar .meb-w.on span { background: #1A1614; }
body.hw-ui #mapEditBar .meb-exit { background: linear-gradient(180deg, #3f2621, #2a1a16) !important; color: #F5B7AB !important; border: none !important; }
body.hw-ui #mapEditBar .meb-exit::before { background: #F08A7C; }
body.hw-ui #mapEditBar .meb-danger { color: #F08A7C; }
body.hw-ui #mapEditBar .meb-danger::before { background: #F08A7C; }
body.hw-ui #mapEditBar .meb-div { width: 2px; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .06)); }
body.hw-ui #mapEditBar .meb-select, body.hw-ui #mapEditBar .meb-hex, body.hw-ui #mapEditBar .meb-sel {
  border: none; background: var(--hw-counter-grad); box-shadow: var(--hw-shadow-counter); color: #E7DCCB;
}
body.hw-ui #mapEditBar .meb-sel .meb-mini { border: none; background: var(--hw-key-grad); color: #C9BDAF; box-shadow: 0 1px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui #mapEditBar .meb-sel .meb-del { color: #F08A7C; }
body.hw-ui #mapEditBar .meb-seltag { color: #F3D489; }
body.hw-ui #mapEditBar .meb-none { color: #8F7F72; }
body.hw-ui #mapEditBar .meb-lbl { color: #8F7F72; }
/* ---- Map dialogs: machined plates with keys ---- */
body.hw-ui .map-dlg {
  border: none; border-radius: var(--hw-r-panel); background: var(--hw-panel-grad);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
body.hw-ui .map-dlg-in { border: none; background: var(--hw-well-grad); box-shadow: var(--hw-shadow-well); color: #E7DCCB; }
body.hw-ui .map-dlg-btn { border: none; border-radius: 5px; background: var(--hw-key-grad); color: #C9BDAF; box-shadow: 0 2px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui .map-dlg-btn.primary { background: var(--hw-key-lit-grad); color: #1A1614; box-shadow: 0 0 10px rgba(232, 195, 107, .35), 0 2px 0 #8a6a2e, inset 0 1px 0 rgba(255, 255, 255, .5); }
body.hw-ui .map-dlg-btn.danger { background: linear-gradient(180deg, #f07a66, #c9453a); color: #fff; box-shadow: 0 2px 0 #6a2019, inset 0 1px 0 rgba(255, 255, 255, .35); }
/* popovers that the hardware skin never dressed: the Show menu keeps its tray,
   and the card palette / chord picker / degree colours / edit popovers get the plate */
body.hw-ui #cardPalettePop, body.hw-ui #chordPickerPop, body.hw-ui #degPalettePop,
body.hw-ui #mebCapMenu, body.hw-ui #mebViewPop {
  border: none !important; border-radius: var(--hw-r-panel) !important; background: var(--hw-panel-grad) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .5) !important;
}
body.hw-ui .label-dd-menu.ldd-portal { border-radius: 10px; }

/* ---- Skill Check 13" legibility (2026-09-30, audit M-15) ----
   The Drills pass raised its keys; the Skill Check keys were still 10.5px
   caps at 1280×800. Buttons ≥ 12px, small labels ≥ 11px — Skill Check and
   Quick Check selectors only. */
body.hw-ui #view-assess .btn,
body.hw-ui #welcome .wl-host .btn { font-size: 12px; letter-spacing: 1.1px; }
body.hw-ui #view-assess .btn.primary.big { font-size: 13px; letter-spacing: 1.3px; }
body.hw-ui #view-assess .assess-history-note,
body.hw-ui #view-assess .assess-cat-banner-id,
body.hw-ui #view-assess .auto-result-breakdown-title { font-size: 11px; }
/* the sound key: an icon lit like the key legends, never a dark emoji */
body.hw-ui .auto-sound-btn { color: #E8C36B; }
body.hw-ui .auto-sound-btn:hover { color: #F3D489; }
/* Deep Check progress "dots" read as LEDs, not hairlines (audit P-3) */
body.hw-ui #view-assess .drill-progress { padding: 3px 4px; }
body.hw-ui #view-assess .drill-progress .dot { height: 6px; border-radius: 3px; background: #3a302a; }
body.hw-ui #view-assess .drill-progress .dot.correct { background: #6bb583; }
body.hw-ui #view-assess .drill-progress .dot.wrong { background: #d68a6c; }
body.hw-ui #view-assess .drill-progress .dot.current { background: var(--accent); box-shadow: 0 0 6px rgba(232, 195, 107, .5); }

/* Edit round 4 — Set tab + visibility meter read as one machined key, the
   meter bars glow like LEDs (Robert 2026-09-30). */
body.hw-ui #mapEditBar .meb-set { border: none; border-radius: 5px; background: var(--hw-key-grad); box-shadow: 0 2px 0 #100c0a, 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .07); }
body.hw-ui #mapEditBar .meb-set.on { box-shadow: 0 0 0 1.5px #E8C36B, 0 0 10px rgba(232, 195, 107, .35), 0 2px 0 #100c0a; }
body.hw-ui #mapEditBar .meb-vis { background: var(--hw-counter-grad); border-left: 1px solid rgba(0, 0, 0, .55); }
body.hw-ui .meb-bars[data-lv="full"] i, body.hw-ui .meb-bars[data-lv="dim"] i:nth-child(1) { box-shadow: 0 0 4px rgba(232, 195, 107, .75); }
body.hw-ui #mapEditBar .meb-tool.meb-lit { color: #F3D489; box-shadow: 0 0 0 1.5px #E8C36B, 0 0 10px rgba(232, 195, 107, .3), 0 2px 0 #100c0a; }

/* ---- Map 13" laptop pass (2026-10-03) — hardware skin ---- */
/* Solid / Outline: a two-key rocker; the lit key is the current look */
body.hw-ui .ci-look { background: var(--hw-well-grad); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .07); border-radius: 6px; height: 24px; }
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-look-btn {
  height: 20px; padding: 0 7px 0 6px; border: none; border-radius: 4px; background: none; box-shadow: none; transform: none;
  font: 700 11px Mulish, sans-serif; letter-spacing: 0; text-transform: none; color: #8F7F72;
}
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-look-btn:hover:not(.on) { color: #C9BDAF; }
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-look-btn.on {
  background: var(--hw-key-grad); color: #F5F1E8;
  box-shadow: 0 1px 0 #100c0a, inset 0 1px 0 rgba(255, 255, 255, .1);
}
/* tool option plates: raised panels sitting in the groove, name tab on the left */
body.hw-ui .fdh-shelf .shelf-grp, body.hw-ui .fdh-shelf .shelf-grp + .shelf-grp {
  border: none; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(232, 195, 107, .16), inset 0 1px 0 rgba(255, 255, 255, .07);
  border-radius: 5px;
}
body.hw-ui .fdh-shelf .shelf-grp > .fdh-h {
  border-radius: 5px 0 0 5px; background: rgba(0, 0, 0, .28); border-right: 1px solid rgba(0, 0, 0, .5);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .05); color: #C9A85E; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7);
}
/* Root ring segment: same keys as Neighbor, sized for words */
body.hw-ui .chord-card .rr-seg button.nbr-arrow { width: auto; padding: 0 7px; font: 600 11.5px Mulish, sans-serif; letter-spacing: 0; text-transform: none; }
/* chord-card name: letter fixed, ♯/♭ + suffix shrink (hardware sets cc-name's own font) */
body.hw-ui .chord-card .cc-name { display: inline-flex; align-items: baseline; }
/* card row scroll area (short windows) */
body.hw-ui .chord-cards-row.cards-scroll { scrollbar-color: #5A4A41 transparent; }
/* ---- Header "Get Pro" key (2026-10-03): a lit gold key on the faceplate ---- */
body.hw-ui .get-pro-btn {
  border: none;
  border-radius: var(--hw-r-key);
  background: var(--hw-key-lit-grad);
  color: #2b1f0e;
  font: 700 10.5px 'IBM Plex Mono', monospace;
  letter-spacing: 1.5px;
  padding: 7px 13px;
  box-shadow: 0 2px 0 #7a5a1e, 0 0 12px rgba(232, 195, 107, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
}
body.hw-ui .get-pro-btn:hover { filter: brightness(1.06); }
body.hw-ui .get-pro-btn.is-pro {
  background: var(--hw-key-grad);
  color: #E8C36B;
  box-shadow: 0 2px 0 #17120f, inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* ---- Map fits the window (2026-10-09; see main.css "MAP — FIT THE WINDOW") ---- */
@media (min-width: 901px) {
  body.hw-ui:has(> .container > #view-map:not([hidden])) .brand-header { padding-top: 16px; padding-bottom: 16px; }
  body.hw-ui .key-bar { padding: 12px 22px; }
  body.hw-ui .kb-row-map { padding-top: 11px; }
}
@media (min-width: 2400px) {
  /* the groove between the two key-bar rows stands up when they sit side by side */
  body.hw-ui .kb-row-map { padding: 0 0 0 24px; border-left: none; }
  body.hw-ui .kb-row-map::before { left: 0; right: auto; top: 2px; bottom: 2px; width: 5px; height: auto; border-radius: 3px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%, rgba(255, 255, 255, .05)); }
}

/* ---- Above-the-board squeeze (2026-10-10; see main.css "MAP — ABOVE-THE-BOARD SQUEEZE") ---- */
@media (min-width: 901px) {
  body.hw-ui .key-bar { padding: 10px 22px; }
  body.hw-ui .quality-toggle { height: 34px; }
  body.hw-ui .key-select { font: 700 20px Sora, sans-serif; }
  body.hw-ui .key-select, body.hw-ui .prog-select { background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px, 0 0; }
  body.hw-ui .diatonic-chip { width: 60px; height: 40px; }
  body.hw-ui .diatonic-chip .roman { font-size: 10.5px; }
  body.hw-ui .diatonic-chip .chord-label { font-size: 17px; }
  body.hw-ui .fdh-shelf.is-empty { box-shadow: none; }
}
@media (min-width: 901px) and (max-width: 2399px) {
  body.hw-ui .kb-row-map { padding-top: 8px; }
}
/* Solid · Outline · Off icon keys: the same three glyphs as the flat skin, in a recessed well */
body.hw-ui .fretboard-dock .fretboard-dock-head button.ci-look-btn { width: 24px; height: 20px; padding: 0; }
body.hw-ui .chord-card.cc-ghost { background: transparent; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, .14); }
body.hw-ui .chord-card.cc-raised { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 26px 64px rgba(0, 0, 0, .7); }
/* a raised card is never see-through: beats the "unfocused cards dim to .75" rule above */
body.hw-ui .chord-cards-row .chord-card.cc-raised { opacity: 1 !important; }
/* Cards mode menu (Compact · Fit · Whole): the same machined plate as the Map dialogs */
body.hw-ui .cards-mode-menu {
  border: none; border-radius: var(--hw-r-panel); background: var(--hw-panel-grad);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
body.hw-ui .cmm-item { color: #E7DCCB; border-radius: var(--hw-r-key); }
body.hw-ui .cmm-item:hover { background: var(--hw-well-grad); }
body.hw-ui .cmm-item .cmm-hint { color: #8F7F72; }
body.hw-ui .cmm-item .cmm-check { border-color: #5A4A41; }
body.hw-ui .cmm-item.on .cmm-check { border-color: #E8C36B; background: radial-gradient(circle, #E8C36B 0 3.5px, transparent 4px); box-shadow: 0 0 8px rgba(232, 195, 107, .35); }
body.hw-ui .cmm-item.on .cmm-name { color: #E8C36B; }
