/* ParkCW — cream editorial landing + dark rig-panel operating console.
   Tokens from DESIGN-claude.md (§8.1): coral accent, cream canvas, dark
   surface, teal status, hairline rules. Signature: a dit/dah rhythm strip. */

:root {
  /* palette */
  --coral: #cc785c;
  --coral-active: #a9583e;
  --coral-soft: #e0916f;
  --ink: #141413;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-strong: #e8e0d2;
  --dark: #181715;
  --dark-elev: #252320;
  --dark-soft: #1f1e1b;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --teal: #5db8a6;
  --amber: #e8a55a;
  --error: #c64545;
  --blue: #1978f7;

  /* type */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans KR", "Pretendard", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* radius / spacing */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;
}

* { box-sizing: border-box; }
/* author display rules (e.g. .banner{display:flex}) otherwise beat [hidden] */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* screen toggling */
.screen { display: none; }
body[data-screen="landing"] .screen--landing { display: block; }
body[data-screen="operate"] .screen--operate { display: flex; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 3px; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.btn {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 11px 18px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-active); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--surface-soft); }

/* ================================================================== */
/* LANDING (cream)                                                    */
/* ================================================================== */
.landing-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.landing-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 56px;
}
.brand { height: 40px; width: auto; display: block; }

.hero { margin-bottom: 44px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 20px;
}
.lede { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0; max-width: 60ch; }

/* rhythm strip: the signature dit/dah motif */
.rhythm { display: flex; align-items: center; gap: 7px; margin: 26px 0 0; height: 12px; }
.rhythm i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--coral); opacity: .9; }
.rhythm i.dit { width: 8px; }
.rhythm i.dah { width: 26px; background: var(--blue); }
.rhythm i.gap { background: transparent; width: 8px; }

/* setup card */
.setup {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 28px;
}
.setup h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  color: var(--ink); margin: 0 0 22px; letter-spacing: -0.01em;
}
.field { margin-bottom: 22px; }
.field > label, .field-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--body-strong, #252523);
  margin-bottom: 9px; letter-spacing: .01em;
}
.field-hint { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.field-error { font-size: 12.5px; color: var(--error); margin: 8px 0 0; font-weight: 500; }

/* text input + inline button */
.input-row { display: flex; gap: 10px; }
.text-input {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 11px 13px;
}
.text-input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(204,120,92,.15); }
.text-input::placeholder { color: var(--muted-soft); text-transform: none; letter-spacing: 0; }

/* segmented control (radios as buttons) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.segmented.wrap { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
  padding: 11px 10px; min-height: 48px;
  font-size: 14px; font-weight: 500; color: var(--body);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.seg > span small { font-size: 11px; font-weight: 500; color: var(--muted); }
.seg input:hover + span { border-color: var(--muted-soft); }
.seg input:checked + span {
  border-color: var(--coral); background: rgba(204,120,92,.08); color: var(--ink);
}
.seg input:checked + span small { color: var(--coral); }
.seg input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }

.mode-desc { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; min-height: 1.2em; }

/* wpm slider */
.slider-row { display: flex; align-items: center; gap: 16px; }
.range {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: var(--r-pill);
  background: var(--hairline); outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral); border: 3px solid var(--canvas); box-shadow: 0 1px 3px rgba(0,0,0,.2);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral); border: 3px solid var(--canvas); box-shadow: 0 1px 3px rgba(0,0,0,.2);
  cursor: pointer; border-width: 3px;
}
.wpm-readout { font-family: var(--font-mono); font-size: 15px; color: var(--ink); min-width: 74px; text-align: right; }
.wpm-readout b { font-size: 20px; }
.wpm-readout span { color: var(--muted); font-size: 12px; margin-left: 3px; }

.keyer-static {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--body);
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 7px 14px;
}
.keyer-static::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.btn--start { width: 100%; height: 46px; font-size: 15px; margin-top: 6px; }

/* lang pill toggle (shared) */
.lang-toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--r-pill); overflow: hidden; }
.lang-toggle button {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  background: transparent; color: var(--muted); border: none; padding: 7px 13px; cursor: pointer;
}
.lang-toggle button.is-active { background: var(--ink); color: var(--canvas); }

/* ================================================================== */
/* OPERATE (dark rig console)                                         */
/* ================================================================== */
.screen--operate {
  flex-direction: column;
  position: fixed; inset: 0; /* full-screen app shell — the document never scrolls */
  overflow: hidden;          /* only the transcript list scrolls internally */
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(204,120,92,.10), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}

