:root {
  --bg: #f1f5f9; --card: #fff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --accent: #2563eb; --in: #16a34a; --out: #2563eb; --transfer: #7c3aed; --err: #dc2626; --warn: #d97706;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 520px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
h1 { font-size: 1.3rem; margin: 0; }
h2 { font-size: 1rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; font: inherit; font-weight: 600; background: var(--accent); color: #fff; text-align: center; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--muted); font-weight: 400; }
.full { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.full.in { background: var(--in); } .full.out { background: var(--out); } .full.transfer { background: var(--transfer); }
.full.err { background: var(--err); } .full.wait { background: #334155; }
.full .icon { font-size: 5rem; line-height: 1; }
.full .title { font-size: 2.4rem; font-weight: 700; margin: 12px 0 4px; }
.full .name { font-size: 1.5rem; }
.full .sub { font-size: 1.1rem; opacity: .9; margin-top: 8px; }
.full .btn { background: rgb(255 255 255 / .2); margin-top: 32px; max-width: 320px; }
.status { display: flex; align-items: center; gap: 12px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--in); box-shadow: 0 0 0 4px rgb(22 163 74 / .2); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.tile b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.badge { display: inline-block; padding: 0 8px; border-radius: 99px; font-size: .8rem; background: #e0e7ff; color: var(--accent); }
.badge.in { background: #dcfce7; color: var(--in); } .badge.warn { background: #fef3c7; color: var(--warn); }
.badge.abs { background: #f3e8ff; color: var(--transfer); }
.month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month button { border: 0; background: var(--bg); border-radius: 10px; width: 40px; height: 36px; font-size: 1.1rem; cursor: pointer; }
.wkend { color: var(--muted); }
