/* Frost web. Palette follows the pedal UI (firmware/controller/slot_editor.h: FOCUS 40,156,255)
   and the redesign concept: midnight blue surfaces, icy blue accents. */
:root {
  color-scheme: dark;
  --bg: #080d16;
  --surface: #101a2a;
  --surface2: #142236;
  --surface3: #192a40;
  --stroke: #283a51;
  --stroke2: #35516b;
  --muted: #8fa5c0;
  --txt: #ecf6ff;
  --blue: #4ec3ff;
  --ice: #a3ecff;
  --focus: #289cff;
  --ok: #59deb7;
  --warn: #f5c37b;
  --bad: #ff7a86;
  --head: "Space Grotesk", system-ui, sans-serif;
  --shadow: 0 18px 60px #0006;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font:
    14px/1.5 "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
a {
  color: var(--blue);
}
button,
input,
select {
  font: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--blue);
  color: #041522;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* layout */
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  background: linear-gradient(160deg, #101c2e, #0a111c 75%);
  border-right: 1px solid var(--stroke);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 10px 40px;
}
.brand img {
  border-radius: 8px;
  box-shadow: 0 0 28px #37b5fb22;
}
.brandname {
  font: 700 21px var(--head);
  letter-spacing: 0.05em;
}
.brandsub {
  font-size: 10px;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-top: -3px;
}
.navlabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #64829f;
  margin: 0 13px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #93a7c2;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover:not(.active) {
  background: #17263a;
  color: #fff;
}
.nav a.active {
  background: linear-gradient(90deg, #19436a, #12273f);
  border-color: #3678a5;
  color: #e5f7ff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.navicon {
  width: 19px;
  text-align: center;
  font-size: 16px;
  color: #82b8db;
}
.utilitynav { margin-top:auto; padding-top:24px; }
.utilitynav + .sidebarfoot { margin-top:18px; }
.sidebarfoot {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid var(--stroke);
  color: #748ba8;
  font-size: 12px;
  line-height: 1.8;
  display: grid;
  gap: 8px;
}
.donate {
  width: 100%;
}
.version {
  display: inline-block;
  justify-self: start;
  color: #8acdf0;
  font-size: 11px;
  background: #163149;
  padding: 3px 8px;
  border-radius: 5px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 40px;
  background: #0b1422d9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #86a2be;
  font-weight: 700;
}
.topright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 40px 64px;
  outline: none;
}

