:root {
  --ink: #11272b;
  --muted: #6d8285;
  --line: #dce8e7;
  --surface: #ffffff;
  --soft: #f4f9f8;
  --teal: #137f78;
  --teal-dark: #0a625e;
  --teal-soft: #d9efeb;
  --danger: #bb6748;
  --shadow: 0 18px 50px rgba(18, 66, 64, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ink); background: var(--soft); }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; letter-spacing: -0.9px; }
h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -0.7px; }
h3 { margin-bottom: 0; font-size: 16px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }
.eyebrow { margin-bottom: 5px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }

.auth-locked { overflow: hidden; }
.auth-locked .app-shell { visibility: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 100; display: grid; min-height: 100svh; padding: 20px; overflow: hidden; background: #d7e5df; place-items: center; }
.auth-gate[hidden] { display: none; }
.auth-map-backdrop { --mx: 0px; --my: 0px; position: absolute; inset: -65px; overflow: hidden; background-color: #d7e5df; background-image: linear-gradient(34deg, rgba(238,245,240,.95) 0 18%, transparent 18.2%), linear-gradient(130deg, transparent 0 66%, rgba(198,220,210,.55) 66.2% 73%, transparent 73.2%), repeating-linear-gradient(18deg, rgba(163,183,175,.22) 0 1px, transparent 1px 72px), repeating-linear-gradient(108deg, rgba(163,183,175,.24) 0 1px, transparent 1px 88px); transform: translate3d(var(--mx), var(--my), 0) scale(1.08); transition: transform 180ms ease-out; }
.auth-map-backdrop::before { position: absolute; inset: 0; content: ""; opacity: .92; background-image: linear-gradient(121deg, transparent 0 23%, rgba(255,255,255,.95) 23.2% 24.2%, rgba(217,226,220,.9) 24.2% 25%, transparent 25.3% 100%), linear-gradient(44deg, transparent 0 58%, rgba(255,255,255,.92) 58.2% 59.6%, rgba(213,224,218,.82) 59.6% 60.2%, transparent 60.4% 100%), repeating-linear-gradient(90deg, transparent 0 82px, rgba(104,147,137,.2) 84px 86px, transparent 88px 166px); }
.auth-map-backdrop::after { position: absolute; inset: 0; z-index: 8; content: ""; background: radial-gradient(circle at 50% 49%, rgba(255,255,255,.18) 0 23%, rgba(218,232,226,.34) 44%, rgba(20,62,61,.3) 100%); pointer-events: none; }
.auth-map-water { position: absolute; top: -18%; right: 10%; z-index: 1; display: block; width: 16%; height: 142%; background: linear-gradient(90deg, rgba(124,197,205,.58), rgba(96,178,194,.8) 48%, rgba(174,225,226,.64)); border-right: 8px solid rgba(224,246,242,.8); border-left: 8px solid rgba(224,246,242,.78); box-shadow: inset 22px 0 26px rgba(255,255,255,.16), inset -18px 0 28px rgba(42,126,139,.16); transform: rotate(18deg); }
.auth-map-road { position: absolute; z-index: 4; display: block; height: 18px; background: #fffdf6; border: 1px solid rgba(147,164,158,.46); box-shadow: 0 0 0 5px rgba(255,255,255,.4), 0 6px 18px rgba(67,100,94,.08); border-radius: 999px; }
.auth-map-road::after { position: absolute; top: calc(50% - 1px); right: 10px; left: 10px; height: 2px; content: ""; background: repeating-linear-gradient(90deg, rgba(194,174,101,.58) 0 18px, transparent 18px 34px); border-radius: 999px; opacity: .82; }
.road-one { top: 29%; left: -6%; width: 82%; transform: rotate(11deg); }.road-two { right: -10%; bottom: 26%; width: 88%; height: 22px; transform: rotate(-20deg); }.road-three { top: -4%; left: 31%; width: 74%; height: 16px; transform: rotate(73deg); }.road-four { bottom: 10%; left: 3%; width: 56%; height: 13px; transform: rotate(5deg); opacity: .92; }
.auth-map-rail { position: absolute; top: 11%; left: 7%; z-index: 3; width: 86%; height: 9px; background: repeating-linear-gradient(90deg, #8a9f9a 0 9px, transparent 9px 17px), linear-gradient(#f7faf7, #f7faf7); background-size: auto, 100% 3px; background-position: center, center; background-repeat: repeat, no-repeat; opacity: .65; transform: rotate(-8deg); }
.auth-map-park { position: absolute; z-index: 2; display: block; background: linear-gradient(135deg, rgba(157,205,150,.58), rgba(119,179,132,.54)); border: 1px solid rgba(91,139,98,.2); border-radius: 22px; box-shadow: inset 0 0 0 12px rgba(255,255,255,.12); }
.park-one { top: 15%; left: 10%; width: 23%; height: 20%; transform: rotate(-8deg); }.park-two { right: 23%; bottom: 12%; width: 17%; height: 16%; transform: rotate(14deg); }
.auth-map-building { position: absolute; z-index: 2; display: block; background: rgba(239,232,215,.82); border: 1px solid rgba(174,162,139,.32); border-radius: 8px; box-shadow: inset 0 0 0 7px rgba(255,255,255,.26); }
.block-one { top: 38%; left: 12%; width: 12%; height: 9%; transform: rotate(12deg); }.block-two { top: 50%; left: 27%; width: 17%; height: 11%; transform: rotate(-12deg); }.block-three { top: 25%; right: 29%; width: 13%; height: 8%; transform: rotate(18deg); }.block-four { right: 8%; bottom: 42%; width: 12%; height: 10%; transform: rotate(-21deg); }
.auth-map-route { position: absolute; top: 14%; left: 47%; z-index: 5; width: 9px; height: 72%; background: repeating-linear-gradient(to bottom, #147f77 0 19px, transparent 19px 29px); border-radius: 999px; filter: drop-shadow(0 2px 3px rgba(15,91,85,.2)); opacity: .86; transform: rotate(22deg); }
.auth-map-dot { position: absolute; z-index: 6; display: block; width: 16px; height: 16px; background: #f06f45; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 6px 16px rgba(154,81,52,.28); }
.dot-one { top: 30%; left: 39%; }.dot-two { right: 24%; bottom: 30%; background: #7b68c9; }.dot-three { top: 62%; left: 18%; background: #dfa73a; }
.auth-map-pin { position: absolute; top: 42%; left: 54%; z-index: 7; display: grid; width: 40px; height: 40px; background: #137f78; border: 4px solid rgba(255,255,255,.94); border-radius: 50% 50% 50% 0; box-shadow: 0 9px 24px rgba(22,94,89,.42); place-items: center; transform: rotate(-45deg); }
.auth-map-pin i { width: 10px; height: 10px; background: #d7fff6; border-radius: 50%; }
.auth-map-label { position: absolute; z-index: 6; color: rgba(25,78,75,.58); font-size: 10px; font-weight: 900; letter-spacing: 2.3px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.label-one { top: 19%; left: 15%; }.label-two { right: 8%; bottom: 14%; }.label-three { top: 8%; left: 39%; transform: rotate(-8deg); }
.auth-card { position: relative; z-index: 2; width: min(430px, calc(100vw - 72px)); min-width: 0; padding: 24px; overflow-x: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(220,234,232,.95); border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.auth-card[hidden] { display: none; }
.auth-gate .auth-card { color: #11272b; color-scheme: light; }
.auth-gate .auth-card .muted { color: #6d8285; }
.auth-gate .brand { color: #11272b; }
.auth-brand { padding-bottom: 20px; }
.brand-meaning { margin: -8px 0 12px; overflow-wrap: anywhere; color: #537273; font-size: 12px; font-weight: 800; line-height: 1.45; }
.auth-card .muted { margin: 10px 0 14px; }
.auth-actions { display: grid; gap: 8px; margin-top: 5px; }
.auth-actions button { width: 100%; }
.auth-mode-switch { display: grid; gap: 4px; padding: 4px; margin: 14px 0 4px; background: #edf5f3; border-radius: 10px; grid-template-columns: 1fr 1fr; }
.auth-mode-switch button { padding: 8px; color: #6d8583; background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 900; }
.auth-mode-switch button.active { color: #fff; background: var(--teal); }
.auth-card.login-mode .field:has(#auth-name) { display: none; }
.language-select { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: #809493; font-size: 10px; font-weight: 800; }
.language-select select { padding: 4px 6px; color: #557574; background: #f5f9f8; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.privacy-note { display: block; margin-top: 13px; overflow-wrap: anywhere; color: #8da0a1; font-size: 9px; line-height: 1.45; text-align: center; }
.legal-links { display: flex; justify-content: center; gap: 12px; margin-top: 10px; font-size: 11px; }
.legal-links a { color: #137f78; text-decoration: none; font-weight: 800; }
.legal-links a:hover { text-decoration: underline; }
.remember-row { display: flex; gap: 7px; align-items: center; margin: 11px 0 4px; color: #607b7a; font-size: 11px; font-weight: 800; }

.app-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { display: flex; min-height: 100dvh; flex-direction: column; padding: 22px 15px; color: #d5e8e5; background: #103f40; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 17px; }
.brand small { display: block; margin-top: 3px; color: #7ba8a5; font-size: 10px; }
.brand-mark { display: grid; width: 32px; height: 32px; color: #125351; background: #a2ead9; border-radius: 10px; font-weight: 900; place-items: center; }
.brand-mark-wide { width: auto; min-width: 32px; padding: 0 7px; font-size: 11px; letter-spacing: .4px; }
.main-nav { display: grid; gap: 0; margin-top: 35px; border-top: 1px solid rgba(255,255,255,.1); }
.nav-button { display: flex; min-height: 52px; gap: 12px; align-items: center; padding: 13px 11px; color: #abd0cc; background: transparent; border: 0; border-radius: 11px; font-size: 14px; font-weight: 800; text-align: left; }
.main-nav .nav-button { border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
.main-nav .nav-button:first-child { border-radius: 11px 11px 0 0; }
.main-nav .nav-button:last-child { border-radius: 0 0 11px 11px; }
.nav-button:hover, .nav-button.active { color: #fff; background: rgba(202,246,236,.14); }
.nav-button span { width: 22px; font-size: 18px; text-align: center; }
.sidebar-profile { display: flex; width: 100%; gap: 10px; align-items: center; padding: 15px 0 0; margin-top: 0; color: inherit; background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.12); text-align: left; }
.sidebar-profile:hover, .sidebar-profile.active { color: #fff; }
.sidebar-profile strong, .sidebar-profile small { display: block; max-width: 125px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { margin-top: 4px; color: #85aaa8; }
.sidebar-history { width: 100%; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
.sidebar-history { margin-top: auto; }
.nav-line-icon svg, .profile-history-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sidebar-avatar-wrap { position: relative; display: block; flex: 0 0 auto; }
.sidebar-avatar { width: 48px; height: 48px; font-size: 14px; }
.profile-settings-badge { position: absolute; right: -4px; bottom: -3px; display: grid; width: 20px; height: 20px; color: #0d5e59; background: #b6f1e4; border: 2px solid #103f40; border-radius: 50%; place-items: center; }
.profile-settings-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.main { min-width: 0; }
.topbar { display: flex; height: 78px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.topbar-logo { display: grid; min-width: 39px; height: 31px; padding: 0 7px; color: #fff; background: var(--teal); border-radius: 10px; font-size: 11px; font-weight: 950; letter-spacing: .7px; place-items: center; }
.topbar-actions { display: flex; gap: 9px; align-items: center; }
.topbar-settings { display: grid; width: 36px; height: 36px; color: var(--teal); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; place-items: center; }
.topbar-settings:hover, .topbar-settings.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.topbar-settings svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.cloud-pill { display: flex; gap: 6px; align-items: center; padding: 8px 10px; color: #6f8585; background: #f8fbfa; border: 1px solid var(--line); border-radius: 20px; font-size: 10px; font-weight: 800; }
.cloud-pill i { width: 7px; height: 7px; background: #dfb15d; border-radius: 50%; }
.cloud-pill.online { color: var(--teal-dark); }.cloud-pill.online i { background: #55d8a2; }
.cloud-pill.error { color: var(--danger); }.cloud-pill.error i { background: var(--danger); }
.view { display: none; }.view.active { display: block; }
.map-view { position: relative; height: calc(100dvh - 78px); overflow: hidden; }
.map-canvas { width: 100%; height: 100%; background: #061522; }
.map-toolbar { position: absolute; top: 16px; left: 16px; z-index: 5; display: flex; gap: 7px; width: min(390px, calc(100% - 32px)); }
.search-box { display: flex; flex: 1; gap: 8px; align-items: center; height: 43px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(30,75,72,.1); }
.search-box input { width: 100%; min-width: 0; background: transparent; border: 0; font-size: 12px; outline: 0; }
.square-button { display: grid; width: 43px; height: 43px; color: var(--teal); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgba(30,75,72,.1); font-size: 18px; place-items: center; }
.activity-map-button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.gps-toolbar-button { flex: 0 0 43px; font-size: 17px; transform: rotate(-45deg); }
.gps-toolbar-button:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.return-editor-button { position: absolute; bottom: 145px; left: 16px; z-index: 6; padding: 10px 13px; color: #fff; background: var(--teal); border: 0; border-radius: 10px; box-shadow: 0 8px 20px rgba(30,75,72,.18); font-size: 11px; font-weight: 900; }
.map-night { --ink: #e6f3f1; --muted: #96b0ae; --line: #315154; --surface: #153337; --soft: #0e2529; --teal-soft: #244d4d; color-scheme: dark; background: #0e2529; }
.map-night .maplibregl-canvas { filter: brightness(.78) contrast(1.08) saturate(.9); }
.map-night .main, .map-night .content-view { background: #0e2529; }
.map-night .sidebar { background: #082d31; }
.map-night .topbar, .map-night .event-card, .map-night .empty-state, .map-night .chat-layout, .map-night .chat-item, .map-night .conversation-header, .map-night .message-form, .map-night .profile-card, .map-night .profile-side-card, .map-night .profile-section, .map-night .person-card, .map-night .modal, .map-night .details-panel, .map-night .search-box, .map-night .square-button, .map-night .category-chip, .map-night .location-status, .map-night .staff-panel { background: #153337; }
.map-night .conversation, .map-night .messages, .map-night .mobile-sheet-event { background: #102a2e; }
.map-night .message:not(.mine), .map-night .photo-editor, .map-night .cover-editor, .map-night .event-photo-editor, .map-night .location-picker, .map-night .itinerary-editor, .map-night .stack-item, .map-night .presence-editor, .map-night .offline-cache-note, .map-night .meetup-route-card { background: #1b3d40; }
.map-night .itinerary-stop { background: #24464a; }
.map-night .field input, .map-night .field textarea, .map-night .field select, .map-night .setting-control select, .map-night .people-filters input, .map-night .people-filters select, .map-night .message-form input, .map-night .presence-editor input { color: var(--ink); background: #102a2e; }
.map-night .people-online-filter { color: var(--ink); background: #102a2e; }
.map-night .language-combobox-toggle, .map-night .language-combobox-menu, .map-night .language-options label { color: var(--ink); background: #102a2e; }
.map-night .bottom-nav, .map-night .mobile-map-sheet, .map-night .mobile-map-dock { background: rgba(15, 42, 46, .98); }
.map-night .suggestions, .map-night .suggestion-button { color: var(--ink); background: #17373a; }
.map-night .message.mine { color: #fff; background: #137f78; }
.map-night .message-author, .map-night .text-button { color: #8de1d7; }
.map-night .chat-tabs button { color: #b7d3d0; background: #17373a; }
.map-night .chat-tabs button.active { color: #fff; background: var(--teal); }
.map-night .chat-item:hover, .map-night .chat-item.active { color: var(--ink); background: #24464a; }
.map-night .secondary-button { color: #b9f2eb; background: #24575a; }
.map-night .primary-button { color: #fff; background: #168e86; }
.map-night .person-action-profile { color: #b9e0dc; background: #183d40; border-color: #3b6263; }
.map-night .person-action-follow { color: #dbc6ff; background: #47385d; border-color: #695283; }
.map-night .person-action-follow.is-following { color: #b9f0d7; background: #285448; border-color: #3d7566; }
.map-night .person-action-message { color: #fff; background: #168e86; border-color: #168e86; }
.map-night .person-action-review { color: #ffe1a3; background: #604c2a; border-color: #80683b; }
.map-night .report-button { color: #ffc8bd; background: #593b37; border-color: #80514a; }
.map-night .group-chat-candidate { background: #1b3d40; border-color: #315154; }
.category-strip { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.map-view > .category-strip { position: absolute; top: 68px; left: 16px; z-index: 5; width: calc(100% - 32px); }
.location-status { position: absolute; bottom: 18px; left: 50%; z-index: 5; padding: 8px 11px; margin: 0; color: #547776; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 18px rgba(30,75,72,.1); font-size: 10px; font-weight: 800; transform: translateX(-50%); }
.location-status.error { color: var(--danger); }
.category-chip { flex: 0 0 auto; padding: 8px 11px; color: #527574; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 13px rgba(30,75,72,.08); font-size: 10px; font-weight: 900; }
.category-chip.active, .category-chip:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.details-panel { position: absolute; top: 16px; right: 16px; z-index: 5; width: min(330px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 17px; overflow-y: auto; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.details-panel.hidden { display: none; }
.details-panel.collapsed { display: flex; width: min(270px, calc(100% - 32px)); gap: 7px; align-items: center; padding: 7px; overflow: hidden; border-radius: 18px; }
.details-panel.collapsed #event-details, .details-panel.collapsed > .close-button { display: none; }
.details-collapsed-summary { display: none; min-width: 0; flex: 1; padding: 1px 7px 1px 2px; overflow: hidden; color: var(--ink); background: transparent; border: 0; text-align: left; }
.details-panel.collapsed .details-collapsed-summary { display: grid; gap: 2px; }
.details-collapsed-summary small, .details-collapsed-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details-collapsed-summary small { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.details-collapsed-summary strong { font-size: 11px; }
.details-panel.map-hint-panel { display: flex; width: auto; max-width: min(300px, calc(100% - 32px)); align-items: center; padding: 9px 12px; overflow: hidden; border-radius: 18px; }
.details-panel.map-hint-panel #event-details { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.details-panel.map-hint-panel > .close-button, .details-panel.map-hint-panel > .details-collapse-button, .details-panel.map-hint-panel > .details-collapsed-summary { display: none; }
.close-button { display: grid; width: 29px; height: 29px; color: #77908f; background: transparent; border: 0; border-radius: 8px; font-size: 22px; place-items: center; }
.details-panel > .close-button { float: right; }
.details-collapse-button { float: left; display: grid; width: 29px; height: 29px; margin-right: 3px; color: var(--teal); background: var(--teal-soft); border: 0; border-radius: 10px; font-size: 17px; font-weight: 900; place-items: center; }
.market-detail-card { display: grid; gap: 9px; padding: 12px; margin: 12px 0; background: #fff5ef; border: 1px solid #ffd5c0; border-radius: 13px; }
.market-detail-card > strong { color: #713e28; }
.market-detail-card p { margin: 0; color: #8a604b; font-size: 11px; line-height: 1.45; }
.market-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.market-detail-grid span { display: grid; gap: 2px; min-width: 0; padding: 8px; background: rgba(255,255,255,.72); border-radius: 10px; }
.market-detail-grid small { color: #9a6d55; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.market-detail-grid b { overflow: hidden; color: #3c271f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0; }
.tag { padding: 5px 8px; color: #547776; background: var(--teal-soft); border-radius: 12px; font-size: 9px; font-weight: 800; }
.detail-actions { display: grid; gap: 7px; margin-top: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-button { display: grid; text-align: center; text-decoration: none; place-items: center; }
.meetup-route-card { display: grid; gap: 9px; padding: 11px; margin: 13px 0; background: #f0f7f6; border: 1px solid var(--line); border-radius: 12px; }
.meetup-route-heading { display: grid; gap: 3px; }
.meetup-route-heading strong { font-size: 12px; }
.meetup-route-heading small { color: var(--muted); font-size: 10px; }
.route-mode-control { display: grid; gap: 5px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-mode-control button { padding: 7px 4px; color: #557574; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 900; }
.route-mode-control button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.meetup-route-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.meetup-route-actions button { flex: 1 1 auto; padding: 8px 10px; font-size: 10px; }
.participant-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.participant-list span { padding: 5px 7px; color: #587877; background: #f0f6f5; border-radius: 11px; font-size: 9px; font-weight: 800; }
.event-marker { display: grid; width: 40px; height: 40px; color: #fff; background: var(--teal); border: 3px solid #fff; border-radius: 50% 50% 50% 6px; box-shadow: 0 7px 16px rgba(16,86,80,.3); font-size: 18px; font-weight: 900; transform: rotate(-45deg); place-items: center; }
.event-marker span { transform: rotate(45deg); }
.event-marker.shape-round { border-radius: 50%; transform: none; }
.event-marker.shape-square { border-radius: 8px; transform: none; }
.event-marker.shape-diamond { border-radius: 8px; transform: rotate(45deg); }
.event-marker.shape-round span, .event-marker.shape-square span { transform: none; }
.event-marker.shape-diamond span { transform: rotate(-45deg); }
.event-marker.selected { outline: 4px solid rgba(19,127,120,.25); outline-offset: 3px; }
.person-map-marker { display: grid; width: 33px; height: 33px; overflow: hidden; color: #fff; background: #a66fbd; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 7px 16px rgba(77, 48, 94, .3); font-size: 10px; font-weight: 900; place-items: center; }
.person-map-marker.has-photo { background-position: center; background-size: cover; color: transparent; }
.activity-heat-marker { width: 96px; height: 96px; pointer-events: none; background: radial-gradient(circle, rgba(248, 147, 74, .42) 0 16%, rgba(248, 178, 80, .22) 32%, rgba(248, 178, 80, 0) 72%); border-radius: 50%; filter: blur(2px); }
.activity-heat-marker.busy { width: 132px; height: 132px; background: radial-gradient(circle, rgba(236, 94, 72, .52) 0 18%, rgba(248, 147, 74, .28) 37%, rgba(248, 178, 80, 0) 74%); }
.chat-section-title { padding: 9px 12px 4px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.chat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chat-tabs button { padding: 8px 11px; color: #557574; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 10px; font-weight: 900; }
.chat-tabs button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.market-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0; }
.market-tabs button { padding: 8px 12px; color: #7a5a4b; background: #fff5ef; border: 1px solid #ffd5c0; border-radius: 16px; font-size: 10px; font-weight: 900; }
.market-tabs button.active, .market-tabs button:hover { color: #fff; background: #f06f45; border-color: #f06f45; }
.market-grid .market-card { border-color: #ffd5c0; }
.market-card-meta { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; margin-top: 12px; color: #713e28; }
.market-card-meta span { display: grid; width: 34px; height: 34px; background: #fff0e8; border-radius: 11px; font-size: 18px; place-items: center; }
.market-card-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card-meta small { padding: 5px 7px; color: #8a604b; background: #fff5ef; border-radius: 10px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.user-location-marker { position: relative; width: 22px; height: 22px; background: #357cf0; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(31,94,196,.45); }
.user-location-marker::after { position: absolute; inset: -9px; content: ""; border: 2px solid rgba(53,124,240,.35); border-radius: 50%; animation: location-pulse 1.8s ease-out infinite; }
@keyframes location-pulse { from { opacity: 1; transform: scale(.65); } to { opacity: 0; transform: scale(1.25); } }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { font-size: 10px; }
.mobile-map-sheet { display: none; }
.mobile-map-dock { display: none; }

.content-view { min-height: calc(100dvh - 78px); padding: 22px; background: #f7fbfa; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.content-categories { padding: 18px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.event-card { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.event-card:hover { border-color: #a8d5d0; box-shadow: 0 8px 20px rgba(30,75,72,.08); }
.event-card-photo, .event-detail-photo { display: block; width: 100%; max-height: 190px; margin-bottom: 10px; object-fit: cover; border-radius: 10px; }
.event-card h3 { margin: 8px 0 7px; }
.event-card p { margin-bottom: 10px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--teal); font-size: 10px; font-weight: 800; }
.empty-state { padding: 30px; color: var(--muted); background: #fff; border: 1px dashed #cbdedb; border-radius: 14px; font-size: 13px; line-height: 1.55; text-align: center; }

.chat-layout { display: grid; min-height: 560px; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; grid-template-columns: 280px minmax(0, 1fr); }
.chat-list { border-right: 1px solid var(--line); }
.chat-item { display: block; width: 100%; padding: 13px; background: #fff; border: 0; border-bottom: 1px solid #edf3f2; text-align: left; }
.chat-item:hover, .chat-item.active { background: #eff8f6; }
.chat-item strong, .chat-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item strong { font-size: 12px; }.chat-item small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.conversation { display: flex; min-width: 0; flex-direction: column; background: #f9fcfb; }
.conversation-header { padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.conversation-header p { margin: 5px 0 0; }
.messages { display: flex; flex: 1; flex-direction: column; gap: 7px; justify-content: end; padding: 16px; overflow-y: auto; }
.message { max-width: min(430px, 78%); padding: 9px 11px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; line-height: 1.45; }
.message.mine { align-self: end; color: #fff; background: var(--teal); border-color: var(--teal); }
.message small { display: block; margin-top: 4px; font-size: 9px; opacity: .7; }
.message-author { padding: 0; color: inherit; background: transparent; border: 0; font-size: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.message-form { display: flex; gap: 7px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.message-form input { flex: 1; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; outline-color: var(--teal); }

.profile-grid { display: grid; max-width: 900px; gap: 14px; grid-template-columns: 1fr; }
.profile-card, .profile-side-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.profile-cover { height: 130px; background: linear-gradient(135deg, #1d8b82, #174f61); }
.profile-cover.has-photo, .cover-preview.has-photo { background-position: center; background-size: cover; }
.profile-content { padding: 0 18px 19px; text-align: center; }
.profile-content .avatar { margin: -35px auto 0; border: 4px solid #fff; }
.profile-content .eyebrow { margin-top: 14px; }
.profile-content .muted { max-width: 500px; margin-right: auto; margin-left: auto; }
.profile-title-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: center; margin-top: 14px; }
.profile-title-row h2 { margin-bottom: 0; }
.profile-subtitle { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.profile-handle, .profile-location { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.profile-location-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.profile-location { display: inline-flex; gap: 5px; align-items: center; justify-content: center; padding: 5px 8px; margin-top: 8px; background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.profile-location::before { content: "⌖"; color: var(--teal); font-size: 14px; }.profile-location:hover { color: var(--teal); background: var(--teal-soft); }
.profile-age-pill { padding: 4px 7px; color: var(--teal); background: var(--teal-soft); border-radius: 12px; font-size: 9px; font-weight: 900; }
.profile-inline-handle { color: var(--muted); font-size: 10px; }
.profile-languages, .profile-interests, .profile-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.profile-languages { margin: 13px 0 8px; }
.profile-language-chip { display: grid; width: 29px; height: 29px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 50%; font-size: 17px; line-height: 1; place-items: center; }
.profile-interests { margin: 8px 0; }
.profile-interests span { color: var(--teal); font-size: 10px; font-weight: 900; }
.profile-email { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-decoration: none; }.profile-email:hover { color: var(--teal); text-decoration: underline; }
.profile-meta { margin: 10px 0 13px; }
.profile-meta span { padding: 6px 8px; color: var(--muted); background: var(--soft); border-radius: 12px; font-size: 10px; font-weight: 800; }
.profile-rating-details, .public-rating-details { padding: 0 11px; margin: 12px 0; background: var(--soft); border: 1px solid var(--line); border-radius: 15px; }
.profile-rating-details summary, .public-rating-details summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 11px 0; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 900; }
.profile-rating-details .stack-list, .public-rating-details .stack-list { padding-bottom: 11px; margin-top: 0; }
.profile-rating-compact { position: relative; padding: 0; margin: 8px 0 0; overflow: visible; }
.profile-rating-compact summary { padding: 5px 8px; color: #9b6b18; list-style: none; }
.profile-rating-compact summary::-webkit-details-marker { display: none; }
.profile-rating-compact .stack-list { position: absolute; top: calc(100% + 5px); right: 0; z-index: 10; width: min(320px, 80vw); max-height: 240px; padding: 9px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.profile-side-card { padding: 18px; }
.settings-page { max-width: 680px; margin-top: 18px; }
.settings-intro { margin: 9px 0 14px; }
.settings-group { margin-top: 9px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.settings-group summary { display: flex; gap: 9px; align-items: center; padding: 12px; color: var(--ink); cursor: pointer; font-size: 12px; list-style: none; }
.settings-group summary::-webkit-details-marker { display: none; }
.settings-group summary::after { margin-left: auto; color: var(--muted); content: "+"; font-size: 16px; font-weight: 900; }
.settings-group[open] summary::after { content: "−"; }
.settings-group summary span { display: grid; width: 23px; height: 23px; color: var(--teal); background: var(--teal-soft); border-radius: 8px; place-items: center; }
.settings-group-content { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.setting-section-title { margin: 18px 0 -5px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.setting-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 15px 0; margin: 12px 0; border-top: 1px solid #edf3f2; border-bottom: 1px solid #edf3f2; }
.setting-row strong, .setting-row small { display: block; font-size: 11px; }.setting-row small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.setting-control { display: grid; gap: 7px; margin: 15px 0; color: var(--ink); font-size: 11px; }
.setting-control > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.theme-grid { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-choice { display: grid; gap: 6px; padding: 8px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 900; text-align: left; }
.theme-choice:hover, .theme-choice.active { border-color: var(--teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 24%, transparent); }
.theme-palette { display: flex; gap: 3px; }
.theme-palette i { width: 18px; height: 7px; border-radius: 5px; }
.offline-cache-note { display: grid; gap: 5px; padding: 11px; margin: 15px 0; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.offline-cache-note small { color: var(--muted); line-height: 1.45; }
.setting-control select, .people-filters input, .people-filters select { padding: 10px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; outline-color: var(--teal); }
.segmented-control { display: grid; gap: 4px; padding: 4px; background: #edf5f3; border-radius: 10px; grid-template-columns: 1fr 1fr; }
.segmented-control button { padding: 8px; color: #6d8583; background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 900; }
.segmented-control button.active { color: #fff; background: var(--teal); }
.presence-editor { padding: 12px; margin: 16px 0; background: #f3f8f7; border-radius: 11px; }
.presence-editor .setting-section-title { margin: 0 0 10px; }
.presence-editor .setting-control { margin: 10px 0; }
.presence-editor input { width: 100%; padding: 10px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; outline-color: var(--teal); }
.presence-editor button { width: 100%; }
.people-filters { display: flex; max-width: 980px; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.people-filters > input[type="search"] { flex: 1 1 180px; min-width: 150px; }
.people-filters select { flex: 0 1 138px; min-width: 0; max-width: 160px; padding: 7px 9px; border-radius: 15px; font-size: 10px; }
.people-online-filter { display: flex; min-height: 32px; gap: 7px; align-items: center; padding: 0 9px; color: #557574; background: #fbfdfc; border: 1px solid var(--line); border-radius: 15px; font-size: 10px; font-weight: 800; }
.people-grid { max-width: 1000px; }
.person-card { display: grid; min-width: 0; gap: 10px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.person-card-header { display: flex; gap: 10px; align-items: center; }
.person-card-header > div { min-width: 0; }
.person-card-header .avatar { width: 54px; height: 54px; font-size: 16px; }
.person-card h3 { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-actions { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.online-label { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.online-label i { width: 7px; height: 7px; background: #aebdbc; border-radius: 50%; }
.online-label.online { color: var(--teal); }.online-label.online i { background: #55d8a2; }
.person-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.live-status { margin: 0; color: var(--teal); font-size: 11px; font-weight: 900; line-height: 1.45; }
.dating-filter.active { color: #fff; background: var(--teal); }
.avatar { display: grid; flex: 0 0 auto; width: 36px; height: 36px; color: #fff; background: var(--teal); border-radius: 50%; font-size: 11px; font-weight: 900; place-items: center; }
.avatar.large { width: 78px; height: 78px; font-size: 21px; }

.primary-button, .secondary-button, .danger-button { padding: 10px 13px; border: 0; border-radius: 10px; font-size: 11px; font-weight: 900; }
.primary-button { color: #fff; background: var(--teal); }.primary-button:hover { background: var(--teal-dark); }
.secondary-button { color: var(--teal); background: var(--teal-soft); }
.person-action { min-width: 0; border: 1px solid transparent; overflow-wrap: anywhere; }
.person-action-profile { grid-column: 1 / -1; }
.person-action-profile { color: #2f6867; background: #fff; border-color: #b8d9d5; }
.person-action-follow { color: #704a9e; background: #eee7fa; border-color: #ded0f3; }
.person-action-follow.is-following { color: #2f7162; background: #dff2ea; border-color: #c5e7db; }
.person-action-message { color: #fff; background: var(--teal); border-color: var(--teal); }
.person-action-message:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.person-action-review { color: #946214; background: #fff1d9; border-color: #f3dfb7; }
.report-button { color: #a25240; background: #fff0ec; border: 1px solid #f1d2cb; }
.danger-button { color: #fff; background: var(--danger); }
.danger-text { color: var(--danger); }
button:disabled { cursor: wait; opacity: .55; }
.modal { width: min(520px, calc(100vw - 28px)); padding: 0; background: #fff; border: 0; border-radius: 17px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(10,39,42,.48); backdrop-filter: blur(3px); }
.modal form { padding: 19px; }
.modal-header, .modal-actions, .location-picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-header { margin-bottom: 14px; }.modal-actions { justify-content: end; margin-top: 15px; }
.cookie-banner { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 860px; margin: 0 auto; padding: 14px 16px; border: 1px solid rgba(19,127,120,.2); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 16px 42px rgba(8,32,34,.18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; color: #102b2d; }
.cookie-banner p { margin: 0; color: #52696b; font-size: 13px; line-height: 1.45; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.legal-page { min-height: 100vh; background: #f6f8f7; color: #102b2d; }
.legal-document { width: min(820px, calc(100vw - 32px)); margin: 0 auto; padding: 42px 0 60px; }
.legal-document h1 { margin: 4px 0 8px; font-size: 42px; letter-spacing: 0; }
.legal-document h2 { margin: 28px 0 8px; font-size: 20px; letter-spacing: 0; }
.legal-document p { color: #52696b; line-height: 1.7; }
.legal-document a { color: #137f78; font-weight: 800; }
.legal-back-link { display: inline-flex; margin-bottom: 18px; color: #137f78; text-decoration: none; font-weight: 900; }
.field { display: grid; gap: 6px; align-content: start; margin-top: 10px; }
.field span { color: #557574; font-size: 11px; font-weight: 800; }.field span small { color: #8ba0a0; font-size: 9px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; outline-color: var(--teal); }
.field textarea { resize: vertical; }
.field-grid { display: grid; gap: 9px; align-items: start; grid-template-columns: 1fr 1fr; }
.suggestion-field { position: relative; }
.suggestions { position: absolute; top: 100%; right: 0; left: 0; z-index: 8; max-height: 210px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(18,66,64,.14); }
.suggestions:empty { display: none; }
.suggestion-button { display: block; width: 100%; padding: 9px 10px; color: #486d6b; background: #fff; border: 0; border-bottom: 1px solid #edf3f2; font-size: 11px; line-height: 1.35; text-align: left; }
.suggestion-button:hover { background: #eff8f6; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.interest-chip { padding: 6px 8px; color: #557776; background: #eef7f5; border: 1px solid #deebe9; border-radius: 12px; font-size: 10px; font-weight: 800; }
.interest-chip:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.photo-editor { display: flex; gap: 12px; align-items: center; padding: 11px; margin-top: 11px; background: #f3f8f7; border-radius: 11px; }
.photo-editor strong, .photo-editor small { display: block; font-size: 11px; }.photo-editor small { margin: 4px 0 8px; color: var(--muted); line-height: 1.4; }
.cover-editor { display: grid; gap: 12px; align-items: center; padding: 11px; margin-top: 11px; background: #f3f8f7; border-radius: 11px; grid-template-columns: 130px 1fr; }
.cover-editor strong, .cover-editor small { display: block; font-size: 11px; }.cover-editor small { margin: 4px 0 8px; color: var(--muted); line-height: 1.4; }
.cover-preview { height: 74px; background: linear-gradient(135deg, #1d8b82, #174f61); border-radius: 9px; }
.event-photo-editor { display: grid; gap: 12px; align-items: center; padding: 11px; margin-top: 11px; background: #f3f8f7; border-radius: 11px; grid-template-columns: 130px 1fr; }
.event-photo-editor strong, .event-photo-editor small { display: block; font-size: 11px; }.event-photo-editor small { margin: 4px 0 8px; color: var(--muted); line-height: 1.4; }
.event-photo-preview { min-height: 74px; background: linear-gradient(135deg, #d9efeb, #c6dcda); border-radius: 9px; }
.event-photo-preview img { display: block; width: 100%; height: 74px; object-fit: cover; border-radius: 9px; }
.marker-color-editor { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; padding: 10px; margin-top: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.marker-color-custom { display: grid; gap: 5px; color: #557574; font-size: 11px; font-weight: 800; text-align: center; }
.marker-color-custom input { width: 48px; height: 48px; padding: 0; overflow: hidden; background: transparent; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); cursor: pointer; }
.marker-color-custom input::-webkit-color-swatch-wrapper { padding: 0; }.marker-color-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }.marker-color-custom input::-moz-color-swatch { border: 0; border-radius: 50%; }
.marker-color-palette { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.marker-color-swatch { width: 29px; height: 29px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.marker-color-swatch.active { box-shadow: 0 0 0 3px var(--ink); }
.file-button { display: inline-flex; cursor: pointer; }.file-button input { display: none; }
.avatar.has-photo { overflow: hidden; background-position: center; background-size: cover; color: transparent; }
.location-picker { padding: 10px; margin-top: 11px; background: #f3f8f7; border-radius: 10px; }
.location-picker strong, .location-picker small { display: block; font-size: 10px; }.location-picker small { margin-top: 4px; color: var(--muted); }
.form-message { min-height: 16px; margin: 10px 0 0; color: var(--danger); font-size: 11px; font-weight: 800; }
.char-counter { justify-self: end; color: var(--muted); font-size: 10px; font-weight: 800; }
.field-hint { color: var(--muted); font-size: 10px; }
.field-invalid input, .field-invalid textarea, .field-invalid select, .field-invalid .language-combobox-toggle { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(187, 103, 72, .14); }
.field-error { color: var(--danger); font-size: 10px; font-weight: 800; }
.language-combobox { position: relative; }
.language-combobox-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; text-align: left; }
.language-combobox-toggle b { color: var(--teal); font-size: 16px; }
.language-combobox-menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 20; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.language-combobox-menu input { padding: 9px; }
.language-options { display: grid; max-height: 190px; margin-top: 6px; overflow-y: auto; }
.language-options label { display: flex; gap: 8px; align-items: center; padding: 7px; border-radius: 7px; font-size: 11px; }
.language-options label:hover { background: var(--teal-soft); }
.language-options input { width: auto; margin: 0; }
.selected-language-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.selected-language-chip { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; color: #547776; background: var(--teal-soft); border-radius: 12px; font-size: 10px; font-weight: 800; }
.selected-language-chip button { padding: 0; color: inherit; background: transparent; border: 0; font-size: 13px; line-height: 1; }
.itinerary-editor { padding: 11px; margin-top: 12px; background: #f3f8f7; border-radius: 11px; }
.itinerary-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.itinerary-header strong, .itinerary-header small { display: block; font-size: 11px; }.itinerary-header small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.itinerary-stops { display: grid; gap: 7px; margin-top: 8px; }
.itinerary-stop { display: grid; gap: 8px; padding: 10px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 9px; }
.itinerary-stop input, .itinerary-stop select { min-width: 0; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.itinerary-stop-head, .itinerary-stop-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.itinerary-stop-head select { flex: 1; }
.itinerary-stop-actions input { width: 110px; }
.itinerary-stop-actions small { flex: 1; min-width: 145px; color: var(--muted); font-size: 10px; }
.itinerary-stop-actions button { padding: 8px 9px; font-size: 10px; }
.stop-suggestion-field { position: relative; min-width: 0; }
.stop-suggestion-field input { width: 100%; }
.remove-stop { color: var(--danger); background: transparent; border: 0; font-weight: 900; }
.profile-community { display: grid; max-width: 900px; gap: 14px; margin-top: 14px; grid-template-columns: 1fr; }
.profile-section { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.profile-history-action { display: inline-flex; gap: 7px; align-items: center; }
.profile-history-action svg { width: 16px; height: 16px; }
.history-count { display: grid; min-width: 31px; height: 31px; padding: 0 9px; color: var(--teal); background: var(--teal-soft); border-radius: 16px; font-size: 11px; font-weight: 900; place-items: center; }
.history-list { max-width: 900px; }
.post-form { display: grid; gap: 7px; margin-top: 12px; }
.post-form textarea { padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 11px; resize: vertical; }
.post-form button { justify-self: end; }
.post-photo-preview img, .wall-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; }
.post-photo-preview:empty { display: none; }
.stack-list { display: grid; gap: 7px; margin-top: 11px; }
.stack-item { padding: 9px; background: #f4f9f8; border-radius: 9px; }
.stack-item strong, .stack-item small { display: block; }.stack-item strong { font-size: 11px; }.stack-item p { margin: 5px 0 0; font-size: 11px; line-height: 1.45; }.stack-item small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.stack-item-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.text-button { padding: 0; color: var(--teal); background: transparent; border: 0; font-size: 10px; font-weight: 900; text-decoration: none; }
.rating-badge { color: #9b6b18; font-size: 11px; font-weight: 900; }
.public-profile-summary { display: grid; gap: 9px; }
.public-profile-header { display: flex; gap: 10px; align-items: center; }
.public-profile-location { display: block; padding: 3px 0; margin-top: 3px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 800; text-align: left; }.public-profile-location:hover { color: var(--teal); }
.public-profile-cover { height: 120px; background-position: center; background-size: cover; border-radius: 11px; }
.group-chat-candidates { display: grid; max-height: 240px; gap: 7px; margin-top: 10px; overflow-y: auto; }
.group-chat-candidate { display: flex; gap: 9px; align-items: center; padding: 9px; background: #f4f9f8; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.group-chat-candidate input { flex: 0 0 auto; }.group-chat-candidate strong, .group-chat-candidate small { display: block; }.group-chat-candidate strong { font-size: 11px; }.group-chat-candidate small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.staff-panel { max-width: 900px; padding: 16px; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.staff-role { padding: 6px 8px; color: var(--teal); background: var(--teal-soft); border-radius: 12px; font-size: 10px; font-weight: 900; }
.staff-role-form { display: grid; gap: 8px; padding: 12px; margin-top: 13px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; grid-template-columns: minmax(170px, 1fr) 150px auto; }
.staff-role-form .field { margin: 0; }.staff-role-form button { align-self: end; }.staff-role-form .form-message { grid-column: 1 / -1; margin: 0; }
.compact-button { padding: 7px 9px; font-size: 10px; }
.bottom-nav { display: none; }

body[data-app-theme] {
  --theme-bg: #f4f9f8;
  --theme-panel: #ffffff;
  --theme-panel-alt: #f4f9f8;
  --theme-sidebar: #103f40;
  --theme-accent: #137f78;
  --theme-accent-dark: #0a625e;
  --theme-accent-soft: #d9efeb;
  --theme-ink: #11272b;
  --theme-muted: #6d8285;
  --theme-line: #dce8e7;
  --theme-shadow: 0 18px 50px rgba(18,66,64,.16);
  --ink: var(--theme-ink);
  --muted: var(--theme-muted);
  --line: var(--theme-line);
  --surface: var(--theme-panel);
  --soft: var(--theme-bg);
  --teal: var(--theme-accent);
  --teal-dark: var(--theme-accent-dark);
  --teal-soft: var(--theme-accent-soft);
  --shadow: var(--theme-shadow);
  color: var(--ink);
  background: var(--theme-bg);
}
body[data-app-theme] .main, body[data-app-theme] .content-view { background: var(--theme-bg); }
body[data-app-theme] .sidebar { background: var(--theme-sidebar); }
body[data-app-theme] .topbar, body[data-app-theme] .event-card, body[data-app-theme] .empty-state, body[data-app-theme] .chat-layout, body[data-app-theme] .chat-item, body[data-app-theme] .conversation-header, body[data-app-theme] .message-form, body[data-app-theme] .profile-card, body[data-app-theme] .profile-side-card, body[data-app-theme] .profile-section, body[data-app-theme] .person-card, body[data-app-theme] .modal, body[data-app-theme] .details-panel, body[data-app-theme] .search-box, body[data-app-theme] .square-button, body[data-app-theme] .category-chip, body[data-app-theme] .location-status, body[data-app-theme] .staff-panel { background: var(--theme-panel); }
body[data-app-theme] .category-chip.active, body[data-app-theme] .category-chip:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
body[data-app-theme] .conversation, body[data-app-theme] .messages { color: var(--ink); background: var(--theme-bg); }
body[data-app-theme] .message:not(.mine), body[data-app-theme] .photo-editor, body[data-app-theme] .cover-editor, body[data-app-theme] .event-photo-editor, body[data-app-theme] .location-picker, body[data-app-theme] .itinerary-editor, body[data-app-theme] .stack-item, body[data-app-theme] .presence-editor, body[data-app-theme] .offline-cache-note, body[data-app-theme] .group-chat-candidate, body[data-app-theme] .meetup-route-card, body[data-app-theme] .profile-rating-details, body[data-app-theme] .public-rating-details { color: var(--ink); background: var(--theme-panel-alt); }
body[data-app-theme] .field input, body[data-app-theme] .field textarea, body[data-app-theme] .field select, body[data-app-theme] .setting-control select, body[data-app-theme] .people-filters input, body[data-app-theme] .people-filters select, body[data-app-theme] .message-form input, body[data-app-theme] .presence-editor input, body[data-app-theme] .language-combobox-toggle, body[data-app-theme] .language-combobox-menu { color: var(--ink); background: var(--theme-panel); }
body[data-app-theme] .segmented-control, body[data-app-theme] .people-online-filter { color: var(--ink); background: var(--theme-panel-alt); }
body[data-app-theme] .bottom-nav, body[data-app-theme] .mobile-map-sheet, body[data-app-theme] .mobile-map-dock { background: color-mix(in srgb, var(--theme-panel) 96%, transparent); }

body[data-app-theme="midnight"] { --theme-bg:#091c2b; --theme-panel:#102b40; --theme-panel-alt:#17394d; --theme-sidebar:#071927; --theme-accent:#4ab3ff; --theme-accent-dark:#2188d0; --theme-accent-soft:#183f5a; --theme-ink:#edf8ff; --theme-muted:#a2c3d6; --theme-line:#28506a; --theme-shadow:0 18px 50px rgba(0,9,20,.42); color-scheme:dark; }
body[data-app-theme="cyberpunk"] { --theme-bg:#070716; --theme-panel:#11112d; --theme-panel-alt:#191943; --theme-sidebar:#05051a; --theme-accent:#ff2bd6; --theme-accent-dark:#bc1ea4; --theme-accent-soft:#351646; --theme-ink:#f5f1ff; --theme-muted:#a8a6d5; --theme-line:#423b7a; --theme-shadow:0 0 24px rgba(0,246,255,.18),0 0 35px rgba(255,43,214,.12); color-scheme:dark; }
body[data-app-theme="cyberpunk"] .primary-button, body[data-app-theme="cyberpunk"] .segmented-control button.active { background:linear-gradient(135deg,#ff2bd6,#6b42ff); box-shadow:0 0 16px rgba(255,43,214,.32); }
body[data-app-theme="cyberpunk"] .eyebrow, body[data-app-theme="cyberpunk"] .text-button, body[data-app-theme="cyberpunk"] .settings-group summary span { color:#00f6ff; }
body[data-app-theme="cyberpunk"] .sidebar, body[data-app-theme="cyberpunk"] .topbar { border-color:#543b8b; box-shadow:0 0 20px rgba(0,246,255,.08); }
body[data-app-theme="cyberpunk"] .auth-gate { background:#070716; }
body[data-app-theme="cyberpunk"] .auth-map-backdrop { background-color:#10112b; filter:saturate(1.25); }
body[data-app-theme="cyberpunk"] .auth-map-route { background:repeating-linear-gradient(to bottom,#00f6ff 0 18px,transparent 18px 28px); box-shadow:0 0 12px rgba(0,246,255,.58); }
body[data-app-theme="cyberpunk"] .auth-map-pin { background:#ff2bd6; box-shadow:0 0 22px rgba(255,43,214,.58); }
body[data-app-theme="cyberpunk"] .auth-map-label { color:#00f6ff; text-shadow:0 0 9px rgba(0,246,255,.7); }
body[data-app-theme="cyberpunk"] .auth-gate .auth-card { color:#f5f1ff; background:rgba(17,17,45,.94); border-color:#6b42ff; box-shadow:0 0 24px rgba(0,246,255,.22),0 0 35px rgba(255,43,214,.18); color-scheme:dark; }
body[data-app-theme="cyberpunk"] .auth-gate .auth-card .muted, body[data-app-theme="cyberpunk"] .auth-gate .brand { color:#f5f1ff; }
body[data-app-theme="ocean"] { --theme-bg:#edf8fb; --theme-panel:#ffffff; --theme-panel-alt:#e3f3f8; --theme-sidebar:#123f55; --theme-accent:#087fa8; --theme-accent-dark:#056184; --theme-accent-soft:#d4eef6; --theme-ink:#113041; --theme-muted:#668896; --theme-line:#d4e8ed; }
body[data-app-theme="sunset"] { --theme-bg:#fff5ef; --theme-panel:#fffdfb; --theme-panel-alt:#ffede3; --theme-sidebar:#713e42; --theme-accent:#df704d; --theme-accent-dark:#b9533c; --theme-accent-soft:#ffe0d3; --theme-ink:#442722; --theme-muted:#91716a; --theme-line:#f1d9d0; }
body[data-app-theme="forest"] { --theme-bg:#f1f7ef; --theme-panel:#ffffff; --theme-panel-alt:#e5f0e2; --theme-sidebar:#264a35; --theme-accent:#4d8c59; --theme-accent-dark:#397044; --theme-accent-soft:#dcefdc; --theme-ink:#203828; --theme-muted:#6d8772; --theme-line:#d5e4d5; }
body[data-app-theme="lavender"] { --theme-bg:#f8f4ff; --theme-panel:#ffffff; --theme-panel-alt:#f0e9fb; --theme-sidebar:#513e70; --theme-accent:#8061bd; --theme-accent-dark:#64479f; --theme-accent-soft:#e9def8; --theme-ink:#332744; --theme-muted:#837696; --theme-line:#e3d8ee; }
body[data-app-theme="graphite"] { --theme-bg:#181b1f; --theme-panel:#24282d; --theme-panel-alt:#30353a; --theme-sidebar:#111418; --theme-accent:#a8bac3; --theme-accent-dark:#81959f; --theme-accent-soft:#3d474e; --theme-ink:#f2f5f6; --theme-muted:#b1bdc2; --theme-line:#454d52; --theme-shadow:0 18px 50px rgba(0,0,0,.36); color-scheme:dark; }
body[data-app-theme="rose"] { --theme-bg:#fff4f7; --theme-panel:#fffefe; --theme-panel-alt:#fde7ee; --theme-sidebar:#713f55; --theme-accent:#c65e83; --theme-accent-dark:#a64568; --theme-accent-soft:#f8dbe5; --theme-ink:#4b2735; --theme-muted:#927280; --theme-line:#efd6df; }
body[data-app-theme="sand"] { --theme-bg:#f8f3e8; --theme-panel:#fffdfa; --theme-panel-alt:#efe5d2; --theme-sidebar:#5b4b35; --theme-accent:#a5783d; --theme-accent-dark:#805c2d; --theme-accent-soft:#eadcc4; --theme-ink:#403421; --theme-muted:#88785d; --theme-line:#e4d8c2; }
body.map-night[data-app-theme="aurora"], body.map-night[data-app-theme="ocean"], body.map-night[data-app-theme="sunset"], body.map-night[data-app-theme="forest"], body.map-night[data-app-theme="lavender"], body.map-night[data-app-theme="rose"], body.map-night[data-app-theme="sand"] { --theme-bg:#0e2529; --theme-panel:#153337; --theme-panel-alt:#1b3d40; --theme-sidebar:#082d31; --theme-ink:#e6f3f1; --theme-muted:#96b0ae; --theme-line:#315154; --theme-shadow:0 18px 50px rgba(0,0,0,.3); color-scheme:dark; }

@media (prefers-reduced-motion: reduce) {
  .auth-map-backdrop { transition: none; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; }
  .sidebar .brand strong, .nav-button:not(.active)::after, .nav-button { font-size: 0; }
  .brand { justify-content: center; }.nav-button { justify-content: center; }.nav-button span { font-size: 20px; }
  .sidebar-profile div { display: none; }.sidebar-profile { justify-content: center; }.sidebar-avatar { width: 46px; height: 46px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  html, body { width: 100%; min-height: 100dvh; overflow-x: hidden; }
  .app-shell { display: block; min-height: 100dvh; padding-bottom: 0; }
  .sidebar { display: none; }
  .topbar { position: relative; z-index: 10; height: 58px; padding: 0 11px; margin: 7px 8px 0; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 22px rgba(18,66,64,.1); }.topbar .eyebrow, .cloud-pill { display: none; }
  .topbar-brand { gap: 8px; }.topbar-logo { min-width: 36px; height: 29px; font-size: 10px; }
  .topbar-actions { gap: 5px; }.topbar-settings { width: 32px; height: 32px; }.topbar-settings svg { width: 17px; height: 17px; }
  .topbar h1 { max-width: 138px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }.topbar .primary-button { padding: 8px; font-size: 9px; }
  .map-view { height: 100dvh; min-height: 0; margin-top: -65px; padding-bottom: 72px; }
  .map-toolbar { top: 76px; left: 11px; width: calc(100% - 22px); }
  .activity-map-button, .gps-toolbar-button { display: none; }
  .map-view > .category-strip { top: 127px; left: 11px; width: calc(100% - 11px); }
  .details-panel { top: auto; right: 10px; bottom: 126px; left: 10px; width: auto; max-height: 48%; }
  .details-panel.collapsed, .details-panel.map-hint-panel { display: none; }
  .market-detail-grid { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr 1fr; }.route-button { grid-column: 1 / -1; }
  .location-status { display: none; }
  .return-editor-button { right: 11px; bottom: 126px; left: 11px; }
  .maplibregl-ctrl-bottom-left { display: none; }
  .mobile-map-sheet { display: none; }
  .mobile-map-sheet.expanded { position: absolute; right: 8px; bottom: 126px; left: 8px; z-index: 6; display: block; width: auto; max-height: min(48dvh, 390px); overflow-y: auto; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 25px rgba(18,66,64,.15); }
  .mobile-sheet-toggle { display: flex; width: 100%; gap: 6px; align-items: center; justify-content: center; padding: 8px 10px; background: transparent; border: 0; }
  .mobile-sheet-toggle span { width: 16px; height: 3px; background: #c6d8d6; border-radius: 4px; }
  .mobile-sheet-toggle strong { font-size: 10px; }.mobile-sheet-toggle small { color: var(--muted); font-size: 9px; }
  .mobile-sheet-events { display: grid; gap: 6px; padding: 0 9px 9px; }
  .mobile-sheet-event { padding: 9px; background: #f4f9f8; border: 0; border-radius: 9px; text-align: left; }
  .mobile-sheet-event strong, .mobile-sheet-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-sheet-event strong { font-size: 11px; }.mobile-sheet-event small { margin-top: 4px; color: var(--muted); font-size: 9px; }
  .mobile-map-dock { position: absolute; right: 8px; bottom: 72px; left: 8px; z-index: 7; display: grid; height: 46px; overflow: hidden; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 22px rgba(18,66,64,.13); grid-template-columns: 1fr 1.5fr 1fr; }
  .mobile-dock-button { display: flex; gap: 5px; align-items: center; justify-content: center; color: var(--teal); background: transparent; border: 0; border-right: 1px solid var(--line); font-size: 15px; font-weight: 900; }
  .mobile-dock-button:last-child { border-right: 0; }.mobile-dock-button:disabled { color: #a8b8b7; cursor: default; }
  .mobile-dock-location strong, .mobile-dock-events strong { font-size: 11px; }.mobile-dock-events span { color: var(--teal); font-size: 10px; }
  .mobile-dock-location.error { color: var(--danger); }
  .content-view { min-height: calc(100dvh - 65px); padding: 15px 15px calc(86px + env(safe-area-inset-bottom, 0px)); }
  .cards-grid, .profile-grid { grid-template-columns: 1fr; }
  .profile-community { grid-template-columns: 1fr; }
  .chat-layout { display: block; min-height: auto; }.conversation { min-height: 420px; }.chat-list { border-right: 0; }
  .bottom-nav { position: fixed; right: 8px; bottom: calc(7px + env(safe-area-inset-bottom, 0px)); left: 8px; z-index: 20; display: grid; height: 58px; overflow: hidden; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 22px rgba(18,66,64,.13); grid-template-columns: repeat(6, 1fr); }
  .bottom-nav button { display: grid; align-content: center; justify-items: center; gap: 2px; color: #7d9493; background: transparent; border: 0; font-size: 19px; font-weight: 800; line-height: 1; }
  .bottom-nav button.active { color: var(--teal); }.bottom-nav small { font-size: 9px; }
  .bottom-profile-icon { display: grid; place-items: center; }.bottom-profile-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .auth-card { width: min(430px, calc(100vw - 72px)); max-height: calc(100svh - 28px); padding: 18px; overflow-x: hidden; overflow-y: auto; }
  .auth-brand { padding-bottom: 16px; }
  .brand-meaning { font-size: 11px; line-height: 1.35; }
  .cookie-banner { right: 10px; bottom: 72px; left: 10px; display: grid; gap: 12px; padding: 12px; border-radius: 14px; }
  .cookie-banner p { font-size: 12px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .secondary-button, .cookie-actions .primary-button { flex: 1; justify-content: center; }
  .legal-document { width: min(100% - 28px, 820px); padding: 28px 0 44px; }
  .legal-document h1 { font-size: 32px; }
  .auth-map-pin { top: 34%; left: 69%; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .people-filters { display: flex; gap: 5px; padding: 10px 0; }
  .people-filters > input[type="search"] { flex: 1 1 100%; padding: 9px; }
  .people-filters select { flex: 1 1 calc(50% - 5px); max-width: none; }
  .people-online-filter { flex: 1 1 100%; }
  .itinerary-stop { grid-template-columns: 1fr; }
  .staff-role-form { grid-template-columns: 1fr; }
}
