:root {
  --bg: #16161A;
  --surface: #1F1F25;
  --surface-2: #2A2A31;
  --line: #34343C;
  --text: #F4EBD9;
  --muted: #A19C92;
  --accent: #F2B52B;
  --accent-ink: #1B1405;
  --wine: #C9461F;
  --ok: #4CC38A;
  --danger: #E5534B;
  --radius: 14px;
  --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Impact, var(--font);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.layout { min-height: 100dvh; }
.main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));
  outline: none;
}
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(22, 22, 26, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.brand { display: none; }
.nav-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.nav-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { color: var(--accent); }
.nav-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); position: absolute; margin: -14px 0 0 22px; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 250px 1fr; }
  .nav {
    position: sticky; top: 0; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 20px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
  .brand strong { font-family: var(--font-display); letter-spacing: 2px; font-size: 20px; display: block; line-height: 1; }
  .brand small { white-space: nowrap; color: var(--accent); font-size: 9px; letter-spacing: .4px; text-transform: uppercase; font-weight: 700; }
  .nav-link { flex: 0; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 11px 12px; border-radius: 10px; }
  .nav-link:hover { background: var(--surface); color: var(--text); }
  .nav-link.active { background: var(--surface); }
  .main { padding: 36px 32px 64px; width: 100%; }
  .restbar { left: calc(250px + 50%); transform: translateX(-50%); bottom: 20px !important; }
}

/* ---------- Typography ---------- */
h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: .5px; margin: 0; line-height: 1.1; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 10px; background: none; border: 0; padding: 0; }
.back:hover { color: var(--text); }

/* Mobile logo header */
.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mobile-brand img { width: 36px; height: 36px; }
.mobile-brand strong { font-family: var(--font-display); letter-spacing: 2px; font-size: 18px; line-height: 1; display: block; }
.mobile-brand small { color: var(--accent); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
@media (min-width: 900px) { .mobile-brand { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.btn:hover { border-color: #4a4a54; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); background: transparent; border-color: rgba(229, 83, 75, .4); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #06210f; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  background: transparent; border: 0; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.card + .card { margin-top: 12px; }
.routine-card { display: grid; gap: 10px; }
.routine-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.routine-card .ex-list { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid transparent;
}
button.chip { cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 96px; height: 96px; opacity: .9; margin-bottom: 10px; }
.empty p { margin: 6px 0 18px; }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(242,181,43,.18), rgba(201,70,31,.18));
  border: 1px solid rgba(242,181,43,.4); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
}
textarea.input { min-height: 70px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; }
.title-input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--line);
  font-family: var(--font-display); font-size: 26px; padding: 6px 0; border-radius: 0;
}
.title-input:focus { outline: none; border-color: var(--accent); }

/* ---------- Exercise blocks ---------- */
.ex-block { padding: 14px 12px 12px; }
.ex-head { display: flex; align-items: center; gap: 10px; }
.ex-head .name { flex: 1; min-width: 0; }
.ex-head .name h3 { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-head .name .meta { font-size: 12px; color: var(--muted); }
.ex-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); font-weight: 800; font-size: 14px; color: var(--accent);
}
.ex-notes { margin: 10px 0 4px; }
.ex-notes .input { min-height: 38px; padding: 8px 10px; font-size: 14px; background: transparent; border-style: dashed; }
.rest-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 6px; }
.rest-line select { background: transparent; border: 0; color: var(--accent); font-weight: 700; padding: 2px; }

