/* 中継（relay/）のペアリングの画面（pair.html） */
:root { --bg: #0c0e12; --panel: #12161c; --line: #2a313c; --text: #e8ecf1; --muted: #8d97a5; --accent: #3ea6ff; --accent-ink: #04121f; --err: #ff5d5d; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 24px; margin: 0 0 8px; }
p { margin: 0 0 20px; color: var(--muted); }
.ph { display: inline-block; }
form { display: flex; gap: 12px; flex-wrap: wrap; }
#code { flex: 1 1 220px; min-width: 0; font: 600 34px/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center;
  padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
button { flex: 0 0 auto; min-width: 120px; min-height: 64px; font-size: 20px; font-weight: 700; border-radius: 12px;
  border: 0; background: var(--accent); color: var(--accent-ink); }
button:disabled { opacity: .5; }
#msg { margin: 12px 0 16px; min-height: 1.5em; }
#msg.err { color: var(--err); }
/* 端末の種類（車・スマホ）。押して選ぶ 2 つのボタンの見た目（中身は radio。選んだほうを塗る） */
#kind { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
#kind legend { padding: 0; margin: 0 0 8px; color: var(--muted); }
.kinds { display: flex; gap: 12px; }
.kinds label { flex: 1 1 0; min-width: 0; position: relative; }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.kinds span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font-size: 20px; font-weight: 700;
  white-space: nowrap; cursor: pointer; }
.kinds input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
main > .note { margin: 0; font-size: 15px; }
