/* MIV Amp Room (/amp) + shared chrome knobs and stompbox cards (also used by the Jam Editor rack and Amp slot).
   "More metal": gunmetal and brushed-steel faces, chrome knobs, stompbox pedals. CSS only, no images.
   Palette: cyan #19e6ff, purple #8a2bff, gold #ffc83d, plus neutral steel greys. */

/* ---------- shared: chrome knob ---------- */
.mk-knob { display: grid; justify-items: center; gap: 4px; min-width: 64px; user-select: none; }
.mk-dial { --a: 0deg; --t: .5; position: relative; width: 58px; height: 58px; border-radius: 50%; cursor: ns-resize; touch-action: none;
  background:
    conic-gradient(from 225deg, #19e6ff calc(var(--t) * 270deg), rgba(255,255,255,.06) 0 270deg, transparent 0) border-box;
  padding: 4px; box-sizing: border-box; outline: none; }
.mk-dial::before { content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0 6%, #d7dce6 14%, #8d94a3 38%, #4a505c 62%, #2a2e36 80%, #1a1c22 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 -2px 3px rgba(0,0,0,.5), inset 0 2px 2px rgba(255,255,255,.6); }
.mk-cap { position: absolute; inset: 12px; border-radius: 50%; transform: rotate(var(--a));
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.18) 0 4deg, rgba(0,0,0,.12) 4deg 8deg), radial-gradient(circle at 40% 30%, #f4f6fa, #a9afbb 55%, #6c7280);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 1px 3px rgba(0,0,0,.5); }
.mk-cap::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 38%; margin-left: -1.5px; border-radius: 2px; background: #14121f; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.mk-dial:focus-visible { box-shadow: 0 0 0 3px #8a2bff; }
.mk-dial.mk-drag .mk-cap::after { background: #8a2bff; }
.mk-sm .mk-dial { width: 46px; height: 46px; padding: 3px; }
.mk-sm .mk-dial::before { inset: 3px; }
.mk-sm .mk-cap { inset: 9px; }
.mk-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c8cedc; text-align: center; }
.mk-val { font-size: 12px; font-variant-numeric: tabular-nums; color: #19e6ff; min-height: 1.2em; }
.mk-choice { display: grid; gap: 4px; }
.mk-choice-row { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-sw { min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer; color: #dfe4ee;
  background: linear-gradient(180deg, #4a4f5a, #2a2e36); border: 1px solid #0b0c10; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 4px rgba(0,0,0,.4); }
.mk-sw[aria-pressed="true"] { color: #0b0d12; background: linear-gradient(180deg, #7ff3ff, #19e6ff); box-shadow: 0 0 10px rgba(25,230,255,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.mk-sw:focus-visible, .mk-mini:focus-visible, .mk-foot:focus-visible, .mk-handle:focus-visible { outline: 3px solid #8a2bff; outline-offset: 2px; }

/* ---------- shared: stompbox card ---------- */
.mk-pedal { --pc: #19e6ff; list-style: none; position: relative; display: flex; flex-direction: column; gap: 8px; width: 210px; padding: 12px 12px 10px; border-radius: 14px; color: #e4e8f1;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), linear-gradient(165deg, #4b505b, #2a2e36 45%, #1b1d23);
  border: 1px solid #07080b; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 2px rgba(0,0,0,.25), inset 0 6px 0 var(--pc), 0 10px 22px rgba(0,0,0,.55); }
.mk-cat-drive { --pc: #ffc83d; } .mk-cat-mod { --pc: #8a2bff; } .mk-cat-time { --pc: #19e6ff; } .mk-cat-dyn { --pc: #b9c0cc; } .mk-cat-eq { --pc: #6f7684; } .mk-cat-filter { --pc: #ffc83d; } .mk-cat-pitch { --pc: #8a2bff; } .mk-cat-util { --pc: #19e6ff; } .mk-cat-amp { --pc: #ffc83d; }
.mk-ptop { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.mk-pname { flex: 1; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 -1px 0 rgba(0,0,0,.7); }
.mk-led { width: 11px; height: 11px; border-radius: 50%; background: #2a1f05; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.mk-on .mk-led { background: radial-gradient(circle at 40% 35%, #fff6d6, #ffc83d 55%, #a87800); box-shadow: 0 0 8px #ffc83d, 0 0 16px rgba(255,200,61,.6); }
.mk-handle { cursor: grab; touch-action: none; min-width: 34px; min-height: 34px; border-radius: 8px; border: 1px solid #0b0c10; color: #c8cedc; background: linear-gradient(180deg, #3d424c, #22252c); font-size: 18px; line-height: 1; }
.mk-dragging { opacity: .75; outline: 2px dashed #19e6ff; outline-offset: 3px; }
.mk-note { margin: 0; font-size: 12px; color: #98a0b4; }
.mk-pbody { display: flex; flex-wrap: wrap; gap: 8px 6px; justify-content: center; }
.mk-pfoot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; }
.mk-mini { min-width: 34px; min-height: 34px; border-radius: 8px; border: 1px solid #0b0c10; color: #c8cedc; background: linear-gradient(180deg, #3d424c, #22252c); cursor: pointer; font-size: 13px; }
.mk-x { color: #ffc83d; }
.mk-foot { width: 52px; height: 52px; border-radius: 50%; cursor: pointer; border: 2px solid #0b0c10;
  background: radial-gradient(circle at 40% 30%, #ffffff 0 8%, #c9ced8 22%, #7b8291 55%, #3b3f48 80%); box-shadow: 0 5px 0 #0b0c10, 0 8px 14px rgba(0,0,0,.6), inset 0 2px 2px rgba(255,255,255,.7); }
.mk-foot:active { transform: translateY(3px); box-shadow: 0 2px 0 #0b0c10, 0 4px 8px rgba(0,0,0,.6); }
.mk-headblock { width: 180px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px), linear-gradient(165deg, #2e323b, #15171c); }

/* ---------- Amp Room page ---------- */
body.amp-page { --jbg: #07080b; --jcard: #15171c; --jink: #e4e8f1; --jsub: #98a0b4; --jline: rgba(255,255,255,.12); --jfield: #0b0c10;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(25,230,255,.08), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(138,43,255,.10), transparent 60%), #07080b; color: #e4e8f1; }
body.amp-page .topbar.amp-top { background: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), linear-gradient(180deg, #353943, #1d2027); border-bottom: 1px solid #050608; }
.amp-top { gap: 14px; }
.amp-titlebox { display: grid; line-height: 1.15; margin-right: auto; }
.amp-titlebox strong { font-size: 22px; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(90deg, #19e6ff, #8a2bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amp-titlebox small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #98a0b4; }
.amp-main { max-width: 1240px; margin: 0 auto; padding: 14px 16px 60px; }
.amp-modes { display: inline-flex; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid #050608; box-shadow: 0 6px 18px rgba(0,0,0,.5); margin: 4px 0 6px; }
.amp-mode { min-height: 50px; padding: 0 22px; font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: #c8cedc; border: 0;
  background: linear-gradient(180deg, #3a3e48, #1f2228); }
.amp-mode[aria-selected="true"] { color: #0b0d12; background: linear-gradient(180deg, #7ff3ff, #19e6ff); }
.amp-mode:focus-visible { outline: 3px solid #8a2bff; outline-offset: -3px; }
.amp-msg { min-height: 1.4em; color: #ffc83d !important; }
.amp-panel, .amp-board { border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; border: 1px solid #050608;
  background: radial-gradient(circle at 40% 35%, #9aa0ad 0 1.5px, #474b55 2.5px, transparent 3.5px) 8px 8px / 8px 8px no-repeat, radial-gradient(circle at 40% 35%, #9aa0ad 0 1.5px, #474b55 2.5px, transparent 3.5px) calc(100% - 8px) 8px / 8px 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), linear-gradient(180deg, #353943, #1d2027 55%, #15171c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -1px 0 rgba(0,0,0,.75), 0 10px 26px rgba(0,0,0,.45); }
.amp-panel h2, .amp-board h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: #e4e8f1; }
.amp-panel h2::before, .amp-board h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #19e6ff; box-shadow: 0 0 6px #19e6ff, 0 0 14px rgba(25,230,255,.6); }
.amp-field { display: grid; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c8cedc; }
body.amp-page .amp-field select, body.amp-page .amp-field input { min-height: 44px; font-size: 16px; text-transform: none; letter-spacing: 0; background: #0b0c10; color: #e4e8f1; border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.amp-io-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.amp-io-row .amp-field { flex: 1 1 220px; }
.amp-io-row .amp-chan { flex: 0 1 170px; }
.amp-power, .amp-monitor { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: #e4e8f1;
  background: linear-gradient(180deg, #565b67, #2e323b 60%, #22252c); border: 1px solid #050608; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 #050608, 0 6px 12px rgba(0,0,0,.5); }
.amp-power:focus-visible, .amp-monitor:focus-visible { outline: 3px solid #8a2bff; outline-offset: 2px; }
.amp-led { width: 12px; height: 12px; border-radius: 50%; background: #1d1630; box-shadow: inset 0 1px 2px #000; }
.amp-lit .amp-led { background: radial-gradient(circle at 40% 35%, #e6fdff, #19e6ff 55%, #078aa0); box-shadow: 0 0 8px #19e6ff, 0 0 18px rgba(25,230,255,.6); }
.amp-monitor.amp-lit .amp-led { background: radial-gradient(circle at 40% 35%, #fff6d6, #ffc83d 55%, #a87800); box-shadow: 0 0 8px #ffc83d, 0 0 18px rgba(255,200,61,.6); }
.amp-meterbox { display: grid; gap: 4px; }
.amp-meter { width: 120px; height: 12px; border-radius: 6px; background: #050608; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.amp-meter div { height: 100%; width: 0; background: linear-gradient(90deg, #19e6ff, #8a2bff 75%, #ffc83d); transition: width .08s linear; }
.amp-meter div.amp-hot { box-shadow: 0 0 10px #ffc83d; }
.amp-lim { align-self: center; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #5d6270; border: 1px solid #2b2f37; }
.amp-lim.amp-lit { color: #0b0d12; background: #ffc83d; box-shadow: 0 0 10px rgba(255,200,61,.7); }
.amp-io-info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
.amp-tip { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,200,61,.5); background: rgba(255,200,61,.08); color: #f3e3b0; font-size: 15px; }
.amp-tip strong { color: #ffc83d; }
.amp-lat { margin: 0; align-self: center; font-size: 14px; font-variant-numeric: tabular-nums; color: #19e6ff; }
.amp-lat.amp-lat-high { color: #ffc83d; }
.amp-small { font-size: 13px; color: #98a0b4; margin: 6px 0 0; }
.amp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.amp-grid-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* the amp head */
.amp-head { margin: 0 0 16px; border-radius: 18px; padding: 12px; background: linear-gradient(180deg, #1a1b20, #0b0c10); border: 1px solid #000; box-shadow: 0 16px 34px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.amp-face { border-radius: 10px; padding: 16px 18px 14px; color: #1b1e27;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px), linear-gradient(180deg, #d9dde4, #a7adb8 45%, #8a909c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 3px #2a2d34; }
.amp-vocal .amp-face { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #3b3f48, #23262d 50%, #17191e); color: #e4e8f1; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 0 0 3px #8a2bff; }
.amp-plate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 8px 14px; border-radius: 8px; background: linear-gradient(180deg, #23262d, #0b0c10); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.amp-plate-brand { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: 15px; background: linear-gradient(90deg, #ffc83d, #fff1c2 50%, #ffc83d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amp-plate-model { color: #19e6ff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; text-shadow: 0 0 8px rgba(25,230,255,.6); }
.amp-models { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.amp-model { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer; color: #e4e8f1; background: linear-gradient(180deg, #4a4f5a, #22252c); border: 1px solid #0b0c10; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 4px rgba(0,0,0,.35); }
.amp-model[aria-pressed="true"] { color: #0b0d12; background: linear-gradient(180deg, #fff1c2, #ffc83d); box-shadow: 0 0 12px rgba(255,200,61,.6); }
.amp-model:focus-visible { outline: 3px solid #8a2bff; outline-offset: 2px; }
.amp-knobs { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-around; padding: 10px 6px; border-radius: 10px; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18)); }
.amp-face .mk-label { color: #1b1e27; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.amp-face .mk-val { color: #3d1580; font-weight: 800; }
.amp-vocal .amp-face .mk-label { color: #c8cedc; text-shadow: none; }
.amp-vocal .amp-face .mk-val { color: #19e6ff; }
.amp-face .mk-dial { width: 70px; height: 70px; }
.amp-cabs { margin-top: 12px; }
.amp-face .amp-cabs .mk-label { text-align: left; }
.amp-grille { height: 110px; margin-top: 10px; border-radius: 10px; position: relative;
  background: repeating-linear-gradient(45deg, #2a2d34 0 2px, #121317 2px 5px), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px), #16181d;
  box-shadow: inset 0 0 0 3px #0b0c10, inset 0 10px 24px rgba(0,0,0,.7); }
.amp-vocal .amp-grille { height: 46px; }
.amp-badge { position: absolute; right: 18px; bottom: 14px; font-weight: 900; font-style: italic; letter-spacing: .1em; font-size: 22px; background: linear-gradient(180deg, #ffffff, #8d94a3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tuner */
.amp-tuner { text-align: center; }
.amp-tuner-note { font-size: 64px; font-weight: 900; line-height: 1; color: #e4e8f1; font-variant-numeric: tabular-nums; }
.amp-tuner-note small { font-size: 22px; color: #98a0b4; margin-left: 4px; }
.amp-intune .amp-tuner-note { color: #19e6ff; text-shadow: 0 0 18px rgba(25,230,255,.7); }
.amp-tuner-scale { position: relative; height: 34px; margin: 10px 4px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 10%), linear-gradient(180deg, #0b0c10, #1b1d23); box-shadow: inset 0 1px 3px #000; }
.amp-needle { --c: 0; position: absolute; top: 3px; bottom: 3px; left: calc(50% + var(--c) * 1%); width: 4px; margin-left: -2px; border-radius: 2px; background: #ffc83d; box-shadow: 0 0 8px #ffc83d; transition: left .08s linear; }
.amp-intune .amp-needle { background: #19e6ff; box-shadow: 0 0 10px #19e6ff; }
.amp-tick-c { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #19e6ff; opacity: .6; }
.amp-tuner-read { color: #98a0b4; font-variant-numeric: tabular-nums; margin: 0 0 6px; }

/* pedalboard */
.amp-board { background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 22px), linear-gradient(180deg, #2a2d34, #131418); }
.amp-board-top { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.amp-board-top h2 { margin-right: auto; }
.amp-add { min-width: 220px; }
.amp-board-hint { color: #98a0b4; margin: 8px 0 12px; font-size: 14px; }
.amp-chain { display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0; counter-reset: fx; }
.amp-looper { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; width: 100%; }
.amp-loop-st { width: 100%; text-align: center; font-size: 12px; color: #19e6ff; }

/* presets + recorder */
.amp-presets .jam-row, .amp-recorder .jam-row { margin-top: 10px; }
.amp-rectime { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffc83d; min-width: 3.2em; }
.amp-recorder audio { width: 100%; margin: 10px 0 4px; }
.amp-send { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.amp-send-note { margin: 0; }
body.amp-page .jam-btn { color: #e4e8f1; background: linear-gradient(180deg, #565b67, #2e323b 60%, #22252c); border: 1px solid #050608; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 #050608; }
body.amp-page .jam-primary { color: #fff; background: linear-gradient(90deg, #0fb6d4, #8a2bff); }
body.amp-page .jam-check { color: #c8cedc; }

/* phones */
@media (max-width: 860px) {
  .amp-grid, .amp-grid-low { grid-template-columns: 1fr; }
  .amp-main { padding: 10px 10px 50px; }
  .amp-modes { display: flex; width: 100%; } .amp-mode { flex: 1; padding: 0 10px; font-size: 15px; }
  .amp-meter { width: 90px; }
  .amp-face { padding: 12px; }
  .amp-face .mk-dial { width: 56px; height: 56px; }
  .amp-knobs { gap: 8px 10px; }
  .amp-grille { height: 60px; }
  .mk-pedal { width: calc(50% - 7px); box-sizing: border-box; padding: 10px 8px; }
  .mk-sm .mk-dial { width: 42px; height: 42px; }
  .mk-knob { min-width: 56px; }
}