.op-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: var(--dark-soft);
}
.op-bar .brand-dark { height: 26px; width: auto; }
.op-bar .spacer { flex: 1; }
.badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.14); color: var(--on-dark-soft);
}
.badge--mode { color: var(--on-dark); border-color: rgba(255,255,255,.22); }
.badge--practice { color: #2a1c14; background: var(--amber); border-color: transparent; }
.badge--practice::before { content: "● "; color: #2a1c14; }
.lang-toggle.on-dark { border-color: rgba(255,255,255,.16); }
.lang-toggle.on-dark button { color: var(--on-dark-soft); }
.lang-toggle.on-dark button.is-active { background: var(--on-dark); color: var(--dark); }

.op-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  padding: 18px 22px;
  min-height: 0;
  overflow: hidden; /* children scroll internally, not the page */
}

/* transcript = code-window card */
.transcript-card {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--dark-elev);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.card-head .dots { display: flex; gap: 6px; }
.card-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.card-head .dots i:first-child { background: rgba(204,120,92,.7); }
.card-head h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0;
}

/* operator identity block */
.op-card { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.op-card .op-call {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700; letter-spacing: .04em;
  color: var(--coral-soft); margin-bottom: 12px;
}
.op-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
.op-fields div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted rgba(255,255,255,.1); padding-bottom: 4px; }
.op-fields dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0; }
.op-fields dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--on-dark); }

.transcript-list {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 15px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 10px;
}
.transcript-empty { color: var(--on-dark-soft); font-family: var(--font-body); font-size: 14px; line-height: 1.6; margin: 0; }
.tx { display: flex; gap: 10px; align-items: baseline; }
.tx-tag {
  flex-shrink: 0; width: 40px; font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding-top: 2px;
}
.tx-text { letter-spacing: .05em; word-break: break-word; }
.tx--me .tx-tag { color: var(--coral); }
.tx--me .tx-text { color: var(--coral-soft); }
.tx--them .tx-tag { color: var(--teal); }
.tx--them .tx-text { color: var(--on-dark); }
.tx-divider { display: flex; align-items: center; gap: 12px; color: var(--on-dark-soft); font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.tx-divider::before, .tx-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

/* right control column — scrolls on its own if the panels exceed the height */
.op-controls { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.panel {
  background: var(--dark-elev);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.panel > h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft);
  margin: 0 0 12px;
}

/* playback indicator */
.playback-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-dots { display: flex; gap: 16px; }
.pb-dot { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--on-dark-soft); }
.pb-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); transition: background .2s, box-shadow .2s; }
.pb-dot.is-active { color: var(--on-dark); }
.pb-dot.is-active::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(93,184,166,.22); }
.status-text { font-size: 12px; color: var(--on-dark-soft); }

/* live decode */
.decode-readout {
  background: var(--dark-soft); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md); padding: 12px 14px; min-height: 62px;
}
.decode-pattern { font-family: var(--font-mono); font-size: 22px; letter-spacing: .12em; color: var(--teal); min-height: 26px; }
.decode-text { font-family: var(--font-mono); font-size: 16px; letter-spacing: .06em; color: var(--coral-soft); margin-top: 4px; word-break: break-word; }
.decode-waiting { color: var(--on-dark-soft); font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }

/* macros */
.macro-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.macro-btn {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .03em;
  background: var(--dark-soft); color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm);
  padding: 10px 4px; cursor: pointer; transition: background .12s, border-color .12s, transform .05s;
}
.macro-btn:hover { background: #2b2926; border-color: rgba(255,255,255,.22); }
.macro-btn:active { transform: translateY(1px); }

/* playback controls */
.playctl-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-dark {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  background: var(--dark-soft); color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md);
  padding: 9px 15px; cursor: pointer; transition: background .12s, border-color .12s;
}
.btn-dark:hover { background: #2b2926; }
.btn-dark.btn-accent { border-color: rgba(204,120,92,.5); color: var(--coral-soft); }
.btn-dark.btn-accent:hover { background: rgba(204,120,92,.14); }
.check {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--on-dark-soft); margin-left: auto;
}
.check input { position: absolute; opacity: 0; }
.check .box {
  width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.3);
  display: inline-flex; align-items: center; justify-content: center;
}
.check input:checked + .box { background: var(--coral); border-color: var(--coral); }
.check input:checked + .box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.check input:focus-visible + .box { outline: 2px solid var(--coral); outline-offset: 2px; }

/* error banner */
.banner {
  display: flex; align-items: center; gap: 14px;
  margin: 0 22px; padding: 12px 16px;
  background: rgba(198,69,69,.14); border: 1px solid rgba(198,69,69,.45);
  border-radius: var(--r-md); color: #f4cccc;
}
.banner .banner-icon { color: var(--error); font-weight: 700; }
.banner .spacer { flex: 1; }
.banner .btn-dark { border-color: rgba(255,255,255,.3); }

