/* Tap fob test site. One light look: cream ground, orange accent, dark ink. */
:root {
  --bg: #FFF8F1;
  --card: #FFFFFF;
  --ink: #2A1A0E;
  --muted: #6B5A4E;
  --accent: #F26A1B;
  --accent-text: #B8470A;
  --line: #D9BFA8;
  --soft: #FFF1E3;
  --error: #A3200D;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
.page {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right, 0px)) 32px max(24px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.center { align-items: center; text-align: center; }
.avatar {
  width: 128px; height: 128px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); border-radius: 50%;
  font-size: 56px; font-weight: 900; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.small { width: 112px; height: 112px; font-size: 48px; }
h1 { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.2; text-wrap: balance; }
.lede { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.stack { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
label { font-size: 15px; font-weight: 800; }
input[type="tel"], input[type="text"], input[type="password"] {
  width: 100%; height: 60px; padding: 0 20px;
  font-family: inherit; font-size: 20px; font-weight: 700; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 20px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn {
  width: 100%; min-height: 60px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 19px; font-weight: 900; color: var(--ink);
  background: var(--accent); border: 0; border-radius: 30px;
  text-decoration: none; cursor: pointer;
}
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn.ghost { min-height: 56px; background: transparent; border: 2px solid var(--ink); font-size: 17px; font-weight: 800; }
.grow { flex-grow: 1; }
.fine { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; color: var(--muted); }
.error { margin: 0; font-size: 15px; font-weight: 800; color: var(--error); text-align: left; }
.ok { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--accent-text); }
.panel {
  width: 100%; padding: 32px 24px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: var(--card); border-radius: 32px; box-shadow: 0 10px 30px rgba(42, 26, 14, 0.10);
}
.rows { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.row {
  min-height: 52px; padding: 8px 16px;
  display: flex; align-items: center; gap: 14px;
  background: var(--soft); border-radius: 16px;
  font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none;
  overflow-wrap: anywhere; text-align: left;
}
.row svg { flex-shrink: 0; }
.sub { font-size: 16px; font-weight: 700; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.item { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 22px; }
.item .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item .who { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.item .when { font-size: 14px; font-weight: 700; color: var(--muted); }
.item .detail { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.item .btn { min-height: 48px; font-size: 16px; }
.tag { align-self: flex-start; padding: 2px 10px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; color: var(--ink); background: var(--soft); border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform 0.08s ease; } .btn:active { transform: scale(0.98); } }
