
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Figtree:wght@500;600;700;800&display=swap");
:root {
  --brand: #FFC21A; --brand-hi: #FFD84D; --brand-dark: #E6A700; --ink: #14110F; --paper: #ffffff;
  --muted: #5F5A55; --line: #EFE9DD; --soft: #FFF8DC; --cream: #FFFBEF;
  --shadow: 0 12px 32px rgba(20,17,15,.14);
  --page: #FFE17A; --glow: 230,167,0; --glow2: 255,194,26; --edge: var(--edge);
  --pend-bg: #FFE9A6; --pend-fg: #7A5200; --hdr1: #1d1916; --hdr2: #14110F; --on-brand: #14110F; --bgimg: url(/background);
}
html { font-size: 18px; background: var(--page); }
body {
  font-family: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1rem; line-height: 1.5; color: var(--ink);
  margin: 0 auto; padding: 16px 16px 120px; min-height: 100vh; position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: var(--bgimg) center / cover no-repeat, var(--page);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 55%, rgba(255,255,255,0) 100%);
}
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; color: var(--ink); line-height: 1.2; }
h3 { font-size: 1.35rem; margin: 18px 0 8px; font-weight: 700; }
h4 { font-size: 1.1rem; margin: 8px 0; }
p, label, li { font-size: 1rem; }
a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--brand-dark); text-decoration-thickness: 3px; text-underline-offset: 3px; }
header {
  background: linear-gradient(135deg, var(--hdr1), var(--hdr2)); border-radius: 24px; padding: 20px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow); border-bottom: 6px solid var(--brand);
}
header h2 { margin: 0; color: var(--hdr-accent, var(--brand)); font-size: 1.9rem; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
header h2::before { content: "\1F68C  "; }
header a { color: #fff; text-decoration-color: var(--brand); white-space: nowrap; margin-left: 12px; font-size: .95rem; }
#school_name { font-size: 2.3rem; }
input, select, textarea {
  font-family: inherit; font-size: 1rem; font-weight: 600; padding: 14px 16px; min-height: 52px;
  border: 2px solid #D9D2C3; border-radius: 16px; background: #fff; color: var(--ink); outline: none;
}
input::placeholder { color: #8A837B; font-weight: 500; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(var(--glow2),.6); }
label { font-weight: 700; }
button {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  min-height: 52px; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); color: var(--on-brand);
  border: 0; border-radius: 16px; box-shadow: 0 6px 16px rgba(var(--glow),.45), inset 0 -3px 0 rgba(0,0,0,.12); cursor: pointer;
}
button:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(var(--glow),.4); }
button:disabled { opacity: .55; }
button.small { min-height: 44px; font-size: .9rem; padding: 8px 16px; }
button.grey { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset, 0 4px 10px rgba(20,17,15,.1); }
button.red { background: var(--ink); color: var(--brand-hi); box-shadow: 0 6px 14px rgba(20,17,15,.3); }
.card, .note {
  background: rgba(255,255,255,.97); border: 1px solid rgba(20,17,15,.06); border-radius: 24px;
  padding: 18px 20px; margin: 16px 0; box-shadow: var(--shadow);
}
.note.new { background: var(--soft); border-left: 8px solid var(--brand); }
.panel { background: var(--cream); border: 2px dashed var(--edge); border-radius: 18px; padding: 14px; margin-top: 12px; }
.stop { border-bottom: 1px solid var(--line); padding: 10px 0; }
.stop:last-child { border-bottom: 0; }
.loc { border-top: 2px dotted var(--edge); margin-top: 12px; padding-top: 10px; }
small, .hint { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pill { font-weight: 800; font-size: .78rem; padding: 4px 13px; border-radius: 99px; display: inline-block; }
.pill.pending { background: var(--pend-bg); color: var(--pend-fg); }
.pill.ok { background: #CFF5DC; color: #0B5A33; }
.pill.bad { background: #FFD5D5; color: #8A1C1C; }
.pill.morn { background: #FFF0B3; color: var(--ink); }
.pill.eve { background: var(--ink); color: var(--brand-hi); }
nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 900; margin: 0 auto; max-width: 720px;
  display: flex; gap: 0; background: var(--ink); border-radius: 26px; padding: 7px; box-shadow: 0 14px 34px rgba(20,17,15,.4);
}
nav button {
  flex: 1; min-height: 58px; background: transparent; color: #CFC8BD; box-shadow: none; border: 0; margin: 0 2px;
  padding: 6px 2px; font-size: .68rem; font-weight: 700; line-height: 1.25; border-radius: 20px; width: auto;
  flex: 1 0 auto; min-width: 62px;
}
nav { overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav button:active { transform: none; box-shadow: none; }
nav button.on { background: var(--brand); color: var(--on-brand); }
nav button span.ico { display: block; font-size: 1.35rem; }
#status, #msg, #m_msg { min-height: 1.3em; font-weight: 800; }
#status.err, #msg, #m_msg { color: #B42318; }
#status.ok, #msg.ok { color: #067647; }
.sheet { border-radius: 28px 28px 0 0; border-top: 8px solid var(--brand); }
.seg { display: flex; gap: 8px; margin: 8px 0; }
.seg button { flex: 1; min-height: 46px; background: #fff; box-shadow: 0 0 0 2px var(--ink) inset; font-size: .9rem; }
.seg button.on { background: var(--ink); color: var(--brand-hi); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0; }
.tile { background: rgba(255,255,255,.97); border-radius: 24px; padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid rgba(20,17,15,.06); }
.tile b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.6rem; line-height: 1.05; font-weight: 800; }
.tile span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.tile.hot { background: linear-gradient(160deg, var(--brand-hi), var(--brand)); }
.tile.hot span { color: var(--ink); }
.counts div { background: var(--cream); border: 0; border-radius: 16px; }
.counts b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }

/* sign-in / landing page */
.hero { text-align: center; padding: 34px 6px 24px; }
.hero .logo { font-size: 4.6rem; line-height: 1; filter: drop-shadow(0 8px 10px rgba(20,17,15,.25)); }
.hero h1 {
  font-size: clamp(3.2rem, 15vw, 4.8rem); line-height: 1; margin: 8px 0 6px; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}
.hero h1 span { background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%); padding: 0 .08em; }
.hero p { font-size: 1.25rem; font-weight: 700; margin: 10px 0 0; color: var(--ink); }
.hero .stripe {
  height: 14px; margin: 20px auto 0; max-width: 240px; border-radius: 99px;
  background: repeating-linear-gradient(45deg, var(--ink) 0 14px, var(--brand) 14px 28px);
}
#login, #register, #forgot, #reset {
  background: rgba(255,255,255,.97); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(20,17,15,.06);
}
#login h3, #register h3, #forgot h3, #reset h3 { margin-top: 0; }

/* action banner and footer */
.todo {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 16px 18px; margin: 14px 0;
  box-shadow: var(--shadow); border-left: 10px solid var(--brand);
}
.todo.alert { background: #8A1C1C; border-left-color: #FFD84D; }
.todo b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.todo small { color: #E9E4DA; display: block; margin-bottom: 8px; font-size: .95rem; }
.todo button { min-height: 46px; margin-top: 4px; }
.steps { margin: 6px 0 0; padding: 0; list-style: none; }
.steps li { padding: 4px 0; font-weight: 700; font-size: .98rem; }
.steps li.done { opacity: .55; text-decoration: line-through; }
.steps li.next { color: var(--brand-hi); }
.foot { text-align: center; margin: 26px 0 8px; font-size: .9rem; font-weight: 700; }
.foot a { margin: 0 8px; }
.legal { background: rgba(255,255,255,.97); border-radius: 24px; padding: 8px 22px 22px; margin: 16px 0; box-shadow: var(--shadow); }
.legal h3 { margin-top: 22px; }
.consent { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0; line-height: 1.4; }
.legal li, .legal p { line-height: 1.6; }
.badge-dot { display: inline-block; background: #D92D20; color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }

/* ===== design v2: warm palette, route-line identity ===== */
:root {
  --brand: #FFB020; --brand-hi: #FFC857; --brand-dark: #E8960C; --ink: #2A1838; --paper: #fff;
  --muted: #6B5A77; --line: #F0E1CF; --soft: #FFEBD0; --cream: #FFF8EE;
  --page: #FFF3E4; --glow: 232,150,12; --glow2: 255,176,32; --edge: #F0D9BA;
  --pend-bg: #FFE3A6; --pend-fg: #7A4A00; --hdr1: #41245C; --hdr2: #2A1838; --on-brand: #2A1838;
  --hdr-accent: #FFC857; --coral: #FF5E4D;
  --shadow: 0 14px 34px -14px rgba(42,24,56,.38);
  --bgimg: radial-gradient(900px 520px at 100% -8%, rgba(255,94,77,.20), transparent 62%), radial-gradient(760px 520px at -10% 4%, rgba(255,176,32,.34), transparent 62%), radial-gradient(900px 640px at 55% 118%, rgba(255,94,77,.12), transparent 60%);
}
html { background: var(--page); }
body::before { background: var(--bgimg), var(--page); }
body::after { background: none; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 20px; margin-bottom: 16px; border-bottom: 0;
  background: linear-gradient(120deg, var(--hdr1), var(--hdr2)); box-shadow: var(--shadow);
}
header h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: #fff; display: flex; align-items: center; }
header h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; margin-right: 11px;
  background: var(--hdr-accent); box-shadow: 0 0 0 4px rgba(255,255,255,.16);
}
#school_name { font-size: 1.3rem; }
header a {
  color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; margin-left: 0;
  padding: 9px 15px; border-radius: 99px; background: rgba(255,255,255,.14);
}
.card, .note, .tile, .legal { border-radius: 20px; }
input, select, textarea { border-radius: 14px; border-color: var(--edge); }
input:focus, select:focus { border-color: var(--ink); }
button { border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(var(--glow),.8); }
button:active { box-shadow: 0 2px 6px rgba(var(--glow),.4); }
button.grey { background: #fff; box-shadow: 0 0 0 2px var(--ink) inset; }
button.red { background: #B42318; color: #fff; box-shadow: 0 8px 18px -8px rgba(180,35,24,.7); }
nav { border-radius: 22px; background: var(--ink); }
nav button { border-radius: 16px; }
h3 { letter-spacing: -.01em; }
.note.new { border-left: 8px solid var(--coral); background: var(--soft); }
.pill { border-radius: 99px; }
.foot a { color: var(--ink); text-decoration-color: var(--brand-dark); }
#status:empty { display: none; }
#status { margin: 8px 0; }
.todo { border-left: 0; box-shadow: inset 8px 0 0 var(--brand), var(--shadow); padding-left: 24px; }
.todo.alert { box-shadow: inset 8px 0 0 #FFD84D, var(--shadow); }
.steps li.next { color: var(--hdr-accent); }
.tile.hot { color: var(--on-brand); }
.tile.hot b, .tile.hot span { color: var(--on-brand); }

/* ===== design v3: bright and friendly (sun yellow, sky blue) ===== */
:root {
  --brand: #FFC400; --brand-hi: #FFD84A; --brand-dark: #E0A800; --ink: #0B2545; --paper: #fff;
  --muted: #51647D; --line: #E3EDF7; --soft: #FFF4CC; --cream: #F6FAFF; --page: #F3F9FF; --edge: #D5E4F3;
  --glow: 224,168,0; --glow2: 255,196,0; --pend-bg: #FFE9A0; --pend-fg: #6B4E00;
  --hdr1: #FFD84A; --hdr2: #FFC400; --hdr-text: #0B2545; --hdr-accent: #0B2545; --hdr-chip: rgba(11,37,69,.10);
  --on-brand: #0B2545; --coral: #FF5A4E; --sky: #1E88FF; --sky-dark: #0B63CE;
  --panel1: #2B95FF; --panel2: #0B4DB5; --sun: #FFC400;
  --shadow: 0 14px 30px -16px rgba(11,37,69,.35);
  --bgimg: radial-gradient(800px 460px at 100% -10%, rgba(255,196,0,.30), transparent 60%),
           radial-gradient(700px 520px at -10% 100%, rgba(30,136,255,.13), transparent 60%);
}
header { background: linear-gradient(120deg, var(--hdr1), var(--hdr2)); }
header h2 { color: var(--hdr-text); }
header h2::before { background: var(--hdr-accent); box-shadow: 0 0 0 4px var(--hdr-chip); }
header a { color: var(--hdr-text); background: var(--hdr-chip); }
nav { background: #fff; border: 1px solid var(--edge); box-shadow: 0 16px 36px -14px rgba(11,37,69,.40); }
nav button { color: var(--muted); }
nav button.on { background: var(--brand); color: var(--on-brand); }
.todo { background: var(--soft); color: var(--ink); box-shadow: inset 8px 0 0 var(--brand), var(--shadow); }
.todo small { color: var(--muted); }
.todo.alert { background: #FFEFC2; box-shadow: inset 8px 0 0 var(--coral), var(--shadow); }
.todo.alert b { color: #8A1C1C; }
.steps li.next { color: var(--ink); }
.note.new { border-left: 8px solid var(--brand); }
#live > .card { background: linear-gradient(165deg, #fff 0%, var(--soft) 150%); padding: 22px; }
.bigmsg { font-size: 1.5rem; }
.eta { color: var(--sky-dark); font-size: 4rem; }
.kid-head { display: flex; align-items: center; gap: 12px; }
.kid-head > div { flex: 1; min-width: 0; }
.kid-head b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; display: block; }
.avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.2rem; }
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 540px) { .locs { grid-template-columns: 1fr; } }
.kid .loc { border: 1px solid var(--edge); background: var(--cream); border-radius: 16px; padding: 12px 14px; margin-top: 0; }
.kid > .loc { margin-top: 10px; }
