@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Bachelor Trip UI kit: night-first, editorial. Every value comes from a token. */
.bt, .bt * { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
.bt { font: 400 15px/22px var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.bt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* type helpers */
.bt-label { font: 500 11px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.bt-display { font: 600 46px/52px var(--font-display); margin: 0; }
.bt-title { font: 600 30px/34px var(--font-display); margin: 0; }
.bt-h2 { font: 600 24px/28px var(--font-display); margin: 0; }
.bt-numeral { font: 600 88px/92px var(--font-display); color: var(--ink); }
.bt-muted { color: var(--ink-muted); }
.bt-rows > * { border-top: 1px solid var(--line); padding: 16px 0; }
.bt-rows > *:last-child { border-bottom: 1px solid var(--line); }

/* Button: pills. The sand accent fill only appears here and on the active tab. */
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 700 11px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bt-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bt-btn--lg { height: 56px; padding: 0 28px; font: 600 17px/1 var(--font-display); letter-spacing: 0; text-transform: none; }
.bt-btn--block { display: flex; width: 100%; }
.bt-btn--selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Tag: tiny square mono label */
.bt-tag { display: inline-block; font: 700 10px/14px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--on-pop); background: var(--bone); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.bt-tag--clay { background: var(--clay); }
.bt-tag--pink, .bt-tag--dusk { background: var(--dusk); color: var(--on-pop); }
.bt-tag--outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

/* Avatar */
.bt-avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; font: 600 calc(var(--size) * .36)/1 var(--font-display); }
.bt-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* AppNav: floating pill bar on phones, sidebar on desktop */
.bt-nav { position: fixed; z-index: 10; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 66px; display: flex; gap: 2px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-float); }
.bt-nav__item { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; font: 600 11px/14px var(--font-sans); background: none; border: 0; cursor: pointer; }
.bt-nav__item svg { width: 20px; height: 20px; }
.bt-nav__item[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.bt-nav--static { position: static; }
.bt-nav__brand { display: none; }
@media (min-width: 1024px) {
  .bt-nav:not(.bt-nav--bar) { position: sticky; top: 0; left: auto; right: auto; bottom: auto; width: 248px; height: 100vh; flex-direction: column; gap: 4px; padding: 28px 14px; border-radius: 0; border-width: 0 1px 0 0; background: var(--bg); box-shadow: none; }
  .bt-nav:not(.bt-nav--bar) .bt-nav__brand { display: block; padding: 0 12px 24px; font: 600 24px/30px var(--font-display); }
  .bt-nav:not(.bt-nav--bar) .bt-nav__item { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; font-size: 15px; }
}

/* TripHero: photo under scrim, numeral countdown, title, meta row */
.bt-hero { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px 22px; background: var(--surface-sunken) center / cover no-repeat; overflow: hidden; }
.bt-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: var(--scrim); }
.bt-hero > * { position: relative; }
.bt-hero__top { display: flex; justify-content: space-between; }
.bt-hero__count { display: flex; align-items: baseline; gap: 10px; }
.bt-hero__meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line-strong); padding-top: 12px; margin-top: 14px; }

