
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --ink: #070a12;
  --slate: #151925;
  --slate-2: #1c2233;
  --slate-3: #262e44;
  --line: #2b3550;
  --cloud: #f7f7f3;
  --muted: #9aa6bf;
  --cobalt: #173bff;
  --cobalt-2: #4f6bff;
  --good: #34d399;
  --warn-ink: #ffd37a;
  --danger: #f43f5e;
  --glass: rgba(21, 25, 37, 0.72);
  --r: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--cloud);
  background: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); overflow-x: hidden; }
html { scroll-padding-top: calc(var(--bar-h, 64px) + 8px); }
button, input, select { font: inherit; color: inherit; }
button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--slate-2);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
button:hover { border-color: #3c4a70; background: var(--slate-3); }
button:active { transform: scale(0.97); }
button[aria-pressed='true'], button.on { background: var(--cobalt); border-color: var(--cobalt-2); }
button.primary { background: var(--cobalt); border-color: var(--cobalt-2); font-weight: 600; }
button:disabled { opacity: 0.45; cursor: default; }
:focus-visible { outline: 2px solid var(--cobalt-2); outline-offset: 2px; }
select, input[type='number'], input[type='text'] {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}
input[type='range'] { accent-color: var(--cobalt-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(220px, 42svh) auto 1fr;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: calc(8px + var(--safe-top)) 16px 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0f1c, var(--ink));
  position: sticky;
  top: 0;
  z-index: 5;
}
@font-face { font-family: "Hubot Sans"; font-weight: 200 900; font-display: swap;
  src: url("../vendor/fonts/hubot-sans.woff2") format("woff2"); }
.brand { font-family: "Hubot Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--cloud); text-decoration: none; white-space: nowrap; }
.brand .v { color: #6e8bff; }
.brand .o { color: #ff6b35; }
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.transport label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.bpm input { width: 76px; }
.swing input { width: 90px; }
.swing output { min-width: 34px; color: var(--cloud); font-variant-numeric: tabular-nums; }
button.big { width: 48px; height: 44px; display: grid; place-items: center; padding: 0; }
.icon-play { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; }
button[aria-pressed='true'] .icon-play { width: 14px; height: 14px; border: 0; background: currentColor; margin: 0; border-radius: 2px; }
.icon-rec { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); }
#record { min-width: 44px; }
#record[aria-pressed='true'] { background: #3a1020; border-color: var(--danger); }
.position { display: flex; gap: 10px; font-variant-numeric: tabular-nums; color: var(--muted); }
.position span:first-child { color: var(--cloud); font-weight: 600; }
.bar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.jam-status { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #10263a; color: #7dd3fc; }
.stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0d1430, #04060c 70%);
  min-height: 220px;
}
.visual { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visual[hidden] { display: none; }
.stage-hud {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  opacity: 0.85;
  transition: opacity 0.3s;
  z-index: 2;
}
.stage-hud label { display: flex; gap: 6px; align-items: center; background: var(--glass); padding: 4px 8px; border-radius: 8px; backdrop-filter: blur(6px); }
.stage-hud button { background: var(--glass); backdrop-filter: blur(6px); }
.stage:not(:hover) .stage-hud { opacity: 0.35; }
.start {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(7, 10, 18, 0.55), rgba(7, 10, 18, 0.9));
  z-index: 3;
}
.start h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -0.02em; }
.start p { margin: 0 0 16px; color: var(--muted); max-width: 520px; }
.start-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.start-actions button { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.status { color: var(--muted); min-height: 1.4em; }
.status[data-error] { color: #fda4af; }
.app[data-ready='true'] .start { display: none; }
.perform-pads {
  position: absolute; inset: auto 12px 56px 12px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
  z-index: 2;
}
.app.performing { grid-template-rows: auto 1fr auto 0; }
.app.performing .panels { display: none; }
.tabs {
  display: flex; gap: 4px; padding: 6px 12px 0;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--muted); min-height: 44px; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--cloud); border-bottom-color: var(--cobalt-2); background: var(--slate); }
.panels { padding: 12px 16px calc(16px + var(--safe-bottom)); min-width: 0; }
.panel { min-width: 0; }
.panel[hidden] { display: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row + .row { margin-top: 8px; }
.card { background: var(--slate); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.muted { color: var(--muted); }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.seq { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.seq-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.grid-wrap { overflow-x: auto; min-width: 0; }
.grid { display: grid; grid-template-columns: 150px 1fr; gap: 3px 8px; min-width: 560px; }
.lane-head {
  display: flex; align-items: center; gap: 6px;
  padding: 0 6px; min-height: 32px; border-radius: 6px;
  background: var(--slate); border: 1px solid transparent; cursor: pointer;
  font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.lane-head.selected { border-color: var(--track, var(--cobalt-2)); background: var(--slate-2); }
.lane-head .chip { width: 8px; height: 22px; border-radius: 3px; background: var(--track); flex: none; box-shadow: 0 0 calc(var(--hit, 0) * 16px) var(--track); }
.lane-head .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lane-head button { min-height: 24px; padding: 0 6px; font-size: 11px; border-radius: 5px; }
.lane-head button.m.on { background: #4b1b2a; border-color: var(--danger); }
.lane-head button.s.on { background: #3b3a12; border-color: var(--warn-ink); color: var(--warn-ink); }
.steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.step {
  min-height: 32px; min-width: 0; padding: 0;
  border-radius: 5px; border: 1px solid #222a40;
  background: #11162a; position: relative;
}
.step.beat { background: #151b33; }
.step.on { background: var(--track); border-color: var(--track); opacity: calc(0.45 + var(--vel, 1) * 0.55); }
.vis-head, .vis-step { --track: #c4b5fd; }
.vis-head { border-top: 1px dashed var(--line); }
.step.play { box-shadow: inset 0 0 0 2px var(--cloud); }
.step.off-length { opacity: 0.25; pointer-events: none; }
.step .mark { position: absolute; top: 2px; right: 3px; font-size: 9px; line-height: 1; color: var(--ink); font-weight: 700; }
.step.selected-step { outline: 2px solid var(--cloud); outline-offset: 1px; }
.page-tabs { display: flex; gap: 4px; }
.page-tabs button { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.inspector { display: flex; flex-direction: column; gap: 10px; }
.knobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.knob { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; font-size: 12px; color: var(--muted); }
.knob input { grid-column: 1 / -1; width: 100%; }
.knob output { color: var(--cloud); font-variant-numeric: tabular-nums; }
.knob.locked output { color: #7dd3fc; }
.piano { display: grid; gap: 2px; }
.piano .prow { display: grid; grid-template-columns: 44px repeat(16, minmax(0, 1fr)); gap: 2px; }
.piano .pkey { font-size: 10px; color: var(--muted); display: flex; align-items: center; padding-left: 4px; background: #0f1426; border-radius: 3px; }
.piano .pkey.black { background: #0a0e1c; }
.piano .pcell { min-height: 18px; border-radius: 3px; background: #11162a; border: 0; padding: 0; }
.piano .pcell.beat { background: #161c34; }
.piano .pcell.on { background: var(--track); }
.piano .pcell.inscale { background: #141b35; }
.pads-layout { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 16px; }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pad {
  aspect-ratio: 1; min-height: 64px;
  border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #1b2236, #121828);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 8px; font-size: 12px; color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 calc(var(--hit, 0) * 28px) var(--track);
  transition: box-shadow 0.05s;
}
.pad .kbd { font-size: 10px; opacity: 0.7; }
.pad.hit { background: var(--track); color: var(--ink); }
.fx-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fx-pads button { min-height: 56px; }
.xy { position: relative; height: 180px; border-radius: 12px; background: linear-gradient(135deg, #0f1733, #1a1036); border: 1px solid var(--line); touch-action: none; }
.xy .dot { position: absolute; width: 22px; height: 22px; translate: -50% -50%; margin: 0; border-radius: 50%; background: var(--cloud); box-shadow: 0 0 18px #7dd3fc; pointer-events: none; }
.xy .label { position: absolute; left: 10px; top: 8px; font-size: 12px; color: var(--muted); }
.mixer { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.strip { flex: none; width: 76px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 8px 6px; border-radius: 10px; background: var(--slate); border: 1px solid var(--line); font-size: 11px; }
.strip .sname { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--track); font-weight: 600; }
.strip .fader { writing-mode: vertical-lr; direction: rtl; height: 120px; margin: 0 auto; }
.strip .meter { height: 6px; border-radius: 3px; background: #0c1020; overflow: hidden; }
.strip .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--good), #facc15, var(--danger)); }
.strip label { display: grid; gap: 2px; color: var(--muted); }
.strip .ms { display: flex; gap: 4px; }
.strip .ms button { flex: 1; min-height: 26px; padding: 0; font-size: 11px; }
.master { width: 220px; }
.lufs { font-variant-numeric: tabular-nums; font-size: 13px; }
.decks { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 12px; }
.deck { display: flex; flex-direction: column; gap: 8px; }
.deck canvas { width: 100%; height: 90px; border-radius: 8px; background: #0a0e1c; display: block; }
.deck .meta { display: flex; gap: 12px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.deck .meta b { color: var(--cloud); }
.deck .cues { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.deck .cues button { min-height: 32px; padding: 0; font-size: 12px; }
.deck .cues button.set { background: #10263a; border-color: #38bdf8; }
.eq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.eq label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); text-align: center; }
.stems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.xfade { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; align-self: start; }
.xfade input { width: 100%; }
.drop { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--cobalt-2); color: var(--cloud); }
.sounds { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
.packs { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.packs button { flex: none; text-align: left; justify-content: flex-start; font-size: 12.5px; height: auto; min-height: 36px; white-space: normal; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }
.cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cats button { min-height: 28px; padding: 2px 10px; font-size: 12px; border-radius: 999px; }
.sample-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; }
.sample-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: var(--slate-2); border: 1px solid var(--line); }
.sample-item .row { gap: 4px; }
.sample-item .row button { flex: 1; min-height: 32px; padding: 2px 8px; font-size: 12.5px; }
.sample { display: flex; flex-direction: column; gap: 2px; text-align: left; align-items: stretch; padding: 6px 8px; width: 100%; background: transparent; border-color: transparent; }
.sample small { color: var(--muted); font-size: 11px; }
.credits { font-size: 12px; color: var(--muted); max-height: 300px; overflow: auto; white-space: pre-wrap; }
.bank { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.bank button { min-height: 48px; font-variant-numeric: tabular-nums; position: relative; }
.bank button.current { background: var(--cobalt); border-color: var(--cobalt-2); }
.bank button.queued { border-color: var(--cloud); animation: blink 0.5s steps(2) infinite; }
.bank button.editing { box-shadow: inset 0 -3px 0 #7dd3fc; }
.bank button.filled::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: #3b4a78; }
@keyframes blink { 50% { opacity: 0.55; } }
.song-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; }
.chain .link { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: var(--slate-2); border: 1px solid var(--line); }
.chain .link.now { border-color: var(--cobalt-2); }
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.jam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.seats { display: flex; flex-direction: column; gap: 6px; }
.seat { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--slate-2); }
.seat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.feed { font-size: 12px; color: var(--muted); max-height: 160px; overflow: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); transform: translateX(-50%);
  background: var(--slate-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 10; max-width: 90vw;
}
.toast.show { opacity: 1; }
dialog { background: var(--slate); color: var(--cloud); border: 1px solid var(--line); border-radius: 14px; max-width: min(640px, 92vw); }
dialog::backdrop { background: rgba(4, 6, 12, 0.7); }
@media (max-width: 980px) {
  .seq, .pads-layout, .sounds, .song-grid, .jam { grid-template-columns: minmax(0, 1fr); }
  .decks { grid-template-columns: minmax(0, 1fr); }
  .xfade { order: 3; }
}
@media (max-width: 560px) {
  .app { grid-template-rows: auto minmax(200px, 34svh) auto 1fr; }
  .bar { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .bar-right button { padding: 6px 8px; }
  .panels { padding-left: 10px; padding-right: 10px; }
  .grid { grid-template-columns: 110px 1fr; min-width: 0; }
  .steps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .step { min-height: 44px; }
  .lane-head { min-height: 44px; }
  .bank { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fx-pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swing input { width: 70px; }
  .stage-hud .auto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.account-list { display: grid; gap: 6px; margin-top: 8px; }
.account-list .saved { display: flex; align-items: center; gap: 8px; }
.account-list .saved > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-list .saved.now > span { font-weight: 700; }
.account-list a.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--cloud); text-decoration: none; }
.deck .rights { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; }
.deck .rights.needed { border-color: var(--warn-ink); }
.app:not([data-ready='true']) .stage-hud { visibility: hidden; }
.map-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.map-rows label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-rows label > span { font-size: 20px; line-height: 1; min-width: 28px; }
.map-rows label > span.word { font-size: 13px; color: var(--muted); }
.map-rows select { flex: 1; max-width: 170px; }
@media (max-width: 560px) {
  .lane-head { flex-wrap: wrap; row-gap: 2px; }
  .lane-head .name { flex-basis: 100%; order: -1; white-space: nowrap; font-size: 12px; }
}
@media (max-width: 560px) {
  .sample-item .row button { min-height: 44px; }
}
.debug-panel { position: fixed; right: 8px; bottom: 8px; z-index: 20; width: min(460px, calc(100vw - 16px)); max-height: 60vh; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(7, 10, 18, 0.94); border: 1px solid var(--line); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.debug-panel .row { gap: 6px; }
.debug-panel strong { flex: 1; font: 600 12px system-ui, sans-serif; }
.debug-panel button { min-height: 32px; padding: 2px 10px; font-size: 12px; }
.debug-panel pre { margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--cloud); }
.rec-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rec-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--slate-2); }
.rec-mode button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rec-mode button[aria-checked='true'].rec-mode-free { background: var(--slate-3); color: var(--cloud); }
.rec-mode button[aria-checked='true'].rec-mode-rec { background: #4b1b2a; color: #ffe4ea; box-shadow: inset 0 0 0 1px var(--danger); }
.rec-mode .icon-rec { width: 10px; height: 10px; }
.rec-help { margin: 0 0 8px; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.pads.recording { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 14px; }
.pad.added { animation: pad-added 0.45s ease-out; }
@keyframes pad-added { 0% { box-shadow: 0 0 0 3px var(--danger), 0 0 22px var(--danger); } 100% { box-shadow: 0 0 0 0 transparent; } }
.tour { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(4, 6, 12, 0.62), 0 0 0 2px #7dd3fc; transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 16px)); padding: 14px 16px; border-radius: 14px; background: var(--slate); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); pointer-events: auto; }
.tour-card h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--cloud); }
.tour-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--cloud); }
.tour-card .row { gap: 6px; align-items: center; }
.tour-card .tour-skip { background: transparent; border-color: transparent; color: var(--muted); }
@media (max-width: 560px) {
  .tour-card { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + var(--safe-bottom)); width: auto; }
}
.guide { width: min(620px, 94vw); }
.guide h2 { margin-top: 0; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--cloud); }
.guide h3 { margin: 16px 0 6px; font-size: 14px; color: var(--cloud); }
.guide p, .guide li { font-size: 14px; line-height: 1.5; color: var(--cloud); }
.guide ol { padding-left: 20px; margin: 0; }
.guide .keys { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.guide .keys dd { margin: 0; color: var(--muted); }
.guide kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--slate-2); border: 1px solid var(--line); }
.rec-bar .count-in { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--muted); }
.pads.counting { outline-style: dashed; animation: count-pulse 0.5s ease-in-out infinite alternate; }
@keyframes count-pulse { to { outline-color: transparent; } }
.tour-card.task { border-color: #7dd3fc; }
.tour-card.task-done { border-color: var(--good); }
