/* Venue-first app shell. This layer also supersedes old short-screen prototype geometry. */
/* Color tokens live in dark.css. Floating navigation has a translucent glass material. */
html, body, .screen, .screen-welcome .screen, .screen-login .screen, .chat-screen .screen { background:var(--app-bg); }
.screen { border-color:#414141; }
.glass, .input, .status-option, .search-field .input, .pill, .city-trigger { background:var(--surface); border-color:var(--line); }
.input::placeholder { color:#b9b9b9; }
.btn { transition:transform .15s ease,background .15s ease; }
.btn:active { transform:scale(.98); }
.screen:has(> .bottom-dock), .screen.compact:has(> .bottom-dock) { padding-bottom:110px; }

/* First viewport is one photographic composition, not a stack of promotional cards. */
.screen-welcome .screen { padding:0; min-height:100svh; min-height:var(--stable-height,100svh); display:flex; overflow:hidden; }
.screen-welcome .welcome-scene { position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;border-radius:0; }
.screen-welcome .welcome-scene img { object-fit:cover;object-position:58% 27%;width:100%;height:100%; }
.screen-welcome .welcome-scene::after { content:"";position:absolute;inset:0;background:linear-gradient(180deg,#17171782 0%,#1c1c1e00 24%,#1c1c1ed9 49%,var(--app-bg) 72%); }
.welcome-brand { position:relative;z-index:1;padding:24px 28px 0; }
.welcome-brand .brand-plain { display:block; }
.welcome-brand .brand { width:238px;height:88px; }
.welcome-brand .brand-logo { width:238px;height:88px;object-fit:contain; }
.welcome-brand .tagline { margin-top:0;font-size:13px;color:#fff;letter-spacing:.1px;text-align:left; }
.screen-welcome .welcome-heading { position:relative;z-index:1;margin-top:auto;padding:170px 28px max(26px,env(safe-area-inset-bottom));text-align:left; }
.screen-welcome .welcome-eyebrow { font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:#c4f4ef;margin:0 0 13px; }
.screen-welcome .welcome-heading h1 { font-size:44px;line-height:1.03;letter-spacing:-1.6px;margin:0;max-width:none; }
.screen-welcome .welcome-heading h1 span { color:var(--cyan); }
.screen-welcome .welcome-description { font-size:15px;line-height:1.5;margin:18px 0 16px;color:#e0e0e0; }
.welcome-how { display:flex;align-items:center;gap:5px;font-size:10px;color:#c7c7c7;margin-bottom:20px;white-space:nowrap; }
.welcome-how i { font-size:13px;color:var(--cyan); }
.screen-welcome .welcome-heading .btn { width:100%;margin:0;min-height:56px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font-size:17px; }
.screen-welcome .welcome-heading .btn i { position:static;font-size:22px; }
.screen-welcome .welcome-consent { font-size:11px;line-height:1.45;margin:12px 0 16px;color:#bfbfbf;max-width:300px; }
.screen-welcome .legal { text-align:left;font-size:10px;line-height:1.4;margin:0;color:#bfbfbf; }
.welcome-heading { animation:welcome-in .5s ease both; }
@keyframes welcome-in { from { opacity:0;transform:translateY(10px); } to { opacity:1;transform:translateY(0); } }

/* Search is the only initial city-selection control; options appear after typing. */
.onboard-city { display:flex;flex-direction:column; }
.onboard-city .page-top { padding:0; }
.onboard-city .city-panel { margin:auto 0;padding:34px 8px 60px;border:0;background:transparent;text-align:center;border-radius:0; }
.city-symbol { display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 22px;border:1px solid #66e4da50;border-radius:22px;background:#42e9e114;color:var(--cyan); }
.city-symbol i { font-size:32px; }
.eyebrow { color:var(--cyan);font-size:12px;letter-spacing:.8px;text-transform:uppercase;margin:0 0 10px; }
.onboard-city .city-panel h1 { font-size:30px;line-height:1.12;margin:0 0 12px; }
.onboard-city .city-panel>p:not(.eyebrow) { font-size:14px;line-height:1.5;color:#ccc;margin:0 0 30px; }
.city-picker { position:relative;text-align:left;margin:8px 0 20px; }
.city-picker .search-field { margin:0; }
.city-picker .search-field .input { height:54px;min-height:54px;padding:14px 14px 14px 44px;border-radius:17px;font-size:16px; }
.city-picker .search-field>i { position:absolute;top:50%;left:16px;transform:translateY(-50%);font-size:21px; }
.city-results { display:flex;flex-direction:column;gap:0;max-height:min(330px,40vh);overflow-y:auto;margin-top:8px;background:var(--surface);border:1px solid #555;border-radius:18px; }
.city-results[hidden], .city-picked[hidden] { display:none; }
.city-results .city-option { height:auto;min-height:60px;width:100%;padding:10px 14px;border:0;border-bottom:1px solid #505050;border-radius:0;display:flex;align-items:center;justify-content:space-between;background:transparent;text-align:left; }
.city-option:last-child { border-bottom:0; }
.city-option div { min-width:0; }
.city-option strong { display:block;font-size:15px;line-height:1.35; }
.city-option small,.city-picked small { display:block;font-size:11px;color:#c7c7c7;margin-top:3px; }
.city-option[aria-selected="true"],.city-option:hover { background:#42e9e116; }
.city-option i { font-size:20px; }
.city-picked { display:flex;align-items:center;gap:12px;margin-top:12px;padding:13px 14px;border:1px solid #42e9e166;background:#42e9e110;border-radius:18px; }
.city-picked strong { font-size:15px; }
.selection-mark { display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--cyan);color:#10312c; }
.selection-mark svg { width:20px;height:20px; }
.city-picker-hint { font-size:11px;color:#bcbcbc;text-align:left;margin-top:10px;min-height:16px; }
.onboard-city .city-panel>.btn { margin-top:20px;font-size:16px;min-height:54px;border-radius:17px; }
.profile-screen .field>i { top:50%;transform:translateY(-50%);left:14px;font-size:21px;display:flex;align-items:center; }
.profile-screen .field .input:not(textarea) { padding-left:44px; }
.profile-security { display:flex;align-items:flex-start;gap:8px;text-align:left;margin:16px 4px 4px;font-size:11px;line-height:1.5;color:#ccc; }
.profile-security i { font-size:16px;margin-top:1px; }
.profile-screen .city-picker { margin-bottom:18px; }
.profile-screen .city-picker .search-field .input { padding-left:44px; }

/* Five icon destinations share one floating capsule, including the profile. */
.bottom-dock { display:flex;flex-direction:column;gap:0;position:fixed;left:50%;transform:translateX(-50%);bottom:max(12px,calc(env(safe-area-inset-bottom,0px) + 10px));width:calc(100% - 32px);max-width:432px;z-index:850;padding:0;background:none; }
.dock-row { display:flex;align-items:center;width:100%; }
.bottom-dock .nav { position:static;transform:none;left:auto;bottom:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;flex:1;width:100%;min-width:0;max-width:none;margin:0;padding:5px;height:64px;border-radius:34px;border:1px solid #ffffff21;background:linear-gradient(145deg,#ffffff0c,#ffffff02),rgba(18,20,22,.8);backdrop-filter:blur(20px) saturate(1.2);-webkit-backdrop-filter:blur(20px) saturate(1.2);box-shadow:inset 0 1px 0 #ffffff0e,0 8px 24px #0003; }
.bottom-dock .nav button { position:relative;width:100%;height:52px;min-height:48px;min-width:0;flex:none;padding:0;border:0;display:flex;align-items:center;justify-content:center;gap:0;color:#f3f3f4;border-radius:28px;background:none;box-shadow:none;transition:background .16s ease,transform .16s ease; }
.bottom-dock .nav button.active { color:#fff;background:#ffffff1b;box-shadow:none; }
.bottom-dock .nav button:active { transform:scale(.93); }
.bottom-dock .nav button:focus-visible { outline:2px solid var(--cyan);outline-offset:-3px; }
.bottom-dock .nav .dock-icon { display:block;width:27px;height:27px;flex:none;overflow:visible; }
.bottom-dock .nav .dock-action { width:100%;height:52px;min-height:48px;flex:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible; }
.bottom-dock .nav .dock-avatar { display:block;width:31px;height:31px;flex:none;overflow:hidden;border:1.5px solid #f2f2f2;border-radius:50%; }
.bottom-dock .nav .dock-avatar img { display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%; }
.unread-dot,.presence-dot { position:absolute;top:10px;right:calc(50% - 17px);width:7px;height:7px;border-radius:50%;background:#4da3ff;box-shadow:0 0 0 2px #202123; }
.presence-dot { top:auto;bottom:10px;right:calc(50% - 15px);background:var(--cyan); }
.here-status { display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;padding:10px 14px;margin-bottom:6px;border-radius:24px;background:#42e9e110;border:1px solid #42e9e155;color:var(--cyan);font-size:13px;line-height:18px; }
.here-status i { font-size:18px; }
.here-status i:last-child { font-size:15px; }
.here-status:active { background:#42e9e125; }
.compact-venue-heading { margin:0 0 14px;text-align:left; }
.venue-heading-row { display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0; }
.compact-venue-heading .venue-heading-row h1 { flex:1;min-width:0;margin:0;font-size:21px;line-height:1.2;letter-spacing:-.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere; }
.compact-venue-heading .here-status { flex:none;margin:0;padding:10px 12px;min-height:44px;gap:6px;font-size:12px;white-space:nowrap; }
.compact-venue-heading .here-status i:last-child { display:none; }
.guest-count-row { position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:4px; }
.compact-venue-heading .guest-count { display:flex;align-items:center;justify-content:center;gap:5px;margin:0;color:#c5c7cc;font-size:12px;line-height:1.4; }
.guest-count strong { color:#f4f4f6; }
.compact-venue-heading .guest-count i { font-size:18px; }
.compact-venue-heading .guest-filters-toggle { position:absolute;right:0;width:44px;height:44px;border-color:#ffffff1c;background:transparent; }
.compact-venue-heading .guest-filters-toggle i { font-size:21px;color:#d8d9de; }
.page-top:has(>.brand-small:only-child) { justify-content:flex-end; }
.venue-screen .page-top { min-height:36px; }

/* Native photo swiping, shared by the editor and full-screen guest profiles. */
.photo-gallery { position:relative;min-width:0;overflow:hidden;background:#252525;isolation:isolate; }
.photo-gallery-viewport { display:flex;overflow-x:auto;overflow-y:hidden;width:100%;height:100%;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom; }
.photo-gallery-viewport::-webkit-scrollbar { display:none; }
.photo-gallery-viewport:focus-visible { outline:2px solid var(--cyan);outline-offset:-4px; }
.photo-gallery-slide { flex:0 0 100%;width:100%;height:100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always; }
.photo-gallery-slide img { display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 35%;user-select:none;-webkit-user-select:none; }
.photo-gallery.is-dragging .photo-gallery-viewport { scroll-snap-type:none;cursor:grabbing;user-select:none; }
.photo-gallery-progress { position:absolute;left:14px;right:14px;bottom:8px;z-index:3;display:flex;gap:5px; }
.photo-gallery-progress button { display:flex;align-items:center;flex:1;min-width:0;height:28px;padding:0;border:0;background:transparent; }
.photo-gallery-progress button span { width:100%;height:3px;border-radius:3px;background:#ffffff50;box-shadow:0 1px 4px #0005; }
.photo-gallery-progress button[aria-pressed="true"] span { background:#fff; }
.photo-gallery-counter { position:absolute;right:14px;top:14px;z-index:3;padding:6px 10px;border:1px solid #ffffff20;border-radius:20px;background:#17191cb8;color:#fff;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none; }
.photo-gallery-arrow { position:absolute;top:50%;transform:translateY(-50%);z-index:3;display:grid;place-items:center;width:40px;height:44px;padding:10px;border:1px solid #ffffff25;border-radius:22px;background:#18191b66;color:#fff; }
.photo-gallery-arrow svg { width:20px;height:20px; }
.photo-gallery-arrow.previous { left:10px; }
.photo-gallery-arrow.next { right:10px; }
.photo-gallery-arrow:disabled { opacity:0;pointer-events:none; }
.photo-gallery-arrow[hidden] { display:none; }
.profile-screen .photo-gallery-editor { width:100%;height:clamp(260px,84vw,360px);margin:16px 0 0;border:1px solid #ffffff18;border-radius:24px; }
.photo-gallery-editor.is-empty { height:180px; }
.photo-gallery.is-empty .photo-gallery-slide img { object-fit:contain;padding:30px;opacity:.65; }
.profile-photo-toolbar { display:flex;justify-content:center;min-height:46px;margin:4px 0; }
.main-photo-control { display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:8px 14px;border:0;background:transparent;color:var(--cyan);font-size:12px; }
.main-photo-control i { font-size:17px; }
.main-photo-control.is-main:disabled { opacity:1;color:#c4c4c8; }
.profile-screen .photo-strip { margin:8px 0 22px; }
.profile-screen .photo-thumb { border:1px solid #ffffff24; }
.profile-screen .photo-thumb.is-selected { border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan); }
.profile-screen .photo-thumb .photo-thumb-view { position:static;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none; }
.profile-screen .photo-thumb .photo-thumb-remove { position:absolute;right:4px;top:4px;z-index:1;width:26px;height:26px;border:1px solid #ffffff55;background:#1c1c1ed9; }
.profile-screen .photo-thumb .photo-thumb-remove i { font-size:13px; }
.main-photo-marker { position:absolute;left:7px;bottom:7px;width:7px;height:7px;border:1px solid #152b29;border-radius:50%;background:var(--cyan);pointer-events:none; }

/* A guest's photos fill the app canvas; their profile sits over the lower gradient. */
.screen.person-screen:has(>.bottom-dock) { padding:76px 0 0;min-height:var(--stable-height,100svh);display:flex;flex-direction:column;isolation:isolate; }
.person-screen .photo-gallery-person { position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;z-index:auto;isolation:auto; }
.photo-gallery-person .photo-gallery-viewport { position:absolute;inset:0;z-index:0; }
.photo-gallery-person .photo-gallery-progress { top:max(12px,env(safe-area-inset-top,0px));bottom:auto;left:18px;right:18px; }
.photo-gallery-person .photo-gallery-counter { top:calc(max(12px,env(safe-area-inset-top,0px)) + 34px);right:18px; }
.person-screen::before { content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#080a0d00 32%,#080a0d29 48%,#080a0d96 72%,#080a0de8 100%); }
.person-sheet { position:relative;z-index:2;min-width:0;margin-top:auto;padding:36px 22px calc(102px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#080a0d00,#080a0d70 42px,#080a0dbb 100%);pointer-events:none; }
.person-sheet :is(button,a) { pointer-events:auto; }
.person-title-row { display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px; }
.person-name { min-width:0;flex:1; }
.person-screen .person-name h1 { margin:0;font-size:32px;line-height:1.1;letter-spacing:-.8px;overflow-wrap:anywhere;color:#fff;text-shadow:0 1px 6px #0005; }
.person-location { display:flex;align-items:center;gap:7px;margin:9px 0 0;color:#e6e8ed;font-size:13px;line-height:1.35; }
.person-location i { flex:none;font-size:19px;color:var(--cyan); }
.person-favorite { display:grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#ffffff0b;color:#fff;transition:background .16s,color .16s,transform .16s; }
.person-favorite i { font-size:25px; }
.person-favorite.active { color:var(--cyan);background:#42e9e125;border-color:#42e9e177; }
.person-favorite.active i::before { font-family:'Phosphor-Fill' !important; }
.person-favorite:active { transform:scale(.94); }
.person-favorite:focus-visible { outline:2px solid var(--cyan);outline-offset:3px; }
.person-screen .bio { margin:16px 0 12px;color:#e2e3e9;font-size:14px;line-height:1.5;overflow-wrap:anywhere; }
.person-screen .chipbar { gap:7px;margin:14px 0 0; }
.person-screen .chipbar .pill { padding:7px 12px;border-color:#ffffff30;background:#ffffff0d;color:#e9eaf0;font-size:12px; }
.profile-places { margin:18px 0 0;min-width:0; }
.profile-places-heading h2 { margin:0;font-size:14px;line-height:1.35;letter-spacing:0;color:#eeeef1; }
.profile-places-heading p { margin:5px 0 0;font-size:12px;line-height:1.4;color:var(--muted); }
.profile-places-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 0;padding:0;list-style:none; }
.profile-places-list li { min-width:0; }
.profile-places-list li:only-child,.profile-places-list li:nth-child(3) { grid-column:1/-1; }
.profile-place { display:flex;align-items:center;gap:8px;width:100%;min-height:50px;padding:6px 9px 6px 6px;min-width:0;border:1px solid #ffffff23;border-radius:16px;background:#ffffff0b;text-align:left;color:#f4f4f6; }
.profile-place>img { width:36px;height:36px;flex:none;border-radius:11px;object-fit:cover; }
.profile-place-copy { display:flex;flex-direction:column;gap:3px;min-width:0;flex:1; }
.profile-place-copy strong { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:0; }
.profile-place-copy>span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.2;color:#c4c5cd; }
.profile-place>i { font-size:14px;color:#b6b9c1; }
.profile-place:active { background:#ffffff1b; }
.own-profile-places { padding-top:20px;margin-top:22px;border-top:1px solid var(--line); }
.own-profile-places .profile-places-list { grid-template-columns:1fr;gap:8px; }
.own-profile-places .profile-place { min-height:62px;padding:8px 12px 8px 8px;background:var(--surface);border-color:var(--line);border-radius:18px;gap:11px; }
.own-profile-places .profile-place>img { width:44px;height:44px;border-radius:12px; }
.own-profile-places .profile-place-copy strong { font-size:14px; }
.own-profile-places .profile-place-copy>span { font-size:11px; }
.profile-places-empty { margin:12px 0 0;padding:15px 16px;border:1px solid var(--line);border-radius:18px;color:var(--muted);background:var(--surface);font-size:12px;line-height:1.5; }
.person-screen .person-sheet>.btn { margin:20px 0 0;min-height:52px;border-radius:28px;font-size:16px; }
.person-screen .person-tools { display:flex;justify-content:space-between;align-items:center;gap:10px;margin:9px 0 0; }
.person-screen .person-tools button { display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:6px 0;font-size:11px;color:#c9cbd1; }
.person-screen .person-tools i { font-size:15px; }
.here-empty { text-align:center;margin:10vh 0; }
.here-empty h2 { font-size:25px;line-height:1.2; }
.here-empty p { margin:18px auto 24px;max-width:300px;font-size:14px;color:#ccc; }
.quick-status-options { display:flex;flex-direction:column;gap:9px;margin:20px 0; }
.quick-status-options .status-option { margin:0;min-height:62px;border-radius:18px; }
.quick-status-options .status-option>i { margin-left:auto;color:var(--cyan); }
.status-sheet-place { color:#ccc;font-size:13px; }
#filters-form .input { margin-bottom:8px; }
#filters-form .btn { margin-top:12px; }
.dialog { background:var(--surface);border-color:#ffffff29;max-height:calc(var(--visual-height,100dvh) - 36px);overflow-y:auto; }
.dialog .sticker-intro { color:#c4c4c8;line-height:1.5;margin-bottom:18px; }
.sticker-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 20px; }
.sticker-option { display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;padding:9px 5px 11px;border:1px solid #ffffff21;border-radius:20px;background:#ffffff05;color:#ededf0;transition:background .15s,border-color .15s,transform .15s; }
.sticker-option img { display:block;width:100%;height:82px;object-fit:contain;pointer-events:none; }
.sticker-option span { font-size:10px;line-height:1.3;min-height:26px;display:grid;place-content:center; }
.sticker-option.active { border-color:var(--cyan);background:#32ded91c;box-shadow:inset 0 0 0 1px #32ded937; }
.sticker-option:active { transform:scale(.96); }
.sticker-option:focus-visible { outline:2px solid #f5f5f5;outline-offset:3px; }
.request-row { display:grid;grid-template-columns:42px minmax(0,1fr) 82px;gap:12px;align-items:center; }
.request-row>.avatar { width:42px;height:42px; }
.request-copy { min-width:0; }
.request-copy h3 { font-size:15px;line-height:1.35; }
.request-copy p { font-size:11px;line-height:1.4; }
.greeting-caption { display:block;color:var(--cyan);font-size:12px;line-height:1.35;margin-top:7px; }
.greeting-art { display:block;width:82px;height:82px;object-fit:contain; }
.request-actions { grid-column:1 / -1; }
.request-state { grid-column:1 / -1;justify-self:end;font-size:11px;color:#c4c4c8; }
.venue-map-marker { display:flex;position:relative;flex-direction:column;align-items:center;gap:3px;transform:translate(-50%,-100%);width:54px;min-height:74px;padding:0;border:0;background:none;cursor:pointer; }
.map-canvas .venue-map-marker>img { width:46px;height:46px;border:2px solid #ffffffc9;border-radius:14px;object-fit:cover;box-shadow:0 3px 16px #0008; }
.venue-map-marker .map-pin-count { position:static;transform:none;display:flex;align-items:center;justify-content:center;gap:4px;min-width:42px;height:22px;border-radius:12px;padding:2px 7px;background:var(--cyan);color:#103432;border:1px solid #ffffff66;font-size:11px;font-weight:700;box-shadow:0 2px 8px #0005; }
.leaflet-marker-icon .venue-map-marker { transform:none; }
.venue-map-marker:focus-visible { outline:2px solid #fff;outline-offset:4px;border-radius:15px; }
.map-loading { position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:140px 38px;color:#c7c7cb;font-size:13px;background:var(--app-bg);z-index:1; }
.map-loading.failed { color:#ffd4db; }
@media(max-width:360px) { .sticker-option img { height:68px; }.sticker-option span { font-size:9px; }.request-row { grid-template-columns:36px minmax(0,1fr) 64px;gap:8px; }.request-row>.avatar { width:36px;height:36px; }.greeting-art { width:64px;height:64px; } }
@media(prefers-reduced-motion:reduce) { .sticker-option { transition:none; } }
.autosave-status { display:flex;align-items:center;gap:7px;min-height:24px;margin:14px 2px 6px;color:var(--muted);font-size:12px;line-height:1.4; }
.autosave-status::before { content:"";width:5px;height:5px;flex-shrink:0;border-radius:50%;background:currentColor; }
.autosave-status[data-state="saved"] { color:var(--cyan); }
.autosave-status[data-state="pending"],.autosave-status[data-state="saving"] { color:#ddd; }
.autosave-status[data-state="error"],.autosave-status[data-state="invalid"] { color:#ffbac8; }
.autosave-status[data-state="saving"]::before { animation:save-pulse 1s ease-in-out infinite; }
.profile-screen .form-error:empty { margin:0;padding:0; }
.autosave-recovery[hidden] { display:none; }
.autosave-recovery { margin:8px 0; }
.status-screen .status-options { margin-bottom:14px; }
@keyframes save-pulse { 50% { opacity:.35; } }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) { .bottom-dock .nav,.dock-action { background:#29292bf5; } }

.chat-list-header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.chat-list-header .section-heading { margin-bottom:20px; }
.venue-chat-item { background:#35e1da0b;border-color:#35e1da38;gap:12px;min-height:86px; }
.venue-chat-symbol { display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:15px;color:var(--cyan);background:#35e1da15;border:1px solid #35e1da33; }
.venue-chat-symbol i { font-size:23px; }
.venue-chat-copy,.venue-chat-header-copy { min-width:0;flex:1; }
.venue-chat-item .conversation-eyebrow { display:block;margin-bottom:4px;font-size:10px;line-height:1;color:var(--cyan); }
.venue-chat-item h3,.venue-chat-header h3 { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.venue-chat-item p { max-width:none; }
.venue-chat-item .conversation-meta { display:flex;flex:none;flex-direction:column;align-items:end;gap:6px;margin-left:auto;font-size:10px;color:var(--muted); }
.venue-chat-item .badge { background:#4da3ff;color:#fff; }
.venue-chat-header .venue-chat-symbol { width:38px;height:38px;border-radius:13px; }
.venue-chat-header .connection { line-height:1.4;font-size:9px; }
.message-author { display:block;font-size:11px;font-weight:700;color:var(--cyan);margin:0 0 5px; }
.venue-chat-empty { display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 16px;gap:10px; }
.venue-chat-empty h2 { font-size:20px; }
.venue-chat-empty p { font-size:13px;line-height:1.5;color:var(--muted); }
.here-chat-link { position:absolute;left:0;display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 5px;background:none;color:var(--cyan);font-size:11px; }
.here-chat-link i { font-size:20px; }
.here-chat-link .unread-dot { top:8px;right:1px; }
.inbox-tabs button { position:relative;display:flex;align-items:center;justify-content:center;gap:7px; }
.inbox-tabs .unread-dot { position:static; }
.inbox-count { font-size:11px;line-height:18px;min-width:18px;border-radius:10px;background:#4da3ff;color:#fff;text-align:center; }
.request-direction { display:flex;gap:20px;margin:20px 6px 12px;border-bottom:1px solid #555; }
.request-direction button { padding:0 0 10px;background:none;font-size:13px;color:#c4c4c4;border-bottom:2px solid transparent; }
.request-direction button.active { color:var(--cyan);border-bottom-color:var(--cyan); }
.status-filter { display:flex;gap:6px;margin:12px 0 16px;overflow-x:auto;scrollbar-width:none; }
.status-filter .pill { display:flex;align-items:center;gap:5px;flex-shrink:0;padding:8px 11px;min-height:37px;font-size:11px; }
.status-filter .pill i { font-size:17px; }
.status-filter .pill.active { color:var(--cyan);background:#42e9e118;border-color:#42e9e16b; }
.age-filter-summary { margin:-4px 0 14px;font-size:12px; }
.guest-card .person-copy .pill { max-width:100%;font-size:10px;gap:4px; }
.guest-card .purple-status { color:#fff;background:#242424d6;border-color:#8888; }
.map-header { background:#1c1c1eed; }
.map-screen .bottom-dock { z-index:850; }
.map-selected { bottom:100px; }
.map-pin { position:relative;width:54px;height:54px;border:2px solid var(--cyan);border-radius:15px;background:var(--app-bg);overflow:visible;box-shadow:0 3px 12px #0008; }
.map-pin img { width:100%;height:100%;border-radius:12px; }
.map-pin-count { position:absolute;left:50%;transform:translateX(-50%);top:45px;display:flex;align-items:center;justify-content:center;gap:4px;min-width:42px;padding:5px 7px;background:var(--cyan);color:#082322;border:2px solid var(--app-bg);border-radius:14px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1; }
.map-pin-count i { font-size:15px; }
.map-pin::after { display:none; }
.map-screen .leaflet-bottom.leaflet-right { bottom:90px; }
.map-screen .leaflet-control-attribution { background:#1c1c1edc;color:#ddd;border-radius:5px;font-size:8px;padding:2px 4px; }
.guest-grid:has(> .empty) { grid-template-columns:1fr; }

/* Chat controls remain reachable even with a mobile keyboard. */
.chat-screen .screen:has(> .bottom-dock),.chat-screen .screen.compact { padding:12px 14px max(10px,env(safe-area-inset-bottom)); }
.chat-screen .bottom-dock { position:static;transform:none;left:auto;bottom:auto;width:100%;flex-shrink:0;margin:10px 0 0; }
.chat-screen .bottom-dock .nav { margin:0; }
.chat-screen .chat-form { background:var(--surface);border-color:#656565; }
.chat-header { background:var(--app-bg);border-bottom:1px solid #4a4a4a; }
.message:not(.mine) .bubble { background:var(--surface-raised);color:#f7f7f7; }
.message.mine .bubble { background:var(--cyan);color:#082725; }
.date-label { background:var(--surface-raised); }
html[data-keyboard-open="true"] .bottom-dock { display:flex; }
html[data-keyboard-open="true"] .bottom-dock .nav { display:grid; }
@media(max-width:360px) { .welcome-brand { padding:20px 24px 0; }.screen-welcome .welcome-heading { padding-left:24px;padding-right:24px; }.screen-welcome .welcome-heading h1 { font-size:40px; }.bottom-dock { width:calc(100% - 24px); }.bottom-dock .nav .dock-icon { width:25px;height:25px; }.compact-venue-heading .venue-heading-row h1 { font-size:18px; }.compact-venue-heading .here-status { padding:10px;font-size:11px; }.person-sheet { padding-left:18px;padding-right:18px; }.person-screen .person-name h1 { font-size:29px; } }
@media(max-height:730px) { .screen-welcome .welcome-heading { padding-top:110px;padding-bottom:20px; }.screen-welcome .welcome-heading h1 { font-size:37px; }.welcome-brand { padding-top:14px; }.welcome-brand .brand,.welcome-brand .brand-logo { width:205px;height:77px; }.screen-welcome .welcome-description { margin:13px 0 12px;font-size:14px; }.welcome-how { margin-bottom:15px; }.screen-welcome .welcome-heading .btn { min-height:52px; }.screen-welcome .welcome-consent { margin:10px 0; } }
@media(prefers-reduced-motion:reduce) { .welcome-heading,.autosave-status::before { animation:none; }.btn,.bottom-dock .nav button,.dock-action,.person-favorite { transition:none; } }

/* Organization categories share the same place cards and map entry flow. */
.venue-categories{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;margin:12px 0 18px;padding:2px 0 4px}.venue-categories::-webkit-scrollbar{display:none}.venue-categories .pill{white-space:nowrap;flex:0 0 auto;min-height:40px;padding:8px 16px}.map-header .venue-categories{margin:8px 0 0}.discovery-footer{text-align:center;padding:12px 0 24px}.discovery-footer .btn{margin:12px 0 0}.discovery-footer a{color:var(--cyan,#31dedb)}
.map-canvas[data-provider=yandex]{inset:0;height:100%}
/* One stable navigation position; the keyboard covers it instead of lifting it. */
.bottom-dock,.chat-screen .bottom-dock{position:fixed;top:auto;bottom:max(12px,calc(env(safe-area-inset-bottom,0px) + 10px));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:432px;margin:0}
.chat-screen .screen:has(>.bottom-dock),.chat-screen .screen.compact{padding-bottom:94px}
html[data-keyboard-open="true"] .chat-screen .screen:has(>.bottom-dock){padding-bottom:8px}
html.map-active,html.map-active body{height:100%;overflow:hidden;overscroll-behavior:none}
.screen.map-screen,.screen.map-screen.compact:has(>.bottom-dock){position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;height:var(--stable-height,100svh);min-height:0;padding:20px 16px 0;overflow:hidden;overscroll-behavior:none}
.map-header .home-header{justify-content:space-between;gap:10px}
.map-header .city-trigger{margin-left:auto;max-width:54%;min-width:0}
.map-header .city-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.map-screen .map-controls{top:142px;bottom:auto;display:flex;flex-direction:column;gap:8px;right:14px}
.map-search-control{position:absolute;right:14px;bottom:calc(126px + var(--map-card-height,0px) + env(safe-area-inset-bottom));width:44px;height:44px;z-index:610}
.map-search-panel{position:absolute;top:132px;left:12px;right:12px;z-index:650;padding:8px;display:flex;align-items:center;gap:6px;border-radius:24px}
.map-search-panel[hidden],.map-screen .map-selected[hidden]{display:none}
.map-search-panel .search-field{flex:1;min-width:0}
.map-search-panel .input{min-width:0}
.map-search-panel .icon-btn{flex:none}
.map-screen .map-selected{bottom:calc(116px + env(safe-area-inset-bottom));min-height:0;max-height:calc(var(--stable-height,100svh) - 272px)}
#map-discovery{position:absolute;top:132px;left:12px;right:70px;z-index:620}
.map-notice{padding:10px 12px;border-radius:18px;font-size:12px;line-height:1.4}
.map-notice button{display:block;margin-top:6px;padding:5px 0;background:none;color:var(--cyan);font-size:12px}
.map-screen:has(.map-search-panel:not([hidden])) #map-discovery{top:202px}
.venue-card .stat{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* The map stays visible behind the dock; attribution stays unobstructed above it. */
.map-canvas .ymaps3--map-copyrights_bottom{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
.map-canvas .ymaps3--controls_bottom{bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.map-screen .map-selected{z-index:640;left:12px;right:12px;padding:16px;border-radius:24px;background:linear-gradient(135deg,#ffffff0a,#ffffff00),#202124ed;border:1px solid #ffffff29;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 12px 30px #0005;overflow:auto;overscroll-behavior:contain}
.map-screen .map-card-top{gap:12px;padding-right:28px;align-items:center}
.map-screen .map-card-photo{width:68px;height:68px;flex:none;border-radius:16px;border:1px solid #ffffff21;object-fit:cover}
.map-screen .map-card-copy{min-width:0}
.map-card-category{display:block;margin-bottom:3px;color:var(--cyan);font-size:11px;line-height:1.3}
.map-screen .map-card-copy h2{margin:0;font-size:19px;line-height:1.15;letter-spacing:-.3px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-screen .map-card-copy .map-card-address{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0;color:#c8c9cd;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.map-screen .map-close{position:absolute;right:6px;top:6px;float:none;width:40px;height:40px;border:0;background:transparent;color:#c6c8cc}
.map-card-count{display:flex;gap:5px;align-items:center;margin:12px 0;color:#c8c9cd;font-size:12px;line-height:18px}
.map-card-count i{font-size:18px;color:var(--cyan)}.map-card-count strong{color:#f7f7f7}
.map-screen .map-card-bottom{gap:8px;margin:0}
.map-screen .map-card-bottom .btn{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;min-height:44px;margin:0;padding:10px 8px;border-radius:22px;font-size:14px;line-height:20px}
.map-screen .map-card-bottom .secondary{border:1px solid #ffffff28;background:#ffffff08;color:#f3f3f5}
.map-controls .active{color:var(--cyan);border-color:#35e1da80;background:#203b3bf0}
.map-category-options{display:grid;gap:5px}
.map-category-option{display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 12px;border:1px solid transparent;border-radius:16px;background:transparent;text-align:left;font-size:15px;color:#f1f1f3}
.map-category-icon{display:grid;place-items:center;width:30px;height:30px;color:#b6bdc4}.map-category-icon i{font-size:23px}
.map-category-option.active{border-color:#35e1da50;background:#35e1da13;color:var(--cyan)}.map-category-option.active .map-category-icon{color:var(--cyan)}.map-category-option>i:last-child{margin-left:auto;font-size:21px}
.map-filter-chip{display:flex;align-items:center;gap:7px;max-width:100%;min-height:38px;margin:8px 0;padding:8px 13px;border:1px solid #35e1da65;border-radius:20px;background:#1a3030f5;color:var(--cyan);font-size:12px;line-height:20px}
.map-filter-chip i{font-size:18px}.map-notice{margin-top:8px}.map-category-option:focus-visible,.map-filter-chip:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
@media(max-height:620px){.map-screen .map-selected{padding:12px;max-height:calc(var(--stable-height,100svh) - 256px)}.map-screen .map-card-photo{width:52px;height:52px}.map-screen .map-card-copy h2{font-size:17px}.map-card-count{margin:8px 0}.map-screen .map-card-bottom .btn{font-size:13px}}

.map-screen:has(.map-search-panel:not([hidden])) .map-controls,.map-screen:has(.map-search-panel:not([hidden])) .map-search-control{visibility:hidden}
@media(max-height:620px){.map-screen .map-controls{flex-direction:row}}

.venue-map-cluster{display:grid;place-items:center;width:44px;height:44px;transform:translate(-50%,-50%);border:2px solid #bafff2;border-radius:50%;background:#246764;color:white;box-shadow:0 3px 12px #0006;font-size:15px;font-weight:700;cursor:pointer}
.venue-map-cluster:focus-visible,.venue-map-marker:focus-visible{outline:3px solid white;outline-offset:3px}
.venue-map-marker[data-populated="false"] .map-pin-count{display:none}
.venue-map-marker[data-populated="false"]{width:36px;height:36px;min-height:36px;transform:translate(-50%,-50%);border-radius:13px}.venue-map-marker[data-populated="false"] img{width:100%;height:100%;border-radius:10px}
.map-group-place{display:flex;flex-direction:column;gap:5px;width:100%;min-height:60px;padding:12px;border:1px solid #ffffff20;border-radius:14px;background:#ffffff06;margin:6px 0;text-align:left}.map-group-place strong{font-size:14px}.map-group-place span{font-size:11px;color:#c4c5ca}

/* Device-specific opt-in for private-message notifications. */
.push-settings{margin:24px 0 16px;padding:20px;border-radius:24px;text-align:left}
.push-settings-heading{display:flex;align-items:center;gap:10px}
.push-settings-heading .ph{color:var(--accent,#30dedb);font-size:24px}
.push-settings h2{font-size:18px;line-height:1.3;margin:0}
.push-settings p{font-size:14px;line-height:1.5;color:#bdbfc8;margin:12px 0}
.push-settings-actions{display:flex;flex-wrap:wrap;gap:10px}
.push-settings-actions:empty{display:none}
.push-settings-actions .btn{margin:0;min-height:44px;font-size:15px;flex:1 1 140px}

/* Mobile safe areas and keyboard: native bottom anchoring, no stale JS top. */
html,body{overscroll-behavior-y:none;overflow-x:clip}
.screen:not(.person-screen){padding-top:calc(18px + env(safe-area-inset-top,0px))}
.screen-welcome .screen{padding-top:0}
.welcome-brand{padding-top:calc(24px + env(safe-area-inset-top,0px))}
.screen.map-screen,.screen.map-screen.compact:has(>.bottom-dock){padding-top:calc(12px + env(safe-area-inset-top,0px))}
.chat-screen .screen,.chat-screen .screen.compact{padding-top:env(safe-area-inset-top,0px)}
html[data-text-input-focused="true"] .bottom-dock,html[data-keyboard-open="true"] .bottom-dock{display:none!important}
.map-screen .map-controls{top:calc(142px + env(safe-area-inset-top,0px))}
.map-search-panel,#map-discovery{top:calc(132px + env(safe-area-inset-top,0px))}
.map-screen:has(.map-search-panel:not([hidden])) #map-discovery{top:calc(202px + env(safe-area-inset-top,0px))}
/* Lightweight labels anchored at each venue's actual coordinate. */
.venue-map-marker,.venue-map-marker[data-populated="false"]{display:flex;flex-direction:column;gap:3px;width:138px;height:auto;min-height:54px;padding:8px 10px;transform:translate(-50%,-100%);border:1px solid #667576;border-radius:12px;background:#202729;color:#f5f7f7;box-shadow:0 2px 5px #0003;text-align:left;cursor:pointer;backdrop-filter:none;-webkit-backdrop-filter:none}
.venue-map-marker::after{content:"";position:absolute;left:calc(50% - 4px);bottom:-4px;width:7px;height:7px;transform:rotate(45deg);background:#202729;border-bottom:1px solid #667576;border-right:1px solid #667576}
.venue-map-marker[data-populated="true"]{border-color:#50e4d9}
.map-marker-name{font-size:12px;font-weight:700;line-height:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;width:100%}
.map-marker-meta{display:flex;gap:5px;align-items:center;width:100%;font-size:10px;line-height:13px;color:#c2cece}
.map-marker-category{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.map-marker-online{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:5px;min-width:44px;height:24px;padding:2px 8px;border:1px solid #b5fffa;border-radius:16px;background:var(--cyan);color:#103432;box-shadow:0 2px 5px #0003;font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.map-marker-online .ph{font-size:18px}
.venue-map-marker[data-populated="false"] .map-marker-online{display:none}
.venue-map-marker[data-compact="true"]{width:12px;height:12px;min-height:12px;padding:0;border:1.5px solid #ccfff9;border-radius:50%;background:#32bfb7;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0008}
.venue-map-marker[data-compact="true"]>*{display:none}
.venue-map-marker[data-compact="true"]::after{display:none}
.venue-map-marker[data-compact="true"]::before{content:"";position:absolute;inset:-7px;border-radius:50%}
.map-marker-hint{position:absolute;left:50%;top:calc(138px + env(safe-area-inset-top,0px));transform:translateX(-50%);max-width:calc(100% - 100px);padding:8px 12px;border:1px solid #ffffff20;border-radius:14px;background:#202729ed;color:#c9d5d5;font-size:11px;line-height:15px;text-align:center;z-index:500;pointer-events:none}
.map-marker-hint[hidden]{display:none}
@media(pointer:coarse){.screen input,.screen textarea,.screen select,.dialog input,.dialog textarea,.dialog select{font-size:16px!important}}
