/* Florida 2026 — phone-first. Big targets, high contrast, readable in sun. */

:root {
  /* Palette taken off a Florida sunset: deep ocean blue, sky blue, and the
     sun's orange kept as the single accent so it always means "act here". */
  --ink:        #13202c;
  --ink-soft:   #5a6b7a;
  --ink-faint:  #8b9aa8;
  --paper:      #f1f5f9;
  --card:       #ffffff;
  --line:       #dce4ed;
  --sea:        #0d2f4f;
  --sea-deep:   #071d33;
  --sea-bright: #1f7099;
  --sun:        #e8843c;
  --gold:       #f0b455;
  --coral:      #cf5a52;
  --sky:        #4a9fd8;
  --radius:     16px;
  --shadow:     0 1px 2px rgba(19,32,44,.06), 0 6px 20px rgba(19,32,44,.07);
  --safe-b:     env(safe-area-inset-bottom, 0px);
  --safe-t:     env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Several components below set display, which would otherwise beat [hidden]. */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- profile gate ---------- */

.gate {
  position: fixed; inset: 0; z-index: 50;
  background: var(--sea-deep) url('/sunset.svg?v=2') center center / cover no-repeat;
  color: #fff; display: grid; place-items: center; padding: 24px;
}
.gate-inner { width: 100%; max-width: 420px; text-align: center; }
.gate-title { font-size: 40px; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 700; }
.gate-title span { opacity: .55; font-weight: 300; }
.gate-sub { margin: 0 0 28px; opacity: .75; }
.gate-list { display: grid; gap: 10px; }
.gate-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 14px 18px; border-radius: 14px; text-align: left; color: #fff;
  font-size: 18px; font-weight: 600;
}
.gate-btn:active { background: rgba(255,255,255,.22); }
.gate-btn .e { font-size: 26px; }
.gate-btn .r { margin-left: auto; font-size: 13px; font-weight: 400; opacity: .6; }

/* ---------- shell ---------- */

.view {
  padding: calc(var(--safe-t) + 14px) 14px 96px;
  max-width: 640px; margin: 0 auto;
  min-height: 100dvh;
}

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; padding: 9px 2px 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tab .ico { font-size: 17px; line-height: 1; }
.tab.is-on { color: var(--sea-bright); }
.tab[hidden] { display: none; }

.fab {
  position: fixed; right: 16px; z-index: 31;
  bottom: calc(var(--safe-b) + 66px);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sun); color: #fff;
  font-size: 30px; font-weight: 300; line-height: 1;
  box-shadow: 0 4px 16px rgba(232,132,60,.45);
}
.fab:active { transform: scale(.94); }

/* ---------- type ---------- */

h2.screen { font-size: 26px; letter-spacing: -.02em; margin: 4px 0 2px; }
.screen-sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 18px; }
.sec { margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
       text-transform: uppercase; color: var(--ink-faint); }

/* ---------- cards ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(155deg, var(--sea), #1b5378 70%, #235f85);
  color: #fff; border: 0; padding: 22px;
  position: relative; overflow: hidden;
}
.hero .eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .62; }
.hero h1 { margin: 6px 0 2px; font-size: 27px; line-height: 1.15; letter-spacing: -.02em; }
.hero .when { opacity: .72; font-size: 14px; }
.hero .row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero .pill {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
}
.hero .pill:active { background: rgba(255,255,255,.3); }

.bed { display: flex; gap: 13px; align-items: flex-start; }
.bed .name { font-weight: 650; font-size: 17px; }
.bed .addr { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }
.bed .ref  { color: var(--ink-faint); font-size: 12px; margin-top: 5px; font-variant-numeric: tabular-nums; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
      border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-soft); }
.kv .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- day cards ---------- */

