:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b0d12;
  color: #eef0f4;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: #5b8cff; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; }
.nav .brand .dot { color: #5b8cff; }

.shell { max-width: 480px; margin: 3rem auto; padding: 0 1.25rem; }
.shell.wide { max-width: 880px; }

.card {
  background: #12151c; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 1.75rem;
}

h1 { font-size: 1.5rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 0.8rem; }
.sub { color: #9aa2b1; font-size: 0.9rem; margin: 0 0 1.4rem; }

label { display: block; font-size: 0.78rem; color: #9aa2b1; margin: 0.9rem 0 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
input, select {
  width: 100%; padding: 0.65rem 0.75rem; background: #0b0d12; color: #eef0f4;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}
input:focus, select:focus { outline: 1px solid #5b8cff; border-color: #5b8cff; }

button {
  cursor: pointer; border: none; border-radius: 6px; font-family: inherit; font-size: 0.9rem; font-weight: 600;
}
.btn-primary { background: #5b8cff; color: #0b0d12; padding: 0.75rem 1.2rem; width: 100%; margin-top: 1.2rem; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #eef0f4; border: 1px solid rgba(255,255,255,0.2); padding: 0.55rem 0.9rem; }
.btn-ghost { background: none; color: #9aa2b1; padding: 0.4rem 0.6rem; font-size: 0.8rem; }

.error { color: #ff6b6b; font-size: 0.85rem; margin-top: 0.6rem; }
.success { color: #57d38c; font-size: 0.85rem; margin-top: 0.6rem; }

.pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pill.dormant { background: rgba(154,162,177,0.15); color: #9aa2b1; }
.pill.claimed { background: rgba(87,211,140,0.15); color: #57d38c; }
.pill.granted { background: rgba(87,211,140,0.15); color: #57d38c; }
.pill.pending { background: rgba(235,190,90,0.15); color: #ebbe5a; }

table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
th { color: #9aa2b1; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
td.mono, th.mono { font-family: ui-monospace, monospace; font-size: 0.82rem; }

.row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

.muted { color: #9aa2b1; font-size: 0.85rem; }
.center { text-align: center; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin-top: 1rem; font-size: 0.92rem; }
.kv dt { color: #9aa2b1; }
.kv dd { margin: 0; }

.badge-verified { display: inline-flex; align-items: center; gap: 0.4rem; color: #57d38c; font-weight: 600; }
.badge-invalid { display: inline-flex; align-items: center; gap: 0.4rem; color: #ff6b6b; font-weight: 600; }

/* ---- the tag page ------------------------------------------------------- */
/* The number printed on the tag in the passenger's hand. Set in a monospace
   face at a size meant to be compared at arm's length against a physical tag,
   because comparing it is the whole reason it is on screen. */
.plate{font:700 26px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;
  margin:0 0 14px;color:var(--fg,#e8eaed)}
.tick{width:56px;height:56px;margin:2px auto 14px;border-radius:50%;
  background:#1f7a4d;color:#fff;font-size:30px;line-height:56px;text-align:center}
.hint{font-size:12.5px;line-height:1.5;color:#9aa1ab;margin:8px 0 0}
.block{display:block;text-align:center;text-decoration:none}
.acts{margin-top:14px}
.acts .btn-secondary{margin-top:0}
.bags{list-style:none;margin:16px 0 0;padding:0}
.bags li{display:flex;flex-direction:column;gap:3px;padding:12px 0;border-top:1px solid #262b33}
.bags li:first-child{border-top:0}
.bagno{font:700 17px/1.15 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em}
.bagwhere{font-size:12.5px;color:#9aa1ab}