.sets { width: 100%; border-collapse: collapse; margin-top: 6px; }
.sets th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; padding: 6px 4px; text-align: center; }
.sets td { padding: 4px; text-align: center; }
.sets tr.done td { background: rgba(76, 195, 138, .12); }
.sets tr.done td:first-child { border-radius: 8px 0 0 8px; }
.sets tr.done td:last-child { border-radius: 0 8px 8px 0; }
.sets .num {
  width: 34px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); font-weight: 800; font-size: 14px;
}
.sets .num.warmup { color: var(--accent); }
.sets .num.drop { color: #9b8cff; }
.sets .num.fail { color: var(--danger); }
.sets .prev { font-size: 13px; color: var(--muted); white-space: nowrap; background: none; border: 0; padding: 4px; }
.sets .prev:hover { color: var(--text); }
.sets input {
  width: 100%; max-width: 84px; height: 34px; text-align: center; border-radius: 8px; border: 1px solid transparent;
  background: var(--surface-2); font-weight: 700; -moz-appearance: textfield;
}
.sets input::-webkit-outer-spin-button, .sets input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sets input:focus { outline: none; border-color: var(--accent); }
.sets input::placeholder { color: #6c6860; font-weight: 600; }
.sets tr.done input { background: transparent; }
.check {
  width: 34px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--muted);
}
.check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check.on { background: var(--ok); color: #06210f; }
.del-set { width: 28px; height: 32px; border: 0; background: none; color: #6c6860; font-size: 18px; line-height: 1; }
.del-set:hover { color: var(--danger); }
.add-set { margin-top: 8px; }

.pr-badge { font-size: 10px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }

/* ---------- Workout header ---------- */
.wo-head {
  position: sticky; top: 0; z-index: 10; margin: -20px -16px 14px; padding: 12px 16px;
  background: rgba(22,22,26,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
@media (min-width: 900px) { .wo-head { margin: -36px -32px 18px; padding: 14px 32px; } }
.wo-stats { display: flex; gap: 18px; }
.wo-stats div { display: grid; }
.wo-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.wo-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.wo-title { width: 100%; background: transparent; border: 0; font-family: var(--font-display); font-size: 24px; padding: 2px 0; }
.wo-title:focus { outline: none; }

/* ---------- Rest bar ---------- */
.restbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 25;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 24px));
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow: hidden;
}
.restbar .progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); transition: width 1s linear; }
.restbar .time { font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; min-width: 78px; }
.restbar .label { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Lists ---------- */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; width: 100%; text-align: left;
  background: transparent; border: 0;
}
.list-item:hover { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 700; }
.list-item .s { font-size: 13px; color: var(--muted); }
.list-item.selected { background: rgba(242,181,43,.12); }
.list-item.selected .ex-avatar { background: var(--accent); color: var(--accent-ink); }

.history-card .summary { display: flex; gap: 20px; margin: 8px 0 10px; font-size: 14px; }
.history-card .summary b { display: block; }
.history-card .summary span { color: var(--muted); font-size: 12px; }
.history-card .lines { font-size: 14px; color: var(--muted); display: grid; gap: 2px; }

.month { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 22px 0 8px; font-weight: 700; }

.search { position: relative; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 11px; top: 12px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }

/* ---------- Chart ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(242,181,43,.12); }
.chart .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg { flex-wrap: wrap; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 6px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--text); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease;
}
.modal {
  width: 100%; max-width: 560px; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: up .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }
.modal-body { overflow-y: auto; flex: 1; margin: 0 -6px; padding: 0 6px; }
.modal-foot { padding-top: 12px; display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }
@media (min-width: 640px) {
  .modal-back { align-items: center; }
  .modal { border-radius: 20px; padding-bottom: 16px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

.menu { display: grid; gap: 2px; }
.menu button { text-align: left; padding: 12px; border-radius: 10px; border: 0; background: transparent; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--danger); }
.menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -150%); z-index: 60; opacity: 0; visibility: hidden;
  background: var(--text); color: var(--bg); font-weight: 700; padding: 10px 16px; border-radius: 12px;
  transition: transform .25s ease, opacity .25s ease, visibility .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Finish screen ---------- */
.finish { text-align: center; padding: 10px 0; }
.finish img { width: 120px; height: 120px; }
.finish h1 { margin: 10px 0 4px; }
.finish .stats { margin-top: 20px; }

