:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2e292f;
  background: #f6f3ef;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #706773;
  --accent: #744064;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #2d6b7d; outline-offset: 5px; }
button:disabled { cursor: not-allowed; }
p, h1, h2 { margin: 0; }

.remote {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(30px + env(safe-area-inset-top)) 24px calc(152px + env(safe-area-inset-bottom));
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.brand-label { margin-left: auto; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; color: var(--muted); }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 24px; margin-right: 1px; }
.brand-mark span { display: block; width: 5px; height: 11px; background: var(--accent); border-radius: 4px; transform: rotate(-20deg); }
.brand-mark span:nth-child(2) { height: 21px; }
.brand-mark span:nth-child(3) { height: 15px; }
.intro { margin: 46px 0 26px; }
.eyebrow { color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 650; letter-spacing: 1.6px; }
h1 { font-size: clamp(34px, 9vw, 43px); font-weight: 650; line-height: 1.15; letter-spacing: -1.6px; margin: 9px 0 12px; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.6; }
.panel { border: 1px solid #e5dfe2; background: #fffdfb; border-radius: 20px; padding: 21px; }
.connection-heading { display: flex; align-items: center; gap: 9px; }
.connection h2 { font-size: 15px; line-height: 1.4; font-weight: 650; }
.status-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #a49aa6; }
.status-dot[data-tone="ready"] { background: #4b7863; box-shadow: 0 0 0 4px #edf2ed; }
.status-dot[data-tone="attention"] { background: #ad7541; }
.status-dot[data-tone="error"] { background: #aa535c; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.connection .muted { margin-top: 9px; }
.session-meta { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #ece7e9; margin-top: 17px; padding-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
#session-time { font-variant-numeric: tabular-nums; text-align: right; }
.demo-banner { margin-top: 12px; border: 1px solid #dfca9d; border-radius: 12px; padding: 12px 15px; background: #fff6e4; color: #745a27; font-size: 12px; line-height: 1.6; }
.controls { margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.section-heading h2 { font-size: 14px; font-weight: 650; }
.section-heading > span { font-size: 9px; letter-spacing: 1.1px; color: var(--muted); }
.signal { display: flex; align-items: center; width: 100%; min-height: 96px; padding: 20px; text-align: left; border: 1px solid transparent; border-radius: 19px; cursor: pointer; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.signal + .signal { margin-top: 12px; }
.signal-gentle { background: #f0e2ed; color: #5d3657; border-color: #e4d2df; }
.signal-seven { background: #e9e7f1; color: #51496d; border-color: #dbd7e8; }
.signal-art { width: 43px; height: 43px; flex-shrink: 0; margin-right: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.signal-copy { display: flex; flex-direction: column; gap: 5px; }
.signal-title { font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
.signal-detail { font-size: 12px; opacity: .85; }
.signal-arrow { font-size: 25px; margin-left: auto; padding-left: 12px; font-weight: 400; }
.signal:disabled { opacity: .48; }
.signal:not(:disabled):active { transform: scale(.985); }
.controls-hint { min-height: 20px; margin: 12px 4px 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.receipt { margin-top: 22px; padding: 20px; background: transparent; }
.receipt-title { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.receipt .muted { margin-top: 6px; }
.receipt[data-tone="attention"] { border-color: #ceb795; }
.receipt[data-tone="error"] { border-color: #d3adb0; }
.session-note { margin: 22px 14px 0; text-align: center; color: #817783; font-size: 11px; line-height: 1.65; }
.stop-bar { position: fixed; z-index: 2; bottom: 0; left: 0; right: 0; background: #f6f3eff5; border-top: 1px solid #e4dde1; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); }
.stop-inner { max-width: 472px; margin: 0 auto; }
.stop-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 16px 21px; border: 1px solid #58303f; border-radius: 16px; background: #633b4b; color: #fff8fa; cursor: pointer; }
.stop-button > span:nth-child(2) { font-size: 20px; font-weight: 650; }
.stop-square { display: block; width: 15px; height: 15px; border-radius: 3px; background: currentColor; }
.stop-caption { margin-left: auto; max-width: 120px; text-align: right; font-size: 10px; line-height: 1.5; opacity: .8; }
.stop-button:disabled { background: #9d8c93; border-color: #9d8c93; }
.stop-button:not(:disabled):active { background: #4f2c3b; }
.no-script { margin-top: 20px; color: #8b3f48; font-size: 14px; line-height: 1.6; }

@media (hover: hover) {
  .signal-gentle:not(:disabled):hover { background: #e9d7e5; }
  .signal-seven:not(:disabled):hover { background: #e0ddea; }
  .stop-button:not(:disabled):hover { background: #553041; }
}
@media (max-width: 350px) {
  .remote { padding-left: 18px; padding-right: 18px; }
  .brand-label { font-size: 8px; letter-spacing: .7px; }
  .signal { padding: 17px 15px; }
  .signal-art { width: 35px; margin-right: 12px; }
  .signal-title { font-size: 16px; }
  .session-meta { font-size: 10px; }
}
@media (min-width: 700px) { .intro { margin-top: 62px; } }
@media (prefers-reduced-motion: reduce) { .signal { transition: none; } }