/* key zone (bottom) */
.key-zone {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--dark-soft);
}
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.key-head h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 500; margin: 0; }
.key-hint { font-size: 12px; color: var(--on-dark-soft); }
.key-pad {
  width: 100%; min-height: 128px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #24221f, #1b1a17);
  color: var(--on-dark-soft);
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: background .06s, border-color .06s, box-shadow .06s, color .06s;
}
.key-pad .knob { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a453f, #201e1b); border: 1px solid rgba(255,255,255,.12); }
.key-pad.is-down {
  background: linear-gradient(180deg, rgba(204,120,92,.42), rgba(169,88,62,.34));
  border-color: var(--coral); color: var(--on-dark);
  box-shadow: inset 0 0 40px rgba(204,120,92,.35), 0 0 0 3px rgba(204,120,92,.18);
}
.key-pad.is-down .knob { background: radial-gradient(circle at 35% 30%, var(--coral-soft), var(--coral-active)); }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  /* Mobile operate: fixed app shell (inset:0) — top bar, a scrollable middle
     (log + controls), and the key pad pinned at the bottom (thumb reach). */
  .op-bar { flex-shrink: 0; padding: 10px 14px; gap: 8px 10px; }
  .op-bar .brand-dark { height: 22px; }
  .op-main {
    grid-template-columns: 1fr;   /* single column */
    padding: 10px 12px; gap: 12px;
    overflow-y: auto;             /* only this middle scrolls */
    -webkit-overflow-scrolling: touch;
  }
  .transcript-card { min-height: 44vh; } /* the log is the primary area */
  .transcript-list { max-height: none; flex: 1; }
  .op-card { padding: 12px 14px; }
  .op-card .op-call { font-size: 20px; margin-bottom: 8px; }
  .op-fields { gap: 5px 14px; }
  .op-controls { overflow: visible; }
  .key-zone { flex-shrink: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .key-head { margin-bottom: 6px; }
  .key-pad { min-height: 88px; }
  body[data-keyer="iambic"] .pad-zone { min-height: 88px; }
}
@media (max-width: 520px) {
  .macro-grid { grid-template-columns: repeat(3, 1fr); }
  .segmented { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .landing-inner { padding-top: 24px; }
}

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

/* Iambic (paddle) options on the setup form */
.iambic-opts { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.iambic-opts[hidden] { display: none; }
.segmented.mini { max-width: 260px; }
.segmented.mini .seg { padding: 6px 10px; }

/* Morse-over-text transcript cells */
.cw-line { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 4px; }
.cw-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 1ch; }
.cw-cell.cw-word { margin-left: 14px; }
.cw-morse { font: 500 11px/1.1 "JetBrains Mono", ui-monospace, monospace; color: var(--muted, #8e8b82); letter-spacing: 1px; min-height: 12px; }
.cw-ch { font: 500 16px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 1px; }
.tx--me .cw-ch { color: #cc785c; }
.tx--live { opacity: 0.85; }
.tx--live .cw-partial .cw-morse { color: #5db8a6; }
.tx--live .cw-partial .cw-ch { color: #5db8a6; }

/* Text -> Morse reference tool */
#t2mInput { width: 100%; margin-bottom: 10px; }
.t2m-out { min-height: 40px; margin-bottom: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03); }
.t2m-out .cw-line { color: var(--on-dark, #faf9f5); }
.t2m-empty { color: var(--muted, #8e8b82); font-size: 13px; }

/* Clear-log button in the transcript header */
.btn-clear {
  margin-left: auto; font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .04em; color: var(--on-dark-soft);
  background: transparent; border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill); padding: 4px 12px; cursor: pointer;
}
.btn-clear:hover { color: var(--on-dark); border-color: rgba(255,255,255,.3); }

/* Send helper panel */
.panel--helper .helper-why { font-family: var(--font-body); font-size: 13px; line-height: 1.55;
  color: var(--on-dark); margin: 0 0 10px; }
.helper-cw { font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em;
  color: var(--teal); background: rgba(93,184,166,.08); border: 1px solid rgba(93,184,166,.2);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; word-break: break-word; }

/* Paddle mode: split the key pad into DIT (left) / DAH (right) touch zones. */
.pad-zone { display: none; }
body[data-keyer="iambic"] .key-pad .knob,
body[data-keyer="iambic"] .key-pad .key-straight-label { display: none; }
body[data-keyer="iambic"] .key-pad {
  position: relative; padding: 0; gap: 0;
}
body[data-keyer="iambic"] .pad-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; align-self: stretch; min-height: 128px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .12em;
  color: var(--on-dark-soft); user-select: none; -webkit-user-select: none;
}
body[data-keyer="iambic"] .pad-zone small { font-size: 22px; line-height: 1; margin-top: 6px; color: var(--coral-soft); }
body[data-keyer="iambic"] .pad-zone--dit { border-right: 1px dashed rgba(255,255,255,.14); }

/* "Grab key" toggle — global mouse keying on/off (paddle mode) */
.btn-grab.is-on {
  background: var(--coral); color: #fff; border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(204,120,92,.22);
}
/* subtle frame while capturing so it's obvious clicks are being keyed */
body[data-capturing="on"] .op-main { box-shadow: inset 0 0 0 2px rgba(204,120,92,.35); border-radius: var(--r-lg); }