@media (max-width: 420px) {
  .sets input { max-width: 64px; }
  .stats { gap: 8px; }
  .stat b { font-size: 19px; }
  h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* En el selector, los grupos musculares se desplazan en horizontal para dejar sitio a la lista */
.modal .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.modal .chips::-webkit-scrollbar { display: none; }
.modal .chip { flex: none; }

/* Rango de repeticiones (mín–máx) */
.sets .range { display: flex; align-items: center; justify-content: center; gap: 3px; }
.sets .range input { max-width: 44px; padding: 0; }
.sets .range span { color: var(--muted); font-weight: 700; }
.rest-line .chip { font-size: 11px; }

/* Miniatura del ejercicio (silueta con el músculo marcado) */
.ex-thumb {
  position: relative; width: 40px; height: 48px; flex: none; border-radius: 10px;
  background: var(--surface-2); display: grid; place-items: center; overflow: hidden;
}
.ex-thumb svg { width: 100%; height: 100%; padding: 3px; }
.ex-num {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(242,181,43,.85);
  color: var(--accent-ink); font-size: 16px; font-weight: 800;
}
.ex-art { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ex-art svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.ex-art figcaption { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ex-art .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ex-art .tag.on { background: var(--accent); color: var(--accent-ink); }

/* Pestañas de Progreso */
.seg.tabs { display: flex; }
.seg a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg a.on { background: var(--bg); color: var(--text); }

/* Estadísticas */
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.mbar { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; }
.mbar .mname { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .mtrack { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.mbar .mtrack i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.mbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Calendario */
.cal { margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-h { font-size: 11px; color: var(--muted); font-weight: 700; padding-bottom: 2px; }
.cal-day { aspect-ratio: 1; max-height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; color: var(--muted); }
.cal-day.on { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.cal-day.today { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--text); }
.cal-day.on.today { outline-color: var(--text); }

/* Medidas */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mcard { text-align: left; cursor: pointer; display: grid; gap: 2px; color: var(--text); }
.mcard span { font-size: 12px; color: var(--muted); }
.mcard b small { font-size: 12px; color: var(--muted); font-family: var(--font); }
.mcard em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.mcard em.up { color: var(--accent); }
.mcard em.down { color: #7CB8FF; }
.mcard.on { border-color: var(--accent); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Carpetas */
.folder { margin-top: 14px; }
.folder-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.folder-toggle { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 4px; font-size: 16px; }
.folder-toggle .chev { display: inline-flex; transform: rotate(180deg); transition: transform .15s; color: var(--muted); }
.folder-toggle .chev.open { transform: rotate(270deg); }

/* Ventanas: sin saltos al escribir en el móvil */
html.modal-open, html.modal-open body { overflow: hidden; }
.modal-back { overscroll-behavior: contain; }
.modal-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-back.full .modal { height: 88dvh; }
@media (max-width: 639px) {
  /* El buscador de ejercicios ocupa toda la pantalla y no cambia de tamaño al filtrar */
  .modal-back.full { align-items: stretch; }
  .modal-back.full .modal { height: 100%; max-height: none; border-radius: 0; border: 0; padding-top: calc(12px + env(safe-area-inset-top)); }
}
@media (max-width: 639px) { .ex-notes .input { font-size: 16px; } }

/* Inicio: botones principales y carpeta */
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .home-actions { display: flex; } }
.folder-btn { gap: 6px; color: var(--muted); }
.folder-btn:hover { color: var(--text); }
.folder-toggle .ficon { display: inline-flex; color: var(--accent); }
.folder-toggle .ficon svg { width: 20px; height: 20px; fill: rgba(242,181,43,.15); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.folder-toggle .fcount { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 1px 8px; }
.folder-toggle .chev svg { width: 16px; height: 16px; }

/* Peso de la máquina */
.link-btn{background:none;border:0;padding:0;font:inherit;color:var(--accent);cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.machine-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:inherit;border:1px solid var(--line);margin:0 0 14px;cursor:pointer}
.machine-row .grow{flex:1;min-width:0}
.icon-btn.on{color:var(--accent)}
