/* Wait page of the remote door (REMOTE_PLAN 10.1). Same color tokens as style.css; dark mode follows the system unless data-theme is set. */
:root {
  --bg: #f4f2ee; --panel: #ffffff; --ink: #1f2328; --muted: #5d6570; --line: #d8d4cc;
  --accent: #2f6fde; --accent-ink: #ffffff; --ok: #1a7f37; --bad: #c62828; --soft: #ece8e0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181c; --panel: #1d2127; --ink: #e6e8eb; --muted: #9aa3ad; --line: #353b44;
    --accent: #5b9bff; --accent-ink: #0b1220; --ok: #4ac26b; --bad: #ff6b6b; --soft: #262b33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15181c; --panel: #1d2127; --ink: #e6e8eb; --muted: #9aa3ad; --line: #353b44;
  --accent: #5b9bff; --accent-ink: #0b1220; --ok: #4ac26b; --bad: #ff6b6b; --soft: #262b33;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  -webkit-text-size-adjust: 100%;
}
.wait { max-width: 480px; margin: 0 auto; }
h1 { font-size: 24px; margin: 8px 0 12px; }
.intro { color: var(--muted); margin: 0 0 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.name { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.name span { font-weight: 600; }
input[type="text"] {
  font: inherit; font-size: 16px; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; min-height: 48px; width: 100%;
}
button {
  font: inherit; font-size: 17px; min-height: 48px; width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; touch-action: manipulation;
}
button.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.plain { margin-top: 10px; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.code { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.code strong { font-size: 40px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.status { min-height: 24px; margin: 6px 0; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
