:root {
  color-scheme: light;
  --bg: #eafa18;
  --ink: #080808;
  --muted: #343817;
  --signal: #ff168b;
  --signal-rgb: 255, 22, 139;
  --drum: #00b85a;
  --clatter: #4675ff;
  --line: rgba(0, 0, 0, 0.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app {
  position: relative;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#field {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

#field:focus,
#field:focus-visible {
  outline: none;
}

.is-active #field {
  pointer-events: auto;
}

.receiver small,
.receiver span,
.eyebrow,
.credits,
.status-line,
.gesture-copy,
.footer-controls,
.volume-control span,
.privacy,
.install-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
}

.receiver small {
  color: var(--muted);
  font-size: 0.59rem;
  white-space: nowrap;
}

.receiver {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  margin-top: 32px;
}

.receiver span {
  font-size: 0.7rem;
  white-space: nowrap;
}

.start-panel {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(64px + var(--safe-top)) 0 calc(128px + var(--safe-bottom));
  background: var(--bg);
  text-align: center;
  pointer-events: none;
}

.flyer-frame {
  position: relative;
  width: min(100vw, calc((100svh - var(--safe-top) - var(--safe-bottom) - 192px) * 0.800657), 875px);
  aspect-ratio: 1159.92 / 1448.71;
}

.flyer-image { display: block; width: 100%; height: 100%; }

