:root {
  --sand: #f4f1e8;
  --ink: #1b241c;
  --court: #147a4b;
  --shuttle: #f0c419;
  --line: #06c755;
  --card: #fffcf6;
  --muted: #5d6b5f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Noto Sans Thai", "Sarabun", sans-serif;
  background: var(--sand);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 32rem; margin: 0 auto; padding: 1rem 1rem 6rem; }
.guest { max-width: 26rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
h1, h2, h3 { margin: 0; }
.eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--court); }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border-radius: 1.4rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.stack { display: flex; flex-direction: column; gap: 0.85rem; }
.row { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
label { display: block; font-size: 0.95rem; }
input, select, button {
  font: inherit;
}
input, select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 0.85rem;
  background: #fff;
}
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-court { background: var(--court); color: #fff; }
.btn-line { background: var(--line); color: #fff; }
.btn-white { background: #fff; border: 1px solid rgba(0,0,0,.1); }
.btn-shuttle { background: var(--shuttle); }
.btn-small { width: auto; padding: 0.45rem 0.75rem; font-size: 0.8rem; border-radius: 0.8rem; }
.notice { border-radius: 1rem; padding: 0.8rem 1rem; background: #fff; font-size: 0.92rem; }
.notice-warn { background: rgba(240,196,25,.35); }
.notice-ok { background: rgba(20,122,75,.12); }
.notice-err { background: #ffe3e3; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; }
.time { font-size: 1.7rem; font-weight: 800; }
.header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.95rem; }
.map-link { color: var(--court); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.hint { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.85rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
