/* 通話録音：枠は押せる物（ボタン・入力）だけ。面の入れ子・片側だけの線は使わない。 */
:root {
  --bg: #f7f6f3;
  --ink: #1f2328;
  --sub: #5d6470;
  --faint: #8a909a;
  --accent: #0e6f6e;
  --accent-ink: #ffffff;
  --btn: #e9e7e1;
  --danger: #b3261e;
  --me: #1d5fa8;
  --them: #a0480f;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
main { max-width: 720px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }
h1 { font-size: 22px; margin: 4px 0 18px; font-weight: 700; letter-spacing: .02em; }
h2 { font-size: 16px; margin: 30px 0 10px; font-weight: 700; color: var(--sub); }
p { line-height: 1.7; margin: 8px 0; }
.sub { color: var(--sub); font-size: 14px; }
.faint { color: var(--faint); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

button, .btn {
  font: inherit; font-size: 16px; border: 0; border-radius: 12px; padding: 13px 18px;
  background: var(--btn); color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
button.danger { background: var(--danger); color: #fff; font-weight: 700; }
button.wide { width: 100%; }
button.big { min-height: 64px; font-size: 18px; border-radius: 16px; }
button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
button svg, .btn svg { width: 20px; height: 20px; flex: none; }

input, select {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #c9c6bd; background: #fff; color: var(--ink);
}
label { display: block; font-size: 14px; color: var(--sub); margin: 16px 0 6px; }

.calls { list-style: none; margin: 0; padding: 0; }
.calls li { margin: 0 0 8px; }
.calls button { width: 100%; justify-content: space-between; background: transparent; padding: 12px 4px; border-radius: 10px; }
.calls button:active { background: var(--btn); }
.calls .when { font-weight: 700; }

.status { font-size: 28px; font-weight: 700; margin: 26px 0 6px; }
.status.live { color: var(--danger); }
.timer { font-variant-numeric: tabular-nums; }
.link { font-size: 14px; color: var(--sub); word-break: break-all; margin: 10px 0 14px; }

.lines { margin: 8px 0 0; padding: 0; list-style: none; }
.lines li { padding: 8px 0; line-height: 1.65; }
.lines .t { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.lines .who { font-weight: 700; margin-right: 4px; }
.lines .who.me { color: var(--me); }
.lines .who.them { color: var(--them); }
.lines .emo { font-size: 13px; color: var(--danger); margin-left: 4px; }
.lines li.hit { background: #fff3c4; border-radius: 8px; }

.map { width: 100%; overflow: clip; margin: 8px 0; }
.map svg { display: block; width: 100%; height: auto; }
.map text { font-family: var(--font); }
.note { font-size: 13px; color: var(--sub); }
.err { color: var(--danger); font-size: 14px; white-space: pre-wrap; }
audio.player { width: 100%; margin: 6px 0; }
.tabs { display: flex; gap: 8px; margin: 18px 0 4px; }
.tabs button { flex: 1; }
.tabs button[aria-pressed="true"], button.small[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; }
.viewer { position: fixed; inset: 0; background: var(--bg); z-index: 10; display: flex; flex-direction: column; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 8px; }
.viewer-map { flex: 1; touch-action: none; overflow: clip; }
/* 日本語の折り返しを語の切れ目で（Chrome。Safari はそのまま） */
p, .sub, .faint, .note, h1, .status { word-break: auto-phrase; }
