:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #2c2a28;
  --muted: #8a847c;
  --line: #e6e1d8;
  --accent: #e0708f;
  --accent-deep: #c24f72;
  --you: #5b8fd9;
  --ok: #3aa676;
  --danger: #d9534f;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.5;
  padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 24px);
  -webkit-text-size-adjust: 100%;
}
.screen { display: none; max-width: 520px; margin: 0 auto; }
.screen.active { display: block; }

.brand { text-align: center; padding: 48px 0 24px; }
.brand-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(194, 79, 114, .25); }
.brand h1 { margin: 16px 0 4px; font-size: 32px; letter-spacing: .1em; }
.sub { margin: 0; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
textarea { resize: vertical; }
button { font: inherit; cursor: pointer; }
.primary {
  width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 600;
}
.ghost { padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent-deep); background: #fff; border-radius: 999px; }
.ghost.recording { background: var(--danger); border-color: var(--danger); color: #fff; }
.link { border: 0; background: none; color: var(--muted); text-decoration: underline; }
.error { color: var(--danger); margin: 10px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
.center { text-align: center; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; margin-top: 14px; }
.check input { width: auto; }

.top { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; }
.top-icon { width: 32px; height: 32px; border-radius: 9px; }
.top-title { font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.pill { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #eee9e0; color: var(--muted); }
.pill.ok { background: #e3f4ec; color: var(--ok); }
.pill.busy { background: #fbe9ee; color: var(--accent-deep); }

details { margin-top: 10px; }
summary { color: var(--accent-deep); font-size: 14px; cursor: pointer; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid .wide { grid-column: 1 / -1; }

.call { text-align: center; margin: 20px 0 8px; }
.call-btn {
  width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: var(--ok); color: #fff; box-shadow: 0 8px 24px rgba(58, 166, 118, .35);
  transition: transform .1s, background .2s;
}
.call-btn svg { width: 44px; height: 44px; fill: currentColor; }
.call-btn:active { transform: scale(.96); }
.call-btn:disabled { background: #c9c3b9; box-shadow: none; }
.call-btn.live { background: var(--danger); box-shadow: 0 8px 24px rgba(217, 83, 79, .35); }
.call-btn.live svg { transform: rotate(135deg); }
.call-label { margin-top: 8px; font-weight: 600; }
.timer { color: var(--muted); font-variant-numeric: tabular-nums; }

.lanes .lane { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.who { flex: 0 0 3.5em; white-space: nowrap; font-size: 13px; color: var(--you); font-weight: 600; }
.who.haru { color: var(--accent-deep); }
.lane canvas { flex: 1 1 auto; min-width: 0; width: 100%; height: 40px; background: #faf8f4; border-radius: 10px; }
.subtitle { min-height: 4.5em; margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.status { text-align: center; color: var(--muted); min-height: 1.5em; margin: 8px 0; }
.status.warn { color: var(--danger); }
.credit { text-align: right; margin: 4px 2px 0; }