.day { padding: 0; overflow: hidden; }
.day-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.day-date {
  flex: 0 0 46px; text-align: center; line-height: 1;
  border-right: 1px solid var(--line); padding-right: 11px;
}
.day-date .d { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.day-date .m { font-size: 10px; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; letter-spacing: .06em; }
.day-main { flex: 1; min-width: 0; }
.day-title { font-weight: 640; font-size: 15.5px; }
.day-meta { color: var(--ink-faint); font-size: 12.5px; margin-top: 3px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-chev { color: var(--ink-faint); font-size: 13px; }
.day.is-today { border-color: var(--sea-bright); box-shadow: 0 0 0 2px rgba(31,112,153,.16), var(--shadow); }
.day.is-past { opacity: .5; }
.day-body { border-top: 1px solid var(--line); padding: 6px 16px 14px; }

.tagdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }

/* ---------- items ---------- */

.item { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 15px; font-weight: 560; }
.item-sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.item-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.item.done .item-title { text-decoration: line-through; color: var(--ink-faint); }
.item-act { color: var(--ink-faint); font-size: 18px; padding: 6px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px;
         font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge.todo   { background: #fdeddc; color: #a3561c; }
.badge.booked { background: #e0edf7; color: #17547e; }
.badge.done   { background: #e9edf2; color: #6f7b88; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -14px; padding-inline: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chip.is-on { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------- votes ---------- */

.voters { display: flex; gap: 4px; align-items: center; }
.voter {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; border: 2px solid transparent; background: #e6ecf2; filter: grayscale(1); opacity: .38;
}
.voter.on { filter: none; opacity: 1; background: #fff; }

/* ---------- forms ---------- */

label.f { display: block; margin: 13px 0 5px; font-size: 12.5px; font-weight: 650; color: var(--ink-soft); }
input.f, textarea.f, select.f {
  width: 100%; padding: 12px 13px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink);
}
input.f:focus, textarea.f:focus, select.f:focus { outline: 2px solid var(--sea-bright); outline-offset: -1px; }
textarea.f { min-height: 76px; resize: vertical; }

.btn {
  display: block; width: 100%; padding: 14px; border-radius: 12px;
  background: var(--sea); color: #fff; font-weight: 700; font-size: 16px; margin-top: 18px;
}
.btn:active { background: var(--sea-bright); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); margin-top: 8px; }
.btn.danger { background: transparent; color: var(--coral); border: 1px solid #f0d5d6; }
.btn:disabled { opacity: .5; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- sheet ---------- */

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(13,47,79,.5); display: flex; align-items: flex-end; }
.sheet-card {
  background: var(--paper); width: 100%; max-height: 92dvh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding-bottom: calc(var(--safe-b) + 20px);
  animation: rise .18s ease-out;
}
@keyframes rise { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }
.sheet-head {
  position: sticky; top: 0; background: var(--paper); z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 18px 12px; border-bottom: 1px solid var(--line); font-size: 17px;
}
.sheet-body { padding: 4px 18px 8px; }
.x { font-size: 19px; color: var(--ink-faint); padding: 4px 8px; }

/* ---------- misc ---------- */

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 84px); z-index: 70;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
}
.empty { text-align: center; color: var(--ink-faint); padding: 40px 20px; font-size: 14px; }
.lookup-hit { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lookup-hit strong { display: block; font-size: 15px; }
.lookup-hit span { font-size: 12.5px; color: var(--ink-soft); }
.wait { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; }
.wait.low  { color: var(--sea-bright); }
.wait.mid  { color: var(--sun); }
.wait.high { color: var(--coral); }
.wait.shut { color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.bar { height: 7px; border-radius: 999px; background: #e4eaf1; overflow: hidden; margin-top: 7px; }
.bar > i { display: block; height: 100%; background: var(--sea-bright); }
.bar.over > i { background: var(--coral); }
.offline { background: #fdeddc; color: #a3561c; text-align: center;
           padding: 7px; font-size: 12.5px; font-weight: 650; border-radius: 9px; margin-bottom: 12px; }

/* ---------- ride rows ---------- */

.ride { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ride:last-child { border-bottom: 0; }
.ride-top { display: flex; align-items: baseline; gap: 10px; }
.ride-name { flex: 1; font-size: 14.5px; font-weight: 550; line-height: 1.3; }
.ride .voters { margin-top: 7px; }
.vote-count { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; margin-left: 4px; }

/* Rides use bigger tap targets than the inline item voters: five circles in a
   row is the most-tapped control in the app and it gets used one-handed. */
.ride .voter { width: 31px; height: 31px; font-size: 16px; }

/* ---------- coming up (next couple of days on the Now screen) ---------- */

.ahead {
  display: block; width: 100%; text-align: left;
  padding: 14px 16px; cursor: pointer;
}
.ahead:active { background: #fafcfe; }
.ahead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ahead-when {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--sea-bright);
}
.ahead-drive { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ahead-title { font-size: 16px; font-weight: 640; margin-top: 5px; line-height: 1.25; }
.ahead-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.ahead-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ahead-chip {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ahead-chip.more { color: var(--ink-faint); background: transparent; }

/* The gate's text sits over artwork, so it needs its own contrast. */
.gate-inner { text-shadow: 0 2px 18px rgba(3,11,22,.75); }
.gate-btn {
  background: rgba(7,29,51,.42);
  backdrop-filter: blur(3px);
  border-color: rgba(255,255,255,.28);
  text-shadow: none;
}
.gate-btn:active { background: rgba(7,29,51,.62); }

/* ---------- flights on a day ---------- */

.flights {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 12px; margin: 8px 0 12px;
}
.flights.tight { margin: 8px 0 0; padding: 7px 10px; }
.flight { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 13px; }
.flight-route { flex: 1; font-weight: 600; min-width: 0; }
.flight-no { color: var(--ink-faint); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.flight-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sea-bright); white-space: nowrap; }
.flight-ref {
  font-size: 11.5px; color: var(--ink-faint); margin-top: 5px;
  padding-top: 5px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums;
}

/* ---------- reorder arrows ---------- */

.mover { display: flex; flex-direction: column; gap: 1px; flex: 0 0 26px; margin-right: -2px; }
.mv {
  width: 26px; height: 21px; border-radius: 6px;
  color: var(--sea-bright); background: var(--paper);
  font-size: 10px; line-height: 1; display: grid; place-items: center;
}
.mv:active { background: var(--sea-bright); color: #fff; }
.mv:disabled { opacity: .25; background: transparent; }
