/* Halloween map - app layout on top of assets/css/site.css (brand tokens, buttons, keycaps).
 * Dark by design: it's used outdoors at night. Orange stays an accent. */

:root {
  --hw-bg: #121212;
  --hw-panel: #1E1C1A;
  --hw-raised: #262422;
  --hw-line: #2A2826;
  --hw-line-2: #3A3733;
  --hw-ink-2: #B8B1A8;
  --hw-green: #3FB950;
  --hw-amber: #F5A524;
  --hw-red: #F04438;
  --hw-blue: #4EA1FF;
  --hw-tabbar: 62px;
}
html:has(body.hw) { height: 100%; }
body.hw { height: 100%; margin: 0; overflow: hidden; background: var(--hw-bg); color: var(--bdt-white); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
.hw [hidden] { display: none !important; }
.hw a { color: inherit; }
.hw a:hover { color: var(--bdt-orange-face); }
.hw h1, .hw h2, .hw h3 { color: var(--bdt-white); }
.hw .btn-ghost { color: var(--bdt-white); border-color: var(--hw-line-2); }
.hw .btn-ghost:hover { border-color: var(--bdt-orange); color: var(--bdt-orange) !important; }
.hw .btn { min-height: 46px; }
.hw .btn-sm { min-height: 40px; }
.hw .btn[disabled] { opacity: .45; cursor: not-allowed; }
.hw input[type="text"], .hw input[type="email"], .hw input[type="search"], .hw input[type="time"], .hw select, .hw textarea {
  font: 400 16px/1.35 var(--bdt-font-body); color: var(--bdt-white); background: var(--bg-input, #151412);
  border: 1.5px solid var(--hw-line-2); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0;
}
.hw textarea { resize: vertical; }
.hw select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #B8B1A8 50%), linear-gradient(135deg, #B8B1A8 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.hw input:focus, .hw select:focus, .hw textarea:focus { outline: none; border-color: var(--bdt-orange); box-shadow: 0 0 0 3px rgba(242,107,29,.25); }
.hw input[type="time"] { color-scheme: dark; }
.hw-muted { color: var(--hw-ink-2); }
.hw-big { font-size: 44px; line-height: 1; display: block; }

/* ---------- App shell ---------- */
.hw-app { height: 100%; height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: 100%; grid-template-areas: "top" "banners" "main" "tabs"; }
.hw-top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--hw-bg); border-bottom: 1px solid var(--hw-line); min-height: 58px; z-index: 20; }
.hw-brand img { width: 40px; height: 40px; display: block; }
.hw-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.hw-title strong { font: 700 16px var(--bdt-font-head); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-title span { font: 500 12.5px var(--bdt-font-display); color: var(--hw-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-chip-live { display: inline-flex; align-items: center; gap: 6px; font: 800 12px var(--bdt-font-display); text-transform: uppercase; letter-spacing: .06em; color: #7EE08A; background: rgba(63,185,80,.14); padding: 5px 9px; border-radius: 999px; }
.hw-chip-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--hw-green); animation: hwpulse 1.6s ease-in-out infinite; }
@keyframes hwpulse { 50% { opacity: .35; } }
.hw-iconbtn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hw-line-2); background: transparent; color: var(--bdt-white); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.hw-iconbtn svg, .hw-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hw-iconbtn:hover { border-color: var(--bdt-orange); }

.hw-banners { grid-area: banners; z-index: 15; }
.hw-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; font-size: 13.5px; line-height: 1.35; background: var(--bdt-key-face); }
.hw-banner button { background: none; border: 0; color: inherit; font-size: 16px; padding: 4px 6px; cursor: pointer; }
.hw-banner--news { background: var(--bdt-orange); color: var(--bdt-black); font-weight: 600; }
.hw-banner--warn { background: #3B2A12; color: #FBD38D; }
.hw-banner--soft { background: var(--hw-panel); color: var(--hw-ink-2); border-bottom: 1px solid var(--hw-line); }

.hw-main { grid-area: main; position: relative; overflow: hidden; min-height: 0; }
.hw-main:focus { outline: none; }
.hw-mapview { position: absolute; inset: 0; z-index: 0; } /* own stacking context: Leaflet controls stay under the panel */
.hw-panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--hw-bg); padding: 16px 16px 40px; z-index: 900; -webkit-overflow-scrolling: touch; }
.hw-app[data-view="map"] .hw-panel { display: none; }
.hw-view { max-width: 720px; margin: 0 auto; }

/* ---------- Tab bar ---------- */
.hw-tabbar { grid-area: tabs; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--hw-bg); border-top: 1px solid var(--hw-line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.hw-tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: var(--hw-tabbar); padding: 6px 2px; font: 600 11.5px var(--bdt-font-body); color: var(--hw-ink-2); text-decoration: none; }
.hw-tabbar a span { font-size: 21px; line-height: 1.1; filter: grayscale(.5); }
.hw-tabbar a em { font-style: normal; white-space: nowrap; }
.hw-tabbar a.on { color: var(--bdt-white); }
.hw-tabbar a.on span { filter: none; }
.hw-tabbar a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 3px 3px; background: var(--bdt-orange); }
.hw-badge { position: absolute; top: 5px; left: 50%; margin-left: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bdt-orange); color: var(--bdt-black); font: 800 11px/18px var(--bdt-font-display); text-align: center; }