.entry-home-link {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(40px + var(--safe-bottom));
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: clamp(100px, 28vw, 132px);
  min-height: 44px;
  color: var(--ink);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.entry-home-link img { display: block; width: 100%; height: auto; }
.entry-home-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.is-active .entry-home-link { display: none; }

.sensor-video-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.flyer-entry {
  position: absolute;
  /* Entry button and loader: x=448, y=670, w=h=264 in the AI artboard. */
  left: 38.623353%;
  top: 46.248045%;
  width: 22.76019%;
  height: 18.223108%;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.app:not(.is-active) .play-ui { visibility: hidden; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 0.68rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.intro {
  max-width: 32rem;
  margin: 28px auto 30px;
  color: #bdc1b8;
  font-size: 1rem;
  line-height: 1.8;
}

.secondary-button {
  width: min(100%, 320px);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--signal);
  color: #090b07;
  cursor: pointer;
}

.activate {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease;
}

.activate-fingerprint {
  display: block;
  width: auto;
  height: 82%;
  max-width: 82%;
  animation: fingerprint-pulse 1.6s ease-in-out infinite;
}

.activate-feedback {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 190%;
  transform: translateX(-50%);
  color: var(--ink);
  background: var(--bg);
  font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-align: center;
}
.activate-feedback:empty { display: none; }
.entry-caption {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(90vw, 480px);
  transform: translateX(-50%);
  font-size: clamp(10px, 2.65vw, 14px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.activate-feedback:not(:empty) + .entry-caption { visibility: hidden; }
@keyframes fingerprint-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.activation-loader {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}
.activation-loader[hidden] { display: none; }
.loading-dots { width: min(64px, 68%); flex: 0 0 auto; }
.loading-dots circle {
  opacity: 0.16;
  animation: loading-dot 1.2s linear infinite;
  animation-delay: calc(var(--dot) * 100ms - 1.2s);
}
@keyframes loading-dot { from { opacity: 1; } to { opacity: 0.16; } }
.is-loading .activate { visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .loading-dots circle { animation: none; opacity: 0.3; }
  .loading-dots circle:first-child { opacity: 1; }
}

.activate:active { transform: scale(0.97); }
.activate:disabled { cursor: wait; opacity: 0.7; }
.is-active .activate { visibility: hidden; pointer-events: none; }

.privacy {
  margin: 20px 0 0;
  color: #686e65;
  font-size: 0.62rem;
}

.play-ui {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.is-active .play-ui {
  opacity: 1;
}

.status-line {
  position: absolute;
  top: calc(28px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.64rem;
}

.mode-switch {
  position: absolute;
  z-index: 5;
  top: calc(10px + var(--safe-top));
  left: 16px;
  display: grid;
  width: min(calc(100% - 90px), 340px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  pointer-events: auto;
}

.mode-button {
  --instrument: var(--signal);
  min-height: 44px;
  min-width: 0;
  white-space: nowrap;
  padding: 0 6px;
  border: 0;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.mode-button + .mode-button {
  border-left: 1px solid var(--line);
}

.mode-button span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.56rem;
}

.mode-button[data-mode="drum"] { --instrument: var(--drum); }
.mode-button[data-mode="clatter"] { --instrument: var(--clatter); }

.mode-button.is-selected {
  background: var(--instrument);
  color: #090b07;
}

.mode-button.is-selected span {
  color: rgba(9, 11, 7, 0.56);
}

.buff-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: calc(10px + var(--safe-top));
  right: 16px;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.buff-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.buff-button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(var(--signal-rgb), 0.7);
}

.is-muted .live-dot {
  background: #777;
  box-shadow: none;
}

.gesture-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: min(84vw, 560px);
  align-items: center;
  justify-content: space-between;
  color: #4f554d;
  font-size: 0.58rem;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.gesture-copy strong {
  color: #697067;
  font-size: 0.62rem;
  font-weight: 400;
}

.footer-controls {
  position: absolute;
  bottom: calc(6px + var(--safe-bottom));
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.59rem;
  pointer-events: none;
}

.footer-controls > button,
.volume-control {
  pointer-events: auto;
}

.footer-controls p {
  margin: 0;
  text-align: center;
}

.drawing-controls {
  position: absolute;
  bottom: calc(64px + var(--safe-bottom));
  left: 50%;
  width: min(calc(100% - 40px), 480px);
  transform: translateX(-50%);
}

.drawing-hint {
  margin: 0 0 8px;
  color: var(--ink);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-shadow: 0 1px 8px var(--bg);
}

.drawing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 44px 44px;
  gap: 8px;
  pointer-events: none;
}

.scan-button, .clear-button, .pause-button {
  pointer-events: auto;
  min-height: 44px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.scan-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  border-color: var(--ink);
  white-space: nowrap;
}

#scanIcon { flex: 0 0 auto; font-size: 13px; }

.pause-button { display: grid; place-items: center; padding: 0; border-color: var(--ink); }
.pause-icon { display: flex; gap: 5px; }
.pause-icon::before, .pause-icon::after { content: ""; width: 4px; height: 16px; background: currentColor; }

.scan-button small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.52rem;
  white-space: nowrap;
}

.scan-button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.scan-button[aria-pressed="true"] small { color: var(--bg); }
.scan-button:disabled, .clear-button:disabled {
  opacity: 1;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  border-color: var(--line);
  border-style: dashed;
  cursor: default;
}
.has-drawing .gesture-copy { opacity: 0.3; }
.is-scanning .gesture-copy { opacity: 0; }

.scan-guide { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.scan-guide h3 { font-size: 1rem; font-weight: 500; margin: 0 0 14px; }
.scan-guide p, .scan-guide dd { font-size: 0.83rem; color: var(--muted); line-height: 1.8; }
.scan-guide dl { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.scan-guide dt { color: var(--ink); font-family: monospace; font-size: 0.7rem; line-height: 1.8; }
.scan-guide dd { margin: 0; }
#drumMap, #clatterMap { padding-left: 26px; color: var(--muted); font: 0.72rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 360px) {
  .receiver small { font-size: 0.57rem; }
  .drawing-controls { width: calc(100% - 28px); }
  .scan-button { gap: 6px; padding: 0 10px; }
  .footer-controls { grid-template-columns: 60px 1fr 44px; font-size: 0.5rem; }
}

@media (max-width: 380px) {
  .mode-button span { display: none; }
}

@media (max-width: 999px) {
  .status-line { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .start-panel { padding: calc(12px + var(--safe-top)) 248px calc(12px + var(--safe-bottom)) 12px; }
  .flyer-frame { width: min(calc(100vw - 260px), calc((100svh - var(--safe-top) - var(--safe-bottom) - 24px) * 0.799817), 875px); }
  .entry-home-link { left: auto; right: 16px; width: 216px; transform: none; }
  .entry-home-link img { width: 132px; }
  .status-line { display: none; }
  .mode-button span { display: none; }
  .mode-switch { top: calc(66px + var(--safe-top)); right: 16px; left: auto; width: 216px; }
  .drawing-controls { bottom: calc(70px + var(--safe-bottom)); right: 16px; left: auto; width: 216px; transform: none; }
  .drawing-actions { grid-template-columns: minmax(0, 1fr) 45px 44px 44px; gap: 4px; }
  .scan-button, .clear-button { padding: 0 4px; font-size: 0.6rem; }
  .scan-button { gap: 5px; }
  .scan-button small { display: none; }
  .drawing-hint { margin-bottom: 5px; font-size: 0.6rem; }
  .footer-controls { bottom: calc(5px + var(--safe-bottom)); right: 16px; left: auto; width: 216px; padding: 0; grid-template-columns: 44px 1fr 44px; }
  .footer-controls .text-button { font-size: 0.5rem; }
}

.text-button,
.close-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.footer-controls .text-button:first-child {
  text-align: left;
}

.footer-controls .text-button:last-child {
  text-align: right;
}

.info-panel {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow-y: auto;
  padding: calc(72px + var(--safe-top)) max(24px, calc((100vw - 520px) / 2)) calc(36px + var(--safe-bottom));
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
  touch-action: pan-y;
}

.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.close-button {
  position: absolute;
  top: calc(17px + var(--safe-top));
  right: 20px;
}

.info-panel h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.info-panel > p:not(.eyebrow):not(.credits):not(.install-hint):not(.level-help) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.volume-control {
  display: grid;
  width: min(100%, 280px);
  justify-self: center;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.58rem;
  text-align: center;
}

.volume-control output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.info-panel > p.level-help { margin: 26px 0; font-size: 0.83rem; }

input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--signal);
  touch-action: none;
}

.secondary-button {
  min-height: 58px;
  padding: 12px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.install-hint {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.7;
}

.credits {
  margin: 64px 0 0;
  color: #4f554d;
  font-size: 0.6rem;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (min-width: 760px) and (min-height: 521px) {
  .footer-controls { padding-right: 30px; padding-left: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.record-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  color: var(--signal);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.record-dot { width: 13px; height: 13px; border-radius: 50%; background: currentColor; }
.record-button.is-recording { background: var(--ink); border-color: var(--signal); }
.record-button.is-recording .record-dot { border-radius: 2px; animation: record-pulse 1s ease-in-out infinite; }
.record-button:disabled { cursor: wait; opacity: .6; }
.record-status {
  position: absolute;
  top: calc(58px + var(--safe-top));
  right: 16px;
  max-width: min(90vw, 390px);
  margin: 0;
  background: var(--bg);
  font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
  pointer-events: none;
}
.record-status:empty { display: none; }

/* Camera controls: centered shutter above a horizontal sound-mode strip. */
.lead-tone-switch { display: none; }
.sensor-active .mode-switch,
.sensor-active .buff-button,
.sensor-active .gesture-copy,
.sensor-active .drawing-hint,
.sensor-active .scan-button,
.sensor-active .clear-button,
.sensor-active #infoButton,
.sensor-active #muteButton {
  display: none;
}

.sensor-active .footer-controls {
  opacity: 0;
  pointer-events: none;
}

.sensor-active .footer-controls > * { visibility: hidden; }

.sensor-active .drawing-controls {
  bottom: 0;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .82));
  pointer-events: none;
}

.sensor-active .drawing-actions {
  display: flex;
  justify-content: center;
}

.sensor-active .record-button {
  width: 74px;
  height: 74px;
  border: 3px solid rgba(255, 255, 255, .95);
  background: transparent;
  color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.sensor-active .record-button:active { transform: scale(.95); }
.sensor-active .record-dot {
  width: 60px;
  height: 60px;
  background: #fff;
  transition: width .2s ease, height .2s ease, border-radius .2s ease, background .2s ease;
}
.sensor-active .record-button.is-recording .record-dot {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #ff453a;
  animation: none;
}

.sensor-active .lead-tone-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  width: min(100%, 430px);
  min-height: 44px;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(35, 35, 35, .84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.lead-tone-switch::-webkit-scrollbar { display: none; }
.lead-tone-switch::before,
.lead-tone-switch::after { content: ""; flex: 0 0 calc(50% - 58px); }
.lead-tone-switch button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lead-tone-switch button[aria-checked="true"] {
  color: #eafa18;
  background: rgba(255, 255, 255, .1);
}
.sensor-active .record-button:focus-visible,
.lead-tone-switch button:focus-visible { outline: 2px solid #eafa18; outline-offset: -2px; }

@media (max-height: 520px) {
  .sensor-active .drawing-controls { padding-top: 16px; gap: 8px; }
  .sensor-active .record-button { width: 58px; height: 58px; }
  .sensor-active .record-dot { width: 46px; height: 46px; }
}

.sensor-active .flyer-frame { z-index: 3; }
.sensor-active .flyer-entry { visibility: hidden; }

.record-guide { margin: 28px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.record-guide h3 { font-size: 1rem; }
.record-guide p { color: var(--muted); font-size: .83rem; line-height: 1.8; }
.record-guide button:disabled { opacity: .4; cursor: default; }
.record-share-dialog {
  position: fixed;
  width: min(calc(100vw - 32px), 420px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px 20px 16px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  touch-action: pan-y;
}
.record-share-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.record-share-dialog h2 { margin: 0 0 22px; text-align: center; font-size: 14px; letter-spacing: .16em; }
.record-share-dialog [hidden] { display: none; }
.record-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.record-share-dialog button {
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.record-share-dialog button:active { background: var(--signal); }
.record-share-dialog button:disabled { opacity: .4; cursor: default; }
.record-share-dialog .record-share-wide { display: block; width: 100%; margin-bottom: 12px; }
.record-share-dialog .record-share-cancel { display: block; width: 100%; border: 0; margin-top: 4px; }
.record-share-dialog [data-record-action="download"] { background: var(--signal); }
.archive-intro { font-size: 11px; line-height: 1.7; white-space: pre-line; }
.archive-terms { max-height: 28dvh; overflow-y: auto; border: 1px solid var(--line); padding: 12px; font-size: 10px; line-height: 1.65; white-space: pre-line; }
.archive-agree { display: flex; gap: 10px; align-items: center; min-height: 60px; font-size: 11px; line-height: 1.6; cursor: pointer; }
.archive-agree input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--signal); }
.archive-status { min-height: 16px; font-size: 11px; line-height: 1.6; }
@keyframes record-pulse { 50% { opacity: .3; } }
@media (max-height: 520px) and (orientation: landscape) {
  .record-status { top: calc(117px + var(--safe-top)); width: 216px; }
}
@media (prefers-reduced-motion: reduce) { .record-button.is-recording .record-dot, .activate-fingerprint { animation: none; } }