/* connection status */
.status {
  --c: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  white-space: nowrap;
}
.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 9px var(--c);
}
.status[data-kind="ok"] {
  --c: var(--ok);
}
.status[data-kind="demo"] {
  --c: var(--blue);
}
.status[data-kind="busy"] {
  --c: var(--warn);
}
.status[data-kind="error"] {
  --c: var(--bad);
}
.status[data-kind="busy"] .dot {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* buttons and inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--stroke);
  background: #18283c;
  color: #edf7ff;
  font-weight: 700;
  text-decoration: none;
  transition:
    filter 0.15s,
    border-color 0.15s;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.16);
  border-color: #4b6d8d;
}
.btn.primary {
  border-color: #73d8ff;
  background: linear-gradient(135deg, #7fe2ff, #35aaf1);
  color: #041522;
  box-shadow: 0 8px 28px #18a6ef2a;
}
.btn.ghost {
  background: #121f30;
}
.btn.danger {
  background: transparent;
  border-color: #6a2a33;
  color: #ffb3bd;
}
.btn.small {
  padding: 7px 12px;
  font-size: 13px;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.disabled {
  pointer-events: none;
}
input:not([type="range"]),
select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--stroke2);
  background: #0a1422;
  color: var(--txt);
  outline: none;
}
input:not([type="range"]):focus,
select:focus {
  border-color: #6acfff;
}
select {
  appearance:none;
  -webkit-appearance:none;
  padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2386d9ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(180deg,#192c42,#101d2e);
  background-repeat:no-repeat;
  background-position:right 14px center,0 0;
  background-size:12px 8px,100% 100%;
  box-shadow:inset 0 1px 0 #ffffff08,0 2px 4px #0003;
  font-weight:600;
  cursor:pointer;
  transition:border-color .15s,box-shadow .15s;
}
select:hover:not(:disabled) { border-color:#5784a3; }
select:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
select:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
select option { background:#101d2e; color:var(--txt); }
select[multiple],select[size] { appearance:auto; background-image:none; padding-right:12px; }
input[type="range"] {
  width: 100%;
  accent-color: #62c9ff;
  cursor: pointer;
  height: 26px;
  margin: 0;
}
label {
  display: block;
}
.inputlabel {
  display: block;
  font-size: 12px;
  color: #91a9c1;
  margin-bottom: 7px;
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.actions.center {
  justify-content: center;
}
.actions.end {
  justify-content: flex-end;
}

/* type */
.eyebrow {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.heading h1 {
  font: 700 clamp(28px, 3vw, 40px)/1.14 var(--head);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.heading p {
  margin: 0;
  max-width: 680px;
  color: #9badc4;
  line-height: 1.6;
}
.paneltitle {
  font: 700 17px var(--head);
  letter-spacing: -0.02em;
}
.micro {
  font-size: 12px;
  color: #829bb6;
  margin-top: 5px;
}
.hint {
  font-size: 13px;
  color: #94a9c2;
  line-height: 1.65;
}
.why {
  font-size: 12px;
  color: var(--warn);
  min-height: 1em;
  margin: 10px 0 0;
}
.why:empty {
  display: none;
}

/* panels */
.panel {
  background: linear-gradient(155deg, #111d30, #0e1827);
  border: 1px solid var(--stroke);
  border-radius: 16px;
}
.panel.pad {
  padding: 24px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 24px 6px;
}
.panelhead.flat {
  padding: 0 0 6px;
}
.pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #285575;
  background: #13334b;
  color: #8dd9ff;
  padding: 6px 11px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill.warn {
  border-color: #665232;
  background: #2b241a;
  color: var(--warn);
}
.pill.ok {
  border-color: #1f5a43;
  background: #12302a;
  color: var(--ok);
}
.grid2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.grid2.wide {
  grid-template-columns: 1.3fr 0.7fr;
}
.grid2 + .panel,
.grid2 + .help {
  margin-top: 20px;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #2c5367;
  background: linear-gradient(95deg, #123247, #0e1b2c);
}
.banner strong {
  display: block;
  margin-bottom: 4px;
}
.banner span {
  color: #a2b8cd;
  font-size: 13px;
  line-height: 1.55;
}
.banner.warn {
  border-color: #6f5837;
  background: #2b241a66;
}
.banner.warn strong {
  color: #f3c98e;
}
.banner.bad {
  border-color: #6a2a33;
  background: #2a1a1f;
}
.banner.bad strong {
  color: #ffb3bd;
}
.help {
  margin-top: 18px;
  border: 1px solid var(--stroke);
  padding: 16px 18px;
  border-radius: 12px;
  color: #98aec7;
  font-size: 13px;
  line-height: 1.65;
}
.footer {
  padding-top: 40px;
  font-size: 11.5px;
  color: #627c98;
  line-height: 1.7;
}
.view {
  animation: in 0.2s ease-out;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* empty state */
.emptystate {
  text-align: center;
  padding: 48px 24px;
}
.emptystate h2 {
  font: 700 24px var(--head);
  margin: 6px 0;
}
.emptystate p {
  max-width: 520px;
  margin: 0 auto;
  color: #9badc4;
}
.onboarding-existing {
  max-width: 600px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}
.emptyicon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--ice);
  border: 1px solid #3a6d92;
  border-radius: 16px;
  background: linear-gradient(150deg, #173657, #09121f);
  box-shadow: 0 0 34px #37b5fb22;
}

/* signal chain */
.signal {
  padding: 16px 18px 6px;
}
.chainstrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.block {
  position: relative;
  min-width: 0;
  min-height: 156px;
  padding: 14px 13px;
  text-align: left;
  color: var(--txt);
  cursor: pointer;
  background: #142338;
  border: 1px solid #31455e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}
.block:hover {
  border-color: #6bbfe8;
}
.block:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: #6daace;
  font-size: 18px;
}
.block:not(.empty) {
  border-color: var(--effect-color);
}
.block:not(.off):not(.empty) {
  background: var(--effect-color);
  color: #060c18;
}
.block.active {
  outline: 2px solid #289cff;
  outline-offset: 3px;
  box-shadow: 0 0 20px #218ed71b;
}
.block.active::before {
  content: "▼";
  position: absolute;
  top: -17px;
  left: calc(50% - 5px);
  color: #289cff;
  font-size: 10px;
}
.block.off {
  background: #0c1523;
  color: #9aabbe;
}
.block.empty {
  border-style: dashed;
  background: transparent;
}
.block[draggable="true"] {
  cursor: grab;
}
.block.dragging {
  opacity: 0.45;
}
.block.dropbefore {
  box-shadow: -6px 0 0 #289cff;
}
.block.dropafter {
  box-shadow: 6px 0 0 #289cff;
}
.paneltitle.gap {
  margin-top: 24px;
}
.saveform {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.saveform .actions {
  margin-top: 0;
}
.block .num {
  font-size: 10px;
  color: #7794b2;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.block .num i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a5b70;
}
.block:not(.off):not(.empty) .num i {
  background: #060c18;
}
.block:not(.off):not(.empty) .num,
.block:not(.off):not(.empty) .cat,
.block:not(.off):not(.empty) .icon {
  color: #060c18;
}
.block.off .icon {
  color: var(--effect-color);
}
.block .icon {
  font-size: 26px;
  margin: 14px 0 8px;
  color: #91d9ff;
  height: 32px;
}
.block.empty .icon {
  color: #4a6580;
}
.block .name {
  font: 700 13px var(--head);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.block .cat {
  font-size: 10px;
  color: #8da8c3;
  margin-top: auto;
  padding-top: 6px;
  letter-spacing: 0.06em;
}
.chainbottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px 18px;
  color: #87a0bb;
  font-size: 12px;
}
.chainbottom strong {
  color: #81d4ff;
}

/* inspector */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.inspector {
  padding: 22px 24px;
  min-height: 340px;
  scroll-margin-top: 90px;
}
.inspector fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.inspector fieldset:disabled {
  opacity: 0.55;
}
.inspectorhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--stroke);
}
.inspectorhead h2 {
  font: 700 22px var(--head);
  margin: 0;
}
.inspector .picker {
  display:block;
  margin-bottom: 8px;
}
.inspector .picker > select { display:block; width:min(100%,320px); }
.inspector .picker .noparams { margin:8px 0 12px; padding:0; max-width:540px; font-size:12px; }
.headbtns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.field {
  margin: 18px 0;
}
.fieldtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #9db2ce;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fieldtop output {
  color: #e2f6ff;
  font: 700 13px var(--head);
  font-variant-numeric: tabular-nums;
}
.noparams {
  color: var(--muted);
  padding: 12px 0;
}
.switch {
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  cursor: pointer;
  border-radius: 30px;
  background: #344358;
  border: 1px solid #516a82;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c4d6e6;
  transition: left 0.18s;
}
.switch[aria-checked="true"] {
  background: #1a9cda;
  border-color: #53c5ff;
}
.switch[aria-checked="true"]::after {
  left: 23px;
  background: #fff;
}
.side {
  padding: 22px 24px;
}
.savebox {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0c1626;
  border: 1px solid var(--stroke);
}
.savestate {
  font-weight: 600;
  margin-bottom: 6px;
}
.savestate.dirty {
  color: var(--warn);
}
.steps {
  margin: 0;
  padding-left: 20px;
  color: #9cafc7;
  font-size: 13px;
  line-height: 1.8;
}

/* uploads and libraries */
.drop {
  margin: 18px 0;
  min-height: 170px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px dashed #447696;
  border-radius: 14px;
  background: #11284055;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.drop.small {
  min-height: 120px;
}
.drop:hover,
.drop.over,
.drop:focus-within {
  background: #1b3a52;
  border-color: #7bd8ff;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop .symbol {
  font-size: 32px;
  color: #78d7ff;
}
.drop b {
  font-size: 15px;
  word-break: break-all;
}
.drop small {
  color: #8ca4bd;
}
.drop.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.inputrow {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  margin: 14px 0;
  align-items: end;
}
.trainbox {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0c1626;
  border: 1px solid var(--stroke);
}
.trainbox .hint {
  margin: 10px 0 0;
  font-size: 12.5px;
}
.traintop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.traintop .inputlabel {
  margin-bottom: 3px;
}
.trainstate {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.trainstate.ok {
  color: var(--ok);
}
.trainbtns {
  display: flex;
  gap: 8px;
}
.tag {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8dd9ff;
  background: #13334b;
  border: 1px solid #285575;
}
.progress {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.meter {
  height: 8px;
  background: #0a1422;
  border: 1px solid var(--stroke);
  border-radius: 99px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #35aaf1, #7fe2ff);
  transition: width 0.2s;
}
.log {
  max-height: 220px;
  overflow: auto;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: pre-wrap;
}
.library {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.library li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #263a51;
}
.library li:last-child {
  border-bottom: 0;
}
.libicon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1d3d56;
  color: #8cdbff;
  border: 1px solid #315d79;
  font: 700 12px var(--head);
}
.library .info {
  flex: 1;
  min-width: 0;
}
.library .info b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library .info small {
  display: block;
  color: #7992af;
  margin-top: 2px;
}
.library .btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.library .empty {
  display: block;
  color: #8b9fb9;
  padding: 22px 0;
  border: 0;
}

/* firmware steps */
.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stroke);
}
.step.last {
  border-bottom: 0;
}
.stepindex {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #17364b;
  border: 1px solid #376481;
  color: #95dbff;
  font-weight: 700;
}
.step strong {
  font-size: 15px;
}
.step p {
  color: #9cafc7;
  margin: 4px 0 0;
  line-height: 1.6;
}

/* about */
.credits {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 14px;
}
.credits li {
  display: grid;
  gap: 3px;
}
.credits a,
.credits b {
  font-weight: 700;
}
.credits span {
  color: #98aec7;
  font-size: 13px;
  line-height: 1.6;
}

/* dialog and toasts */
dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: #101b2c;
  color: var(--txt);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #02060cb3;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font: 700 19px var(--head);
  margin: 0 0 8px;
}
.confirm-selects {
  display: grid;
  gap: 12px;
  margin: 4px 0 14px;
}
.confirm-selects label {
  display: grid;
  gap: 6px;
}
.confirm-selects select {
  width: 100%;
}
dialog p {
  color: #a9bdd4;
  line-height: 1.6;
  margin: 0 0 10px;
  white-space: pre-line;
}
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  gap: 10px;
  max-width: min(390px, calc(100vw - 32px));
}
.toast {
  padding: 13px 16px;
  border-radius: 10px;
  background: #173b52;
  border: 1px solid #5cbfee;
  color: #eaffff;
  box-shadow: var(--shadow);
  animation: in 0.2s ease-out;
}
.toast.bad {
  background: #3a1c23;
  border-color: #c25562;
}
.toast.ok {
  background: #123a31;
  border-color: #3fae8d;
}

/* beta.12: preset arrows in the Live editor heading */
.headingbuttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.presetnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--stroke2);
  border-radius: 10px;
  background: var(--surface);
}
.presetnav[hidden] {
  display: none;
}
.presetnavname {
  min-width: 150px;
  max-width: 220px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font: 700 13px var(--head);
  color: var(--ice);
}
/* preset list: live search and the preset playing now */
.search {
  display: block;
  margin: 12px 0 4px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.library li.current .libicon {
  box-shadow: 0 0 0 2px var(--focus);
}
.library li.current small {
  color: var(--blue);
}
/* the pedal's DSP LIMIT / CHAIN TOO BIG popup, mirrored */
.limitpopup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: min(380px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border: 2px solid var(--focus);
  border-radius: 12px;
  background: #0b1626;
  box-shadow: var(--shadow);
  text-align: center;
  animation: in 0.15s ease-out;
}
.limitpopup[hidden] {
  display: none;
}
.limittitle {
  font: 700 22px var(--head);
  letter-spacing: 0.08em;
  color: var(--txt);
  margin-bottom: 8px;
}
.limitpopup p {
  margin: 0 0 10px;
  color: #a9bdd4;
  line-height: 1.5;
}
.limithint {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 14px;
}

/* responsive */
.model-tabs { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--stroke); border-radius:12px; background:var(--surface); }
.model-tabs .btn { background:transparent; border-color:transparent; box-shadow:none; }
.model-tabs .btn[aria-pressed="true"] { background:#19436a; color:#e5f7ff; border-color:#3678a5; }
.library-toolbar { display:flex; align-items:center; gap:16px; margin:22px 0 16px; }
.library-toolbar .search { flex:1; margin:0; max-width:520px; }
.model-pane h2 { margin:0; font:600 18px var(--head); }
.model-pane .import-panel { margin-bottom:20px; max-width:760px; }
.import-panel .panelhead { padding:0 0 16px; align-items:center; }
.import-panel .drop { min-height:130px; }
.training-help { margin-top:12px; color:var(--muted); font-size:12px; }
.training-help summary { cursor:pointer; color:var(--blue); }
.upload-result { border-color:#3678a5; flex-wrap:wrap; }
.upload-result .actions { margin:0; flex-wrap:wrap; }
#view-models.over { outline:2px dashed var(--blue); outline-offset:8px; }
@media (max-width: 1180px) {
  .chainstrip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .block:nth-child(3)::after {
    display: none;
  }
  .workspace,
  .grid2,
  .grid2.wide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 210px;
  }
  .container {
    padding: 28px 22px 56px;
  }
  .topbar {
    padding: 12px 22px;
  }
}
@media (max-width: 760px) {
  #nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  #nav a { padding:9px 10px; }
  .utilitynav { margin-top:8px; padding-top:8px; border-top:1px solid var(--stroke); }
  .library-toolbar { gap:10px; }
  .library-toolbar .btn { padding-inline:12px; white-space:nowrap; }
  .app {
    display: block;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 12px 16px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }
  .brand {
    margin: 0 0 10px;
  }
  .navlabel,
  .sidebarfoot {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 6px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    flex: none;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .topbar {
    padding: 10px 16px;
    min-height: 0;
  }
  .breadcrumb {
    display: none;
  }
  .topright {
    width: 100%;
    justify-content: space-between;
  }
  .container {
    padding: 22px 16px 48px;
  }
  .heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .chainstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .block {
    min-height: 118px;
  }
  .block::after {
    display: none;
  }
  .block .icon {
    margin: 8px 0 4px;
  }
  .chainbottom {
    flex-direction: column;
    gap: 4px;
    padding: 10px 18px 16px;
  }
  .chainbottom span:last-child {
    display: none;
  }
  .inputrow {
    grid-template-columns: 1fr;
  }
  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel.pad,
  .inspector,
  .side {
    padding: 18px;
  }
  .library li {
    flex-wrap: wrap;
  }
  .library .btns {
    width: 100%;
    justify-content: flex-start;
    padding-left: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Song parts and performance order use the existing responsive panels. */
#setlist-editor > .actions {
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#setlist-editor .panel > label {
  display: block;
  margin: 16px 0;
}
#setlist-editor .panel > select {
  margin: 0 10px 12px 0;
  max-width: 100%;
}
.setlist-parts,
.setlist-order {
  padding-left: 24px;
}
.setlist-parts li,
.setlist-order li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #263447);
}
.setlist-parts label {
  display: block;
  margin-bottom: 8px;
}
.setlist-parts select {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}
.setlist-order b {
  display: block;
  margin-bottom: 8px;
}
.setlist-parts .btn,
.setlist-order .btn {
  margin-right: 5px;
}

/* Frost Studio: hardware-inspired live editor */
:root { --bg:#0a1019; --surface:#111b29; --surface2:#182435; --stroke:#26364a; --blue:#64caff; }
body { background:radial-gradient(ellipse at 75% 0%,#142438 0,transparent 48%),var(--bg); }
.sidebar { width:218px; background:#0c1420; padding-left:14px; padding-right:14px; }
.studio-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,310px); gap:18px; align-items:start; }
.studio-main { min-width:0; }
.studio-workspace { grid-template-columns:minmax(0,1fr); gap:16px; margin-top:16px; }
.studio-main .signal { padding:20px 17px 12px; background:repeating-linear-gradient(0deg,#0b111a 0px,#0b111a 14px,#151f2c 15px,#151f2c 17px); margin:0 12px; border:1px solid #293747; border-radius:12px; }
.studio-main .chainstrip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.studio-main .block { min-height:172px; border-radius:9px; padding:9px; align-items:center; text-align:center; border:1px solid color-mix(in srgb,var(--effect-color,#52677d) 65%,#18202b); background:linear-gradient(145deg,color-mix(in srgb,var(--effect-color,#52677d) 40%,#26313b),#18212b 75%); box-shadow:0 5px 0 #070b11,0 8px 10px #0008,inset 0 1px 0 #ffffff25; color:#f0f6fd; }
.studio-main .block.off { background:linear-gradient(145deg,#26303b,#151e29); }
.studio-main .block.empty { background:#101a26aa; border:1px dashed #4b647d; justify-content:center; box-shadow:none; }
.studio-main .block.active { outline:2px solid var(--blue); outline-offset:3px; }
.studio-main .block.active::before { display:none; }
.studio-main .block .num { width:100%; font-size:9px; color:#d4e3ef; justify-content:center; }
.studio-main .block .num i { background:#5e6d7a; }
.studio-main .block:not(.off):not(.empty) .num i { background:#a1ffd5; box-shadow:0 0 8px #65ffb4; }
.studio-main .block .icon { color:var(--effect-color,#92abc2); font-size:19px; height:24px; margin:3px 0; }
.studio-main .block .name { font-size:12px; line-height:1.2; }
.studio-main .block .cat { font-size:9px; color:#d0dbe5; margin-top:3px; padding:0; }
.pedal-knobs { display:flex; gap:7px; margin:9px 0 2px; }
.pedal-knobs i,.pedal-foot { width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg,#65717c,#131a20 55%); border:1px solid #080d13; box-shadow:0 2px 3px #0009; position:relative; }
.pedal-knobs i::after { content:''; position:absolute; left:7px; top:1px; height:5px; width:1px; background:#e2ebf4; transform:rotate(25deg); }
.pedal-foot { margin-top:auto; width:21px; height:21px; border:3px solid #6d7c8c; background:linear-gradient(135deg,#d3dbe2,#64717f); }
.studio-main .block:not(:last-child)::after { right:-13px; color:#7393af; }
.studio-main .block:nth-child(3)::after { display:none; }
.fx-browser { position:sticky; top:80px; padding:18px; min-width:0; }
.fx-browser h2 { font:700 22px var(--head); margin:3px 0; }
.fx-browser p { color:var(--muted); font-size:12px; margin:7px 0 15px; overflow-wrap:anywhere; }
.fx-browser input { width:100%; background:#0a1420; border-color:#344b62; }
.fx-filters { display:flex; flex-wrap:wrap; gap:6px; margin:13px 0 16px; }
.fx-filter { border:1px solid #34465a; border-radius:7px; padding:5px 8px; background:#152131; color:#b4c5d7; font-size:11px; font-weight:600; cursor:pointer; }
.fx-filter[aria-pressed=true] { background:#24465f; border-color:#62c9ff; color:#e9f9ff; }
.fx-results-head { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin-bottom:9px; }
.fx-results { display:grid; gap:7px; max-height:min(560px,50vh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:2px 5px 3px 2px; }
.fx-card { display:flex; align-items:center; gap:10px; text-align:left; width:100%; min-width:0; border:1px solid #2a3b4e; border-radius:9px; padding:8px; background:#152131; color:var(--txt); cursor:pointer; }
.fx-card:hover:not(:disabled) { border-color:var(--effect-color); background:#1c2b3d; }
.fx-card:disabled { opacity:.65; cursor:default; }
.fx-mini { flex:none; display:grid; place-items:center; width:34px; height:43px; border-radius:5px; border:1px solid var(--effect-color); background:linear-gradient(145deg,color-mix(in srgb,var(--effect-color) 48%,#202a36),#182431); color:#fff; box-shadow:0 3px 0 #090e15; font-size:18px; }
.fx-info { min-width:0; flex:1; display:grid; gap:3px; }
.fx-info strong { font-size:12px; line-height:1.2; overflow-wrap:anywhere; }
.fx-info small { font-size:10px; color:var(--muted); }
.fx-add { color:var(--blue); font-size:20px; }
.browse-effects { margin-bottom:12px; }
@media(min-width:1550px) { .studio-main .chainstrip { grid-template-columns:repeat(6,minmax(0,1fr)); } .studio-main .block:nth-child(3)::after { display:block; } }
@media(max-width:1100px) { .studio-layout { grid-template-columns:minmax(0,1fr) 255px; gap:12px; } .fx-browser { padding:12px; } .studio-main .chainstrip { grid-template-columns:repeat(2,minmax(0,1fr)); } .studio-main .block::after { display:none; } .inspectorhead { flex-wrap:wrap; } }
@media(max-width:900px) { .studio-layout { display:flex; flex-direction:column; } .studio-main,.fx-browser { width:100%; } .fx-browser { position:static; } .fx-results { max-height:430px; } .studio-main .chainstrip { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .sidebar { width:100%; } .studio-main .chainstrip { grid-template-columns:repeat(2,minmax(0,1fr)); } .fx-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:400px) { .fx-results { grid-template-columns:1fr; } }
/* Drag and drop: reorder blocks, or drop a library effect onto a block */
.studio-main .block.dragging { opacity:.45; }
.studio-main .block.dropbefore { box-shadow:-6px 0 0 var(--blue),0 5px 0 #070b11; }
.studio-main .block.dropafter { box-shadow:6px 0 0 var(--blue),0 5px 0 #070b11; }
.studio-main .block.dropinto { outline:2px dashed var(--blue); outline-offset:3px; background:color-mix(in srgb,var(--blue) 18%,#18212b); }
.fx-card[draggable=true] { cursor:grab; }
.fx-card.dragging { opacity:.5; }
.fx-card.current { border-color:var(--effect-color); cursor:default; }
.fx-card.current .fx-add { color:#a1ffd5; }
/* Preset picker: the live editor's preset name opens a searchable list */
.presetnav { position:relative; }
button.presetnavname { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:7px; background:transparent; height:30px; cursor:pointer; }
button.presetnavname #preset-nav-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
button.presetnavname:hover:not(:disabled),button.presetnavname[aria-expanded=true] { background:var(--surface2); border-color:var(--stroke2); }
button.presetnavname:disabled { cursor:default; opacity:.6; }
.presetcaret { color:var(--blue); font-size:11px; flex:none; }
.presetpick { position:absolute; z-index:40; top:calc(100% + 6px); right:0; width:min(340px,calc(100vw - 32px)); padding:10px; border:1px solid var(--stroke2); border-radius:12px; background:#0d1726; box-shadow:var(--shadow); }
.presetpick[hidden] { display:none; }
.editor-heading.heading { display:block; margin-bottom:20px; }
.editor-heading .eyebrow { margin-bottom:10px; }
.editor-heading .headingbuttons { justify-content:flex-start; }
.editor-heading .presetnavname { width:clamp(140px,24vw,320px); min-width:0; max-width:none; height:42px; font-size:20px; }
.editor-heading .presetnav > .btn { width:42px; height:42px; padding:0; }
.editor-heading .presetpick { left:0; right:auto; }
.presetpick input { width:100%; background:#0a1420; border-color:#344b62; }
.presetpicklist { list-style:none; margin:8px 0 0; padding:0 2px 0 0; max-height:min(360px,55vh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.presetpicklist li { display:flex; align-items:center; gap:10px; padding:8px 9px; border-radius:8px; cursor:pointer; color:var(--txt); font-size:13px; }
.presetpicklist li:hover,.presetpicklist li.active { background:#1b2d44; }
.presetpicklist li.current { box-shadow:inset 3px 0 0 var(--blue); }
.presetpicklist li.pickempty { cursor:default; color:var(--muted); background:none; }
.picknum { flex:none; width:26px; font:700 12px var(--head); color:var(--blue); font-variant-numeric:tabular-nums; }
.pickname { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.pickmark { flex:none; font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ok); }
.presetpickfoot { margin-top:8px; color:var(--muted); font-size:11px; }

/* Pedal face: the selected block's settings as knobs on an enclosure */
.inspector fieldset.pedalface { --effect-color:#52677d; position:relative; padding:18px 18px 14px; border:1px solid color-mix(in srgb,var(--effect-color) 55%,#1b2633); border-radius:14px;
  background:radial-gradient(ellipse at 20% 0%,color-mix(in srgb,var(--effect-color) 22%,transparent),transparent 60%),linear-gradient(160deg,#16253a,#0d1624 70%);
  box-shadow:inset 0 1px 0 #ffffff14,0 6px 0 #070b11,0 12px 24px #0007; }
.inspector fieldset.pedalface.emptyface { background:#0d1624; border-style:dashed; box-shadow:none; }
.inspector fieldset.pedalface.bypassed .knobrow { filter:saturate(.35) brightness(.8); }
.pedalface .effect-actions { display:flex; justify-content:flex-end; margin-bottom:12px; }
.pedalface .browse-effects { margin:0; }
.knobrow { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:18px 10px; margin-top:12px; }
.pedalface .field { margin:0; display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; }
.knobvalue { min-width:56px; max-width:100%; padding:3px 8px; border-radius:6px; border:1px solid #233246; background:#050a11; color:var(--ice);
  font:700 13px var(--head); font-variant-numeric:tabular-nums; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; box-shadow:inset 0 0 8px #4ec3ff22; text-shadow:0 0 6px #4ec3ff88; }
.choicehead { visibility:hidden; }
.knoblabel { color:#c3d4e7; font:700 11px var(--head); letter-spacing:.08em; text-transform:uppercase; text-align:center; overflow-wrap:anywhere; }
.knobdial { position:relative; width:74px; height:74px; }
.knobinput { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; margin:0; }
.knob { --pct:0; position:absolute; inset:0; border-radius:50%; cursor:ns-resize; touch-action:none;
  background:conic-gradient(from -135deg,var(--blue) calc(var(--pct)*270deg),#1d2c40 calc(var(--pct)*270deg) 270deg,transparent 270deg); }
.knob::before { content:''; position:absolute; inset:4px; border-radius:50%; background:#0a121d; }
.knobcap { position:absolute; inset:9px; border-radius:50%; transform:rotate(calc(-135deg + var(--pct)*270deg));
  background:radial-gradient(circle at 35% 30%,#e9f6ff,#9fb6cc 38%,#4d637a 75%,#2b3a4c);
  box-shadow:0 3px 6px #000b,inset 0 -2px 3px #0006,inset 0 1px 1px #fff9; transition:transform .05s linear; }
.knobcap::before { content:''; position:absolute; inset:6px; border-radius:50%; background:repeating-conic-gradient(#ffffff26 0 4deg,transparent 4deg 18deg); }
.knobcap::after { content:''; position:absolute; left:calc(50% - 2px); top:4px; width:4px; height:16px; border-radius:2px; background:#0b1a2a; box-shadow:0 0 0 1px #ffffff40; }
.knob:hover::before,.knob.turning::before { box-shadow:0 0 0 2px #4ec3ff55; }
.knobinput:focus-visible + .knob,.knobdial:focus-within .knob { outline:2px solid var(--focus); outline-offset:3px; }
.pedalface fieldset:disabled .knob,.inspector fieldset.pedalface:disabled .knob { cursor:default; }
.choicepill { position:relative; display:flex; align-items:center; height:74px; }
.choicepill select { appearance:none; -webkit-appearance:none; min-width:104px; max-width:150px; height:38px; padding:0 30px 0 14px; border:1px solid color-mix(in srgb,var(--effect-color) 60%,#3a516b);
  border-radius:10px; background-color:#142236; color:var(--txt); font:700 13px var(--head); cursor:pointer; box-shadow:0 3px 0 #070b11; }
.choicecaret { display:none; }
/* Enhance the browser's own select picker; older browsers keep the styled
   trigger and native menu. Keyboard, focus and change events remain native. */
@supports (appearance:base-select) {
  select:not([multiple]):not([size]),select:not([multiple]):not([size])::picker(select) { appearance:base-select; }
  select:not([multiple]):not([size]) { display:inline-flex; justify-content:space-between; background-image:linear-gradient(180deg,#192c42,#101d2e); background-position:0 0; background-size:100% 100%; padding-right:14px; align-items:center; gap:12px; }
  select::picker-icon { content:""; width:12px; height:8px; flex:none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2386d9ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition:transform .15s; }
  select:open { border-color:var(--blue); box-shadow:0 0 0 3px #4ec3ff18; }
  select:open::picker-icon { transform:rotate(180deg); }
  select::picker(select) { margin:6px 0; padding:6px; border:1px solid #3b607d; border-radius:12px; background:#101c2c; color:var(--txt); box-shadow:0 12px 30px #0009; min-width:anchor-size(width); max-width:calc(100vw - 32px); max-height:min(360px,50vh); overflow-y:auto; scrollbar-width:thin; }
  select option { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:7px; background:transparent; font:500 13px/1.4 var(--head); white-space:normal; overflow-wrap:anywhere; }
  select option:hover,select option:focus { background:#213d56; color:#fff; outline:none; }
  select option:checked { background:#19446a; color:#c6f0ff; font-weight:700; }
  select option::checkmark { color:var(--blue); }
  select option:disabled { color:#71859b; }
}
.knobhint { margin:16px 0 0; color:var(--muted); font-size:11px; text-align:center; }
@media(max-width:400px) { .knobrow { grid-template-columns:repeat(2,minmax(0,1fr)); } .presetnavname { min-width:110px; } }
/* Signal chain, one row: guitar input -> six pedals -> output */
.chaintitle { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
.draghint { display:inline-flex; align-items:center; gap:8px; padding:5px 12px; border:1px solid #2f5470; border-radius:999px; background:#0f2236; color:#bfe6ff; font-size:12px; font-weight:600; }
.draggrip { width:10px; height:10px; flex:none; background:radial-gradient(circle,var(--blue) 1.6px,transparent 1.8px) 0 0/5px 5px; }
.studio-main .signal.signalrow { display:flex; align-items:center; gap:0; padding:22px 16px; margin:0 12px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin;
  background:radial-gradient(ellipse at 50% 120%,#123049 0,transparent 60%),#0a121d; border:1px solid #22364c; border-radius:14px; }
.chainend { flex:none; display:flex; flex-direction:column; align-items:center; gap:6px; width:54px; color:var(--ice); text-align:center; font:700 12px/1.2 var(--head); }
.chainend svg { filter:drop-shadow(0 0 6px #4ec3ff66); }
.chainwire { flex:none; position:relative; width:16px; height:2px; background:var(--blue); box-shadow:0 0 8px #4ec3ffaa; }
.chainin + .chainwire::before,.chainstrip + .chainwire::after { content:''; position:absolute; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--blue); box-shadow:0 0 8px var(--blue); }
.chainin + .chainwire::before { left:-4px; }
.chainstrip + .chainwire::after { right:-4px; }
.studio-main .chainstrip.oneline { flex:1; display:grid; grid-template-columns:repeat(6,minmax(98px,1fr)); gap:22px; min-width:min-content; padding:4px 0; }
.studio-main .chainstrip.oneline .block { min-height:178px; padding:10px 8px 12px; border-radius:11px; justify-content:flex-start; }
.studio-main .chainstrip.oneline .block:not(.off):not(.empty) { background:linear-gradient(170deg,color-mix(in srgb,var(--effect-color) 88%,#fff),var(--effect-color) 55%,color-mix(in srgb,var(--effect-color) 82%,#000));
  border-color:color-mix(in srgb,var(--effect-color) 70%,#fff); color:#0b1320; box-shadow:0 6px 0 color-mix(in srgb,var(--effect-color) 45%,#05080d),0 12px 18px #0009,inset 0 1px 0 #ffffff70; }
.studio-main .chainstrip.oneline .block:not(.off):not(.empty) .num,
.studio-main .chainstrip.oneline .block:not(.off):not(.empty) .cat { color:#1c2836; }
.studio-main .chainstrip.oneline .block:not(.off):not(.empty) .icon { color:#0b1320; }
.studio-main .chainstrip.oneline .block:not(.off):not(.empty) .name { color:#0b1320; }
.studio-main .chainstrip.oneline .block.off { background:linear-gradient(170deg,color-mix(in srgb,var(--effect-color) 22%,#2a3542),#161f2a); border-color:color-mix(in srgb,var(--effect-color) 40%,#2a3542); }
.studio-main .chainstrip.oneline .block.off .name { color:#c9d6e3; }
.studio-main .chainstrip.oneline .block .name { font-size:12.5px; margin-top:2px; }
.studio-main .chainstrip.oneline .block .cat { font-size:9.5px; letter-spacing:.06em; }
.studio-main .chainstrip.oneline .block .icon { font-size:18px; height:22px; margin:4px 0 2px; }
.studio-main .chainstrip.oneline .pedal-knobs { margin:8px 0 4px; }
.studio-main .chainstrip.oneline .pedal-knobs i { width:17px; height:17px; background:radial-gradient(circle at 35% 30%,#59636e,#0d1218 60%); border-color:#05080c; }
.studio-main .chainstrip.oneline .pedal-foot { margin-top:auto; }
.studio-main .chainstrip.oneline .block.active { outline:3px solid var(--blue); outline-offset:4px; box-shadow:0 0 22px #4ec3ff66,0 6px 0 #05080d; }
.studio-main .chainstrip.oneline .block.empty { min-height:178px; border:1.5px dashed #4f6f8f; background:#0d1724; }
.studio-main .chainstrip.oneline .block:not(:last-child)::after { display:block; content:''; right:-24px; width:24px; height:2px; transform:translateY(-50%); background:var(--blue); box-shadow:0 0 8px #4ec3ffaa; pointer-events:none; }
.studio-main .chainstrip.oneline .block.dropbefore { box-shadow:-8px 0 0 var(--blue),0 6px 0 #05080d; }
.studio-main .chainstrip.oneline .block.dropafter { box-shadow:8px 0 0 var(--blue),0 6px 0 #05080d; }
@media(max-width:760px) {
  .studio-main .signal.signalrow { margin:0 6px; padding:18px 10px; scroll-snap-type:x proximity; }
  .studio-main .chainstrip.oneline .block { scroll-snap-align:center; }
  .chainend { width:52px; font-size:11px; }
  .chaintitle .draghint { font-size:11px; }
}
/* Guitar input icon: neon glow (bright core, blue bloom) */
.chainend .guitaricon { color:#b8f3ff; filter:drop-shadow(0 0 1px #e6fbff) drop-shadow(0 0 3px #4ec3ff) drop-shadow(0 0 8px #4ec3ffcc) drop-shadow(0 0 16px #2a9fffaa); }
.chainend:has(.guitaricon) span { text-shadow:0 0 6px #4ec3ff99; }
