/* The new maps, picks A (Map tab) and D (Race Day when cheering), Nov 11, 2026 (DECISIONS #250). Built from mock/maps.
   One font, white space, no gradients, glossy icons as big pictures, nothing off the screen edge.
   Scoped to #app .gx so the older stylesheets can't reach in, and theirs can't reach out. */
#app .gx {
  --gx-surface: var(--color-surface, #fff); --gx-sunken: var(--color-sunken, #f2f3f5); --gx-line: var(--color-line, #e6e8ec);
  --gx-text: var(--color-text, #16181d); --gx-muted: var(--color-text-2, #5f6672); --gx-brand: var(--color-brand, #2447d9);
  --gx-brand-soft: var(--color-brand-soft, #e9eefe); --gx-shadow: 0 6px 24px rgba(16, 24, 40, .14), 0 1px 3px rgba(16, 24, 40, .08);
  position: fixed !important; top: 0; left: 0; right: 0; bottom: 84px; z-index: 1; display: flex !important;
  margin: 0 !important; padding: 0 !important; max-width: none !important; min-width: 0 !important; transform: none !important;
  font: 400 15px/1.4 Inter, system-ui, sans-serif; color: var(--gx-text); background: var(--gx-sunken);
}
/* The redesign's own light and dark colors (mock/tokens.css), set here because these screens sit outside its .m frame */
#app .gx { --color-bg: #f3f4f8; --color-surface: #ffffff; --color-sunken: #e9ebf2; --color-line: #d5d9e4; --color-text: #12151c; --color-text-2: #4d5466; --color-brand: #2447d8; --color-brand-text: #1f3fc4; --color-brand-soft: #e3e9ff; }
html[data-appearance="dark"] #app .gx { color-scheme: dark; --color-bg: #0e1015; --color-surface: #181b23; --color-sunken: #232733; --color-line: #343a4a; --color-text: #f2f4f9; --color-text-2: #aab1c2; --color-brand: #3a5cf5; --color-brand-text: #a9bbff; --color-brand-soft: #1d2850; --gx-shadow: 0 6px 24px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4); }
#app .gx * { box-sizing: border-box; }
#app .gx button { font: inherit; color: inherit; cursor: pointer; margin: 0; }
#app .gx img { display: block; }
#app .gx .gx-stage { position: relative; flex: 1; min-width: 0; }
#app .gx .gx-map { position: absolute; inset: 0; }
#app .gx .gx-nomap { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--gx-muted); }
#app .gx .gx-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#app .gx .gx-ui > * { pointer-events: auto; }
#app .gx .gx-side { display: none; }

/* Top: the race weekend and the day switch, floating inside the margins */
#app .gx .gx-top { position: absolute; left: 16px; right: 16px; top: 14px; display: grid; gap: 10px; }
#app .gx .gx-pill { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--gx-surface); box-shadow: var(--gx-shadow); }
#app .gx .gx-pill > img { width: 26px; height: 26px; flex: none; }
#app .gx .gx-pill--d { border-radius: 22px; padding: 12px 10px 12px 14px; }
#app .gx .gx-pill .gx-face { width: 40px; height: 40px; }
#app .gx .gx-grow { flex: 1; min-width: 0; }
#app .gx .gx-pill strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
#app .gx .gx-pill small { display: block; color: var(--gx-muted); font-size: 13px; }
#app .gx .gx-round { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-surface); display: grid; place-items: center; padding: 0; }
#app .gx .gx-round img { width: 24px; height: 24px; }
#app .gx .gx-days { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--gx-surface); box-shadow: var(--gx-shadow); }
#app .gx .gx-days button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; color: var(--gx-muted); padding: 0 6px; white-space: nowrap; }
#app .gx .gx-days button.is-on { background: var(--gx-text); color: var(--gx-surface); }

/* Pins: the glossy icon and the time; the picked one turns dark; one on your plan gets a blue ring */
#app .gx .gx-pin { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 0; background: var(--color-surface, #fff); color: var(--color-text, #16181d); font: 700 13px/1 Inter, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); white-space: nowrap; cursor: pointer; }
#app .gx .gx-pin img { width: 24px; height: 24px; }
#app .gx .gx-pin.is-mine { box-shadow: 0 0 0 2px var(--color-brand, #2447d9), 0 2px 8px rgba(0, 0, 0, .22); }
#app .gx .gx-pin.is-on { background: var(--color-text, #16181d); color: var(--color-surface, #fff); z-index: 3; }
#app .gx .gx-spot { width: 36px; height: 36px; border-radius: 999px; border: 3px solid #fff; background: var(--color-brand, #2447d9); color: #fff; font: 800 14px/1 Inter, system-ui, sans-serif; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; padding: 0; }
#app .gx .gx-spot.is-on { z-index: 3; }
#app .gx .gx-mile { min-width: 28px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #16181d; border: 2px solid var(--color-brand, #2447d9); font: 800 11px/1 Inter, system-ui, sans-serif; display: grid; place-items: center; }
#app .gx .gx-end { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: #fff; color: #16181d; font: 700 12px/1 Inter, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
#app .gx .gx-end img { width: 20px; height: 20px; }

/* The card */
#app .gx .gx-cardwrap { position: absolute; left: 16px; right: 16px; bottom: 16px; }
#app .gx .gx-card { background: var(--gx-surface); border-radius: 22px; box-shadow: var(--gx-shadow); overflow: hidden; }
#app .gx .gx-art { position: relative; height: 140px; background: var(--gx-brand-soft); display: grid; place-items: center; }
#app .gx .gx-big { width: 100px; height: 100px; }
#app .gx .gx-tag { position: absolute; left: 14px; top: 14px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--gx-surface); font-size: 12px; font-weight: 700; display: flex; align-items: center; }
#app .gx .gx-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--gx-surface); display: grid; place-items: center; padding: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
#app .gx .gx-x { width: 18px; height: 18px; }
#app .gx .gx-x path { stroke: var(--gx-text); stroke-width: 2; stroke-linecap: round; fill: none; }
#app .gx .gx-body { padding: 16px 18px 14px; }
#app .gx .gx-body h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--gx-text); }
#app .gx .gx-when { margin: 0; color: var(--color-brand-text, var(--gx-brand)); font-weight: 600; font-size: 14px; }
#app .gx .gx-where { margin: 2px 0 0; color: var(--gx-muted); font-size: 14px; }
#app .gx .gx-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
#app .gx .gx-btns--one { grid-template-columns: 1fr; }
#app .gx .gx-btn { min-height: 48px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; padding: 0 12px; }
#app .gx .gx-btn img { width: 22px; height: 22px; }
#app .gx .gx-btn--primary { background: var(--gx-brand); color: #fff; }
#app .gx .gx-btn--second { background: var(--gx-sunken); color: var(--gx-text); }
#app .gx .gx-more { display: block; width: 100%; min-height: 44px; margin-top: 4px; border: 0; background: transparent; color: var(--color-brand-text, var(--gx-brand)); font-weight: 600; font-size: 14px; }
#app .gx .gx-ended { grid-column: 1 / -1; color: var(--gx-muted); font-weight: 600; align-self: center; }
#app .gx .gx-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); min-height: 44px; padding: 0 18px 0 12px; border: 0; border-radius: 999px; background: var(--gx-text); color: var(--gx-surface); font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: var(--gx-shadow); }
#app .gx .gx-hint img { width: 24px; height: 24px; }

/* D's card */
#app .gx .gx-k { display: block; margin: 0; color: var(--gx-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#app .gx .gx-dcard h3 { margin-top: 6px; }
#app .gx .gx-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gx-line); }
#app .gx .gx-times b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
#app .gx .gx-times .gx-unknown { font-size: 15px; font-weight: 600; color: var(--gx-muted); }
#app .gx .gx-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 12px; }
#app .gx .gx-steps button { min-height: 40px; border: 0; border-radius: 10px; background: var(--gx-sunken); font-weight: 700; font-size: 13px; color: var(--gx-muted); padding: 0 4px; }
#app .gx .gx-steps button.is-on { background: var(--gx-brand); color: #fff; }

/* The list (laptop side) */
#app .gx .gx-list { overflow: auto; padding: 4px 16px 24px; flex: 1; }
#app .gx .gx-row { display: flex; align-items: center; gap: 8px; border-radius: 16px; border: 2px solid transparent; }
#app .gx .gx-row.is-on { border-color: var(--gx-brand); }
#app .gx .gx-row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 8px; border: 0; background: transparent; text-align: left; }
#app .gx .gx-tile { width: 60px; height: 60px; flex: none; border-radius: 16px; background: var(--gx-brand-soft); display: grid; place-items: center; }
#app .gx .gx-tile img { width: 42px; height: 42px; }
#app .gx .gx-row-text { flex: 1; min-width: 0; display: grid; }
#app .gx .gx-row-text strong { font-size: 15px; font-weight: 700; line-height: 1.25; }
#app .gx .gx-row-text .gx-when, #app .gx .gx-row-text .gx-where { font-size: 13px; }
#app .gx .gx-add, #app .gx .gx-added { width: 44px; height: 44px; flex: none; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
#app .gx .gx-add img, #app .gx .gx-added img { width: 30px; height: 30px; }
#app .gx .gx-num { width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--gx-brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
#app .gx .gx-num--finish { background: var(--gx-brand-soft); }
#app .gx .gx-num--finish img { width: 24px; height: 24px; }
#app .gx .gx-t { font-weight: 800; font-size: 16px; white-space: nowrap; }

/* Laptop: the list on the left, the map on the right, the card on the map's lower right */
@media (min-width: 1024px) {
  #app .gx { left: 120px; bottom: 0; background: var(--color-bg, var(--gx-sunken)); }
  #app .gx .gx-side { display: flex; flex-direction: column; width: 440px; flex: none; height: 100%; border-right: 1px solid var(--gx-line); background: var(--gx-surface); }
  #app .gx .gx-side-top { padding: 24px 24px 10px; }
  #app .gx .gx-eyebrow { margin: 0 0 4px; color: var(--gx-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  #app .gx .gx-side h1 { margin: 0 0 12px; font: 700 30px/1.1 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--gx-text); }
  #app .gx .gx-side .gx-days { box-shadow: none; border: 1px solid var(--gx-line); }
  #app .gx .gx-count { margin: 12px 0 0; color: var(--gx-muted); font-size: 14px; }
  #app .gx .gx-stage { margin: 16px; border-radius: 24px; overflow: hidden; }
  #app .gx .gx-top { display: none; }
  #app .gx .gx-cardwrap { left: auto; right: 20px; bottom: 20px; width: 380px; }
  #app .gx .gx-hint { display: none; }
}
/* Marker and link resets: the older stylesheets size every #app button and color every #app link */
#app .gx .gx-pin, #app .gx .gx-spot { margin: 0; min-width: 0; min-height: 0; line-height: 1; }
#app .gx .gx-spot { width: 36px; height: 36px; padding: 0; }
#app .gx a.gx-btn--primary, #app .gx a.gx-btn--primary:visited { color: #fff !important; }
#app .gx a.gx-btn--second, #app .gx a.gx-btn--second:visited { color: var(--gx-text) !important; }
/* The map credit sits on the map's top right, so the card never covers it (DESIGN.md section 0 #7) */
#app .gx .gx-map .map-credit { top: 12px !important; right: 12px !important; bottom: auto !important; left: auto !important; }
@media (max-width: 1023px) { #app .gx .gx-map .map-credit { top: auto !important; bottom: auto !important; } #app .gx .gx-ui .gx-top ~ * { } #app .gx .gx-map .map-credit { top: 156px !important; } #app .gx-d .gx-map .map-credit { top: 104px !important; } }
/* Reviewer fixes (Nov 12, 2026) */
#app .gx .gx-top { top: calc(14px + env(safe-area-inset-top, 0px)); }
#app .gx .gx-days button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
#app .gx .gx-medal { width: 16px; height: 16px; }
#app .gx .gx-steps { gap: 10px; }
#app .gx .gx-spot.is-on { border: 3px solid var(--color-brand, #2447d9) !important; background: #fff !important; color: var(--color-brand, #2447d9) !important; }
#app .gx .gx-row.is-on { border: 2px solid var(--gx-brand) !important; }
#app .gx .gx-pin .gx-more-n { margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--gx-brand); color: #fff; font-size: 11px; line-height: 18px; }
#app .gx .gx-here { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--gx-line); font-weight: 700; font-size: 13px; color: var(--gx-muted); }
#app .gx .gx-here-btns { display: flex; gap: 8px; }
#app .gx .gx-here-btns button { width: 44px; height: 36px; border: 0; border-radius: 10px; background: var(--gx-sunken); color: var(--gx-text); font-size: 20px; font-weight: 700; line-height: 1; padding: 0; }
#app .gx .gx-here-btns button:disabled { opacity: .35; }
#app .gx .gx-here-btns button { display: grid; place-items: center; }
#app .gx .gx-chev { width: 20px; height: 20px; }
#app .gx .gx-chev path { stroke: var(--gx-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
#app .gx .gx-plus { width: 20px; height: 20px; flex: none; }
#app .gx .gx-plus path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; fill: none; }
/* Being selected never changes a row's size: the outline is drawn inside it (rule 3) */
#app .gx .gx-row, #app .gx .gx-row.is-on { border: 0 !important; }
#app .gx .gx-row.is-on { box-shadow: inset 0 0 0 2px var(--gx-brand) !important; }
#app .gx .gx-here-btns button:disabled { opacity: .5; }


/* Map tab, Ethan's pick on Nov 12 (DECISIONS #253): the list in a panel under the map, pins with an icon and a name */
#app .gx .gx-pin { height: auto; padding: 0; gap: 6px; background: transparent !important; box-shadow: none !important; color: var(--gx-text) !important; }
#app .gx .gx-pin .gx-pi { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--gx-surface); border: 2px solid var(--gx-surface); box-shadow: 0 2px 10px rgba(16, 24, 40, .24); display: grid; place-items: center; }
#app .gx .gx-pin .gx-pi img { width: 30px; height: 30px; }
#app .gx .gx-pin .gx-pi.gx-num { width: 40px; height: 40px; background: var(--gx-brand); border-color: #fff; color: #fff; font: 800 16px/1 Inter, system-ui, sans-serif; }
#app .gx .gx-pin .gx-pl { display: grid; padding: 4px 9px 5px; border-radius: 10px; background: var(--gx-surface); box-shadow: 0 2px 10px rgba(16, 24, 40, .2); text-align: left; white-space: nowrap; line-height: 1.15; }
#app .gx .gx-pin .gx-pl b { font-size: 13px; font-weight: 700; color: var(--gx-text); }
#app .gx .gx-pin .gx-pl small { font-size: 12px; font-weight: 600; color: var(--gx-muted); }
#app .gx .gx-pin .gx-pl .gx-near { color: var(--color-brand-text, var(--gx-brand)); font-weight: 750; font-size: 11px; }
#app .gx .gx-pin.is-short .gx-pl { display: none; }
#app .gx .gx-pin.is-hid { visibility: hidden; pointer-events: none; }
#app .gx .gx-pin.is-mine .gx-pi { border-color: var(--gx-brand); }
#app .gx .gx-pin.is-on { z-index: 3; }
#app .gx .gx-pin.is-on .gx-pi { border-color: var(--gx-brand); }
#app .gx .gx-pin.is-on .gx-pl { background: var(--gx-text); }
#app .gx .gx-pin.is-on .gx-pl b, #app .gx .gx-pin.is-on .gx-pl small { color: var(--gx-surface); }

/* The panel under the map (phone): about half the screen, pulled up by its handle; an event's card replaces the list */
#app .gx .gx-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--gx-surface); border-radius: 26px 26px 0 0; box-shadow: 0 -6px 28px rgba(16, 24, 40, .14); padding: 4px 12px 12px; }
#app .gx .gx-sheet.is-half { height: 48%; }
#app .gx .gx-sheet.is-full { height: calc(100% - 132px - env(safe-area-inset-top, 0px)); }
#app .gx .gx-sheet.is-card { height: auto; padding: 0; background: transparent; box-shadow: none; left: 16px; right: 16px; bottom: 16px; }
#app .gx .gx-sheet.is-card .gx-card { border-radius: 22px; }
#app .gx .gx-grab { align-self: center; flex: none; width: 64px; height: 28px; border: 0; background: transparent; position: relative; padding: 0; }
#app .gx .gx-grab::after { content: ''; position: absolute; left: 14px; right: 14px; top: 11px; height: 5px; border-radius: 9px; background: var(--gx-line); }
#app .gx .gx-sheet .gx-list { flex: 1; min-height: 0; overflow: auto; padding: 0 0 8px; }
#app .gx .gx-s-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 8px 8px; }
#app .gx .gx-s-head h2 { margin: 0; font: 700 22px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--gx-text); }
#app .gx .gx-s-head span { color: var(--gx-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
#app .gx .gx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 6px 8px; border-radius: 999px; background: var(--gx-sunken); }
#app .gx .gx-modes button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; color: var(--gx-muted); }
#app .gx .gx-modes button.is-on { background: var(--gx-surface); color: var(--gx-text); box-shadow: 0 1px 4px rgba(16, 24, 40, .14); }
#app .gx .gx-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 8px; }
#app .gx .gx-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gx-sunken); font-weight: 650; font-size: 14px; color: var(--gx-text); }
#app .gx .gx-chip.is-on { background: var(--gx-text); color: var(--gx-surface); }
#app .gx .gx-group .gx-chev--down { margin-right: 10px; transition: transform .2s; flex: none; }
#app .gx .gx-group.is-open .gx-chev--down { transform: rotate(180deg); }
#app .gx .gx-inside { margin: 0 0 6px 34px; padding-left: 10px; border-left: 2px solid var(--gx-line); }
#app .gx .gx-inside .gx-tile { width: 48px; height: 48px; border-radius: 14px; }
#app .gx .gx-inside .gx-tile img { width: 34px; height: 34px; }
#app .gx .gx-stop { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 16px; background: transparent; text-align: left; }
#app .gx .gx-stop.is-on { box-shadow: inset 0 0 0 2px var(--gx-brand); }
#app .gx .gx-stop .gx-when { flex: none; font-weight: 750; }
#app .gx .gx-leg { display: flex; align-items: center; gap: 6px; margin: 0 0 0 25px; padding: 6px 0 6px 20px; border-left: 2px dashed var(--gx-line); color: var(--gx-muted); font-size: 13px; font-weight: 600; }
#app .gx .gx-walk { width: 16px; height: 16px; flex: none; }
#app .gx .gx-walk path, #app .gx .gx-walk circle { stroke: var(--gx-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
/* The card's top: the big glossy icon, the type, the title and the close button side by side */
#app .gx .gx-card { padding: 0 0 4px; }
#app .gx .gx-card .gx-c-top { display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 0; }
#app .gx .gx-card .gx-c-head { flex: 1; min-width: 0; }
#app .gx .gx-card .gx-c-head h3 { margin: 6px 0 0; font: 700 18px/1.25 Inter, system-ui, sans-serif; letter-spacing: -.01em; color: var(--gx-text); }
#app .gx .gx-card .gx-tag { position: static; display: inline-flex; height: 24px; background: var(--gx-sunken); color: var(--gx-muted); }
#app .gx .gx-tile--big { width: 64px; height: 64px; border-radius: 18px; }
#app .gx .gx-tile--big img { width: 46px; height: 46px; }
#app .gx .gx-card .gx-close { position: static; flex: none; background: var(--gx-sunken); box-shadow: none; }
#app .gx .gx-card > .gx-when { margin: 10px 16px 0; }
#app .gx .gx-card > .gx-where { margin: 2px 16px 0; }
#app .gx .gx-card > .gx-btns { margin: 14px 16px 0; }
#app .gx .gx-card > .gx-more { margin: 4px 0 0; }
@media (min-width: 1024px) {
  #app .gx .gx-side .gx-s-head { padding: 6px 24px 8px; }
  #app .gx .gx-side .gx-modes { margin: 0 24px 10px; }
  #app .gx .gx-side .gx-chips { padding: 0 24px 10px; }
  #app .gx .gx-side .gx-list { padding: 4px 16px 24px; }
}
/* No visible scroll bars (Ethan, Nov 12, 2026) */
#app .gx, #app .gx * { scrollbar-width: none !important; }
#app .gx ::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Race Day's card: how long to get there, and the tracker, meeting point and Change Spots as small buttons (#253) */
#app .gx .gx-travel { margin-top: 12px; }
#app .gx .gx-travel > span { display: block; font-size: 13px; font-weight: 650; color: var(--gx-muted); margin-bottom: 6px; }
#app .gx .gx-travel-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#app .gx .gx-travel-btns button { min-height: 40px; border: 0; border-radius: 10px; background: var(--gx-sunken); color: var(--gx-text); font-weight: 700; font-size: 13px; padding: 0; }
#app .gx .gx-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; border: 0; background: transparent; color: var(--color-brand-text, var(--gx-brand)); font-weight: 650; font-size: 14px; padding: 0; }
#app .gx .gx-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#app .gx .gx-chiplink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: var(--gx-sunken); color: var(--gx-text); font-weight: 650; font-size: 13px; max-width: 100%; }
#app .gx .gx-chiplink img { width: 24px; height: 24px; flex: none; }
/* Race Day's card kept short enough to see the map (Nov 12): three times on one row, tighter spacing */
#app .gx .gx-dcard .gx-body { padding: 14px 16px 12px; }
#app .gx .gx-dcard .gx-times { margin-top: 10px; padding-top: 10px; gap: 10px; }
#app .gx .gx-dcard .gx-times--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#app .gx .gx-dcard .gx-times b { font-size: 20px; }
#app .gx .gx-dcard .gx-times--3 .gx-k { font-size: 11px; letter-spacing: .03em; }
#app .gx .gx-dcard .gx-steps { margin-top: 10px; }
#app .gx .gx-dcard .gx-btns { margin-top: 10px; }
#app .gx .gx-dcard .gx-travel { margin-top: 10px; }
#app .gx a.gx-chiplink, #app .gx a.gx-chiplink:visited { color: var(--gx-text) !important; text-decoration: none !important; }
/* Words in a button never wrap; when two don't fit side by side, they stack full width, the main one first (Mobbin) */
#app .gx .gx-btn, #app .gx .gx-chiplink { white-space: nowrap; }
@media (max-width: 360px) { #app .gx .gx-btns { grid-template-columns: 1fr; } }
/* Reviewer fixes, Nov 12 (before launch) */
/* The chosen pin: white, with a blue ring and its name, so it's clear which pin the card is about (rule 52) */
#app .gx .gx-pin.is-on .gx-pi { border: 3px solid var(--gx-brand); }
#app .gx .gx-pin.is-on .gx-pl { background: var(--gx-surface); box-shadow: inset 0 0 0 2px var(--gx-brand), 0 2px 10px rgba(16, 24, 40, .2); }
#app .gx .gx-pin.is-on .gx-pl b { color: var(--color-brand-text, var(--gx-brand)); }
#app .gx .gx-pin.is-on .gx-pl small { color: var(--gx-muted); }
/* A chosen spot or travel time is a blue outline; solid blue means the main button (rules 25 and 54) */
#app .gx .gx-steps button.is-on, #app .gx .gx-travel-btns button.is-on { background: var(--gx-surface) !important; color: var(--color-brand-text, var(--gx-brand)) !important; box-shadow: inset 0 0 0 2px var(--gx-brand) !important; }
/* Race Day's buttons: one even grid, all the same height, width and shape */
#app .gx .gx-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
#app .gx .gx-links .gx-btn { min-height: 48px; border-radius: 14px; padding: 0 10px; font-size: 15px; }
#app .gx .gx-ell { overflow: hidden; text-overflow: ellipsis; }
#app .gx .gx-note { margin: 8px 0 0; color: var(--gx-muted); font-size: 13px; }
/* Laptop: Race Day's card sits in the left panel under the spots, at full size */
#app .gx .gx-side-card { display: none; }
@media (min-width: 1024px) {
  #app .gx-d .gx-side .gx-tl { flex: none; }
  #app .gx-d .gx-side-card { display: block; padding: 4px 16px 24px; overflow: auto; }
  #app .gx-d .gx-side-card .gx-card { box-shadow: none; border: 1px solid var(--gx-line); }
}
/* The "Added to Friday" message sits above the panel, not on the day switch (phone) */
@media (max-width: 1023px) {
  body:has(#gx-root[data-gx-view="a"]) #announcer:not(:empty) { top: auto !important; bottom: calc((100dvh - 84px) * .48 + 96px) !important; }
  /* bottom: auto too: for a cheering plan the message is also told to sit at the bottom, and with both set it stretched to fill the screen (Ethan, Nov 13, 3:04 PM) */
  body:has(#gx-root[data-gx-view="d"]) #announcer:not(:empty) { top: calc(env(safe-area-inset-top, 0px) + 132px) !important; bottom: auto !important; }
}
/* Pins stay glued to the map (Ethan, Nov 12: "the map pins move around a lot, like they're disconnected"). The map
   places each marker by moving its outer element, so that element must never animate or carry its own transform;
   older styles gave every button a transition. The chosen pin grows by its icon inside instead. */
#app .gx :is(.gx-pin, .gx-spot, .gx-mile, .gx-end), #app .gx .maplibregl-marker { transition: none !important; animation: none !important; }
#app .gx .gx-pin .gx-pi { transition: transform .15s; }
#app .gx .gx-pin.is-on .gx-pi { transform: scale(1.12); }
/* Phone: the map and its panel run to the bottom of the screen, behind the floating menu, so there's no band of a
   different color between them (Ethan, Nov 12: "there's a weird gap"). The panel folds down to its heading. */
@media (max-width: 1023px) {
  #app:has(#gx-root)::after { display: none !important; }
  #app .gx { bottom: 0 !important; }
  /* The list stops just above the floating menu. The menu already sits inside the phone's bottom safe area, so adding
     the safe area here too left an empty band about 40 px tall on an iPhone (Ethan, Nov 12, 11:46 PM: "weird gap here
     under events"). */
  #app .gx .gx-sheet { padding-bottom: 100px; }
  #app .gx .gx-sheet.is-half { height: 52%; }
  #app .gx .gx-sheet.is-peek { height: calc(176px + env(safe-area-inset-bottom, 0px)); }
  #app .gx .gx-sheet.is-peek > :not(.gx-grab):not(.gx-s-head):not(.gx-days) { display: none; }
  #app .gx .gx-sheet.is-card { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  #app .gx .gx-cardwrap--d { bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important; }
  #app .gx .gx-sheet .gx-grab, #app .gx .gx-sheet .gx-s-head { touch-action: none; }
  body:has(#gx-root[data-gx-view="a"]) #announcer:not(:empty) { bottom: calc(max(52dvh, min(440px, 100dvh - 150px)) + 12px) !important; }
}
/* A pin's name never runs long: it folds with an ellipsis (Apple Maps) */
#app .gx .gx-pin .gx-pl { max-width: 168px; }
#app .gx .gx-pin .gx-pl b { overflow: hidden; text-overflow: ellipsis; }

/* Map details are Apple Maps (Ethan, Nov 12, 2026, DECISIONS #262; mock Map details option 2).
   The round buttons sit in one white box on the map's top right. Pins are round pictures with the name under them.
   The day switch and the chips live in the panel, so nothing else floats on the map. Race Day (D) uses the same box,
   and its spots are round numbers with their mile under them. The app is flat (one-look.css: no shadows, no borders),
   so things on the map get a thin line (an outline) instead of a shadow, and a chosen pin a blue ring. Never a
   transition, animation or transform on the marker element itself: the map moves it with a transform, and anything
   else makes it drift (rule 78). */
#app .gx { --gx-halo: #f5f3ee; }
html[data-appearance="dark"] #app .gx { --gx-halo: #15171c; }
#app .gx .gx-tools { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; width: 50px; border-radius: 16px; background: var(--gx-surface); outline: 1px solid var(--gx-line); overflow: hidden; }
#app .gx .gx-tool { position: relative; width: 50px; height: 50px; min-width: 0; min-height: 0; border-radius: 0; background: transparent; display: grid; place-items: center; padding: 0; }
#app .gx .gx-tool + .gx-tool::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gx-line); }
#app .gx .gx-ti { width: 22px; height: 22px; }
#app .gx .gx-ti path { fill: none; stroke: var(--gx-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#app .gx .gx-tool:active { background: var(--gx-sunken); }
#app .gx .gx-tool:focus:not(:focus-visible) { outline: none; }
/* D: the box sits under the pill on the right; the strip it sits in lets the map be dragged around it */
#app .gx .gx-top--d { pointer-events: none; }
#app .gx .gx-top--d > * { pointer-events: auto; }
#app .gx .gx-top--d .gx-tools { position: static; justify-self: end; }
@media (min-width: 1024px) { #app .gx .gx-tools { top: 16px; right: 16px; } }
/* You are here: a blue dot with a white ring; only the dot inside may move */
#app .gx .gx-me { width: 22px; height: 22px; border-radius: 999px; background: #fff; outline: 1px solid rgba(16, 24, 40, .25); display: grid; place-items: center; }
#app .gx .gx-me span { width: 14px; height: 14px; border-radius: 999px; background: var(--gx-brand); }

/* A's pins: the round picture on the place, its name (and time, or "12 things", and "+2 nearby") under it.
   The names keep a soft halo in the map's own color so they read over streets (the flat look's one exception). */
#app .gx .gx-pin { flex-direction: column; align-items: center; gap: 5px; }
#app .gx .gx-pin .gx-pi { width: 44px; height: 44px; border-radius: 999px; background: var(--gx-surface); outline: 1px solid var(--gx-line); }
#app .gx .gx-pin .gx-pi img { width: 30px; height: 30px; }
#app .gx .gx-pin .gx-pi.gx-num { width: 44px; height: 44px; background: var(--gx-brand); color: #fff; outline: 3px solid var(--gx-surface); }
#app .gx .gx-pin .gx-pl, #app .gx .gx-pin.is-on .gx-pl { padding: 0; border-radius: 0; background: transparent; text-align: center; justify-items: center; max-width: 140px; }
#app .gx .gx-pin .gx-pl :is(b, small), #app .gx .gx-spot .gx-sl { text-shadow: 0 0 2px var(--gx-halo), 0 0 3px var(--gx-halo), 0 0 4px var(--gx-halo), 0 0 6px var(--gx-halo) !important; max-width: 100%; }
#app .gx .gx-pin .gx-pl b { font-size: 13px; font-weight: 700; color: var(--gx-text); white-space: nowrap; }
#app .gx .gx-pin .gx-pl small { font-size: 12px; font-weight: 600; color: var(--gx-muted); }
#app .gx .gx-pin.is-mine .gx-pi { outline: 2px solid var(--gx-brand); }
/* The chosen pin grows inside (its picture), with a blue ring, and its name turns blue: it never moves or resizes */
#app .gx .gx-pin .gx-pi { transition: transform .15s; transform-origin: 50% 50%; }
#app .gx .gx-pin.is-on .gx-pi { transform: scale(1.22); outline: 3px solid var(--gx-brand); }
#app .gx .gx-pin.is-on .gx-pl { transform: translateY(5px); }
#app .gx .gx-pin.is-on .gx-pl b { color: var(--color-brand-text, var(--gx-brand)); }

/* D's spots: a round number with its mile under it; the chosen spot is white with a blue ring and grows inside */
#app .gx .gx-spot, #app .gx .gx-spot.is-on { width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gx-text) !important; }
#app .gx .gx-sn { width: 40px; height: 40px; border-radius: 999px; background: var(--gx-brand); color: #fff; font: 800 15px/1 Inter, system-ui, sans-serif; display: grid; place-items: center; outline: 2px solid #fff; transition: transform .15s; }
#app .gx .gx-spot.is-on .gx-sn { background: #fff; color: var(--gx-brand); transform: scale(1.18); outline: 3px solid var(--gx-brand); }
#app .gx .gx-sl { font: 700 12px/1.1 Inter, system-ui, sans-serif; color: var(--gx-text); white-space: nowrap; }
#app .gx .gx-spot.is-on .gx-sl { transform: translateY(7px); color: var(--color-brand-text, var(--gx-brand)); }

/* The panel (phone): the handle, the day switch, the heading, then the chips and the list (mock option 2) */
#app .gx .gx-sheet .gx-days, #app .gx .gx-side .gx-days { flex: none; gap: 4px; padding: 4px; margin: 0 6px 10px; border-radius: 14px; background: var(--gx-sunken); }
#app .gx .gx-side .gx-days { margin: 0; }
#app .gx .gx-sheet .gx-days button, #app .gx .gx-side .gx-days button { min-height: 40px; border-radius: 11px; color: var(--gx-muted); font-weight: 650; }
#app .gx .gx-sheet .gx-days button.is-on, #app .gx .gx-side .gx-days button.is-on { background: var(--gx-surface); color: var(--gx-text); }
html[data-appearance="dark"] #app .gx :is(.gx-sheet, .gx-side) .gx-days button.is-on { background: var(--color-bg); }
#app .gx .gx-sheet .gx-grab { margin-bottom: 2px; }
@media (max-width: 1023px) {
  #app .gx .gx-sheet { padding-left: 14px; padding-right: 14px; }
  /* Folded: the handle, the day switch and the heading stay, so the day can still be changed */
  #app .gx .gx-sheet.is-peek { height: calc(222px + env(safe-area-inset-bottom, 0px)); }
  #app .gx .gx-sheet.is-full { height: calc(100% - 92px - env(safe-area-inset-top, 0px)); }
  /* Half open leaves room for a couple of rows under the day switch even on a short phone */
  #app .gx .gx-sheet.is-half { height: max(52%, min(440px, calc(100% - 150px))); }
  /* The chips stay on one line and swipe sideways when they don't fit (rule 77 allows it for short chip rows) */
  #app .gx .gx-sheet .gx-chips { flex: none; flex-wrap: nowrap; overflow-x: auto; }
  #app .gx .gx-sheet .gx-chip { flex: none; white-space: nowrap; }
}

/* Small phones (an iPhone SE, 320 by 640): Race Day's card never covers the whole map or its top card. It keeps the
   room between the top card and the menu, and scrolls inside itself; its four buttons stack so none is cut off
   ("Meetin…"). The second reviewer, Nov 12, 2026; DESIGN rules 76 and 78. */
@media (max-width: 1023px) {
  #app .gx .gx-cardwrap--d .gx-dcard { max-height: calc(100dvh - 250px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  #app .gx .gx-cardwrap--d .gx-dcard::-webkit-scrollbar { display: none; }
}
@media (max-width: 359px) {
  #app .gx .gx-links { grid-template-columns: minmax(0, 1fr); }
}

/* Race Day's "Passes" when there's no time yet: a real button that adds the runner or their goal. */
#app .gx .gx-addgoal { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; border: 0; background: none; color: var(--color-brand-text); font: 700 20px/1.2 Inter, system-ui, sans-serif; gap: 8px; cursor: pointer; }
#app .gx .gx-addgoal img { width: 26px; height: 26px; flex: none; }