/* ---------- Map ---------- */
.hw-map { position: absolute; inset: 0; background: #1a1a1a; }
.hw .leaflet-container { font-family: var(--bdt-font-body); background: #1a1a1a; }
.hw .leaflet-control-attribution { background: rgba(18,18,18,.72); color: #9A938A; font-size: 10.5px; }
.hw .leaflet-control-attribution a { color: #C9C3BB; }
.hw .leaflet-bar a { background: var(--hw-panel); color: var(--bdt-white); border-color: var(--hw-line-2); }
.hw .leaflet-bar a:hover { background: var(--hw-raised); color: var(--bdt-orange); }
.hw .hw-night-map { background: #3B3936; } /* matches the dark land colour, so no seams between tiles */
.hw-night-map .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); }
.hw-maperr { position: absolute; inset: 40% 20px auto; text-align: center; color: var(--hw-ink-2); }

.hw-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px 14px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.hw-chips::-webkit-scrollbar { display: none; }
.hw-chips--float { position: absolute; top: 10px; left: 0; right: 0; z-index: 500; margin: 0; padding: 0 12px 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hw-chips--float::-webkit-scrollbar { display: none; }
.hw-chip { flex-shrink: 0; font: 500 14px var(--bdt-font-body); color: var(--bdt-white); background: rgba(30,28,26,.94); border: 1px solid var(--hw-line-2); border-radius: 999px; padding: 8px 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hw-chip:hover { border-color: var(--bdt-orange); }
.hw-chip[aria-pressed="true"] { background: var(--bdt-orange); border-color: var(--bdt-orange); color: var(--bdt-black); font-weight: 600; }
.hw-chip--clear { background: transparent; color: var(--hw-ink-2); box-shadow: none; }
.hw-chip--lg { padding: 10px 14px; font-size: 15px; box-shadow: none; }

.hw-fabs { position: absolute; right: 12px; bottom: 18px; z-index: 500; display: grid; gap: 8px; }
.hw-fab { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hw-line-2); background: rgba(30,28,26,.95); color: var(--bdt-white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.hw-fab:hover { border-color: var(--bdt-orange); color: var(--bdt-orange); }
.hw-routepill { position: absolute; left: 12px; bottom: 18px; max-width: calc(100% - 84px); z-index: 600; border: 0; border-radius: 999px; background: var(--bdt-orange); color: var(--bdt-black); font: 800 15px var(--bdt-font-display); padding: 15px 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-empty-map { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 550; width: min(300px, calc(100% - 40px)); background: rgba(18,18,18,.94); border: 1px solid var(--hw-line-2); border-radius: 16px; padding: 18px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.hw-empty-map strong { font: 700 18px var(--bdt-font-head); }
.hw-empty-map p { margin: 0; color: var(--hw-ink-2); font-size: 15px; }

/* Pins */
.hw-pin-wrap { background: none; border: 0; }
.hw-pin { position: relative; width: 36px; height: 36px; margin: 0 1px; border-radius: 50%; background: var(--hw-panel); border: 2.5px solid var(--bdt-orange); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.55); transition: transform .15s; }
.hw-pin::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--bdt-orange); border-bottom: 0; }
.hw-pin .e { font-size: 19px; line-height: 1; }
.hw-pin b { position: absolute; top: -8px; right: -10px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--bdt-orange); color: var(--bdt-black); border: 2px solid var(--bdt-black); font: 800 11px/17px var(--bdt-font-display); text-align: center; }
.hw-far .hw-pin { transform: scale(.72); transform-origin: 50% 120%; }
.hw-far .hw-pin.is-active { transform: scale(.95); }
.hw-pin.is-route { border-color: var(--bdt-white); background: #3A2315; }
.hw-pin.is-route::after { border-top-color: var(--bdt-white); }
.hw-pin.is-active { transform: scale(1.22); }
.hw-pin.is-out { filter: grayscale(1); opacity: .6; }
.hw-pin.is-visited { opacity: .5; }
.hw-pin.is-visited b { background: var(--hw-green); }
.hw-pin.is-open::before, .hw-pin.is-low::before { content: ""; position: absolute; left: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--hw-green); border: 2.5px solid var(--bdt-black); z-index: 2; }
.hw-pin.is-noupdate::before { content: ""; position: absolute; left: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--bdt-black); border: 3px solid #C9C2B8; z-index: 2; }
.hw-far .hw-pin.is-open::before, .hw-far .hw-pin.is-low::before, .hw-far .hw-pin.is-noupdate::before { transform: scale(1.35); transform-origin: 50% 50%; }
.hw-status.s-none { background: rgba(201,194,184,.14); color: #D9D3CA; }
.hw-pin.is-low::before { background: var(--hw-amber); }
.hw-start { width: 34px; height: 34px; border-radius: 50%; background: var(--bdt-white); border: 3px solid var(--bdt-orange); display: grid; place-items: center; font-size: 17px; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.hw-me-wrap { background: none; border: 0; }
.hw-me { width: 20px; height: 20px; border-radius: 50%; background: var(--hw-blue); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(78,161,255,.5); animation: hwme 2s ease-out infinite; }
@keyframes hwme { 0% { box-shadow: 0 0 0 0 rgba(78,161,255,.55); } 100% { box-shadow: 0 0 0 16px rgba(78,161,255,0); } }

/* ---------- House sheet ---------- */
.hw-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; overflow-y: auto; overscroll-behavior: contain; z-index: 700; background: var(--hw-panel); border-radius: 20px 20px 0 0; border-top: 1px solid var(--hw-line-2); box-shadow: 0 -12px 40px rgba(0,0,0,.5); animation: hwup .22s ease-out; }
@keyframes hwup { from { transform: translateY(30px); opacity: 0; } }
.hw-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--hw-line-2); margin: 8px auto 0; }
.hw-sheet-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(18,18,18,.7); color: var(--bdt-white); font-size: 15px; cursor: pointer; }
.hw-sheet-photo { display: block; margin: 8px 12px 0; border-radius: 14px; overflow: hidden; }
.hw-sheet-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hw-sheet-body { padding: 12px 16px 18px; }
.hw-sheet-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding-right: 36px; }
.hw-sheet-photo + .hw-sheet-body .hw-sheet-head { padding-right: 0; }
.hw-sheet-head h2 { font-size: 19px; margin: 0 0 2px; line-height: 1.2; }
.hw-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--hw-raised); display: grid; place-items: center; font-size: 24px; }
.hw-addr { color: var(--hw-ink-2); font-size: 14.5px; margin: 0; }
.hw-dist { color: var(--bdt-orange-face); }
.hw-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.hw-tag { font-size: 13.5px; background: var(--hw-raised); border-radius: 999px; padding: 4px 10px; }
.hw-tag--new { background: rgba(242,107,29,.18); color: var(--bdt-orange-face); font-weight: 600; }
.hw-status { display: inline-block; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.hw-status.s-open { background: rgba(63,185,80,.16); color: #7EE08A; }
.hw-status.s-low { background: rgba(245,165,36,.16); color: #FBD38D; }
.hw-status.s-out { background: rgba(240,68,56,.18); color: #FFA39B; }
.hw-status.s-done { background: var(--hw-raised); color: var(--hw-ink-2); }
.hw-feats { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hw-feats li { font-size: 14px; border: 1px solid var(--hw-line-2); border-radius: 999px; padding: 4px 10px; }
.hw-desc { color: #E4DED6; margin: 0 0 14px; }
.hw-sheet-actions { display: grid; grid-template-columns: 1fr 46px; gap: 8px; }
.hw-sheet-actions .btn { padding-left: 14px; padding-right: 14px; }
.hw-sheet-actions .btn:first-child { grid-column: 1 / -1; }
.hw-sheet-actions .hw-sq:nth-child(2) { grid-column: 1 / -1; width: auto; }
.hw-sq { width: 46px; padding: 0 !important; font-size: 18px; }
.hw-linkbtn { background: none; border: 0; padding: 8px 0; color: var(--hw-ink-2); font: 400 14px var(--bdt-font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hw-linkbtn:hover { color: var(--bdt-white); }
.hw-danger { color: #FFA39B; }
.hw-like { background: none; border: 0; color: var(--bdt-white); font-size: 22px; display: inline-flex; align-items: center; gap: 4px; padding: 6px; cursor: pointer; border-radius: 10px; line-height: 1; }
.hw-like span { font: 600 13px var(--bdt-font-body); color: var(--hw-ink-2); }
.hw-like.sm { font-size: 18px; padding: 4px; }
.hw-like[aria-pressed="true"] { animation: hwpop .3s ease-out; }
@keyframes hwpop { 50% { transform: scale(1.25); } }

/* ---------- Panels ---------- */
.hw-viewhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.hw-viewhead h1 { font-size: 27px; margin: 0; }
.hw-count { font: 500 13.5px var(--bdt-font-display); color: var(--hw-ink-2); }
.hw-card { background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.hw-card h2 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-card h2 .keycap { font-size: 12px; }
.hw-card p:last-child { margin-bottom: 0; }
.hw-card > summary { cursor: pointer; font: 700 16px var(--bdt-font-head); list-style: none; display: flex; justify-content: space-between; }
.hw-card > summary::-webkit-details-marker { display: none; }
.hw-card > summary::after { content: "+"; font: 800 20px var(--bdt-font-display); color: var(--bdt-orange); line-height: 1; }
.hw-card[open] > summary { margin-bottom: 12px; }
.hw-card[open] > summary::after { content: "\2212"; }
.hw-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hw-wide { width: 100%; margin: 12px 0 4px; }
.hw-inline { display: flex; gap: 8px; align-items: center; }
.hw-inline input { flex: 1; }
.hw-err { color: #FFA39B; margin: 8px 0 0; font-weight: 500; }
.hw-err:empty { display: none; }
.hw-tip { background: var(--hw-raised); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: #E4DED6; margin: 6px 0 0; }
.hw-cta-line { text-align: center; color: var(--hw-ink-2); margin: 20px 0 0; }
.hw-cta-line a { color: var(--bdt-orange-face); font-weight: 600; }

.hw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hw-stats div, .hw-plan-sum div, .hw-manage-stats div { background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 12px; padding: 10px; display: grid; text-align: center; }
.hw-stats b, .hw-plan-sum b, .hw-manage-stats b { font: 700 22px var(--bdt-font-head); line-height: 1.2; }
.hw-stats span, .hw-plan-sum span, .hw-manage-stats span { font-size: 12.5px; color: var(--hw-ink-2); }
.hw-search { display: flex; gap: 8px; margin-bottom: 12px; }
.hw-search select { width: auto; flex: 0 0 auto; }
.hw-loved ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.hw-loved li::marker { color: var(--bdt-orange); font-weight: 800; }
.hw-loved .hw-linkbtn { color: var(--bdt-white); padding: 2px 0; font-size: 15px; }
.hw-loved span { color: var(--hw-ink-2); font-size: 14px; }

.hw-list { display: grid; gap: 10px; }
.hw-house { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 14px; padding: 10px 10px 10px 12px; }
.hw-house.is-out, .hw-house.is-visited { opacity: .6; }
.hw-thumb { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.hw-thumb--e { background: var(--hw-raised); display: grid; place-items: center; font-size: 28px; }
.hw-house-main { background: none; border: 0; padding: 2px 0; color: inherit; text-align: left; display: grid; gap: 2px; cursor: pointer; min-width: 0; justify-items: start; font: inherit; }
.hw-house-main strong { font-weight: 600; font-size: 16px; line-height: 1.3; }
.hw-house-meta { font-size: 14px; color: var(--hw-ink-2); }
.hw-house-main .hw-status { margin-top: 4px; font-size: 12.5px; padding: 2px 8px; }
.hw-house-side { display: grid; gap: 4px; justify-items: center; }
.hw-add { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--bdt-orange); background: transparent; color: var(--bdt-orange); font: 800 22px/1 var(--bdt-font-display); cursor: pointer; display: grid; place-items: center; }
.hw-add.on { background: var(--bdt-orange); color: var(--bdt-black); font-size: 18px; }
.hw-add[disabled] { border-color: var(--hw-line-2); color: var(--hw-line-2); cursor: not-allowed; }
.hw-emptybox { text-align: center; background: var(--hw-panel); border: 1px dashed var(--hw-line-2); border-radius: 16px; padding: 28px 18px; display: grid; gap: 8px; justify-items: center; }
.hw-emptybox strong { font: 700 18px var(--bdt-font-head); }
.hw-emptybox p { margin: 0; color: var(--hw-ink-2); }

/* ---------- Route ---------- */
.hw-start-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.hw-start-line .hw-linkbtn { margin-left: auto; }
.hw-addrsearch { margin-top: 12px; }
.hw-results { display: grid; gap: 6px; margin-top: 8px; }
.hw-results p { margin: 0; }
.hw-result { text-align: left; background: var(--hw-raised); border: 1px solid var(--hw-line-2); border-radius: 10px; padding: 11px 12px; color: var(--bdt-white); font: 400 15px var(--bdt-font-body); cursor: pointer; }
.hw-result:hover { border-color: var(--bdt-orange); }
.hw-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; cursor: pointer; }
.hw-check input { width: 22px; height: 22px; accent-color: var(--bdt-orange); flex-shrink: 0; margin: 1px 0 0; }
.hw-check span { display: grid; gap: 2px; }
.hw-check small { color: var(--hw-ink-2); font-size: 13.5px; }
.hw-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hw-quick .hw-chip { box-shadow: none; background: var(--hw-raised); }
.hw-stoplist { list-style: none; margin: 10px 0 0; padding: 0; }
.hw-stoplist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hw-line); }
.hw-stopname { display: grid; flex: 1; text-align: left; color: var(--bdt-white) !important; text-decoration: none; font-size: 15px; padding: 2px 0; min-width: 0; }
.hw-stopname small { color: var(--hw-ink-2); font-size: 13px; }
.hw-x { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--hw-line-2); background: none; color: var(--hw-ink-2); cursor: pointer; }
.hw-x:hover { color: var(--bdt-white); border-color: var(--hw-red); }
.hw-plan-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-plan-sum div { background: var(--hw-raised); }
.hw-progress { position: relative; height: 26px; margin-top: 12px; border-radius: 999px; background: var(--hw-raised); overflow: hidden; }
.hw-progress i { position: absolute; inset: 0 auto 0 0; background: #1E7B34; }
.hw-progress span { position: relative; padding-left: 12px; font-size: 13px; font-weight: 600; line-height: 26px; }
.hw-progress.sm { height: 6px; margin: 12px 0 0; }
.hw-planlist { list-style: none; margin: 14px 0 0; padding: 0; }
.hw-planlist li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hw-line); }
.hw-planlist .n { width: 30px; height: 30px; border-radius: 50%; background: var(--hw-raised); display: grid; place-items: center; font: 800 13px var(--bdt-font-display); }
.hw-planlist li.is-visited { opacity: .55; }
.hw-planlist li.is-visited .n { background: #1E7B34; }
.hw-plan-start .n { background: transparent; font-size: 18px; }
.hw-leg { display: block; font: 500 12px var(--bdt-font-display); color: var(--hw-ink-2); }
.hw-gm { margin-top: 12px; }
.hw-gm summary { cursor: pointer; color: var(--hw-ink-2); font-size: 14.5px; }
.hw-edit-stops .hw-card { border: 0; padding: 0; margin: 0; background: none; }
.hw-edit-stops .hw-card h2 { display: none; }

/* ---------- Go mode ---------- */
.hw-go { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 800; }
.hw-going .hw-chips--float, .hw-going .hw-routepill { display: none !important; }
.hw-peek .hw-go { display: none !important; }
.hw-going .hw-fabs { bottom: 18px; }
.hw-go-card { background: var(--hw-panel); border: 2px solid var(--bdt-orange); border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 12px 36px rgba(0,0,0,.55); }
.hw-go-card.is-near { border-color: var(--hw-green); box-shadow: 0 0 0 4px rgba(63,185,80,.25), 0 12px 36px rgba(0,0,0,.55); }
.hw-go-top { display: flex; justify-content: space-between; align-items: center; }
.hw-go-top .hw-sheet-close { position: static; }
.hw-go-step { font: 800 12.5px var(--bdt-font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--bdt-orange-face); }
.hw-go-main { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; margin-top: 6px; }
.hw-go-main h2 { font-size: 19px; margin: 0; line-height: 1.2; }
.hw-go-main p { margin: 2px 0 4px; color: var(--hw-ink-2); font-size: 14.5px; }
.hw-go-dist { text-align: center; display: grid; min-width: 64px; }
.hw-go-dist b { font: 700 30px/1 var(--bdt-font-head); color: var(--bdt-orange-face); }
.is-near .hw-go-dist b { color: #7EE08A; font-size: 20px; }
.hw-go-dist span { font: 500 13px var(--bdt-font-display); color: var(--hw-ink-2); }
.hw-go-actions { display: grid; grid-template-columns: 2fr 1fr 52px; gap: 8px; margin-top: 12px; }
.hw-go-actions .btn { padding-left: 8px; padding-right: 8px; }
.hw-go-done { text-align: center; display: grid; justify-items: center; gap: 4px; }
.hw-go-done h2 { margin: 6px 0 0; }
.hw-go-done p { margin: 0; }

/* ---------- Host sign-up + manage ---------- */
.hw-intro p { margin-bottom: 10px; }
.hw-dots { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; }
.hw-dots li { flex: 1; height: 4px; border-radius: 2px; background: var(--hw-line-2); }
.hw-dots li.on { background: var(--bdt-orange); }
.hw-wiz-body h2 { margin-bottom: 14px; }
.hw-wiz-nav { justify-content: space-between; margin-top: 18px; }
.hw-wiz-nav .btn-primary { margin-left: auto; min-width: 140px; }
.hw-label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.hw-field { margin-bottom: 16px; }
.hw-field > .hw-label { margin-bottom: 8px; }
.hw-help { font-weight: 400; font-size: 13.5px; color: var(--hw-ink-2); }
.hw-pickmap { height: 250px; border-radius: 14px; overflow: hidden; margin: 12px 0 6px; border: 1px solid var(--hw-line-2); }
.hw-featpick { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-featpick .hw-chip { background: var(--hw-raised); }
.hw-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-seg label { cursor: pointer; }
.hw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.hw-seg span { display: grid; gap: 2px; height: 100%; border: 1.5px solid var(--hw-line-2); border-radius: 12px; padding: 10px 12px; background: var(--hw-raised); }
.hw-seg b { font-size: 15px; font-weight: 600; }
.hw-seg small { font-size: 13px; color: var(--hw-ink-2); }
.hw-seg input:checked + span { border-color: var(--bdt-orange); background: rgba(242,107,29,.12); }
.hw-seg input:focus-visible + span { outline: 3px solid var(--bdt-orange); outline-offset: 2px; }
.hw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hw-two .hw-label { margin: 0; }
@media (max-width: 480px) { .hw-seg { grid-template-columns: 1fr; } }

.hw-manage.is-new { border-color: var(--bdt-orange); }
.hw-welcome { text-align: center; padding: 6px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--hw-line); }
.hw-welcome h2 { justify-content: center; margin: 8px 0 6px; font-size: 21px; }
.hw-welcome p { color: var(--hw-ink-2); margin: 0; }
.hw-manage-head { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.hw-manage-head h2 { margin: 0; }
.hw-pill { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.hw-pill.p-live { background: rgba(63,185,80,.16); color: #7EE08A; }
.hw-pill.p-wait { background: rgba(245,165,36,.16); color: #FBD38D; }
.hw-pill.p-hidden { background: var(--hw-raised); color: var(--hw-ink-2); }
.hw-manage-sec { margin-top: 18px; }
.hw-manage-sec h3 { font-size: 16px; margin: 0 0 4px; }
.hw-manage-sec p { font-size: 14px; margin: 0 0 10px; }
.hw-night { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hw-nightbtn { display: grid; gap: 4px; justify-items: center; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--hw-line-2); background: var(--hw-raised); color: var(--bdt-white); font: 600 15px var(--bdt-font-body); cursor: pointer; }
.hw-nightbtn span { font-size: 26px; line-height: 1; }
.hw-nightbtn[aria-pressed="true"] { border-color: var(--hw-green); background: rgba(63,185,80,.14); }
.hw-nightbtn.n-low[aria-pressed="true"] { border-color: var(--hw-amber); background: rgba(245,165,36,.14); }
.hw-nightbtn.n-out[aria-pressed="true"] { border-color: var(--hw-red); background: rgba(240,68,56,.14); }
.hw-nightbtn.n-done[aria-pressed="true"] { border-color: #8A837A; background: rgba(138,131,122,.18); }
.hw-manage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hw-manage-stats div { background: var(--hw-raised); }
.hw-rejoin { margin-top: 14px; }
.hw-linkbox { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hw-line); }
.hw-linkbox .hw-label { font-size: 13.5px; color: var(--hw-ink-2); font-weight: 500; margin-bottom: 6px; }
.hw-linkbox input { font: 500 13px var(--bdt-font-display) !important; }
.hw-manage-foot { justify-content: space-between; align-items: center; }

.hw-dialog { background: var(--hw-panel); color: var(--bdt-white); border: 1px solid var(--hw-line-2); border-radius: 18px; padding: 20px; width: min(520px, 94vw); max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.hw-dialog--wide { width: min(640px, 96vw); }
.hw-dialog::backdrop { background: rgba(0,0,0,.65); }
.hw-dialog h2 { margin: 0 0 12px; font-size: 21px; }
.hw-dialog .hw-label, .hw-dialog label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hw-dialog .hw-check { display: flex; }
.hw-dialog-foot { justify-content: flex-end; position: sticky; bottom: -20px; background: var(--hw-panel); padding: 12px 0 4px; margin-bottom: -4px; }

/* ---------- Info ---------- */
.hw-hero { padding: 10px 0 18px; }
.hw-boo { font-size: 24px; margin-bottom: 18px; }
.hw-hero h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 10px; }
.hw-lede { color: var(--hw-ink-2); font-size: 17px; }
.hw-countdown { margin-top: 14px; }
.hw-cd { display: flex; gap: 8px; }
.hw-cd div { flex: 1; max-width: 90px; background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 14px; padding: 10px 6px; text-align: center; display: grid; }
.hw-cd b { font: 700 28px/1.1 var(--bdt-font-head); }
.hw-cd span { font: 800 11px var(--bdt-font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--hw-ink-2); }
.hw-now { color: #7EE08A; font-weight: 600; font-size: 17px; }
.hw-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.hw-kv dt { color: var(--hw-ink-2); }
.hw-kv dd { margin: 0; font-weight: 600; }
.hw-weather { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hw-line); }
.hw-weather .hw-big { font-size: 36px; }
.hw-weather small { display: block; color: var(--hw-ink-2); font-size: 13px; }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hw-steps li { display: flex; gap: 14px; align-items: flex-start; }
.hw-steps .keycap { font-size: 15px; }
.hw-steps p { margin: 2px 0 0; color: var(--hw-ink-2); font-size: 15px; }
.hw-checks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.hw-checks li { position: relative; padding-left: 26px; }
.hw-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--bdt-orange); font: 800 15px var(--bdt-font-display); }
.hw-card .hw-checks + .btn { margin-top: 12px; }
.hw-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-phones a, .hw-phones li:not(:has(a)) { display: block; background: var(--hw-raised); border-radius: 12px; padding: 12px 14px; text-decoration: none; font-weight: 600; }
.hw-phones a::before { content: "📞  "; }
.hw-sos { border-color: rgba(240,68,56,.35); }
.hw-privacy p { font-size: 14.5px; }
.hw-privacy a { color: var(--bdt-orange-face); }
.hw-sponsor { text-align: center; padding: 18px 0 30px; display: grid; justify-items: center; gap: 6px; }
.hw-sponsor img { width: 210px; margin: 8px auto; }
.hw-sponsor p { margin: 0; }
.hw-sponsor .hw-btnrow { justify-content: center; }

/* ---------- Toasts / noscript ---------- */
.hw-toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--hw-tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 3000; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.hw-toast { background: var(--bdt-white); color: var(--bdt-black); font-weight: 600; font-size: 15px; border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 480px; transition: opacity .3s, transform .3s; animation: hwup .2s ease-out; }
.hw-toast.err { background: #FDE7E5; color: #7A1A12; }
.hw-toast.out { opacity: 0; transform: translateY(8px); }
.hw-noscript { position: fixed; inset: 0; z-index: 5000; overflow: auto; background: var(--hw-bg); padding: 24px; }

/* ---------- Desktop: panel on the left, map on the right ---------- */
@media (min-width: 1024px) {
  .hw-app { grid-template-columns: 440px 1fr; grid-template-rows: auto auto auto 1fr; grid-template-areas: "top top" "banners banners" "tabs map" "panel map"; }
  .hw-main { display: contents; }
  .hw-mapview { grid-area: map; position: relative; border-left: 1px solid var(--hw-line); }
  .hw-panel, .hw-app[data-view="map"] .hw-panel { grid-area: panel; position: relative; inset: auto; display: block; min-height: 0; padding: 16px 18px 40px; z-index: 1; }
  .hw-tabbar { grid-area: tabs; grid-template-columns: repeat(5, 1fr); border-top: 0; border-bottom: 1px solid var(--hw-line); padding: 0 8px; }
  .hw-tabbar a { grid-auto-flow: column; gap: 6px; min-height: 52px; font-size: 14px; }
  .hw-tabbar a span { font-size: 17px; }
  .hw-tabbar a[data-tab="map"] { display: none; }
  .hw-tabbar a.on::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .hw-badge { position: static; margin: 0; }
  .hw-top { padding-left: 18px; padding-right: 18px; }
  .hw-title strong { font-size: 18px; }
  .hw-sheet { left: 16px; right: auto; bottom: 16px; width: 390px; max-height: calc(100% - 80px); border-radius: 18px; border: 1px solid var(--hw-line-2); }
  .hw-sheet::before { display: none; }
  .hw-go { left: 16px; right: auto; width: 420px; top: 64px; }
  .hw-fabs { top: 64px; bottom: auto; }
  .hw-toasts { bottom: 24px; }
  .hw-view { max-width: none; }
  .hw-panel .hw-chips { display: none; } /* the map's chips filter the list too */
}

@media (prefers-reduced-motion: reduce) { .hw-me, .hw-chip-live i { animation: none; } }

/* ---------- Print (route list only) ---------- */
@media print {
  body.hw { overflow: visible; background: #fff; color: #000; }
  .hw-printing .hw-app { display: block; height: auto; }
  .hw-printing .hw-top, .hw-printing .hw-banners, .hw-printing .hw-tabbar, .hw-printing .hw-mapview, .hw-printing .hw-toasts,
  .hw-printing .hw-view:not(#v-route), .hw-printing #v-route > :not(.hw-plan), .hw-printing .hw-plan .btn, .hw-printing .hw-plan .hw-btnrow,
  .hw-printing .hw-plan .hw-linkbtn, .hw-printing .hw-gm { display: none !important; }
  .hw-printing .hw-main, .hw-printing .hw-panel { position: static; display: block; overflow: visible; background: #fff; padding: 0; }
  .hw-printing .hw-plan, .hw-printing .hw-plan * { color: #000 !important; background: #fff !important; border-color: #ccc !important; }
}
.hw-help.hw-warn { color: #FBD38D; font-weight: 500; }
.hw-go-tools { display: inline-flex; align-items: center; gap: 6px; }
.hw-go-back { border: 1px solid var(--hw-line-2); background: none; color: var(--bdt-white); border-radius: 999px; padding: 7px 12px; font: 600 14px var(--bdt-font-body); cursor: pointer; min-height: 36px; }
.hw-go-back:hover { border-color: var(--bdt-orange); color: var(--bdt-orange); }
.hw-planlist button.n { border: 0; color: var(--bdt-white); cursor: pointer; }
.hw-planlist button.n:hover { box-shadow: 0 0 0 2px var(--bdt-orange); }

/* ---------- Candy Alerts (red = alerts only) ---------- */
:root { --hw-alert: #E5383B; }
.hw-tabbar a { font-size: 11px; }
.hw-badge--red { background: var(--hw-alert); color: #fff; }
.hw-banner--candy { background: var(--hw-alert); color: #fff; font-weight: 600; padding: 0; }
.hw-banner-link { flex: 1; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 9px 12px; cursor: pointer; }
.hw-banner--candy .hw-banner-link::after { content: " →"; }
.hw-alert-pin { width: 46px; height: 46px; border-radius: 50%; background: var(--hw-alert); border: 3px solid #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 0 rgba(229,56,59,.6); animation: hwalert 1.6s ease-out infinite; }
@keyframes hwalert { 0% { box-shadow: 0 0 0 0 rgba(229,56,59,.65); } 100% { box-shadow: 0 0 0 22px rgba(229,56,59,0); } }
.hw-pin.is-alert { border-color: var(--hw-alert); }
.hw-pin.is-alert::after { border-top-color: var(--hw-alert); }
.hw-status.s-alert { background: rgba(229,56,59,.18); color: #FF9C9E; }
.hw-alert-strip { display: block; width: 100%; text-align: left; margin: 4px 0 12px; border: 0; border-radius: 12px; background: rgba(229,56,59,.16); color: #FFB3B5; font: 600 14.5px var(--bdt-font-body); padding: 10px 12px; cursor: pointer; }
.hw-alert-kicker { margin: 4px 0 10px; font: 800 12.5px var(--bdt-font-display); letter-spacing: .04em; text-transform: uppercase; color: #FF8487; padding-right: 40px; }
.hw-avatar--alert { background: var(--hw-alert); }
.hw-alert-note { font-size: 17px; margin: 12px 0 14px; color: #F4EFE9; }
.hw-alert-intro { margin: -6px 0 12px; }
.hw-alerts { display: grid; gap: 10px; margin: 12px 0 16px; }
.hw-alert { background: var(--hw-panel); border: 1px solid rgba(229,56,59,.55); border-left: 5px solid var(--hw-alert); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.hw-alert-main { background: none; border: 0; padding: 0; color: inherit; text-align: left; display: grid; gap: 3px; cursor: pointer; font: inherit; }
.hw-alert-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hw-alert-top b { font-size: 17px; }
.hw-alert-dist { font: 800 15px var(--bdt-font-display); color: #FF9C9E; white-space: nowrap; }
.hw-alert-sub { font-size: 13.5px; color: var(--hw-ink-2); }
.hw-alert-quote { font-size: 15px; color: #F4EFE9; }
.hw-alert-actions { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; }
.hw-subcard { border-color: rgba(229,56,59,.35); }
.hw-sub-on { display: inline-block; margin: 0 10px 0 0; color: #7EE08A; font-weight: 600; }
.hw-subrow { margin-top: 16px; display: grid; gap: 6px; }
.hw-subrow .hw-label { margin: 0; }
.hw-subrow input[type="text"] { max-width: 130px; }
.hw-mine-alert { border-color: var(--hw-alert); }
.hw-mine-alert p { margin: 0 0 10px; }
.hw-postcard details summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.hw-distbtn { margin: -4px 0 12px; }
@media (prefers-reduced-motion: reduce) { .hw-alert-pin { animation: none; } }

/* ---------- Next house, busy streets, family check-in ---------- */
.hw-nextbtn { position: absolute; left: 12px; bottom: 18px; z-index: 600; border: 2px solid var(--bdt-orange); border-radius: 999px; background: rgba(18,18,18,.94); color: var(--bdt-white); font: 800 15px var(--bdt-font-display); padding: 13px 18px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.hw-nextbtn:hover { background: var(--bdt-orange); color: var(--bdt-black); }
.hw-routepill { bottom: 78px; }
.hw-going .hw-nextbtn { display: none; }
.hw-fab[aria-pressed="true"] { background: var(--bdt-orange); border-color: var(--bdt-orange); }
.hw-fab span { font-size: 20px; line-height: 1; }
.hw-banner--follow { background: #1B3A5C; color: #D7E8FF; }
.hw-follow-pin { width: 46px; height: 46px; border-radius: 50%; background: #4EA1FF; border: 3px solid #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 0 rgba(78,161,255,.6); animation: hwme 2s ease-out infinite; }
.hw-detour { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 10px 10px 12px; border-radius: 12px; background: rgba(229,56,59,.16); color: #FFD3D4; font-size: 14.5px; }
.hw-been.on { border-color: var(--hw-green); color: #7EE08A; }

/* ---------- Costume wall ---------- */
.hw-costumes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 16px; }
@media (min-width: 640px) { .hw-costumes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hw-costumes { grid-template-columns: repeat(2, 1fr); } }
.hw-costume { margin: 0; background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 14px; overflow: hidden; }
.hw-costume img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hw-costume figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; font-size: 14px; }
.hw-costume figcaption > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-mycostumes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-mycostumes li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.hw-mycostumes img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.hw-mycostumes small { display: block; color: var(--hw-ink-2); font-size: 13px; }

/* ---------- Results + survey ---------- */
.hw-results { border-color: var(--bdt-orange); }
.hw-results h3 { font-size: 16px; margin: 6px 0 8px; }
.hw-toplist { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 4px; }
.hw-toplist li::marker { color: var(--bdt-orange); font-weight: 800; }
.hw-toplist span { color: var(--hw-ink-2); font-size: 14px; }
.hw-survey { border-top: 1px solid var(--hw-line); padding-top: 14px; }

/* ---------- Share pill, plan-it-for-me ---------- */
.hw-sharepill { position: absolute; top: 58px; left: 12px; z-index: 600; max-width: calc(100% - 90px); border: 0; border-radius: 999px; background: #1B3A5C; color: #D7E8FF; font: 600 13.5px var(--bdt-font-body); padding: 8px 14px 8px 12px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-sharepill::first-letter { animation: hwpulse 1.6s ease-in-out infinite; }
.hw-going .hw-sharepill { top: auto; bottom: 18px; }
.hw-share-dlg .btn-primary { margin-top: 6px; }
.hw-autoplan { border-color: var(--bdt-orange); }
.hw-seg--tight { grid-template-columns: repeat(4, 1fr); }
.hw-seg--tight span { padding: 10px 6px; text-align: center; }
@media (max-width: 480px) { .hw-seg--tight { grid-template-columns: repeat(2, 1fr); } }
.hw-autoplan .hw-quick .hw-chip[aria-pressed="true"] { background: var(--bdt-orange); color: var(--bdt-black); border-color: var(--bdt-orange); }
.hw-or { text-align: center; color: var(--hw-ink-2); font-size: 14px; margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.hw-or::before, .hw-or::after { content: ""; flex: 1; border-top: 1px solid var(--hw-line-2); }

/* ---------- Streamlined layout (Oct 1) ---------- */
.hw-tabbar { grid-template-columns: repeat(5, 1fr); }
.hw-tabbar a { font-size: 11.5px; }
@media (min-width: 1024px) { .hw-tabbar { grid-template-columns: repeat(4, 1fr); } }
.hw-infobtn { text-decoration: none; }
.hw-infobtn.on { border-color: var(--bdt-orange); color: var(--bdt-orange); }
.hw-layermenu { position: absolute; right: 70px; bottom: 18px; z-index: 700; background: var(--hw-panel); border: 1px solid var(--hw-line-2); border-radius: 14px; padding: 6px; display: grid; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.hw-layermenu button { background: none; border: 0; color: var(--bdt-white); text-align: left; font: 500 15px var(--bdt-font-body); padding: 11px 12px; border-radius: 9px; cursor: pointer; }
.hw-layermenu button:hover { background: var(--hw-raised); }
@media (min-width: 1024px) { .hw-layermenu { top: 64px; bottom: auto; } }
.hw-statline { color: var(--hw-ink-2); font-size: 14px; margin: -8px 0 12px; }
.hw-hint { color: var(--hw-ink-2); font-size: 14.5px; text-align: center; margin: 4px 8px 16px; }
.hw-hint a { color: var(--bdt-orange-face); }
.hw-stephead { display: flex; align-items: center; gap: 8px; font-size: 15.5px; margin: 16px 0 8px; }
.hw-stephead .keycap { font-size: 11px; }
.hw-autoplan > .hw-stephead:first-of-type { margin-top: 6px; }
.hw-seg--start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-seg--start button { display: grid; justify-items: center; gap: 2px; background: var(--hw-raised); border: 1.5px solid var(--hw-line-2); border-radius: 12px; color: var(--bdt-white); font-size: 20px; padding: 10px 4px; cursor: pointer; }
.hw-seg--start button span { font: 600 13px var(--bdt-font-body); }
.hw-seg--start button:hover, .hw-seg--start button[aria-pressed="true"] { border-color: var(--bdt-orange); }
.hw-autoplan .btn-primary.hw-wide { margin-top: 16px; }
.hw-intro h3 { font-size: 15.5px; margin: 14px 0 8px; }
.hw-cando { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hw-cando li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.hw-cando-chips { font-size: 20px; letter-spacing: -2px; text-align: center; }
.hw-cando b { display: block; font-size: 15px; }
.hw-cando small { color: var(--hw-ink-2); font-size: 13.5px; }
.hw-ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-ready li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: var(--hw-raised); border-radius: 12px; padding: 10px; }
.hw-tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--hw-panel); font-size: 15px; }
.hw-ready li.done .hw-tick { background: #1E7B34; color: #fff; font-weight: 800; }
.hw-ready li.done b { color: var(--hw-ink-2); }
.hw-ready-text { display: grid; gap: 1px; min-width: 0; }
.hw-ready-text b { font-size: 15px; font-weight: 600; }
.hw-ready-text small { color: var(--hw-ink-2); font-size: 13px; }
.hw-tonight.is-live { background: rgba(242,107,29,.08); border: 1.5px solid var(--bdt-orange); border-radius: 14px; padding: 14px; }
.hw-night.is-preview .hw-nightbtn { opacity: .55; }
.hw-more { margin-top: 16px; border-top: 1px solid var(--hw-line); padding-top: 12px; }
.hw-more summary { cursor: pointer; color: var(--hw-ink-2); font-size: 14.5px; }
.hw-more[open] summary { margin-bottom: 10px; }
.hw-seg--start button span { border: 0; background: none; padding: 0; height: auto; display: block; }
.hw-seg--start button { font-size: 18px; padding: 9px 4px 8px; }
.hw-plan-sum b { white-space: nowrap; font-size: clamp(17px, 5vw, 22px); }
.hw-cando li { grid-template-columns: 30px 1fr; }
.hw-cando-chips { font-size: 20px; letter-spacing: 0; }
@media (max-width: 430px) {
  .hw-chip-live { font-size: 0; gap: 0; padding: 7px; }
  .hw-title strong { font-size: 15px; }
  .hw-top { gap: 8px; }
  .hw-iconbtn { width: 38px; height: 38px; }
}
.hw-alert-pin { width: 38px; height: 38px; font-size: 18px; border-width: 2.5px; }
.hw-routepill { bottom: 18px; }

/* =====================================================================
   Oct 1 (round 2): live numbers, route notes, pick mode, arrival card,
   photo galleries, chat, spots, settings, mod mode
   ===================================================================== */
:root { --hw-spot: #9B7BFF; --hw-mod: #4EA1FF; }

/* live numbers: one quiet line under the header */
.hw-app { grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "top" "live" "banners" "main" "tabs"; }
.hw-livebar { grid-area: live; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 3px 12px; background: var(--hw-bg); border-bottom: 1px solid var(--hw-line); font: 500 11.5px var(--bdt-font-display); color: var(--hw-ink-2); letter-spacing: .01em; }
.hw-livebar[hidden] { display: none; }
.hw-livebar .g { color: #7EE08A; } .hw-livebar .a { color: #FBD38D; } .hw-livebar .r { color: #FF9C9E; }
.hw-going .hw-livebar { display: none; }
@media (min-width: 1024px) { .hw-app { grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "top top" "live live" "banners banners" "tabs map" "panel map"; } }

/* tab bar copes with 5 or 6 tabs */
.hw-tabbar, .hw-app .hw-tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.hw-tabbar a { min-width: 0; }
@media (min-width: 1024px) { .hw-tabbar, .hw-app .hw-tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }

/* banners */
.hw-banner--pick { background: var(--bdt-orange); color: var(--bdt-black); font-weight: 600; padding: 0; }
.hw-banner--pick .hw-banner-link { padding: 9px 12px; }
.hw-banner--mod { background: #1B3A5C; color: #D7E8FF; padding: 0; font-weight: 600; }
.hw-banner--mod .hw-banner-link::after { content: ""; }

/* route: heads-up notes, pick mode, family link, new route */
.hw-notes { border: 1.5px solid #3D5A80; background: rgba(78,161,255,.1); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.hw-notes--warn { border-color: var(--hw-amber); background: rgba(245,165,36,.12); }
.hw-notes--bad { border-color: var(--hw-red); background: rgba(240,68,56,.14); }
.hw-notes h3 { margin: 0 0 8px; font-size: 16px; }
.hw-notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-notes li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.hw-notes li .btn { grid-column: 2 / -1; justify-self: start; }
.hw-notes .hw-linkbtn { padding: 2px 0; }
.hw-select { width: 100%; font-size: 17px; padding: 13px 12px; }
.hw-center { text-align: center; margin-top: 4px; }
.hw-pickbtn { margin-top: 0; border-color: var(--bdt-orange); }
.hw-hint--left { text-align: left; margin: -6px 0 12px; }
.hw-hint--left b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bdt-orange); color: var(--bdt-black); font-size: 14px; line-height: 1; }
.hw-add--pick { width: auto; min-width: 74px; padding: 0 14px; border-radius: 999px; font: 800 14.5px var(--bdt-font-display); }
.hw-add--pick.on { font-size: 14px; }
.hw-family { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(78,161,255,.12); border: 1px solid #3D5A80; }
.hw-family p { margin: 0; font-size: 14.5px; color: #D7E8FF; }
.hw-newroute { border-color: var(--bdt-orange); color: var(--bdt-white); margin-top: 18px; }
.hw-newroute:hover { background: var(--bdt-orange); color: var(--bdt-black); }

/* go mode: notes + arrival */
.hw-go-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 14px; background: var(--hw-raised); }
.hw-go-note--warn { background: rgba(245,165,36,.16); color: #FBD38D; }
.hw-go-note--bad { background: rgba(240,68,56,.18); color: #FFA39B; }
.hw-go-prompt { margin: 10px 0 0; color: #7EE08A; font-weight: 600; font-size: 15px; }
.hw-go-actions--arrive { grid-template-columns: 1fr 1.5fr; }
.hw-go-actions--arrive .hw-go-skip { grid-column: 1 / -1; justify-self: center; padding: 2px 0; }
.hw-lovebtn { background: var(--hw-raised); border: 2px solid var(--hw-line-2); color: var(--bdt-white); font-weight: 700; }
.hw-lovebtn.on { border-color: #FF6B8A; background: rgba(255,107,138,.16); }
.hw-lovebtn:hover { border-color: #FF6B8A; }

/* photo galleries */
.hw-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 12px 0; padding-bottom: 4px; scrollbar-width: thin; }
.hw-gallery a { flex: 0 0 82%; scroll-snap-align: center; border-radius: 14px; overflow: hidden; }
.hw-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hw-gallery + .hw-sheet-body .hw-sheet-head { padding-right: 0; }
.hw-galedit { margin-top: 12px; }
.hw-galgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.hw-galthumb { position: relative; border-radius: 10px; overflow: hidden; }
.hw-galthumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.hw-galthumb .hw-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; background: rgba(18,18,18,.78); }

/* chat */
.hw-app[data-view="chat"] .hw-panel { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 10px; }
#v-chat:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 720px; margin: 0 auto; }
.hw-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hw-chat .hw-viewhead { margin-bottom: 6px; }
.hw-chat-me { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 8px; min-height: 28px; }
.hw-chat-me .hw-linkbtn { padding: 2px 0; }
.hw-chat-list { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 10px 4px 10px 2px; border-top: 1px solid var(--hw-line); }
.hw-chat-empty { margin: auto; color: var(--hw-ink-2); text-align: center; }
.hw-chat-list:has(.hw-msg) .hw-chat-empty { display: none; }
.hw-msg { align-self: flex-start; max-width: 86%; background: var(--hw-panel); border: 1px solid var(--hw-line); border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; display: grid; gap: 1px; }
.hw-msg.mine { align-self: flex-end; background: #3A2315; border-color: rgba(242,107,29,.5); border-radius: 16px 16px 4px 16px; }
.hw-msg-name { font: 700 12.5px var(--bdt-font-display); color: var(--bdt-orange-face); }
.hw-msg-text { font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.hw-msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11.5px; color: var(--hw-ink-2); }
.hw-msg-more { background: none; border: 0; color: var(--hw-ink-2); font-size: 16px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.hw-msg-more:hover { color: var(--bdt-white); background: var(--hw-raised); }
.hw-msg.gone { opacity: .75; }
.hw-msg.gone .hw-msg-text { font-style: italic; color: var(--hw-ink-2); }
.hw-msg-orig { color: #FFA39B; font-size: 12.5px; overflow-wrap: anywhere; }
.hw-msg--sys { align-self: center; max-width: 94%; text-align: center; background: rgba(242,107,29,.14); border-color: rgba(242,107,29,.4); border-radius: 12px; padding: 6px 12px; font-size: 14px; color: #FFD9BF; }
.hw-chat-foot { padding-top: 8px; border-top: 1px solid var(--hw-line); }
.hw-chat-compose { display: flex; gap: 8px; align-items: flex-end; }
.hw-chat-compose textarea { flex: 1; resize: none; min-height: 46px; max-height: 110px; border-radius: 14px; }
.hw-chat-compose .btn { min-height: 46px; }
.hw-chat-note { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; background: var(--hw-raised); border-radius: 12px; padding: 12px; font-size: 14.5px; }
.hw-chat-join h2 { margin: 0 0 6px; font-size: 19px; }
.hw-chat-join .hw-inline { margin: 10px 0 8px; }
.hw-rules { margin: 10px 0 4px; font-size: 14px; color: var(--hw-ink-2); }
.hw-help.ok { color: #7EE08A; font-weight: 600; }

/* spots */
.hw-spot-pin { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #241C3A; border: 2.5px solid var(--hw-spot); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.55); }
.hw-spot-pin span { font-size: 18px; line-height: 1; }
.hw-spot-pin b { position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--hw-spot); color: #fff; border: 2px solid var(--bdt-black); font: 800 11px/16px var(--bdt-font-display); text-align: center; }
.hw-spot-pin.warm { width: 40px; height: 40px; margin: -2px; }
.hw-spot-pin.hot { width: 46px; height: 46px; margin: -5px; box-shadow: 0 0 0 0 rgba(155,123,255,.6); animation: hwspot 2s ease-out infinite; }
.hw-spot-pin.hot span { font-size: 22px; }
.hw-spot-pin.pin { border-color: #FFD36B; }
@keyframes hwspot { 0% { box-shadow: 0 0 0 0 rgba(155,123,255,.6); } 100% { box-shadow: 0 0 0 18px rgba(155,123,255,0); } }
.hw-far .hw-spot-pin { transform: scale(.78); }
.hw-spot-kicker { margin: 4px 0 10px; font: 800 12.5px var(--bdt-font-display); letter-spacing: .04em; text-transform: uppercase; color: #C3B0FF; padding-right: 40px; }
.hw-avatar--spot { background: #3A2E66; }
.hw-votebtn { font-weight: 600; }
.hw-votebtn[aria-pressed="true"] { border-color: var(--hw-spot); background: rgba(155,123,255,.16); }
.hw-spotcard.is-quiet { opacity: .8; }
.hw-spotcard .hw-status.s-done { background: rgba(155,123,255,.14); color: #C3B0FF; }

/* settings + mod */
.hw-sethead { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--hw-ink-2); margin: 18px 0 2px; font-family: var(--bdt-font-display); }
.hw-switch { margin: 12px 0 0; }
.hw-modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(78,161,255,.12); border: 1px dashed #3D5A80; }
.hw-modbar b { font-size: 13px; color: #9CC9FF; margin-right: 4px; }
.hw-modbar .btn { padding: 6px 10px; font-size: 13px; }
.hw-costume .hw-modbar { margin: 0; border-radius: 0; border-width: 1px 0 0; }
.hw-stats--4 { grid-template-columns: repeat(4, 1fr); }
.hw-stats div.is-hot { border-color: var(--bdt-orange); }
.hw-modsec h2 { justify-content: space-between; }
.hw-modrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hw-line); }
.hw-modrow-t { display: grid; gap: 1px; min-width: 0; }
.hw-modrow-t b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.hw-modrow-t small { color: var(--hw-ink-2); font-size: 13px; overflow-wrap: anywhere; }
.hw-modrow-a { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.hw-modrow-a .btn { padding: 6px 10px; font-size: 13px; }
.hw-modthumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block; }
.hw-modnone { margin: 4px 0 0; font-size: 14px; }
.hw-modlog { margin: 0 0 6px; font-size: 13.5px; color: var(--hw-ink-2); overflow-wrap: anywhere; }
.hw-modlog b { color: var(--bdt-white); }
@media (max-width: 430px) { .hw-modrow { grid-template-columns: 1fr; } .hw-modrow-a { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .hw-spot-pin.hot { animation: none; } }

/* Pop-up sheets: taller (less scrolling), a clear close button, a visible grab handle */
.hw-sheet { max-height: 82%; touch-action: pan-y; }
.hw-sheet::before { width: 52px; height: 5px; margin: 9px auto 0; background: #6A645C; }
.hw-sheet .hw-sheet-close { top: 8px; right: 10px; width: 44px; height: 44px; background: var(--bdt-orange); color: var(--bdt-black); font: 800 20px/1 var(--bdt-font-display); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hw-sheet .hw-sheet-close:hover { background: var(--bdt-white); }
.hw-sheet-head { padding-right: 52px; }
.hw-sheet-photo + .hw-sheet-body .hw-sheet-head, .hw-gallery + .hw-sheet-body .hw-sheet-head { padding-right: 0; }
.hw-sheet-photo img, .hw-gallery img { aspect-ratio: 2 / 1; }
.hw-sheet-body { padding-top: 8px; }
.hw-alert-kicker, .hw-spot-kicker { padding-right: 56px; }
@media (min-width: 1024px) { .hw-sheet { max-height: calc(100% - 80px); } }

/* =====================================================================
   Round 3: docked walking card, green path, route chooser, spots banner,
   Home page, chat extras
   ===================================================================== */

/* walking card: a slim bar at the bottom until you open it */
.hw-go.is-docked { top: auto; bottom: 14px; left: 10px; right: 72px; }
.hw-go-dock { display: flex; align-items: stretch; gap: 6px; background: var(--hw-panel); border: 2px solid var(--bdt-orange); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.55); overflow: hidden; }
.hw-go-dock.is-near { border-color: var(--hw-green); box-shadow: 0 0 0 4px rgba(63,185,80,.25), 0 10px 30px rgba(0,0,0,.55); }
.hw-go-dockmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 8px 6px 8px 10px; cursor: pointer; }
.hw-go-dockdist { flex: 0 0 auto; width: 40px; text-align: center; font: 700 28px/1 var(--bdt-font-head); color: #7BE03A; }
.hw-go-docktxt { display: grid; min-width: 0; line-height: 1.25; }
.hw-go-docktxt small { color: var(--hw-ink-2); font-size: 12.5px; }
.hw-go-docktxt b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-go-dockup { color: var(--bdt-orange); font-size: 14px; padding-right: 2px; }
.hw-go-dockdone { flex: 0 0 56px; border: 0; background: var(--bdt-orange); color: var(--bdt-black); font: 800 24px var(--bdt-font-display); cursor: pointer; }
.hw-go-dockdone:active { background: #7BE03A; }
.hw-going .hw-sharepill { bottom: 84px; }
@media (min-width: 1024px) { .hw-go.is-docked { left: 16px; right: auto; width: 420px; top: auto; bottom: 16px; } .hw-going .hw-sharepill { bottom: 84px; } }
.hw-banner--dir { background: #0F2F40; color: #BFE9FB; padding: 0; font-weight: 600; }
.hw-banner--dir .hw-banner-link { padding: 9px 12px; }
.hw-banner--dir .hw-banner-link::after { content: ""; }

/* route: two clear choices first */
.hw-choice { display: grid; justify-items: start; gap: 3px; text-align: left; padding: 16px 16px; margin: 0 0 12px; height: auto; text-transform: none; letter-spacing: 0; }
.hw-choice b { font: 700 18px var(--bdt-font-head); }
.hw-choice small { font: 400 14px/1.35 var(--bdt-font-body); opacity: .85; white-space: normal; }
.hw-chooser .hw-choice:last-child { margin-bottom: 0; }

/* spots: easy to find from Houses */
.hw-spotsbanner { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #2A2148, #1E1C1A); border: 1.5px solid var(--hw-spot); color: var(--bdt-white); text-decoration: none; }
.hw-spotsbanner-i { width: 44px; height: 44px; border-radius: 50%; background: #3A2E66; display: grid; place-items: center; font-size: 22px; }
.hw-spotsbanner b { display: block; font-size: 16px; }
.hw-spotsbanner small { display: block; color: #C3B0FF; font-size: 13.5px; line-height: 1.3; }
.hw-spotsbanner-go { color: var(--hw-spot); font: 800 22px var(--bdt-font-display); }

/* Home */
.hw-today-head { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.hw-today-i { font-size: 34px; text-align: center; }
.hw-today-head b { display: block; font: 700 19px var(--bdt-font-head); line-height: 1.2; }
.hw-today-head small { color: var(--hw-ink-2); font-size: 14.5px; }
.hw-today-live { margin: 12px 0 0; font: 500 13px var(--bdt-font-display); color: var(--hw-ink-2); }
.hw-today-line { margin: 6px 0 0; font-size: 14.5px; }
.hw-today-news { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--bdt-orange); color: var(--bdt-black); font-weight: 600; font-size: 14.5px; }
.hw-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hw-tile { position: relative; display: grid; gap: 2px; align-content: start; padding: 14px 12px 12px; border-radius: 16px; background: var(--hw-panel); border: 1px solid var(--hw-line); color: var(--bdt-white); text-decoration: none; min-height: 104px; }
.hw-tile:hover { border-color: var(--bdt-orange); }
.hw-tile-i { font-size: 28px; line-height: 1.1; }
.hw-tile b { font: 700 16px var(--bdt-font-head); margin-top: 4px; }
.hw-tile small { color: var(--hw-ink-2); font-size: 13px; line-height: 1.3; }
.hw-tile em { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hw-alert); color: #fff; font: 800 12px/22px var(--bdt-font-display); text-align: center; font-style: normal; }

/* chat extras */
.hw-quick-replies { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.hw-quick-replies::-webkit-scrollbar { display: none; }
.hw-quick-replies .hw-chip { box-shadow: none; background: var(--hw-raised); font-size: 13.5px; padding: 6px 11px; }
.hw-attach { flex: 0 0 46px; padding: 0 !important; font-size: 24px; min-height: 46px; }
.hw-chat-foot .hw-err { margin: 0 0 6px; }
.hw-msg-photo { display: block; margin: 2px -4px 4px; border-radius: 12px; overflow: hidden; }
.hw-msg-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.hw-msg-card { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; width: 100%; text-align: left; margin: 2px 0 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--hw-line-2); background: rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; }
.hw-msg-card:hover:not(:disabled) { border-color: var(--bdt-orange); }
.hw-msg-card.is-gone { opacity: .6; cursor: default; }
.hw-msg-card-i { font-size: 24px; text-align: center; }
.hw-msg-card-t { display: grid; min-width: 0; }
.hw-msg-card-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-msg-card-t small { color: var(--hw-ink-2); font-size: 12.5px; }
.hw-msg-card-go { grid-column: 2; color: var(--bdt-orange-face); font: 700 13px var(--bdt-font-display); }
.hw-choicebtn { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; margin: 0 0 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--hw-line-2); background: var(--hw-raised); color: var(--bdt-white); font: inherit; cursor: pointer; }
.hw-choicebtn:hover:not(:disabled) { border-color: var(--bdt-orange); }
.hw-choicebtn:disabled { opacity: .5; cursor: default; }
.hw-choicebtn > span:first-child { font-size: 26px; text-align: center; }
.hw-choicebtn b { display: block; font-size: 16px; }
.hw-choicebtn small { display: block; color: var(--hw-ink-2); font-size: 13.5px; }
.hw-loc-pin { width: 42px; height: 42px; border-radius: 50%; background: #4EA1FF; border: 3px solid #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 0 0 0 rgba(78,161,255,.6); animation: hwme 2s ease-out infinite; }

/* Round 4: closed stamp, pick bar, turn by turn */
.hw-house { position: relative; overflow: hidden; }
.hw-house.is-out, .hw-house.is-visited.is-out { opacity: 1; }
.hw-house.is-out > *:not(.hw-closed) { opacity: .5; }
.hw-closed { position: absolute; right: 52px; top: 50%; transform: translateY(-50%) rotate(-9deg); pointer-events: none; z-index: 2;
  font: 400 30px/1 'Anton', Impact, 'Arial Narrow Bold', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #E5383B;
  border: 3px solid #E5383B; border-radius: 6px; padding: 3px 10px 1px; background: rgba(229,56,59,.08); text-shadow: 1px 1px 0 rgba(0,0,0,.4);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-size: 120px 60px; mask-size: 120px 60px; opacity: .95; }
.hw-pickbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--hw-tabbar) + 14px + env(safe-area-inset-bottom)); z-index: 1500; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px;
  border: 0; border-radius: 999px; background: var(--bdt-orange); color: var(--bdt-black); font: 800 16px var(--bdt-font-display); cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.hw-pickbar b { font: 700 13.5px var(--bdt-font-body); background: rgba(0,0,0,.15); border-radius: 999px; padding: 4px 10px; }
body.hw-pickmode:has(#hw-sheet:not([hidden])) .hw-pickbar { display: none; }
body.hw-pickmode .hw-panel { padding-bottom: 96px; }
@media (min-width: 1024px) { .hw-pickbar { left: 16px; right: auto; width: 408px; bottom: 20px; } }
.hw-go-card { max-height: 68vh; overflow-y: auto; }
.hw-stepsbox { margin: 10px 0 0; background: var(--hw-raised); border-radius: 12px; padding: 8px 12px; }
.hw-stepsbox summary { cursor: pointer; font: 700 14px var(--bdt-font-display); color: #CFF5BE; padding: 2px 0; }
.hw-stepsbox ol { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 8px; }
.hw-stepsbox li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: 14.5px; line-height: 1.3; }
.hw-step-i { text-align: center; font-size: 18px; }
.hw-stepsbox li small { color: var(--hw-ink-2); font-size: 12.5px; white-space: nowrap; }
.hw-stepsbox li:first-child .hw-step-t { font-weight: 700; color: #7BE03A; }
.hw-stepsnote { margin: 6px 0 2px; font-size: 13.5px; }
.hw-stepsbox .hw-linkbtn { padding: 2px 0; font-size: 13px; }
/* Round 5: crews, tour, FAQ, help tag */
.hw-crewpill { position: absolute; top: 58px; left: 12px; z-index: 600; max-width: calc(100% - 90px); border: 0; border-radius: 999px; background: #3A2E66; color: #E6DDFF; font: 600 13.5px var(--bdt-font-body); padding: 8px 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-sharepill:not([hidden]) ~ .hw-crewpill { top: 98px; }
.hw-crew-pin { display: grid; justify-items: center; }
.hw-crew-pin span { width: 40px; height: 40px; border-radius: 50%; background: #3A2E66; border: 3px solid #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 3px 10px rgba(0,0,0,.6); }
.hw-crew-pin i { margin-top: 2px; font: 700 11px/1.2 var(--bdt-font-display); font-style: normal; color: #fff; background: rgba(18,18,18,.82); border-radius: 8px; padding: 1px 6px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-crew-pin.is-stale { opacity: .55; filter: grayscale(.6); }
.hw-meet-pin { display: grid; justify-items: center; }
.hw-meet-pin span { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.7)); }
.hw-meet-pin i { font: 800 11px/1.2 var(--bdt-font-display); font-style: normal; color: #1a1a1a; background: #FFD36B; border-radius: 8px; padding: 2px 7px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-emoji { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--hw-line-2); background: var(--hw-raised); font-size: 24px; cursor: pointer; }
.hw-emoji[aria-pressed="true"] { border-color: var(--bdt-orange); background: rgba(242,107,29,.18); }
.hw-crew-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.hw-crew-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: var(--hw-raised); border-radius: 12px; padding: 8px 10px; }
.hw-crew-em { width: 38px; height: 38px; border-radius: 50%; background: #3A2E66; display: grid; place-items: center; font-size: 21px; }
.hw-crew-t { display: grid; min-width: 0; }
.hw-crew-t b { font-size: 15.5px; }
.hw-crew-t small { color: var(--hw-ink-2); font-size: 13px; }

/* tour */
.hw-tour { position: fixed; inset: 0; z-index: 4000; }
.hw-tour.is-center { background: rgba(0,0,0,.74); }
.hw-tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.74), 0 0 0 3px var(--bdt-orange); pointer-events: none; transition: all .22s ease; }
.hw-tour-card { position: fixed; background: var(--hw-panel); border: 1.5px solid var(--bdt-orange); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 16px 44px rgba(0,0,0,.6); }
.hw-tour-card h3 { margin: 0 0 4px; font-size: 18px; }
.hw-tour-card p { margin: 0 0 10px; font-size: 15px; color: #E4DED6; }
.hw-tour-card .hw-tour-n { margin: 0 0 4px; font: 700 11.5px var(--bdt-font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--bdt-orange-face); }
.hw-tour-btns { display: flex; align-items: center; gap: 8px; }
.hw-tour-sp { flex: 1; }

/* faq + help tag */
.hw-faqitem { padding: 14px 16px; margin-bottom: 10px; }
.hw-faqitem > summary { font: 600 16px var(--bdt-font-body); line-height: 1.35; }
.hw-faqitem p { margin: 0; color: #E4DED6; font-size: 15px; line-height: 1.5; }
.hw-faqitem a, .hw-faq a { color: var(--bdt-orange-face); }
.hw-mention { color: #FFD36B; font-weight: 700; }
.hw-msg.is-help { border-color: var(--hw-red); background: rgba(240,68,56,.12); }
.hw-msg-help { font: 700 12px var(--bdt-font-display); color: #FFA39B; }
/* Host status buttons: the chosen one is solid, with a tick */
.hw-nightbtn { position: relative; }
.hw-nightbtn[aria-pressed="true"] { color: #fff; border-width: 3px; padding: 12px 6px 12px; box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.4); transform: scale(1.02); }
.hw-nightbtn[aria-pressed="true"] { border-color: #7EE08A; background: #1E7B34; }
.hw-nightbtn.n-low[aria-pressed="true"] { border-color: #FFC857; background: #A8680C; }
.hw-nightbtn.n-out[aria-pressed="true"] { border-color: #FF8A80; background: #B42318; }
.hw-nightbtn.n-done[aria-pressed="true"] { border-color: #C9C3BB; background: #4A4640; }
.hw-nightbtn:not([aria-pressed="true"]) { opacity: .8; }
.hw-night-tick { position: absolute; top: -10px; right: -6px; font: 800 11px/1 var(--bdt-font-display); font-style: normal; text-transform: uppercase; letter-spacing: .04em; background: #fff; color: #121212; border-radius: 999px; padding: 4px 8px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hw-night.is-preview .hw-nightbtn, .hw-night.is-preview .hw-nightbtn[aria-pressed="true"] { opacity: 1; }
.hw-night.is-preview .hw-nightbtn:not([aria-pressed="true"]) { opacity: .85; }
.hw-night-now { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hw-raised); color: var(--hw-ink-2); font-size: 14.5px; font-weight: 600; text-align: center; }
.hw-night-now.is-set { color: #fff; background: #1E7B34; }
.hw-night-now.n-low { background: #A8680C; } .hw-night-now.n-out { background: #B42318; } .hw-night-now.n-done { background: #4A4640; }
/* Photo viewer */
.hw-lightbox { border: 0; padding: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; background: transparent; color: #fff; overflow: hidden; }
.hw-lightbox::backdrop { background: rgba(0,0,0,.95); }
.hw-lb-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pinch-zoom; overscroll-behavior: contain; }
.hw-lb-track::-webkit-scrollbar { display: none; }
.hw-lb-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 56px 8px 24px; box-sizing: border-box; }
.hw-lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.hw-lb-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bdt-orange); color: var(--bdt-black); font: 800 20px/1 var(--bdt-font-display); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hw-lb-count { position: fixed; top: calc(20px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(30,28,26,.85); border-radius: 999px; padding: 5px 14px; font: 700 14px var(--bdt-font-display); }
.hw-lb-arrow { position: fixed; top: 50%; z-index: 2; transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 12px; background: rgba(30,28,26,.7); color: #fff; font: 400 38px/1 var(--bdt-font-body); cursor: pointer; }
.hw-lb-arrow[hidden] { display: none; }
.hw-lb-prev { left: 8px; } .hw-lb-next { right: 8px; }
@media (pointer: coarse) { .hw-lb-arrow { opacity: .55; width: 38px; } }
/* Chat: Everyone / My group tabs */
.hw-chat-tabs { display: flex; gap: 8px; margin: 2px 0 8px; }
.hw-chat-tabs[hidden] { display: none; }
.hw-chat-tab { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 12px; border: 2px solid var(--hw-line-2); background: var(--hw-raised); color: var(--bdt-white); font: 700 14px var(--bdt-font-body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-chat-tab[aria-selected="true"] { background: var(--bdt-orange); border-color: var(--bdt-orange); color: var(--bdt-black); }
.hw-chat-tab b { background: var(--hw-alert); color: #fff; border-radius: 999px; padding: 1px 7px; font: 800 12px/18px var(--bdt-font-display); }
/* Statistics off, and Basic mode (route planning only) */
.hw-nostats #hw-livebar, .hw-nostats .hw-statline, .hw-nostats .hw-today-live { display: none !important; }
.hw-basic .hw-tabbar a[data-tab="alerts"], .hw-basic .hw-tabbar a[data-tab="chat"], .hw-basic .hw-crewpill, .hw-basic .hw-spotsbanner,
.hw-basic .hw-pin-wrap:has(.hw-alert-pin), .hw-basic .hw-pin-wrap:has(.hw-spot-pin) { display: none !important; }
.hw-basicbox { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hw-line); }
.hw-basic .hw-tabbar { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1024px) { .hw-basic .hw-tabbar { grid-template-columns: repeat(3, 1fr); } }

/* One-off trip bar (blue) with a clear way back to the route */
.hw-go-dock--detour { border-color: #38BDF8; }
.hw-go-dock--detour .hw-go-dockdist { color: #38BDF8; }
.hw-go-dock--detour.is-near { border-color: var(--hw-green); }
.hw-go-dockback { flex: 0 0 auto; max-width: 46%; display: grid; align-content: center; gap: 1px; border: 0; background: var(--bdt-orange); color: var(--bdt-black); font: 800 14px/1.15 var(--bdt-font-display); padding: 6px 12px; cursor: pointer; text-align: center; }
.hw-go-dockback small { font: 600 11px var(--bdt-font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-go-dockback:active { background: #7BE03A; }

/* A meet-up spot someone just set pulses for a few seconds */
.hw-meet-pin.is-new span { animation: hwmeetpulse 1.1s ease-in-out 22; display: inline-block; }
@keyframes hwmeetpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.hw-meet-pin.is-new i { box-shadow: 0 0 0 4px rgba(245,165,36,.55); }
.hw-meet-big { font: 700 24px/1.2 var(--bdt-font-head); margin: 4px 0 2px; }
@media (prefers-reduced-motion: reduce) { .hw-meet-pin.is-new span { animation: none; } }

/* Direction chevrons along the route: white with a dark halo so they read on orange, green and blue lines */
.hw-arrow-wrap { background: none; border: 0; pointer-events: none; }
.hw-arrow-wrap svg { display: block; overflow: visible; }
.hw-arrow-halo { fill: none; stroke: rgba(10,10,10,.85); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.hw-arrow-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* "In your route · tap to remove" */
.hw-tap-remove { font-weight: 500; opacity: .75; font-size: .86em; white-space: nowrap; }

/* walking: love button in the slim bar, re-order link in the open card */
.hw-go-dockheart { flex: 0 0 52px; border: 0; background: transparent; font-size: 24px; cursor: pointer; line-height: 1; }
.hw-go-dockheart.on { filter: none; }
.hw-go-reorder { display: block; margin: 8px auto 0; font-size: 14px; }

/* the little ? beside a setting */
.hw-switch { align-items: center; }
.hw-qmark { flex: 0 0 auto; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; border: 1.5px solid var(--hw-line-2); background: transparent; color: var(--hw-ink-2); font: 700 15px/1 var(--bdt-font-display); cursor: pointer; padding: 0; }
.hw-qmark:hover, .hw-qmark:focus-visible { border-color: var(--bdt-orange); color: var(--bdt-orange); }

/* settings window: a close button that stays in the top right while you scroll */
.hw-dlghead { position: sticky; top: -20px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -20px -20px 8px; padding: 16px 16px 10px 20px; background: var(--hw-panel); }
.hw-dlghead h2 { margin: 0; }
.hw-dlgclose { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bdt-orange); color: var(--bdt-black); font: 800 18px/1 var(--bdt-font-display); cursor: pointer; }
.hw-dlgclose:hover, .hw-dlgclose:focus-visible { background: var(--bdt-white); }

.hw-finish { text-align: center; display: grid; gap: 10px; justify-items: stretch; }
.hw-finish .hw-big { font-size: 44px; line-height: 1; }
.hw-finish h2, .hw-finish p { margin: 0; }

/* pre-Halloween test mode */
.hw-banner--test { background: #4A3AA7; color: #fff; font-weight: 600; }
.hw-check--test { background: rgba(74, 58, 167, .14); border: 1px dashed #9085e9; border-radius: 12px; padding: 10px 12px; }

/* "Updated 2 min ago" in the header */
.hw-sync { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.hw-sync.is-stale { color: #FBD38D; font-weight: 700; }
