:root {
  --ink: #10130e;
  --paper: #ede8d3;
  --acid: #bed044;
  --orange: #ec6f32;
  --water: #82b4b1;
  --muted: #6f765e;
  --shadow: 0 10px 35px rgba(16, 19, 14, .2);
}

* { box-sizing: border-box; }
::selection { background: var(--orange); color: var(--ink); }
html { overscroll-behavior: none; }
html, body, .app-shell, #map { width: 100%; height: 100%; min-height: 100dvh; margin: 0; }
body { overflow: hidden; background: var(--paper); color: var(--ink); font-family: Chivo, sans-serif; }
button, input { font: inherit; touch-action: manipulation; }
button { color: inherit; touch-action: manipulation; transition: transform .14s ease, background-color .14s ease, color .14s ease, border-color .14s ease; }
button:hover:not(:disabled) { filter: brightness(1.06); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .62; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }

.app-shell { position: relative; isolation: isolate; }
#map { z-index: 0; background: #090b0a; }
#drive-map { position: fixed; inset: 0; z-index: 1; background: #a9ccc6; }
#drive-map[hidden] { display: none; }
.drive-arrow { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 28px solid var(--orange); filter: drop-shadow(0 3px 1px rgba(0,0,0,.45)); }
.app-shell.is-driving .topbar,
.app-shell.is-driving .side-panel,
.app-shell.is-driving .location-card,
.app-shell.is-driving .destination-card { display: none; }
.app-shell.is-driving .directions-panel { top: 18px; }
#map::after { content: ""; position: absolute; inset: 0; z-index: 500; pointer-events: none; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.leaflet-control-attribution { background: rgba(237,232,211,.78) !important; font-size: 10px !important; }
.leaflet-control-zoom { display: none; }
.leaflet-maplibre-gl { background: #090b0a; }
.maplibregl-canvas { outline: 0; }

.topbar { position: fixed; top: 24px; left: 28px; right: 28px; z-index: 900; display: flex; align-items: center; gap: 18px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.brand-mark { display: grid; place-items: center; width: 64px; height: 48px; padding: 7px; background: var(--ink); box-shadow: 5px 5px 0 var(--acid); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand b { display: block; }
.brand b { font: 800 20px/1 "Barlow Condensed"; letter-spacing: .03em; }
.search { width: min(430px, 40vw); margin-left: auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: rgba(246,243,225,.92); border: 1px solid rgba(16,19,14,.25); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.search-icon { display: grid; place-items: center; flex: 0 0 22px; }
.search-icon svg, .icon-button svg, .nav-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: #6f7466; }
kbd { border: 1px solid #a6a592; padding: 4px 6px; background: #dedac7; font-size: 12px; }
.icon-button { width: 46px; height: 46px; border: 0; background: var(--ink); color: var(--paper); font-size: 24px; box-shadow: var(--shadow); cursor: pointer; }
.icon-button { display: grid; place-items: center; }
.host-button { height: 46px; padding: 0 18px; border: 0; background: var(--orange); color: #17130f; font: 800 16px/1 "Barlow Condensed"; letter-spacing: .04em; cursor: pointer; box-shadow: var(--shadow); }
.quick-button { height: 46px; padding: 0 18px; border: 0; background: var(--acid); color: var(--ink); font: 800 17px/1 "Barlow Condensed"; letter-spacing: .03em; cursor: pointer; box-shadow: var(--shadow); }
.profile-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 13px; border: 0; background: var(--ink); color: #eee9d7; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.profile-button b { font: 700 14px/1 "Barlow Condensed"; color: var(--acid); }
.profile-icon { display: grid; place-items: center; width: 22px; height: 22px; color: var(--acid); }
.profile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.side-panel { position: fixed; z-index: 850; left: 28px; top: 50%; transform: translateY(-50%); width: 94px; padding: 8px; background: rgba(19,22,16,.96); color: #eee9d7; box-shadow: var(--shadow); }
.side-panel nav { display: grid; gap: 4px; }
.meet-date-filter { position: fixed; z-index: 840; top: 90px; left: 50%; display: grid; grid-template-columns: 1fr 1fr; width: 224px; padding: 4px; background: rgba(19,22,16,.96); box-shadow: var(--shadow); transform: translateX(-50%); }
.meet-date-filter[hidden] { display: none; }
.meet-date-filter button { min-height: 40px; border: 0; background: transparent; color: #aeb1a4; font: 800 14px/1 "Barlow Condensed"; cursor: pointer; }
.meet-date-filter button.active { background: var(--acid); color: var(--ink); }
.nav-item { min-height: 76px; padding: 10px 6px; border: 0; background: transparent; color: #a8aa9d; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 8px; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; }
.nav-icon svg { width: 24px; height: 24px; }
.nav-item b { font: 700 14px/1 "Barlow Condensed"; letter-spacing: .03em; text-transform: uppercase; }
.nav-item:hover, .nav-item:focus-visible { color: white; background: #292d24; outline: 2px solid var(--acid); }
.nav-item.active { color: var(--ink); background: var(--acid); }
.online { margin-top: 8px; border-top: 1px solid #41453b; padding: 12px 4px 5px; text-align: center; font-size: 12px; letter-spacing: .04em; }
.online i { display: block; width: 6px; height: 6px; margin: 0 auto 5px; border-radius: 50%; background: var(--acid); }

.location-card { position: fixed; z-index: 800; right: 28px; bottom: 43px; width: 320px; padding: 18px; background: rgba(19,22,16,.96); color: #eee9d7; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.location-card[hidden] { display: none; }
.card-toggle { display: none; }
.meet-cover { height: 118px; margin: -18px -18px 16px; overflow: hidden; background: #22261e; }
.meet-cover[hidden] { display: none; }
.meet-cover img { width: 100%; height: 100%; object-fit: cover; }
.meet-status { display: inline-block; margin: 5px 0 9px; padding: 5px 7px; background: var(--orange); color: var(--ink); font: 700 12px/1 Chivo; letter-spacing: .04em; }
.location-card h1 { margin: 0 0 4px; font: 800 38px/.92 "Barlow Condensed"; letter-spacing: -.02em; }
.location-card p { margin: 0 0 14px; color: #aeb1a4; font-size: 12px; }
.empty-card > span { display: block; margin-bottom: 9px; color: var(--orange); font: 800 13px/1 "Barlow Condensed"; }
.empty-card p { font-size: 14px; line-height: 1.5; }
.empty-card button { width: 100%; min-height: 46px; border: 0; background: var(--acid); color: var(--ink); font: 800 15px/1 "Barlow Condensed"; cursor: pointer; }
.meet-numbers { display: flex; gap: 20px; padding-top: 13px; border-top: 1px solid #484b42; color: #aeb1a4; font-size: 12px; letter-spacing: .03em; }
.meet-numbers b { display: block; margin-bottom: 2px; color: #f1edda; font: 700 23px/1 "Barlow Condensed"; }
.meet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.meet-actions button { min-height: 44px; border: 1px solid var(--acid); background: transparent; color: var(--acid); font: 700 14px/1 "Barlow Condensed"; letter-spacing: .05em; cursor: pointer; }
.meet-actions button:first-child { background: var(--acid); color: var(--ink); }
.meet-actions button.is-going { background: #426c70; border-color: #426c70; color: white; }
.meet-actions button:hover:not(:disabled), .destination-actions button:hover:not(:disabled) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.invite-trigger { width: 100%; min-height: 42px; margin-top: 8px; border: 0; background: #292d24; color: var(--paper); font: 700 14px/1 "Barlow Condensed"; letter-spacing: .05em; cursor: pointer; }
.invite-trigger:hover { background: var(--orange); color: var(--ink); }
.shop-card[hidden] { display: none; }
.shop-card { width: 360px; }
.shop-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: #292d24; color: var(--paper); font-size: 24px; cursor: pointer; }
.shop-card h1 { margin-right: 46px; }
.shop-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -3px 0 12px; }
.shop-badges span { padding: 4px 6px; background: #31362d; color: #cdd2c2; font: 700 12px/1 "Barlow Condensed"; letter-spacing: .03em; }
.shop-badges #shop-meet-friendly { background: var(--acid); color: var(--ink); }
.shop-badges span[hidden] { display: none; }
.shop-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.shop-info-grid > * { display: grid; gap: 5px; min-height: 56px; padding: 9px; background: #252920; color: #d7d9ce; text-decoration: none; }
.shop-info-grid b { color: var(--orange); font: 700 12px/1 "Barlow Condensed"; letter-spacing: .04em; }
.shop-info-grid span { font-size: 12px; line-height: 1.3; }
.shop-info-grid a[hidden] { display: none; }
.shop-info-grid:has(a[hidden]) { grid-template-columns: 1fr; }
.shop-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.shop-services:empty { display: none; }
.shop-services span { padding: 5px 7px; border: 1px solid #50554a; color: #dfe2d7; font-size: 12px; line-height: 1; }
.shop-description { color: #d7d9ce !important; font-size: 13px !important; line-height: 1.5; }
.shop-card .meet-actions a { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--acid); color: var(--acid); font: 700 14px/1 "Barlow Condensed"; letter-spacing: .05em; text-decoration: none; }
.shop-card .meet-actions a[hidden] { display: none; }
.shop-card .meet-actions:has(a[hidden]) { grid-template-columns: 1fr; }
.shop-source { display: block; margin-top: 9px; color: #92978a; font-size: 12px; line-height: 1.3; }
.lock-note { margin: 8px 0 0 !important; color: #d6b69b !important; font-size: 12px !important; line-height: 1.4; }
.lock-note[hidden] { display: none; }

.legend { display: none; }
.legend button { width: 44px; height: 44px; border: 0; background: var(--ink); color: white; font-size: 18px; cursor: pointer; }
.legend div { display: flex; align-items: center; gap: 7px; }
.route-line { width: 24px; height: 4px; background: var(--acid); }
.mission-dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--orange); }
.coordinates { display: none; }

.custom-marker { display: grid; place-items: center; width: 40px !important; height: 40px !important; margin: -20px 0 0 -20px !important; border: 4px solid #f1eddc; transform: rotate(45deg); background: var(--orange); color: var(--ink); box-shadow: 0 5px 12px rgba(0,0,0,.25); }
.custom-marker span { transform: rotate(-45deg); font: 800 16px/1 "Barlow Condensed"; }
.custom-marker.upcoming { background: var(--acid); }
.custom-marker.crew { background: #426c70; color: white; }
.custom-marker.user-going { border-color: var(--acid); }
.custom-marker.shop-marker { border-radius: 0; background: #426c70; color: white; }
.custom-marker.shop-marker span { font-size: 12px; }
.custom-marker.selected-meet { z-index: 10 !important; border-color: white; box-shadow: 0 0 0 5px var(--acid), 0 9px 20px rgba(0,0,0,.5); }
.custom-marker:focus-visible { outline: 3px solid white; outline-offset: 6px; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--ink); }
.leaflet-popup-content { font-size: 12px; }
.leaflet-popup-content b { display: block; color: var(--acid); font: 700 18px/1 "Barlow Condensed"; }
.popup-meta { display: block; margin: 5px 0; color: #bdc0b4; }

dialog { width: min(480px, calc(100% - 28px)); padding: 0; border: 0; background: #171a14; color: #eee9d7; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(12,14,11,.66); backdrop-filter: blur(4px); }
#host-form { display: grid; gap: 15px; padding: 24px; }
#shop-form { display: grid; gap: 15px; padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #44483d; padding-bottom: 15px; }
.dialog-head h2 { margin: 0; font: 800 32px/1 "Barlow Condensed"; }
.dialog-head button { width: 44px; height: 44px; border: 0; background: #292d24; color: white; font-size: 24px; cursor: pointer; }
#host-form label { display: grid; gap: 7px; color: #c4c6bc; font-size: 12px; }
#host-form input { width: 100%; min-height: 46px; border: 1px solid #565a4f; background: #22261e; color: white; padding: 0 12px; border-radius: 0; }
#host-form input::placeholder { color: #858a7d; }
#shop-form label { display: grid; gap: 7px; color: #c4c6bc; font-size: 12px; }
#shop-form label > span { color: #8f9487; }
#shop-form input, #shop-form select, #shop-form textarea { width: 100%; min-height: 46px; border: 1px solid #565a4f; border-radius: 0; padding: 0 12px; background: #22261e; color: white; }
#shop-form textarea { min-height: 88px; padding-block: 12px; resize: vertical; }
#shop-form p { margin: 0; color: #a7aa9e; font-size: 12px; line-height: 1.5; }
.poster-upload { position: relative; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; min-height: 76px; padding: 12px; border: 1px dashed #686d61; background: #22261e; cursor: pointer; }
.poster-upload:hover { border-color: var(--acid); }
.poster-upload:has(input:focus-visible) { outline: 3px solid var(--acid); outline-offset: 2px; }
#host-form .poster-upload input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.poster-copy { min-width: 0; }
.poster-copy b { display: block; color: #f1edda; font-size: 13px; }
.poster-copy small { display: block; margin-top: 5px; color: #9da194; font-size: 12px; line-height: 1.35; }
.poster-action { color: var(--acid); font: 800 13px/1 "Barlow Condensed"; }
.poster-upload.is-loading { cursor: progress; opacity: .7; }
.poster-preview { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: #22261e; }
.poster-preview[hidden] { display: none; }
.poster-preview img { width: 96px; height: 64px; object-fit: cover; }
.poster-preview div { min-width: 0; }
.poster-preview span { display: block; overflow: hidden; margin-bottom: 8px; color: #c4c6bc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.poster-preview button { min-height: 36px; padding: 0 14px; border: 1px solid #686d61; background: transparent; color: var(--orange); font: 700 12px/1 "Barlow Condensed"; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#host-form p { margin: 0; color: #a7aa9e; font-size: 12px; line-height: 1.5; }
.create-button { min-height: 48px; border: 0; background: var(--acid); color: var(--ink); font: 800 17px/1 "Barlow Condensed"; letter-spacing: .04em; cursor: pointer; }
.meet-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.meet-type legend { grid-column: 1 / -1; margin-bottom: 7px; color: #c4c6bc; font-size: 12px; }
.meet-type label { position: relative; display: block; }
.meet-type input { position: absolute; opacity: 0; }
.meet-type span { display: grid; place-items: center; min-height: 46px; padding: 8px; border: 1px solid #565a4f; color: #bbbfb3; font-size: 12px; cursor: pointer; }
.meet-type input:checked + span { border-color: var(--acid); background: var(--acid); color: var(--ink); font-weight: 700; }
.private-option { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; padding: 12px; background: #22261e; }
.private-option input { min-height: auto !important; width: 18px !important; height: 18px; margin: 2px 0 0; accent-color: var(--acid); }
.private-option span { line-height: 1.45; }
.private-option b { display: block; color: white; }
.invite-card { position: relative; padding: 26px; overflow: hidden; background: var(--ink); color: var(--paper); }
.invite-card::after { content: ""; position: absolute; right: -34px; bottom: -38px; width: 140px; height: 140px; border: 22px solid rgba(190,208,68,.12); transform: rotate(45deg); pointer-events: none; }
.invite-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; background: #292d24; color: white; font-size: 24px; cursor: pointer; }
.invite-brand { display: flex; align-items: center; gap: 9px; color: var(--acid); font: 800 15px/1 "Barlow Condensed"; letter-spacing: .04em; }
.invite-brand span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--acid); color: var(--ink); font-size: 18px; transform: skew(-6deg); }
.invite-poster { height: 190px; margin: 22px 0 0; overflow: hidden; background: #22261e; }
.invite-poster[hidden] { display: none; }
.invite-poster img { width: 100%; height: 100%; object-fit: cover; }
.invite-poster:not([hidden]) + .invite-label { margin-top: 18px; }
.invite-label { margin: 34px 0 7px; color: var(--orange); font: 700 12px/1 Chivo; letter-spacing: .05em; }
.invite-card h2 { max-width: calc(100% - 24px); margin: 0; font: 800 clamp(38px, 10vw, 58px)/.9 "Barlow Condensed"; letter-spacing: -.03em; }
.invite-status { display: inline-block; margin: 13px 0 20px; padding: 6px 8px; background: var(--orange); color: var(--ink); font: 800 12px/1 "Barlow Condensed"; }
.invite-details { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px 20px; margin: 0; padding: 18px 0; border-block: 1px solid #42463d; }
.invite-details div:first-child { grid-row: span 2; }
.invite-details dt { margin-bottom: 5px; color: #aeb1a4; font-size: 12px; font-weight: 600; }
.invite-details dd { margin: 0; font-size: 13px; line-height: 1.4; }
.invite-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.invite-actions button { min-height: 46px; border: 1px solid var(--acid); background: transparent; color: var(--acid); font: 800 14px/1 "Barlow Condensed"; cursor: pointer; }
.invite-actions button:first-child { background: var(--acid); color: var(--ink); }
.invite-actions #share-invite { border-color: var(--paper); color: var(--paper); }
.invite-actions button:hover:not(:disabled) { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.invite-actions #share-invite:hover:not(:disabled) { color: var(--ink); }
.account-panel { padding: 24px; background: #171a14; }
.account-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: var(--acid); font: 800 13px/1 "Barlow Condensed"; letter-spacing: .04em; }
.account-brand img { display: block; width: 46px; height: 26px; object-fit: contain; }
.account-benefit { margin: 16px 0; color: #d7d9ce; font-size: 13px; line-height: 1.5; }
.oauth-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.oauth-options[hidden] { display: none; }
.oauth-options button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid #565a4f; background: #f1edda; color: var(--ink); font: 700 14px/1 "Barlow Condensed"; letter-spacing: .03em; cursor: pointer; }
.oauth-options button:hover, .oauth-options button:focus-visible { border-color: var(--acid); outline: 2px solid var(--acid); outline-offset: 1px; }
.oauth-options button:disabled { cursor: wait; opacity: .65; }
.oauth-options svg { width: 19px; height: 19px; fill: currentColor; }
.oauth-options span { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: #aeb1a4; font: 700 12px/1 "Barlow Condensed"; letter-spacing: .04em; }
.oauth-options span::before, .oauth-options span::after { content: ""; height: 1px; flex: 1; background: #484b42; }
.prototype-note { margin: 14px 0 0; color: #9da194; font-size: 12px; line-height: 1.45; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.account-tabs[hidden] { display: none; }
.account-tabs button { min-height: 44px; border: 0; border-bottom: 1px solid #44483d; background: transparent; color: #9da194; font: 700 14px/1 "Barlow Condensed"; cursor: pointer; }
.account-tabs button.active { border-bottom: 3px solid var(--acid); color: var(--acid); }
.account-form { display: grid; gap: 13px; }
.account-form[hidden], .account-active[hidden] { display: none; }
.account-form label { display: grid; gap: 6px; color: #c4c6bc; font-size: 12px; }
.account-form label > span { color: #8f9487; }
.account-form input, .account-form select { width: 100%; min-height: 46px; border: 1px solid #565a4f; border-radius: 0; padding: 0 12px; background: #22261e; color: white; }
.account-form input::placeholder { color: #858a7d; }
.terms-option { grid-template-columns: 22px 1fr !important; align-items: start; gap: 9px !important; line-height: 1.45; }
.terms-option input { width: 18px !important; min-height: 18px !important; height: 18px; margin-top: 1px; accent-color: var(--acid); }
.terms-option a, .legal-links a { color: var(--acid); }
.account-submit { min-height: 48px; border: 0; background: var(--acid); color: var(--ink); font: 800 16px/1 "Barlow Condensed"; cursor: pointer; }
.forgot-password { min-height: 40px; border: 0; background: transparent; color: var(--acid); font: 700 13px/1 "Barlow Condensed"; cursor: pointer; }
.guest-access { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #565a4f; background: transparent; color: #c4c6bc; font: 700 14px/1 "Barlow Condensed"; cursor: pointer; }
.account-active { padding: 18px; background: #22261e; text-align: left; }
.profile-identity { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; }
.profile-avatar { position: relative; display: block; cursor: pointer; }
.profile-avatar img { width: 82px; height: 82px; object-fit: cover; border: 3px solid var(--acid); background: #11140f; }
.profile-avatar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-avatar span { display: block; margin-top: 5px; color: #bfc4b5; font: 700 12px/1 "Barlow Condensed"; text-align: center; }
.profile-avatar:has(input:focus-visible) img { outline: 3px solid var(--orange); outline-offset: 2px; }
.profile-identity span { color: var(--orange); font: 700 12px/1 Chivo; }
.profile-identity strong { display: block; margin: 6px 0; color: var(--acid); font: 800 30px/1 "Barlow Condensed"; }
.profile-identity p { margin: 0; color: #c4c6bc; font-size: 12px; line-height: 1.4; }
.profile-level { margin-top: 16px; }
.profile-level b { display: block; margin-bottom: 7px; color: #f1edda; font: 700 14px/1 "Barlow Condensed"; }
.profile-level span { display: block; height: 6px; background: #3a3f35; }
.profile-level i { display: block; width: 0; height: 100%; background: var(--acid); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.profile-stats span { padding: 11px; background: #181b16; color: #9fa497; font: 700 12px/1.2 "Barlow Condensed"; }
.profile-stats b { display: block; margin-bottom: 4px; color: #f1edda; font-size: 24px; }
.profile-status { display: grid; gap: 6px; color: #aeb1a4; font: 700 12px/1 "Barlow Condensed"; }
.profile-status select { min-height: 44px; border: 1px solid #565a4f; border-radius: 0; padding: 0 10px; background: #181b16; color: var(--acid); font: 700 13px/1 "Barlow Condensed"; }
.account-active button { min-height: 44px; padding: 0 22px; border: 1px solid var(--orange); background: transparent; color: var(--orange); font: 700 14px/1 "Barlow Condensed"; cursor: pointer; }
.account-active > button { width: 100%; margin-top: 10px; }
#account-add-shop { border-color: var(--acid); color: var(--acid); }
#delete-account { border-color: #a84f35; color: #e58a6c; }
.account-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 14px; }
.account-tools button { min-height: 44px; padding: 6px; border: 1px solid #565a4f; background: transparent; color: #d7d9ce; font: 700 12px/1.1 "Barlow Condensed"; cursor: pointer; }
.account-tools button[hidden] { display: none; }
.legal-links { display: flex; gap: 18px; margin-top: 12px; font: 700 12px/1 "Barlow Condensed"; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 16px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline-banner { position: fixed; z-index: 1250; top: max(82px, calc(env(safe-area-inset-top) + 68px)); left: 50%; transform: translateX(-50%); padding: 8px 12px; background: var(--orange); color: var(--ink); box-shadow: var(--shadow); font: 800 12px/1 "Barlow Condensed"; letter-spacing: .03em; white-space: nowrap; }
.offline-banner[hidden] { display: none; }
.hot-zone-label { border: 0 !important; background: var(--ink) !important; color: var(--acid) !important; box-shadow: var(--shadow) !important; font: 700 12px/1 "Barlow Condensed" !important; }
.destination-card { position: fixed; z-index: 810; left: 138px; bottom: 43px; width: 330px; padding: 20px; background: rgba(19,22,16,.97); color: #eee9d7; box-shadow: var(--shadow); }
.destination-card[hidden] { display: none; }
.destination-card h2 { margin: 0 38px 5px 0; font: 800 32px/.95 "Barlow Condensed"; }
.destination-card p { margin: 0 0 16px; color: #aeb1a4; font-size: 12px; line-height: 1.45; }
.destination-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; background: #292d24; color: white; font-size: 22px; cursor: pointer; }
.destination-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.destination-actions button { min-height: 44px; border: 1px solid var(--acid); background: transparent; color: var(--acid); font: 700 14px/1 "Barlow Condensed"; cursor: pointer; }
.destination-actions button:first-child { background: var(--acid); color: var(--ink); }
.directions-panel { position: fixed; z-index: 880; top: 92px; right: 28px; width: min(320px, calc(100% - 56px)); overflow: hidden; background: rgba(19,22,16,.97); color: #eee9d7; box-shadow: var(--shadow); }
.directions-panel[hidden] { display: none; }
.directions-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 14px 10px 16px; }
.directions-head > div { min-width: 0; }
.directions-head h2 { margin: 0; overflow: hidden; color: #f1edda; font: 800 24px/1 "Barlow Condensed"; text-overflow: ellipsis; white-space: nowrap; }
.directions-head p { display: none; }
.directions-head button { flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: #292d24; color: white; font-size: 22px; cursor: pointer; }
#directions-steps { max-height: calc(100dvh - 360px); margin: 0; padding: 4px 18px 4px 48px; overflow-y: auto; }
#directions-steps { scrollbar-color: var(--acid) #292d24; scrollbar-width: thin; }
#directions-steps li { padding: 12px 4px 12px 3px; border-bottom: 1px solid #33372f; font-size: 13px; line-height: 1.4; }
#directions-steps li::marker { color: var(--acid); font: 700 14px "Barlow Condensed"; }
#directions-steps small { display: block; margin-top: 3px; color: #9da194; font-size: 12px; }
.navigation-button { width: calc(100% - 32px); min-height: 46px; margin: 0 16px 16px; border: 0; background: var(--acid); color: var(--ink); font: 800 16px/1 "Barlow Condensed"; cursor: pointer; }
.navigation-button.is-active { background: var(--orange); }
.navigation-live { padding: 16px 18px; background: var(--acid); color: var(--ink); }
.navigation-live[hidden] { display: none; }
.navigation-live span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.navigation-live strong { display: block; font: 800 24px/1.05 "Barlow Condensed"; }
.navigation-live small { display: block; margin-top: 6px; font-size: 12px; }

#tutorial-dialog { width: min(460px, calc(100% - 28px)); overflow: hidden; background: #11140f; }
.tutorial-panel { padding: 24px; }
.tutorial-topline { display: flex; align-items: center; justify-content: space-between; color: var(--acid); font: 800 12px/1 "Barlow Condensed"; letter-spacing: .04em; }
.tutorial-topline button { min-width: 60px; min-height: 44px; border: 0; background: transparent; color: #d7d9ce; font: 700 13px/1 "Barlow Condensed"; cursor: pointer; }
.tutorial-art { position: relative; height: 150px; margin: 18px 0 22px; overflow: hidden; background: #191d18; border: 1px solid #343930; }
.tutorial-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 32%, rgba(190,208,68,.12), transparent 28%); }
.tutorial-art i { position: absolute; left: -10%; width: 120%; height: 2px; background: #59605a; transform-origin: center; }
.tutorial-art i:nth-child(1) { top: 34%; transform: rotate(8deg); }
.tutorial-art i:nth-child(2) { top: 62%; transform: rotate(-12deg); }
.tutorial-art i:nth-child(3) { left: 44%; top: -30%; width: 2px; height: 160%; transform: rotate(18deg); }
.tutorial-art b { position: absolute; z-index: 1; top: 48px; left: 61%; display: grid; place-items: center; width: 46px; height: 46px; background: var(--orange); color: var(--ink); border: 4px solid white; transform: rotate(45deg); font: 800 15px/1 "Barlow Condensed"; }
.tutorial-kicker { margin: 0 0 8px; color: var(--orange); font: 800 12px/1 "Barlow Condensed"; letter-spacing: .04em; }
.tutorial-panel h2 { margin: 0; color: #f1edda; font: 800 clamp(36px, 10vw, 52px)/.9 "Barlow Condensed"; letter-spacing: -.02em; }
.tutorial-panel > p:not(.tutorial-kicker) { min-height: 48px; margin: 14px 0 18px; color: #c4c6bc; font-size: 13px; line-height: 1.55; }
.tutorial-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.tutorial-progress span { width: 24px; height: 4px; background: #41463d; }
.tutorial-progress span.active { background: var(--acid); }
.tutorial-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.tutorial-actions button { min-height: 48px; border: 1px solid #565a4f; background: transparent; color: #d7d9ce; font: 800 15px/1 "Barlow Condensed"; cursor: pointer; }
.tutorial-actions #tutorial-next { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.tutorial-actions button:disabled { visibility: hidden; }

@media (min-width: 701px) and (max-width: 980px) {
  .topbar { left: 20px; right: 20px; gap: 10px; }
  .brand > span:last-child { display: none; }
  .search { width: auto; min-width: 180px; flex: 1; margin-left: 0; }
  .quick-button, .host-button { padding-inline: 12px; }
  .profile-button { padding-inline: 10px; }
}

@media (max-width: 700px) {
  .topbar { top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; gap: 6px; }
  .brand-mark { width: 54px; height: 44px; padding: 6px; box-shadow: 3px 3px 0 var(--acid); }
  .brand > span:last-child { display: none; }
  .search { order: 1; width: 0; min-width: 0; height: 44px; flex: 1 1 0; padding: 0 9px; }
  .search input { width: 100%; }
  .search kbd { display: none; }
  .host-button { display: none; }
  .quick-button { position: fixed; left: 14px; top: max(70px, calc(env(safe-area-inset-top) + 56px)); height: 42px; }
  .profile-button { order: 4; width: 44px; height: 44px; padding: 0; text-align: center; }
  .profile-button b { display: none; }
  .icon-button { width: 40px; height: 44px; }
  #locate { order: 2; }
  .side-panel { left: 50%; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 28px); padding: 6px; }
  .side-panel nav { grid-template-columns: repeat(3, 1fr); }
  .meet-date-filter { top: max(70px, calc(env(safe-area-inset-top) + 56px)); right: 14px; left: 148px; width: auto; transform: none; }
  .nav-item { min-height: 54px; padding: 6px 4px; gap: 5px; }
  .nav-icon, .nav-icon svg { width: 20px; height: 20px; }
  .online { display: none; }
  .location-card { left: 14px; right: auto; bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px)); width: min(320px, calc(100% - 28px)); max-height: 47dvh; overflow-y: auto; padding: 15px; }
  .card-toggle { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: #292d24; color: var(--paper); cursor: pointer; }
  .card-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; transition: transform .18s ease; }
  .location-card:not(.is-compact) .card-toggle svg { transform: rotate(180deg); }
  #meet-card.is-compact { width: min(300px, calc(100% - 28px)); max-height: none; overflow: visible; padding: 11px 58px 11px 12px; }
  #meet-card.is-compact .card-toggle { top: 50%; transform: translateY(-50%); }
  #meet-card.is-compact .meet-cover,
  #meet-card.is-compact .meet-numbers,
  #meet-card.is-compact .meet-actions,
  #meet-card.is-compact .lock-note,
  #meet-card.is-compact .invite-trigger { display: none; }
  #meet-card.is-compact h1 { margin: 0 0 3px; overflow: hidden; font-size: 22px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  #meet-card.is-compact .meet-status { margin: 0 0 5px; padding: 4px 6px; font-size: 12px; }
  #meet-card.is-compact p { margin: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .meet-cover { margin: -15px -15px 14px; }
  .destination-card { left: 14px; bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px)); width: calc(100% - 28px); }
  .location-card h1 { font-size: 32px; }
  .location-card p { margin-bottom: 12px; }
  .legend { display: none; }
  .form-row { grid-template-columns: 1fr; }
  dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
  #invite-dialog { width: calc(100% - 28px); }
  #account-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); }
  .invite-card { padding: 22px; }
  .invite-poster { height: 160px; }
  .account-panel { padding: 20px; }
  .search input, #host-form input, #shop-form input, #shop-form select, #shop-form textarea, .account-form input, .account-form select, .profile-status select { font-size: 16px; }
  .account-tools { grid-template-columns: 1fr; }
  .tutorial-panel { padding: 20px; }
  .tutorial-art { height: 128px; }
  .directions-panel { top: auto; right: 14px; bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px)); width: min(340px, calc(100% - 28px)); }
  .app-shell.is-driving .directions-panel { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); }
  .toast { bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px)); width: calc(100% - 28px); text-align: center; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .topbar { top: max(8px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); gap: 8px; }
  .brand > span:last-child, .host-button { display: none; }
  .search { width: auto; min-width: 150px; flex: 1; margin-left: 0; }
  .quick-button { padding-inline: 12px; }
  .side-panel { left: max(10px, env(safe-area-inset-left)); top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: 78px; transform: none; }
  .side-panel nav { grid-template-columns: 1fr; }
  .meet-date-filter { top: 66px; width: 184px; }
  .nav-item { min-height: 52px; padding: 5px 3px; gap: 3px; }
  .nav-item b { font-size: 12px; }
  .location-card, .destination-card { left: max(98px, calc(env(safe-area-inset-left) + 88px)); right: auto; bottom: max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .directions-panel { top: 66px; right: max(10px, env(safe-area-inset-right)); bottom: auto; max-height: calc(100dvh - 76px); }
  .offline-banner { top: max(62px, calc(env(safe-area-inset-top) + 54px)); }
}

@media (max-width: 380px) {
  .quick-button { padding: 0 12px; font-size: 15px; }
  .location-card h1 { font-size: 28px; }
  .meet-numbers { gap: 12px; }
  .meet-actions { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .location-card { animation: enter .65s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