/* DayTabs: numerals with an ink underline */
.bt-days { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bt-day { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 12px; display: grid; justify-items: start; gap: 2px; cursor: pointer; color: var(--ink-muted); font-family: inherit; }
.bt-day__num { font: 600 34px/38px var(--font-display); }
.bt-day[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.bt-day[aria-selected="true"] .bt-label { color: var(--ink); }

/* RunOfShow */
.bt-show__row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.bt-show__time { font: 700 14px/20px var(--font-mono); }
.bt-show__title { font-size: 17px; font-weight: 500; display: block; }
.bt-show__meta { font-size: 13px; color: var(--ink-muted); }

/* FlightBoard */
.bt-board { background: var(--surface); border-radius: var(--radius-lg); padding: 4px 16px 12px; }
.bt-board__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bt-board__time { font: 700 16px/20px var(--font-mono); }
.bt-board__flight { font: 400 11px/16px var(--font-mono); color: var(--ink-muted); }
.bt-status { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/14px var(--font-mono); letter-spacing: .6px; }
.bt-status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.bt-status--ontime { color: var(--bone); }
.bt-status--landed { color: var(--ink-muted); }
.bt-status--delayed { color: var(--clay); }
.bt-seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px; }
.bt-seg button { flex: 1; height: 38px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 700 11px/1 var(--font-mono); letter-spacing: 1px; cursor: pointer; }
.bt-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* RideGroups */
.bt-ride { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.bt-ride__n { font: 600 34px/38px var(--font-display); }
.bt-count { font: 500 11px/14px var(--font-mono); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; }

/* AccessCard: the one bone block */
.bt-access { background: var(--bone); color: var(--on-pop); border-radius: var(--radius-lg); padding: 18px; }
.bt-access .bt-label { color: var(--on-pop); font-weight: 700; }
.bt-access__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.bt-access__code { font: 700 28px/34px var(--font-mono); letter-spacing: 3px; }
.bt-access__wifi { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--on-pop); }
.bt-access .bt-btn { background: var(--on-pop); color: var(--bone); border-color: var(--on-pop); }

/* CrewCard */
.bt-crew { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .bt-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bt-crew { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } }
.bt-crewcard { position: relative; display: block; height: 220px; border-radius: 18px; overflow: hidden; background: var(--surface-sunken) center / cover no-repeat; color: var(--ink); text-decoration: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.bt-crewcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 76px; background: var(--scrim); }
.bt-crewcard__initials { position: absolute; left: 14px; top: 12px; font: 600 34px/38px var(--font-display); color: var(--line-strong); }
.bt-crewcard .bt-tag { position: absolute; right: 10px; top: 10px; }
.bt-crewcard__text { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.bt-crewcard__name { font: 600 17px/20px var(--font-display); }
.bt-crewcard__nick { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* GroceryList */
.bt-groc__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.bt-ring { width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; padding: 0; }
.bt-ring--done { background: var(--bone); border-color: var(--bone); }
.bt-ring--done::after { content: ""; width: 5px; height: 10px; border: solid var(--on-pop); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
button.bt-ring { cursor: pointer; }
.bt-groc__name { font-size: 17px; font-weight: 500; display: block; }
.bt-groc__row--done .bt-groc__name { color: var(--ink-muted); }
.bt-groc__qty { font: 400 12px/16px var(--font-mono); }
.bt-progress { height: 2px; background: var(--line); }
.bt-progress > span { display: block; height: 100%; background: var(--ink); }

/* VoteResults */
.bt-vote__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bt-vote__title { font-size: 17px; font-weight: 500; }
.bt-vote__score { font: 600 24px/28px var(--font-display); }
.bt-vote__bar { height: 2px; background: var(--line); margin-top: 12px; }
.bt-vote__bar > span { display: block; height: 100%; background: var(--bone); }
.bt-vote__counts { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11px/14px var(--font-mono); color: var(--ink-muted); }
.bt-step { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--font-mono); }
.bt-step button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }

/* PhotoDrop */
.bt-drop { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 150px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-muted); cursor: pointer; overflow: hidden; text-align: center; padding: 12px; }
.bt-drop svg { width: 22px; height: 22px; }
.bt-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bt-drop--round { width: 108px; height: 108px; min-height: 0; border-radius: 999px; }
.bt-drop--over { border-color: var(--ink); color: var(--ink); }
.bt-drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* BackgroundPicker */
.bt-bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .bt-bg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.bt-bg-tile { position: relative; height: 150px; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--surface-sunken); cursor: pointer; }
.bt-bg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-bg-tile[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 14px; }
.bt-bg-tile .bt-tag { position: absolute; left: 8px; bottom: 8px; }

/* Fields: underline inputs */
.bt-field { display: grid; gap: 4px; }
.bt-field input, .bt-field select { height: 44px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 400 17px/22px var(--font-sans); padding: 0; }
