:root {
  --ink: #111318;
  --ink-2: #20242c;
  --muted: #7c828e;
  --line: #e8e9ed;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --lime: #d7ff3f;
  --lime-dark: #b9e518;
  --purple: #8566ff;
  --pink: #ff6f91;
  --shadow: 0 22px 55px rgba(21, 24, 32, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #dfe2e7; font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body[data-entity-mode="stores"] { --lime: #ffbf47; --lime-dark: #e58b18; --purple: #e87924; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 50%; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 800; transform: translate(-50%, -160%); transition: transform .16s ease; }
.skip-link:focus { transform: translate(-50%, 0); }

.app-shell { position: relative; width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 70px rgba(20, 25, 34, .15); }
.topbar { position: fixed; z-index: 40; top: 0; left: max(calc((100vw - 1180px) / 2), 0px); right: max(calc((100vw - 1180px) / 2), 0px); display: grid; grid-template-columns: 1fr auto auto auto 1fr; gap: 14px; align-items: center; height: 72px; padding: 0 28px; border-bottom: 1px solid rgba(232,233,237,.8); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 8px; width: fit-content; color: var(--ink); text-decoration: none; }
.brand-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 19px; font-weight: 900; letter-spacing: -.15em; transform: rotate(-4deg); }
.brand-symbol span { font-size: 9px; vertical-align: top; }
.brand-name { font-size: 15px; font-weight: 900; letter-spacing: .07em; }
.entity-mode-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.entity-mode-switch button { min-width: 54px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; }
.entity-mode-switch button.active { color: #fff; background: var(--ink); box-shadow: 0 3px 9px rgba(17,19,24,.15); }
body[data-entity-mode="stores"] .entity-mode-switch button.active { color: #442708; background: var(--lime); }
.alpha-console-button { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid #cad59f; border-radius: 999px; color: #303713; background: #f4ffd0; cursor: pointer; }
.alpha-console-button b { font-size: 9px; letter-spacing: .08em; }
.alpha-console-button span { color: #69713e; font-size: 9px; font-weight: 800; }
.location-pill { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border: 0; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; cursor: pointer; }
.location-pill svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.location-pill .chevron { width: 13px; }
.location-search { width: min(38vw, 280px); cursor: text; }
.location-search input { min-width: 0; width: 100%; outline: 0; border: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; text-overflow: ellipsis; }
.location-search > button { display: grid; flex: 0 0 auto; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.location-search > button:hover { background: var(--lime); }
.my-rank { justify-self: end; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; }
.my-rank small { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.my-rank strong { font-size: 19px; font-style: italic; }
.my-rank strong span { color: var(--purple); font-size: 12px; }

main { min-height: 100vh; padding-top: 72px; padding-bottom: 78px; }
.app-view { display: none; min-height: calc(100vh - 150px); animation: fade-in .26s ease; }
.app-view.active { display: block; }
@keyframes fade-in { from { opacity: .35; transform: translateY(5px); } }

.map-view.active { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; height: calc(100vh - 150px); min-height: 610px; }
.map-stage { position: relative; min-height: 510px; overflow: hidden; background: #e9ece8; cursor: grab; touch-action: none; user-select: none; overscroll-behavior: contain; }
.map-stage.map-dragging { cursor: grabbing; }
.map-canvas { --map-zoom: 1; --map-pan-x: 0px; --map-pan-y: 0px; --marker-scale: 1; --marker-hover-scale: 1.08; --marker-pop-scale: .72; position: absolute; top: -61.111%; left: -61.111%; width: 222.222%; height: 222.222%; transform: translate3d(var(--map-pan-x), var(--map-pan-y), 0) scale(var(--map-zoom)); transform-origin: 50% 50%; transition: transform .24s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.map-canvas.interacting { transition: none; }
.map-grid { position: absolute; inset: 0; opacity: .8; background-image: linear-gradient(27deg, transparent 46%, #fff 47%, #fff 50%, transparent 51%), linear-gradient(93deg, transparent 44%, #fff 45%, #fff 48%, transparent 49%), linear-gradient(-28deg, transparent 43%, rgba(255,255,255,.95) 44%, rgba(255,255,255,.95) 47%, transparent 48%); background-size: 180px 170px, 205px 240px, 260px 210px; }
.city-blocks { position: absolute; inset: 0; opacity: .62; background-image: repeating-linear-gradient(12deg, transparent 0 62px, rgba(188,194,188,.22) 63px 64px), repeating-linear-gradient(102deg, transparent 0 74px, rgba(180,188,181,.24) 75px 76px); background-size: 168px 152px, 190px 176px; }
.minor-road-network { position: absolute; inset: 0; opacity: .65; background-image: linear-gradient(16deg, transparent 48.8%, rgba(255,255,255,.94) 49%, rgba(255,255,255,.94) 51%, transparent 51.2%), linear-gradient(72deg, transparent 49%, rgba(255,255,255,.9) 49.2%, rgba(255,255,255,.9) 50.6%, transparent 50.8%), linear-gradient(-41deg, transparent 49%, rgba(255,255,255,.9) 49.2%, rgba(255,255,255,.9) 50.5%, transparent 50.7%); background-size: 145px 132px, 174px 158px, 218px 190px; }
.map-stage::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(158,167,158,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(158,167,158,.14) 1px, transparent 1px); background-size: 26px 26px; content: ""; }
.river { position: absolute; right: -7%; bottom: -11%; width: 48%; height: 36%; border-radius: 50% 0 0; background: #b9dfe8; transform: rotate(-9deg); border: 7px solid rgba(255,255,255,.55); }
.river span { position: absolute; top: 42%; left: 40%; color: #72aab8; font-size: 12px; letter-spacing: .4em; transform: rotate(9deg); }
.park { position: absolute; display: grid; place-items: center; color: #71927b; border: 2px solid rgba(96,139,105,.18); background: #cfe2c8; font-size: 11px; font-weight: 700; }
.park-one { right: 19%; bottom: 22%; width: 180px; height: 125px; border-radius: 48% 35% 44% 28%; transform: rotate(13deg); }
.park-one span { transform: rotate(-13deg); }
.park-two { top: 17%; left: 8%; width: 95px; height: 85px; border-radius: 40%; }
.park-two span { transform: rotate(-5deg); }
.road { position: absolute; border: solid #fff; border-width: 0 8px; background: #d9dcd8; box-shadow: 0 0 0 1px rgba(179,186,180,.3); }
.road-one { left: 34%; top: -12%; width: 32px; height: 126%; transform: rotate(20deg); }
.road-two { left: -10%; top: 41%; width: 120%; height: 31px; border-width: 8px 0; transform: rotate(-8deg); }
.road-three { left: 67%; top: -20%; width: 27px; height: 100%; transform: rotate(-34deg); }
.road-four { left: 12%; top: -22%; width: 23px; height: 105%; transform: rotate(44deg); }
.minor-road { z-index: 1; width: 8px; border-width: 0 3px; opacity: .82; }
.road-five { top: -10%; left: 48%; height: 116%; transform: rotate(7deg); }
.road-six { top: 8%; left: 78%; height: 92%; transform: rotate(29deg); }
.road-seven { top: 58%; left: -10%; width: 116%; height: 8px; border-width: 3px 0; transform: rotate(17deg); }
.road-eight { top: 22%; left: -8%; width: 118%; height: 8px; border-width: 3px 0; transform: rotate(-19deg); }
.transit-line { position: absolute; z-index: 2; top: 47%; left: -8%; width: 116%; height: 3px; border-top: 2px dashed rgba(77,149,99,.78); transform: rotate(-8deg); }
.transit-line span { position: absolute; right: 21%; top: -19px; padding: 2px 5px; color: #39734a; border-radius: 4px; background: rgba(235,248,238,.88); font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.map-label { position: absolute; z-index: 2; color: #a0a59f; padding: 3px 6px; background: rgba(255,255,255,.72); font-size: 9px; letter-spacing: .06em; }
.label-one { top: 33%; left: 45%; transform: rotate(12deg); }
.label-two { top: 25%; left: 28%; }
.label-three { right: 23%; bottom: 38%; }
.label-four { top: 43%; left: 52%; }
.label-five { right: 31%; bottom: 29%; }
.label-six { top: 38%; left: 39%; }
.label-seven { top: 47%; left: 56%; transform: rotate(77deg); }
.label-eight { right: 35%; bottom: 35%; transform: rotate(12deg); }
.label-nine { top: 27%; right: 25%; transform: rotate(-6deg); }
.district-detail, .street-detail { opacity: 0; transition: opacity .18s ease; }
.map-stage[data-detail="district"] .district-detail, .map-stage[data-detail="street"] .district-detail, .map-stage[data-detail="street"] .street-detail { opacity: 1; }
.landmark { position: absolute; z-index: 3; display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid #fff; border-radius: 5px; color: #fff; background: #8871d5; box-shadow: 0 3px 8px rgba(58,47,94,.22); font-size: 7px; font-weight: 900; }
.landmark-one { top: 44%; left: 55%; }
.landmark-two { right: 33%; bottom: 31%; background: #da7556; }
.landmark-three { top: 31%; right: 27%; width: 24px; background: #4b9a65; }
.self-location { position: absolute; z-index: 8; top: 50%; left: 50%; display: grid; width: 23px; height: 23px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #4285f4; box-shadow: 0 3px 10px rgba(22,58,126,.35); transform: translate(-50%,-50%); }
.self-location::before { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(66,133,244,.17); content: ""; animation: location-pulse 2s ease-out infinite; }
.self-location i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.self-location span { position: absolute; top: 26px; padding: 3px 6px; border-radius: 5px; color: #2765c7; background: rgba(255,255,255,.9); font-size: 8px; font-weight: 800; white-space: nowrap; }
@keyframes location-pulse { 0% { opacity: 1; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.35); } }

.map-toolbar { position: absolute; z-index: 8; top: 18px; right: 20px; left: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.filter-tabs { display: flex; gap: 5px; padding: 5px; border: 1px solid rgba(220,222,225,.9); border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(35,39,45,.08); pointer-events: auto; backdrop-filter: blur(10px); }
.map-filter { padding: 8px 13px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.map-filter.active { color: #fff; background: var(--ink); }
.filter-button, .recenter-button { border: 1px solid rgba(220,222,225,.9); background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(35,39,45,.09); cursor: pointer; backdrop-filter: blur(10px); }
.filter-button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; pointer-events: auto; }
.filter-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.map-markers { position: absolute; inset: 0; z-index: 5; }
.person-marker { position: absolute; width: 62px; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -50%) scale(var(--marker-scale)); transition: transform .2s, opacity .2s; animation: marker-pop .45s cubic-bezier(.2,.9,.2,1.25) both; }
.person-marker:hover { z-index: 10; transform: translate(-50%, -50%) scale(var(--marker-hover-scale)); }
.map-canvas.interacting .person-marker { animation: none; }
@keyframes marker-pop { from { opacity: 0; transform: translate(-50%, -35%) scale(var(--marker-pop-scale)); } }
.person-marker .marker-photo { display: block; width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(23,28,35,.25); }
.person-marker .marker-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person-marker::after { display: block; width: 0; height: 0; margin: -2px auto 0; border-top: 9px solid #fff; border-right: 7px solid transparent; border-left: 7px solid transparent; content: ""; filter: drop-shadow(0 4px 3px rgba(23,28,35,.15)); }
.marker-rank { position: absolute; top: -5px; left: -4px; display: grid; min-width: 22px; height: 22px; padding: 0 4px; place-items: center; color: var(--ink); border: 2px solid #fff; border-radius: 999px; background: var(--lime); font-size: 9px; font-weight: 900; box-shadow: 0 3px 7px rgba(18,21,27,.15); }
.marker-online { position: absolute; right: 5px; bottom: 8px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #43d17e; }
.recenter-button { position: absolute; z-index: 8; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.recenter-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zoom-controls { position: absolute; z-index: 9; bottom: 20px; left: 20px; display: grid; grid-template-columns: 38px 88px 38px; overflow: hidden; border: 1px solid rgba(220,222,225,.9); border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 8px 22px rgba(35,39,45,.09); backdrop-filter: blur(10px); }
.zoom-controls button { height: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.zoom-controls button:hover { background: var(--lime); }
.zoom-controls button:disabled { color: #c3c6cb; background: #f4f5f6; cursor: not-allowed; }
.zoom-controls span { display: grid; place-items: center; color: var(--muted); border-right: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 8px; font-weight: 800; }
.map-precision-hud { position: absolute; z-index: 8; bottom: 22px; left: 50%; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid rgba(220,222,225,.86); border-radius: 9px; color: #72777f; background: rgba(255,255,255,.88); box-shadow: 0 5px 16px rgba(35,39,45,.08); font-size: 8px; font-weight: 700; pointer-events: none; transform: translateX(-50%); backdrop-filter: blur(8px); }
.map-scale { display: flex; align-items: center; gap: 5px; }
.map-scale i { display: block; width: 48px; height: 5px; border: solid #555d65; border-width: 0 1px 1px; }
.map-scale b { min-width: 28px; color: #50565e; font-size: 8px; }
.gesture-hint { position: absolute; z-index: 7; top: 72px; left: 50%; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(33,38,45,.68); box-shadow: 0 6px 16px rgba(23,28,35,.15); font-size: 9px; font-weight: 800; pointer-events: none; opacity: 1; transform: translateX(-50%); transition: opacity .35s ease, transform .35s ease; backdrop-filter: blur(8px); }
.gesture-hint.used { opacity: 0; transform: translate(-50%, -5px); }
.browse-mode-switch { position: absolute; z-index: 20; top: 72px; left: 18px; display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(220,222,225,.9); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(35,39,45,.09); backdrop-filter: blur(10px); }
.browse-mode-switch button { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.browse-mode-switch button.active { color: #fff; background: var(--ink); }
.browse-mode-switch svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-view.list-mode.active { display: block; height: auto; min-height: calc(100vh - 150px); padding: 72px clamp(18px, 5vw, 60px) 50px; background: #f6f7f8; }
.map-view.list-mode .browse-mode-switch { top: 16px; left: 50%; transform: translateX(-50%); }
.map-view.list-mode .map-stage { display: none; }
.map-view.list-mode .nearby-sheet { max-width: 860px; margin: 0 auto; padding: 26px; border: 0; border-radius: 22px; box-shadow: 0 14px 40px rgba(23,27,34,.08); }
.map-view.list-mode .nearby-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-height: none; overflow: visible; }
.map-view.list-mode .nearby-card { min-width: 0; }
.radius-picker { position: absolute; z-index: 15; top: 70px; right: 20px; width: min(390px, calc(100% - 40px)); padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.radius-picker p { margin: 0 0 12px; font-size: 13px; font-weight: 800; }
.radius-picker > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.radius-picker button { padding: 8px 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.radius-picker button.active { border-color: var(--ink); color: var(--lime); background: var(--ink); }
.radius-picker small { display: block; margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.nearby-sheet { position: relative; z-index: 9; min-width: 0; padding: 30px 22px; overflow: hidden; border-left: 1px solid var(--line); background: #fff; }
.sheet-handle { display: none; }
.sheet-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.sheet-heading h1, .page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.055em; }
.live-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; color: #488c61; border-radius: 999px; background: #eaf8ef; font-size: 9px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #43d17e; box-shadow: 0 0 0 3px rgba(67,209,126,.15); }
.test-pool-note { margin: -12px 0 14px; padding: 8px 10px; border: 1px solid #e8dcff; border-radius: 10px; color: #746a82; background: #faf7ff; font-size: 8px; line-height: 1.45; }
.test-pool-note b { margin-right: 4px; color: var(--purple); letter-spacing: .08em; }
.store-register-cta { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; margin: -4px 0 14px; padding: 10px 13px; border: 1px solid #ffd59a; border-radius: 13px; color: #6d3f0d; background: linear-gradient(135deg,#fff9ed,#fff0d1); text-align: left; cursor: pointer; }
.store-register-cta[hidden] { display: none; }
.store-register-cta span { display: grid; gap: 2px; }
.store-register-cta b { font-size: 11px; }
.store-register-cta small { color: #9a7145; font-size: 8px; }
.store-register-cta > strong { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--lime); font-size: 18px; }
.list-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 9px; }
.list-controls label { min-width: 0; }
.list-controls label > span { display: block; margin: 0 0 4px 2px; color: var(--muted); font-size: 8px; font-weight: 800; }
.list-controls select { width: 100%; height: 35px; padding: 0 8px; outline: 0; border: 1px solid var(--line); border-radius: 9px; color: #4f545d; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.list-controls select:focus { border-color: var(--purple); }
.store-keyword-search { display: block; margin: -1px 0 9px; }
.store-keyword-search > span { display: block; margin: 0 0 4px 2px; color: var(--muted); font-size: 8px; font-weight: 800; }
.store-keyword-search input { width: 100%; height: 35px; padding: 0 10px; outline: 0; border: 1px solid var(--line); border-radius: 9px; color: #4f545d; background: #fff; font-size: 10px; font-weight: 700; }
.store-keyword-search input:focus { border-color: var(--purple); }
.result-summary { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; color: var(--muted); font-size: 8px; }
.result-summary button { padding: 4px 6px; border: 0; color: var(--purple); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.nearby-list { display: grid; gap: 11px; max-height: calc(100vh - 360px); overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.load-more-profiles { width: 100%; height: 38px; margin-top: 10px; border: 1px solid #ded5f7; border-radius: 10px; color: var(--purple); background: #faf8ff; font-size: 10px; font-weight: 900; cursor: pointer; }
.load-more-profiles:hover { background: #f2edff; }
.nearby-card { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px 12px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border .2s, transform .2s, box-shadow .2s; }
.nearby-card:hover { border-color: rgba(133,102,255,.4); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23,27,34,.08); }
.nearby-photo { position: relative; width: 64px; height: 72px; overflow: hidden; border-radius: 12px; }
.nearby-photo img { width: 100%; height: 100%; object-fit: cover; }
.nearby-photo span { position: absolute; right: 4px; bottom: 4px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--lime); font-size: 9px; font-weight: 900; }
.store-card .nearby-photo span { width: auto; min-width: 26px; padding: 0 5px; border-radius: 7px; }
.sponsored-badge { display: inline-flex; align-items: center; width: fit-content; padding: 2px 5px; border-radius: 5px; color: #7d470a; background: #ffe4b3; font-size: 7px; font-weight: 900; letter-spacing: .06em; vertical-align: middle; }
.nearby-photo .sponsored-badge { position: absolute; top: 4px; left: 4px; }
.store-score { display: flex; align-items: center; gap: 5px; }
.store-score b { color: #e68817; font-size: 10px; }
.store-score span { color: var(--muted); }
.personalization-reason { margin: 3px 0 0; color: #7754ae; font-size: 9px; font-weight: 800; }
.store-open { color: #9b7a63; font-style: normal; }
.store-open.active { color: #24965a; }
.store-products-preview { display: flex; gap: 4px; margin-top: 7px; overflow: hidden; }
.store-products-preview span { max-width: 145px; overflow: hidden; padding: 4px 6px; border-radius: 6px; color: #7d5a31; background: #fff6e8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.store-marker .marker-photo { border-radius: 16px; }
.store-marker .marker-photo img { border-radius: 12px; }
.store-marker.sponsored .marker-photo { background: var(--lime); }
.store-marker .marker-rank { color: #713f08; background: var(--lime); }
.nearby-info { min-width: 0; }
.nearby-info strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.nearby-info strong i { color: #648bff; font-size: 10px; font-style: normal; }
.test-badge { display: inline-flex; align-items: center; padding: 2px 4px; border-radius: 4px; color: #6b51bb !important; background: #eee8ff; font-size: 7px !important; font-style: normal; font-weight: 900; vertical-align: middle; }
.nearby-info p { overflow: hidden; margin: 5px 0 6px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tag-row { display: flex; gap: 4px; }
.tag-row span { padding: 4px 6px; border-radius: 5px; color: #676c77; background: var(--soft); font-size: 8px; font-weight: 700; }
.mini-star { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 14px; cursor: pointer; }
.mini-star.voted { border-color: var(--lime-dark); background: var(--lime); }
.card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding-top: 2px; }
.card-action { display: flex; min-width: 0; height: 30px; align-items: center; justify-content: center; gap: 4px; padding: 0 5px; border: 1px solid var(--line); border-radius: 8px; color: #6f747d; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.card-action:hover { border-color: #bbbfc7; background: var(--soft); }
.card-action b { font-size: 12px; font-weight: 500; }
.card-action.favorite.active { color: #ef4668; border-color: #ffc2ce; background: #fff1f4; }
.card-action.star-action.active { color: #6d8612; border-color: #d7ed81; background: #f5fbdc; }
.card-action.instagram { color: #a841b3; }
.card-action:disabled { color: #b2b5ba; background: #f5f5f6; cursor: not-allowed; }
.test-profile-disclosure { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px 14px; padding: 10px 12px; border: 1px solid #e8dcff; border-radius: 12px; color: #6b51bb; background: #faf7ff; font-size: 9px; }
.test-profile-disclosure span { color: var(--muted); }

.swipe-view { min-height: calc(100vh - 150px); padding: 24px 20px 28px; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 18%, #313847 0, #181b22 34%, #0f1116 72%); }
.swipe-view.active { display: flex; flex-direction: column; }
.swipe-head { display: flex; align-items: end; justify-content: space-between; width: min(100%, 520px); margin: 0 auto 18px; }
.swipe-head h1 { margin: 0; font-size: 24px; letter-spacing: -.05em; }
.swipe-head > span { color: #969da9; font-size: 9px; }
.swipe-head > span b { color: var(--lime); font-size: 13px; }
.swipe-deck-wrap { position: relative; flex: 1; display: grid; min-height: 400px; place-items: center; }
.swipe-deck { position: relative; width: min(88vw, 390px); height: min(59vh, 540px); min-height: 390px; }
.swipe-card { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: #2a2d34; box-shadow: 0 24px 70px rgba(0,0,0,.42); user-select: none; touch-action: none; transform-origin: 50% 92%; transition: transform .28s ease, opacity .28s ease; }
.swipe-card:nth-last-child(2) { transform: translateY(10px) scale(.965); opacity: .84; }
.swipe-card:nth-last-child(3) { transform: translateY(20px) scale(.93); opacity: .6; }
.swipe-card.top-card { cursor: grab; }
.swipe-card.dragging { cursor: grabbing; transition: none; }
.swipe-card.swipe-left { opacity: 0; transform: translateX(-135%) rotate(-22deg) !important; }
.swipe-card.swipe-right { opacity: 0; transform: translateX(135%) rotate(22deg) !important; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(7,9,13,.94)); content: ""; pointer-events: none; }
.swipe-choice { position: absolute; z-index: 4; top: 32px; padding: 7px 12px; border: 3px solid; border-radius: 9px; font-size: 22px; font-weight: 900; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.swipe-choice.nope { right: 23px; color: #ff6d87; border-color: #ff6d87; transform: rotate(12deg); }
.swipe-choice.yes { left: 23px; color: var(--lime); border-color: var(--lime); transform: rotate(-12deg); }
.swipe-card-info { position: absolute; z-index: 3; right: 22px; bottom: 22px; left: 22px; color: #fff; pointer-events: none; }
.swipe-card-info .rank-chip { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 5px 8px; border-radius: 7px; color: var(--ink); background: var(--lime); font-size: 9px; font-weight: 900; }
.swipe-card-info h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.swipe-card-info h2 span { color: #7596ff; font-size: 13px; }
.swipe-card-info > p { margin: 6px 0 12px; color: #d1d4da; font-size: 10px; }
.swipe-card-info .tag-row span { color: #fff; background: rgba(255,255,255,.16); }
.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 17px; }
.swipe-control { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #373c46; border-radius: 50%; color: #a8aeb8; background: #1f232b; box-shadow: 0 8px 25px rgba(0,0,0,.22); font-size: 22px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.swipe-control:hover { transform: translateY(-3px); }
.swipe-control.pass { width: 60px; height: 60px; color: #ff6d87; border-color: rgba(255,109,135,.45); font-size: 31px; }
.swipe-control.star { width: 60px; height: 60px; color: var(--ink); border-color: var(--lime); background: var(--lime); }
.swipe-control.info { font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.swipe-guide { margin: 11px 0 0; color: #727985; font-size: 9px; text-align: center; }
.swipe-guide span:first-child { color: #ff6d87; }
.swipe-guide span:last-child { color: var(--lime); }
.swipe-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; color: #8f96a2; border: 1px dashed #3b404a; border-radius: 26px; text-align: center; }
.swipe-empty strong { color: #fff; font-size: 19px; }
.swipe-empty p { font-size: 11px; line-height: 1.6; }

.page-head { padding: 48px clamp(24px, 6vw, 74px) 34px; text-align: center; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.page-head > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.dark-head { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.dark-head::before { position: absolute; top: -130px; left: 50%; width: 480px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,63,.18), transparent 67%); content: ""; transform: translateX(-50%); }
.dark-head .eyebrow { color: var(--lime); }
.dark-head > p:last-of-type { color: #9da2ad; }
.period-switch { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: #292d35; }
.period-switch button { padding: 8px 22px; border: 0; border-radius: 999px; color: #999faa; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.period-switch button.active { color: var(--ink); background: var(--lime); }
.ranking-body { max-width: 760px; margin: 0 auto; padding: 24px 24px 60px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; min-height: 245px; margin-bottom: 28px; }
.podium-item { position: relative; text-align: center; }
.podium-item:nth-child(2) { order: -1; }
.podium-photo { position: relative; width: 92px; height: 112px; margin: 0 auto 11px; padding: 4px; border-radius: 50px 50px 18px 18px; background: #fff; box-shadow: 0 12px 35px rgba(22,25,33,.14); }
.podium-item.first .podium-photo { width: 110px; height: 135px; border: 3px solid var(--lime); }
.podium-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.podium-number { position: absolute; top: -11px; left: 50%; display: grid; width: 30px; height: 30px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #dfe1e6; font-size: 12px; font-weight: 900; transform: translateX(-50%); }
.first .podium-number { background: var(--lime); }
.podium-item strong { display: block; font-size: 14px; }
.podium-item small { color: var(--muted); font-size: 10px; }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 30px 48px 1fr auto; align-items: center; gap: 9px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.rank-row > b { text-align: center; font-size: 13px; font-style: italic; }
.rank-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.rank-row strong { display: block; font-size: 13px; }
.rank-row span { color: var(--muted); font-size: 9px; }
.rank-stars { color: var(--ink) !important; font-size: 11px !important; font-weight: 800; }
.rank-stars i { color: var(--lime-dark); font-style: normal; }
.rank-quick-actions { grid-column: 2 / -1; display: flex; gap: 5px; }
.rank-quick-actions .card-action { flex: 1; }
.my-rank-card { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; margin-top: 18px; padding: 18px; border-radius: 17px; color: #fff; background: var(--ink); }
.my-avatar { display: grid; width: 50px; height: 50px; place-items: center; border: 2px solid var(--lime); border-radius: 50%; background: linear-gradient(135deg,#bd7d65,#382a28); font-weight: 800; }
.my-rank-copy > span { color: #9ea3ad; font-size: 9px; }
.my-rank-copy strong { display: block; margin: 2px 0 7px; font-size: 16px; }
.my-rank-copy strong small { margin-left: 4px; color: var(--lime); font-size: 9px; }
.rank-progress { height: 3px; overflow: hidden; border-radius: 3px; background: #3b3f47; }
.rank-progress i { display: block; width: 72%; height: 100%; background: var(--lime); }
.my-rank-copy > small { color: #848a95; font-size: 8px; }
.my-rank-card button { padding: 8px 10px; border: 1px solid #454952; border-radius: 8px; color: #cbd0d7; background: transparent; font-size: 9px; cursor: pointer; }

.likes-view, .profile-view { background: #fafafa; }
.like-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 700px; margin: 0 auto 24px; padding: 0 24px; }
.like-summary div { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.like-summary strong { font-size: 28px; }
.like-summary span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.connection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 850px; margin: auto; padding: 0 24px 50px; }
.connection-card { position: relative; aspect-ratio: .76; overflow: hidden; border-radius: 18px; background: #ddd; cursor: pointer; }
.connection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.connection-card:hover img { transform: scale(1.04); }
.connection-card::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(12,14,18,.85)); content: ""; }
.connection-info { position: absolute; z-index: 2; right: 13px; bottom: 13px; left: 13px; color: #fff; }
.connection-info strong { display: block; font-size: 14px; }
.connection-info span { font-size: 9px; opacity: .75; }

.profile-hero { position: relative; height: 280px; background: #17191e; }
.profile-cover { position: absolute; inset: 0; opacity: .55; background: linear-gradient(110deg, #28254a, #b77057 50%, #252526); }
.profile-cover::after { position: absolute; inset: 0; background: radial-gradient(circle at 65% 40%, rgba(255,255,255,.26), transparent 16%), linear-gradient(0deg, rgba(17,19,24,.7), transparent 60%); content: ""; }
.profile-main-photo { position: absolute; bottom: -53px; left: 50%; display: grid; width: 126px; height: 126px; place-items: end center; overflow: hidden; border: 5px solid #fafafa; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 30%, #d6a995 0 16%, transparent 17%), radial-gradient(circle at 49% 36%, #3e2823 0 25%, transparent 26%), linear-gradient(145deg,#c08770,#4f3734); box-shadow: 0 12px 30px rgba(20,23,30,.2); }
.profile-main-photo span { margin-bottom: 16px; padding: 3px 7px; border-radius: 8px; background: rgba(0,0,0,.45); font-size: 9px; }
.settings-button { position: absolute; top: 20px; right: 22px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(17,19,24,.4); cursor: pointer; }
.settings-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.profile-content { max-width: 680px; margin: 0 auto; padding: 76px 24px 60px; text-align: center; }
.profile-content h1 { margin: 0; font-size: 27px; letter-spacing: -.05em; }
.profile-content h1 span { display: inline-grid; width: 18px; height: 18px; place-items: center; color: #fff; border-radius: 50%; background: #648bff; font-size: 10px; vertical-align: 4px; }
.profile-location { margin: 7px 0 18px; color: var(--muted); font-size: 11px; }
.profile-bio { max-width: 460px; margin: 0 auto; color: #555a63; font-size: 13px; line-height: 1.7; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 27px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-stats div { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border: 0; }
.profile-stats strong { font-size: 20px; }
.profile-stats span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.social-connect { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.instagram-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(135deg,#7d39c7,#ed3c6b,#f3a73b); font-size: 25px; }
.social-connect strong, .social-connect small { display: block; }
.social-connect strong { font-size: 12px; }
.social-connect small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.social-connect b { padding: 7px 10px; color: var(--purple); border-radius: 8px; background: #f0edff; font-size: 9px; }
.instagram-import { overflow: hidden; border-radius: 15px; }
.instagram-link-form { padding: 14px; border: solid var(--line); border-width: 0 1px 1px; border-radius: 0 0 15px 15px; background: #fff; text-align: left; }
.instagram-link-form > label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.instagram-link-form .instagram-url-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.instagram-link-form input { min-width: 0; height: 41px; padding: 0 11px; outline: 0; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.instagram-link-form input:focus { border-color: #b749d0; box-shadow: 0 0 0 3px rgba(183,73,208,.1); }
.instagram-link-form button { padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#7d39c7,#ed3c6b,#f3a73b); font-size: 10px; font-weight: 800; cursor: pointer; }
.instagram-link-form p { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.instagram-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: solid var(--line); border-width: 0 1px 1px; border-radius: 0 0 15px 15px; background: #fff; text-align: left; }
.instagram-status span { min-width: 0; }
.instagram-status strong, .instagram-status small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instagram-status strong { font-size: 11px; }
.instagram-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.instagram-status a { flex: 0 0 auto; padding: 7px 9px; color: #a541be; border-radius: 7px; background: #f8edf9; font-size: 9px; font-weight: 800; text-decoration: none; }
.account-owner-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 0 13px; padding: 0; border: 0; }
.account-owner-switch legend { grid-column: 1 / -1; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.account-owner-switch label { position: relative; cursor: pointer; }
.account-owner-switch input { position: absolute; opacity: 0; pointer-events: none; }
.account-owner-switch span { display: grid; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 700; }
.account-owner-switch input:checked + span { color: #fff; border-color: var(--ink); background: var(--ink); }
.pre-extra-fields { grid-template-columns: 1fr 82px; gap: 8px; margin-top: 10px; padding: 11px; border-radius: 11px; background: #faf7fb; }
.pre-extra-fields:not([hidden]) { display: grid; }
.pre-extra-fields > label { font-size: 9px; font-weight: 700; }
.pre-extra-fields input { display: block; width: 100%; margin-top: 5px; }
.pre-extra-fields .pre-confirm { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-weight: 500; line-height: 1.4; }
.pre-extra-fields .pre-confirm input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--purple); }
.pre-legend { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 10px 12px; border-radius: 11px; color: #6b6570; background: #f7f2f8; font-size: 9px; line-height: 1.5; }
.pre-legend b, .pre-badge { display: inline-grid; flex: 0 0 auto; padding: 4px 7px; place-items: center; border-radius: 6px; color: #fff; background: #9a5daf; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.pre-directory-section { margin-top: 24px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.pre-directory-section > div:first-child { display: flex; align-items: end; justify-content: space-between; }
.pre-directory-section h2 { margin: 0; font-size: 17px; }
.pre-directory-section > p { margin: 7px 0 15px; color: var(--muted); font-size: 9px; }
.pre-directory { display: grid; gap: 7px; }
.pre-directory-empty { padding: 17px; border-radius: 11px; color: var(--muted); background: var(--soft); font-size: 10px; text-align: center; }
.pre-directory-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 8px; border-radius: 11px; background: var(--soft); }
.pre-directory-card img { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; }
.pre-directory-card strong, .pre-directory-card small { display: block; }
.pre-directory-card strong { font-size: 10px; }
.pre-directory-card small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.pre-directory-card a { padding: 7px 9px; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#7d39c7,#ed3c6b,#f3a73b); font-size: 8px; font-weight: 800; text-decoration: none; }
.pre-profile-disclosure { margin: 0 22px 12px; padding: 12px; border-radius: 12px; background: #f7f2f8; }
.pre-profile-disclosure p { margin: 0 0 9px; color: #685f6c; font-size: 9px; line-height: 1.5; }
.pre-profile-links { display: flex; gap: 7px; }
.pre-profile-links a, .pre-profile-links button { flex: 1; display: grid; min-height: 34px; place-items: center; border: 0; border-radius: 8px; font-size: 8px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pre-profile-links a { color: #fff; background: linear-gradient(135deg,#7d39c7,#ed3c6b,#f3a73b); }
.pre-profile-links button { color: #7a707d; background: #e9e0eb; }
.swipe-card-info h2 .pre-badge { display: inline-grid; width: auto; height: auto; padding: 5px 7px; border-radius: 6px; color: #fff; background: #9a5daf; font-size: 8px; vertical-align: 5px; }
.dialog-profile-info h2 .pre-badge { display: inline-grid; padding: 5px 7px; border-radius: 6px; color: #fff; background: #9a5daf; font-size: 8px; vertical-align: 4px; }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 12px; }
.profile-section-title h2 { margin: 0; font-size: 16px; }
.profile-section-title button { border: 0; color: var(--purple); background: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.photo { aspect-ratio: .82; border-radius: 13px; background-size: cover; background-position: center; }
.photo-1 { background-image: linear-gradient(145deg, transparent,rgba(0,0,0,.15)), url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=400&q=80'); }
.photo-2 { background-image: linear-gradient(145deg, transparent,rgba(0,0,0,.15)), url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=400&q=80'); }
.photo-3 { background-image: linear-gradient(145deg, transparent,rgba(0,0,0,.15)), url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=400&q=80'); }
.photo-4 { background-image: linear-gradient(145deg, transparent,rgba(0,0,0,.15)), url('https://images.unsplash.com/photo-1524250502761-1ac6f2e30d43?auto=format&fit=crop&w=400&q=80'); }
.photo-5 { background-image: linear-gradient(145deg, transparent,rgba(0,0,0,.15)), url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=400&q=80'); }
.add-photo { display: flex; aspect-ratio: .82; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed #cdd0d6; border-radius: 13px; color: var(--muted); background: var(--soft); font-size: 23px; cursor: pointer; }
.add-photo span { font-size: 9px; }
.safety-card { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 12px; margin-top: 28px; padding: 17px; border-radius: 15px; background: #eff5ee; text-align: left; }
.safety-card svg { width: 28px; fill: none; stroke: #4b835c; stroke-width: 1.7; }
.safety-card strong { font-size: 11px; }
.safety-card p { margin: 3px 0 0; color: #6c7d70; font-size: 8px; line-height: 1.5; }
.safety-card button { border: 0; color: #4b835c; background: none; font-size: 9px; font-weight: 700; cursor: pointer; }

.bottom-nav { position: fixed; z-index: 50; right: max(calc((100vw - 1180px)/2), 0px); bottom: 0; left: max(calc((100vw - 1180px)/2), 0px); display: grid; grid-template-columns: repeat(5, 1fr); height: 78px; padding: 7px clamp(16px, 5vw, 60px) calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(230,232,235,.94); background: rgba(255,255,255,.95); backdrop-filter: blur(18px); }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; color: #989da6; background: transparent; font-size: 9px; cursor: pointer; }
.nav-item svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--ink); font-weight: 800; }
.nav-item.active::before { position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime-dark); content: ""; }
.nav-item i { position: absolute; top: 9px; right: calc(50% - 13px); width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: #ff5579; }
.center-action { align-self: start; justify-self: center; display: grid; width: 58px; height: 58px; margin-top: -27px; place-items: center; border: 6px solid #fff; border-radius: 50%; color: var(--ink); background: var(--lime); box-shadow: 0 8px 24px rgba(159,192,28,.32); cursor: pointer; }
.center-action span { font-size: 22px; }

.profile-dialog { width: min(92vw, 430px); max-height: 92vh; padding: 0; overflow: auto; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 35px 100px rgba(15,18,23,.38); }
.profile-dialog::backdrop, .onboarding-dialog::backdrop, .store-dialog::backdrop { background: rgba(11,13,17,.62); backdrop-filter: blur(6px); }
.gift-dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(13,16,22,.32); }
.gift-dialog::backdrop { background: rgba(11,13,17,.62); backdrop-filter: blur(6px); }
.gift-dialog form { padding: 25px; }
.gift-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.gift-header h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.gift-header > button { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; cursor: pointer; }
.gift-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 23px 0 14px; }
.gift-options label { position: relative; cursor: pointer; }
.gift-options input { position: absolute; opacity: 0; pointer-events: none; }
.gift-options span { display: flex; min-height: 105px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.gift-options input:checked + span { border-color: var(--purple); background: #f4f1ff; box-shadow: 0 0 0 3px rgba(133,102,255,.1); }
.gift-options b { font-size: 30px; }
.gift-options strong { margin-top: 6px; font-size: 11px; }
.gift-options small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.gift-note { margin: 0 0 13px; color: var(--muted); font-size: 8px; text-align: center; }
.gift-send { width: 100%; height: 47px; border: 0; border-radius: 13px; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 900; cursor: pointer; }
.store-dialog { width: min(94vw, 600px); max-height: 92vh; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(13,16,22,.32); }
.store-dialog form { padding: 25px; }
.store-form-intro { margin: 10px 0 19px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.store-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.store-form-grid label { display: grid; gap: 5px; }
.store-form-grid label.wide { grid-column: 1 / -1; }
.store-form-grid label > span, .promotion-plans legend { color: #656a73; font-size: 9px; font-weight: 800; }
.store-form-grid input, .store-form-grid select, .store-form-grid textarea { width: 100%; min-width: 0; padding: 0 11px; outline: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; }
.store-form-grid input, .store-form-grid select { height: 40px; }
.store-form-grid textarea { min-height: 78px; padding-top: 10px; resize: vertical; }
.store-form-grid input:focus, .store-form-grid select:focus, .store-form-grid textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(232,121,36,.1); }
.promotion-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 18px 0 13px; padding: 0; border: 0; }
.promotion-plans legend { margin-bottom: 7px; }
.promotion-plans label { position: relative; cursor: pointer; }
.promotion-plans input { position: absolute; opacity: 0; }
.promotion-plans span { display: grid; min-height: 70px; align-content: center; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.promotion-plans input:checked + span { border-color: #eda64d; background: #fff6e8; box-shadow: 0 0 0 3px rgba(237,166,77,.11); }
.promotion-plans b { font-size: 10px; }
.promotion-plans small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.dialog-profile-photo { position: relative; height: 470px; overflow: hidden; background: #ddd; }
.dialog-profile-photo > img { width: 100%; height: 100%; object-fit: cover; }
.dialog-profile-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,12,16,.92)); content: ""; }
.dialog-close { position: absolute; z-index: 5; top: 16px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(20,22,27,.3); font-size: 24px; cursor: pointer; }
.photo-dots { position: absolute; z-index: 4; top: 12px; right: 65px; left: 14px; display: flex; gap: 4px; }
.photo-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.38); }
.photo-dots i:first-child { background: #fff; }
.dialog-profile-info { position: absolute; z-index: 3; right: 22px; bottom: 24px; left: 22px; color: #fff; }
.dialog-profile-info h2 { margin: 0; font-size: 28px; }
.dialog-profile-info h2 span { color: #7b9dff; font-size: 15px; }
.dialog-profile-info p { margin: 6px 0 12px; font-size: 11px; opacity: .8; }
.dialog-profile-info .tag-row span { color: #fff; background: rgba(255,255,255,.17); }
.dialog-bio { padding: 20px 22px 14px; color: #585d66; font-size: 12px; line-height: 1.65; }
.store-detail-photo { height: 380px; }
.detail-sponsored { position: absolute; z-index: 4; top: 18px; left: 18px; padding: 5px 8px; border-radius: 7px; color: #5e3608; background: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.swipe-sponsored { position: absolute; z-index: 3; top: 18px; right: 18px; padding: 5px 8px; border-radius: 7px; color: #5e3608; background: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.store-menu { padding: 2px 22px 12px; }
.store-menu h3 { margin: 0 0 8px; font-size: 13px; }
.store-menu > div { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.store-menu button { padding: 6px 8px; border: 1px solid #ffd59a; border-radius: 8px; color: #8a510f; background: #fff7eb; font-size: 8px; font-weight: 800; cursor: pointer; }
.store-link-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 8px 22px; }
.store-link-grid button { height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.store-detail-actions .profile-pass.active { color: #ef4668; background: #fff1f4; }
body[data-entity-mode="stores"] .pre-directory-section, body[data-entity-mode="stores"] .my-rank-card, body[data-entity-mode="stores"] .like-summary { display: none; }
.dialog-actions { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; padding: 10px 22px 24px; }
.dialog-actions button { height: 48px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 800; cursor: pointer; }
.dialog-actions .send-star { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.dialog-actions .send-star.voted { color: #777d86; border-color: var(--line); background: var(--soft); }
.profile-safety-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px 16px; padding: 12px; border: 1px solid #eadfce; border-radius: 14px; background: #fffaf4; }
.profile-safety-action div { display: grid; gap: 3px; }
.profile-safety-action b { color: #5f4828; font-size: 11px; }
.profile-safety-action small { color: #766c61; font-size: 9px; line-height: 1.45; }
.profile-safety-action button { flex: 0 0 auto; min-height: 40px; padding: 8px 10px; border: 1px solid #d9c8ad; border-radius: 10px; color: #5f4828; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.onboarding-dialog { width: min(90vw, 430px); padding: 0; border: 0; border-radius: 26px; }
.onboarding-dialog form { padding: 34px; text-align: center; }
.age-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 20px; place-items: center; border-radius: 17px; color: var(--lime); background: var(--ink); font-size: 16px; font-weight: 900; transform: rotate(-4deg); }
.onboarding-dialog h2 { margin: 0; font-size: 23px; letter-spacing: -.05em; }
.onboarding-dialog ul { display: grid; gap: 11px; margin: 23px 0; padding: 0; list-style: none; text-align: left; }
.onboarding-dialog li { display: flex; gap: 9px; color: #60656e; font-size: 11px; line-height: 1.55; }
.onboarding-dialog li span { color: #5d841a; font-weight: 900; }
.onboarding-dialog button { width: 100%; height: 48px; border: 0; border-radius: 14px; color: var(--ink); background: var(--lime); font-size: 13px; font-weight: 800; cursor: pointer; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 96px; padding: 12px 17px; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: 0 14px 38px rgba(17,19,24,.25); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .22s, transform .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.storage-status { position: fixed; z-index: 101; top: 76px; left: 50%; width: min(92vw, 560px); padding: 10px 14px; border: 1px solid #e5b65d; border-radius: 12px; color: #5f4211; background: #fff6df; box-shadow: 0 10px 30px rgba(17,19,24,.14); font-size: 12px; font-weight: 700; line-height: 1.45; transform: translateX(-50%); }

@media (max-width: 760px) {
  .topbar { grid-template-columns: auto auto auto minmax(0,1fr); gap: 7px; height: 64px; padding: 0 12px; }
  .brand-name { display: none; }
  .alpha-console-button { width: 34px; padding: 0; justify-content: center; }
  .alpha-console-button span { display: none; }
  .brand-symbol { width: 31px; height: 31px; }
  .my-rank { display: none; }
  .entity-mode-switch button { min-width: 43px; height: 28px; padding: 0 7px; font-size: 9px; }
  .location-search { width: 100%; }
  main { padding-top: 64px; padding-bottom: 72px; }
  .map-view.active { display: block; height: auto; min-height: calc(100vh - 136px); }
  .map-stage { height: calc(100vh - 228px); min-height: 470px; }
  .nearby-sheet { min-height: 255px; margin-top: -22px; padding: 13px 17px 20px; overflow: visible; border: 0; border-radius: 23px 23px 0 0; box-shadow: 0 -6px 28px rgba(27,31,38,.09); }
  .sheet-handle { display: block; width: 35px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #d4d6da; }
  .sheet-heading { align-items: center; margin-bottom: 14px; }
  .sheet-heading h1 { font-size: 19px; }
  .nearby-list { display: flex; gap: 10px; max-height: none; margin-right: -17px; overflow-x: auto; padding-right: 17px; scrollbar-width: none; }
  .nearby-list::-webkit-scrollbar { display: none; }
  .nearby-card { flex: 0 0 276px; grid-template-columns: 55px 1fr; gap: 8px 9px; padding: 8px; }
  .nearby-photo { width: 55px; height: 64px; }
  .mini-star { width: 30px; height: 30px; }
  .map-toolbar { top: 12px; right: 14px; left: 14px; }
  .map-filter { padding: 7px 11px; }
  .filter-button { width: 39px; height: 39px; }
  .person-marker { transform: translate(-50%, -50%) scale(var(--marker-scale)); }
  .person-marker:hover { transform: translate(-50%, -50%) scale(var(--marker-hover-scale)); }
  .recenter-button { right: 14px; bottom: 35px; }
  .map-precision-hud { right: auto; bottom: 83px; left: 14px; transform: none; }
  .gesture-hint { top: 62px; max-width: calc(100% - 28px); overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .radius-picker { top: 61px; right: 14px; }
  .swipe-view { min-height: calc(100vh - 136px); padding: 15px 14px 16px; }
  .swipe-head { margin-bottom: 10px; }
  .swipe-head h1 { font-size: 19px; }
  .swipe-head > span { max-width: 94px; text-align: right; }
  .swipe-deck-wrap { min-height: 370px; }
  .swipe-deck { width: min(88vw, 365px); height: min(60vh, 520px); min-height: 370px; }
  .swipe-card { border-radius: 23px; }
  .swipe-actions { gap: 11px; margin-top: 12px; }
  .swipe-control { width: 45px; height: 45px; }
  .swipe-control.pass, .swipe-control.star { width: 54px; height: 54px; }
  .swipe-card-info { right: 18px; bottom: 19px; left: 18px; }
  .swipe-card-info h2 { font-size: 27px; }
  .bottom-nav { height: 72px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .center-action { width: 54px; height: 54px; margin-top: -25px; }
  .page-head { padding: 38px 22px 30px; }
  .page-head h1 { font-size: 31px; }
  .ranking-body { padding: 15px 17px 40px; }
  .podium { gap: 5px; min-height: 230px; }
  .podium-photo { width: 78px; height: 98px; }
  .podium-item.first .podium-photo { width: 94px; height: 122px; }
  .rank-row { grid-template-columns: 24px 44px 1fr auto; gap: 8px; padding: 9px 10px; }
  .rank-row img { width: 44px; height: 44px; }
  .my-rank-card { grid-template-columns: 44px 1fr; }
  .my-avatar { width: 44px; height: 44px; }
  .my-rank-card > button { display: none; }
  .connection-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 17px 40px; }
  .like-summary { padding: 0 17px; }
  .profile-hero { height: 230px; }
  .profile-content { padding: 70px 17px 40px; }
  .profile-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 27px 27px 0 0; }
  .dialog-profile-photo { height: min(65vh, 500px); }
  .store-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 27px 27px 0 0; }
  .store-dialog form { padding: 21px 17px calc(21px + env(safe-area-inset-bottom)); }
  .store-form-grid { grid-template-columns: 1fr; }
  .store-form-grid label.wide { grid-column: auto; }
  .promotion-plans { grid-template-columns: 1fr; }
  .promotion-plans span { min-height: 54px; }
  .store-detail-photo { height: min(55vh, 430px); }
  .profile-safety-action { margin: 0 16px 14px; align-items: stretch; flex-direction: column; }
  .profile-safety-action button { width: 100%; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body[data-active-view="swipe"] { background: #090a0d; }
body[data-active-view="swipe"] .app-shell { background: #090a0d; }
body[data-active-view="swipe"] .topbar { display: none; }
body[data-active-view="swipe"] main { padding-top: 0; padding-bottom: 88px; background: #090a0d; }
body[data-active-view="swipe"] .bottom-nav { height: 88px; border-top-color: #191b20; background: rgba(5,6,8,.97); }
body[data-active-view="swipe"] .nav-item { color: #8e929a; }
body[data-active-view="swipe"] .nav-item.active { color: #fff; }
body[data-active-view="swipe"] .nav-item.active::before { display: none; }
body[data-active-view="swipe"] .nav-item.active svg { fill: #fff; stroke: #fff; }

.swipe-view.active { width: min(100%, 500px); height: calc(100vh - 88px); min-height: 610px; margin: 0 auto; padding: 10px 10px 12px; background: #090a0d; }
.taste-banner { position: relative; z-index: 10; display: grid; grid-template-columns: 52px 1fr 18px; align-items: center; gap: 11px; min-height: 76px; padding: 11px 14px; border-radius: 19px; color: #1e2025; background: rgba(250,250,250,.96); box-shadow: 0 10px 28px rgba(0,0,0,.24); }
.taste-heart { display: grid; width: 46px; height: 46px; place-items: center; color: #ff304b; border: 5px solid #f5cbd1; border-radius: 50%; background: #f4e4e5; font-size: 24px; }
.taste-banner > span:nth-child(2) { min-width: 0; }
.taste-banner strong, .taste-banner small { display: block; }
.taste-banner strong { margin-bottom: 4px; font-size: 16px; }
.taste-banner small { color: #484b52; font-size: 12px; }
.taste-banner small b { color: #e9344d; }
.taste-banner > i { align-self: start; color: #9b9da2; font-size: 15px; font-style: normal; }
.photo-progress { z-index: 9; display: flex; gap: 4px; height: 18px; align-items: center; padding: 0 5px; }
.photo-progress i { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.23); }
.photo-progress i.active { background: #fff; }
.swipe-view .swipe-deck-wrap { flex: 1; min-height: 0; }
.swipe-view .swipe-deck { width: 100%; height: 100%; min-height: 0; }
.swipe-view .swipe-card { border: 0; border-radius: 23px 23px 0 0; box-shadow: none; }
.swipe-view .swipe-card:nth-last-child(2) { transform: translateY(4px) scale(.987); }
.swipe-view .swipe-card:nth-last-child(3) { transform: translateY(8px) scale(.974); }
.swipe-view .swipe-card::after { inset: 44% 0 0; background: linear-gradient(transparent, rgba(7,8,11,.97)); }
.swipe-view .swipe-card-info { right: 22px; bottom: 25px; left: 22px; }
.swipe-view .swipe-card-info .rank-chip { margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; color: #17191e; background: #fff; font-size: 11px; }
.swipe-view .swipe-card-info h2 { font-size: 32px; }
.swipe-view .swipe-card-info h2 span { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #15171b; background: #fff; font-size: 11px; vertical-align: 4px; }
.swipe-view .swipe-card-info > p { display: flex; align-items: center; gap: 6px; margin: 8px 0 14px; color: #fff; font-size: 13px; }
.swipe-view .swipe-card-info > p::before { content: "⌖"; font-size: 19px; }
.swipe-view .swipe-card-info .tag-row { display: none; }
.swipe-actions { display: grid; grid-template-columns: 62px minmax(100px,1fr) 54px 62px; align-items: center; gap: 9px; min-height: 82px; margin: 0; padding: 10px 8px 7px; background: #090a0d; }
.swipe-control { width: 54px; height: 54px; border-color: #343740; color: #fff; background: #202228; box-shadow: none; }
.swipe-control.pass { width: 62px; height: 62px; color: #fff; border-color: #3d4048; font-size: 38px; font-weight: 400; }
.swipe-control.star { width: 54px; height: 54px; color: #8caefc; border-color: #3d4048; background: #202228; font-size: 24px; }
.swipe-control.heart { width: 62px; height: 62px; color: #ff2b46; border-color: #3d4048; font-size: 31px; }
.swipe-message { min-width: 0; height: 50px; overflow: hidden; padding: 0 15px; border: 1px solid #32353d; border-radius: 999px; color: #eceef2; background: #25272d; font-size: 12px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.tinder-nav { grid-template-columns: repeat(5, 1fr); }
.tinder-nav .nav-item { gap: 6px; font-size: 10px; }
.tinder-nav .nav-item svg { width: 23px; height: 23px; }
.tinder-nav .nav-item b { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 23px; height: 18px; padding: 0 5px; color: #fff; border: 2px solid #07080a; border-radius: 999px; background: #f12e3f; font-size: 9px; line-height: 14px; }

@media (max-width: 760px) {
  .location-search { width: min(54vw, 220px); padding: 6px 8px; }
  .location-search input { font-size: 11px; }
  .browse-mode-switch { top: 61px; left: 14px; }
  .zoom-controls { bottom: 35px; left: 14px; grid-template-columns: 35px 64px 35px; }
  .zoom-controls button { height: 35px; }
  .map-view.list-mode.active { min-height: calc(100vh - 136px); padding: 67px 14px 30px; }
  .map-view.list-mode .nearby-sheet { min-height: 0; margin: 0; padding: 20px 14px; border-radius: 18px; }
  .map-view.list-mode .nearby-list { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }
  .map-view.list-mode .nearby-card { width: 100%; }
  .map-view.list-mode .card-actions { grid-template-columns: repeat(4, 1fr); }
  body[data-active-view="swipe"] main { padding-bottom: 78px; }
  body[data-active-view="swipe"] .bottom-nav { height: 78px; }
  .swipe-view.active { height: calc(100svh - 78px); min-height: 540px; padding: 8px 7px 7px; }
  .taste-banner { grid-template-columns: 45px 1fr 15px; min-height: 68px; padding: 9px 12px; border-radius: 17px; }
  .taste-heart { width: 40px; height: 40px; font-size: 21px; }
  .taste-banner strong { font-size: 15px; }
  .taste-banner small { font-size: 11px; }
  .photo-progress { height: 15px; }
  .swipe-view .swipe-card { border-radius: 20px 20px 0 0; }
  .swipe-view .swipe-card-info { right: 17px; bottom: 18px; left: 17px; }
  .swipe-view .swipe-card-info h2 { font-size: 29px; }
  .swipe-actions { grid-template-columns: 58px minmax(90px,1fr) 50px 58px; min-height: 74px; gap: 7px; padding: 7px 5px 4px; }
  .swipe-control.pass, .swipe-control.heart { width: 58px; height: 58px; }
  .swipe-control.star { width: 50px; height: 50px; }
  .swipe-message { height: 47px; padding: 0 12px; font-size: 11px; }
  .tinder-nav .nav-item { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.data-attribution { margin: -5px 0 13px; color: #777d86; font-size: 9px; line-height: 1.5; }
.data-attribution a { color: #4e628a; font-weight: 800; }
.unclaimed-badge, .pending-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 6px; border-radius: 999px; color: #71420d; background: #fff0cb; font-size: 7px; font-weight: 900; letter-spacing: .04em; vertical-align: 2px; }
.pending-badge { color: #56439a; background: #eee9ff; }
.nearby-photo .unclaimed-badge, .nearby-photo .pending-badge { position: absolute; right: 7px; bottom: 7px; z-index: 2; }
.nearby-photo .sponsored-badge + .unclaimed-badge { bottom: 28px; }
.claim-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 18px 14px; padding: 13px; border: 1px solid #f0d593; border-radius: 14px; background: #fff9e9; }
.claim-card span, .claim-card b, .claim-card small { display: block; }
.claim-card b { margin-bottom: 3px; font-size: 12px; }
.claim-card small { color: #7b6e4d; font-size: 9px; line-height: 1.4; }
.claim-card button { flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 9px; color: #fff; background: #17191e; font-size: 10px; font-weight: 900; cursor: pointer; }

.alpha-dialog { width: min(92vw, 680px); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #f8f9f5; box-shadow: 0 30px 90px rgba(14,17,23,.28); }
.alpha-dialog::backdrop { background: rgba(11,13,18,.64); backdrop-filter: blur(5px); }
.alpha-dialog form { padding: 24px; }
.service-data-dialog { width: min(92vw, 540px); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(14,17,23,.28); }
.service-data-dialog::backdrop { background: rgba(11,13,18,.64); backdrop-filter: blur(5px); }
.service-data-dialog form { display: grid; gap: 14px; padding: 24px; }
.service-data-dialog section { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.service-data-dialog h3 { margin: 0 0 6px; font-size: 13px; }
.service-data-dialog p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.service-policy-link { display: grid; min-height: 44px; place-items: center; padding: 0 14px; border-radius: 12px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 900; text-align: center; text-decoration: none; }
.policy-body { min-height: 100vh; overflow: auto; color: var(--ink); background: #f7f5f0; }
.policy-page { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 70px; }
.policy-back { display: inline-flex; margin-bottom: 22px; color: #4f5360; font-size: 13px; font-weight: 800; text-decoration: none; }
.policy-page header, .policy-page section, .policy-page footer { margin-bottom: 14px; padding: 24px; border: 1px solid #e2dfd8; border-radius: 20px; background: #fff; }
.policy-page h1 { margin: 6px 0 12px; font-size: clamp(30px, 5vw, 52px); }
.policy-page h2 { margin: 0 0 10px; font-size: 20px; }
.policy-page p { margin: 0; color: #626671; font-size: 14px; line-height: 1.8; }
.policy-page a { color: #175d4b; text-underline-offset: 3px; }

.ad-placement {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  margin: 24px 0;
  padding: 22px 10px 10px;
  overflow: hidden;
  border: 1px solid #e5e7e2;
  border-radius: 16px;
  background: #fafbf8;
}

.stage3-panel { margin: 1.25rem auto 7rem; max-width: 58rem; padding: 1.25rem; border: 1px solid var(--line, #d9dce3); border-radius: 1rem; background: var(--surface, #fff); color: var(--ink, #181a20); }
.stage3-panel h2 { margin: .2rem 0 .45rem; }
.stage3-panel p { max-width: 48rem; line-height: 1.55; }
#stage3-assistant-form { display: grid; grid-template-columns: auto minmax(8rem, 13rem) auto minmax(12rem, 1fr) auto; align-items: end; gap: .55rem; margin-top: 1rem; }
#stage3-assistant-form label { font-size: .78rem; font-weight: 700; }
#stage3-assistant-form input, #stage3-assistant-form select { min-height: 2.75rem; border: 1px solid var(--line, #d9dce3); border-radius: .55rem; padding: .45rem .65rem; background: inherit; color: inherit; }
#stage3-assistant-form button { min-height: 2.75rem; border: 0; border-radius: .55rem; padding: .45rem .85rem; background: var(--accent, #1d5cff); color: #fff; font-weight: 700; cursor: pointer; }
#stage3-assistant-output { margin-top: 1rem; padding: .8rem; border-radius: .65rem; background: var(--subtle, #f4f6fa); }
#stage3-assistant-output dl { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; }
#stage3-assistant-output dt { font-size: .75rem; font-weight: 700; }
#stage3-assistant-output dd { margin: 0; }
#stage3-assistant-output small { display: block; margin-top: .7rem; }
.stage3-guard { color: #9b2c2c; }
@media (max-width: 700px) { #stage3-assistant-form { grid-template-columns: 1fr; } #stage3-assistant-form label { margin-top: .25rem; } }
.ad-placement[hidden], .ad-placement[data-ad-state="unfilled"] { display: none !important; }
.ad-placement[data-ad-state="requested"] { background: linear-gradient(90deg, #fafbf8, #f2f4ef, #fafbf8); background-size: 200% 100%; animation: ad-loading 1.4s linear infinite; }
.ad-placement[data-ad-state="filled"] { min-height: 0; background: #fff; animation: none; }
.ad-placement[data-ad-state="house-promo"] { min-height: 112px; padding: 14px 14px 12px; background: #111318; border-color: #252a32; animation: none; }
.house-service-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; color: #f8faf5; }
.house-service-promo-brand { display: flex; align-items: center; gap: 8px; min-width: 142px; }
.house-service-promo-logo { display: block; width: 48px; height: 48px; border-radius: 12px; }
.house-service-promo-logo-fallback { display: none; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: #d8ff4e; color: #111318; font-size: 21px; font-weight: 900; }
.house-service-promo-logo-fallback[data-visible="true"] { display: flex; }
.house-service-promo-logo-fallback span { color: #111318; font-size: 14px; }
.house-service-promo-logo-fallback[hidden] { display: none; }
.house-service-promo-label { color: #d8ff4e; font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; }
.house-service-promo-copy { min-width: 0; }
.house-service-promo-copy strong { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.house-service-promo-copy p { margin: 4px 0 3px; color: #d7dbe0; font-size: 12px; line-height: 1.4; }
.house-service-promo-copy small { display: block; color: #aeb6bf; font-size: 10px; line-height: 1.35; }
.house-service-promo-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #d8ff4e; color: #111318; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.house-service-promo-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ad-placement-multiplex { min-height: 250px; }
.ad-disclosure { position: absolute; top: 6px; left: 10px; color: #747a73; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.ad-placement .adsbygoogle { width: 100%; min-width: 0; }
@keyframes ad-loading { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ad-placement[data-ad-state="requested"] { animation: none; } }
@media (max-width: 700px) {
  .ad-placement { min-height: 100px; margin: 20px 0; border-radius: 13px; }
  .ad-placement-multiplex { min-height: 220px; }
  .ad-placement[data-ad-state="house-promo"] { min-height: 176px; padding: 13px; }
  .house-service-promo { grid-template-columns: 1fr auto; align-items: start; gap: 10px; }
  .house-service-promo-brand { min-width: 0; }
  .house-service-promo-copy { grid-column: 1 / -1; grid-row: 2; }
  .house-service-promo-cta { grid-column: 2; grid-row: 1; }
}
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.policy-nav a { padding: 10px 13px; border: 1px solid #ddd9d1; border-radius: 999px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.account-dialog { width: min(92vw, 480px); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(14,17,23,.3); }
.account-dialog::backdrop { background: rgba(11,13,18,.64); backdrop-filter: blur(5px); }
.account-dialog form { display: grid; gap: 15px; padding: 24px; }
.account-dialog .dialog-panel { display: grid; gap: 15px; padding: 24px; }
.collections-view { min-height: calc(100vh - 150px); background: #f6f7f1; }
.collections-shell { width: min(980px, calc(100% - 30px)); margin: 0 auto; padding: 22px 0 110px; }
.collection-create { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px; border: 1px solid #e4e7d8; border-radius: 18px; background: #fff; }
.collection-create label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.collection-create input, .collection-actions select, .workspace-editor input, .workspace-editor select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #dfe2d6; border-radius: 10px; background: #fff; }
.collection-create button, .collection-actions button, .workspace-editor button, .queue-row button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; color: #20240f; background: var(--lime); font-weight: 900; cursor: pointer; }
.collection-status { margin: 12px 2px; color: var(--muted); font-size: 12px; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 14px; }
.curated-section,.stage-evidence { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 3px 0 0; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.curated-collection-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; max-height: 560px; margin-top: 16px; overflow: auto; }
.curated-card,.gate-card { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfbf7; }
.curated-card > span,.gate-card small { color: var(--muted); font-size: 11px; }
.curated-card h3 { margin: 0; font-size: 16px; }
.curated-card p { margin: 0; color: var(--muted); font-size: 12px; }
.curated-card button,.compare-column button { min-height: 40px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; }
.report-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.report-actions button { display: grid; gap: 5px; min-height: 92px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; }
.report-actions span { color: var(--muted); }
.stage-gate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.gate-card.pass { border-color: #6dcf91; background: #f1fff6; }
.gate-card.pending { border-color: #f0c46d; background: #fffaf0; }
.compare-toggle { position: absolute; top: 10px; left: 10px; z-index: 3; min-height: 34px; padding: 0 10px; border: 1px solid #fff; border-radius: 999px; background: rgba(15,18,20,.82); color: #fff; font-size: 11px; font-weight: 800; }
.compare-tray { position: fixed; z-index: 70; right: max(calc((100vw - 1180px)/2 + 18px),18px); bottom: 90px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #111; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.compare-tray[hidden] { display: none; }
.compare-tray button { min-height: 36px; border: 0; border-radius: 10px; padding: 0 12px; }
.compare-dialog { width: min(980px,calc(100vw - 24px)); }
.compare-body { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 8px 0 20px; }
.compare-column { padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.compare-column h3 { min-height: 44px; }
.compare-column dl { display: grid; gap: 10px; }
.compare-column dl div { border-top: 1px solid var(--line); padding-top: 8px; }
.compare-column dt { color: var(--muted); font-size: 11px; }
.compare-column dd { margin: 3px 0 0; }
.atomic-object-card { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.atomic-object-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.atomic-source-link { display: inline-flex; align-items: center; min-height: 32px; margin: 4px 5px 0 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: inherit; font-size: 11px; font-weight: 800; }
.atomic-freshness-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: #edf2ee; color: #4d6250; font-size: 10px; font-weight: 800; white-space: nowrap; }
.atomic-freshness-badge[data-freshness-state="fresh"] { background: #e7f5e6; color: #2e6b37; }
.atomic-freshness-badge[data-freshness-state="review"] { background: #fff4dc; color: #8b6115; }
.atomic-freshness-badge[data-freshness-state="stale"],.atomic-freshness-badge[data-freshness-state="unknown"] { background: #f6e9e7; color: #8b4037; }
.store-source-badge { margin-left: 3px; vertical-align: middle; }
.atomic-object-card dl { display: grid; gap: 8px; margin: 12px 0; }
.atomic-object-card dl div { display: grid; grid-template-columns: minmax(88px, .35fr) 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.atomic-object-card dt,.atomic-compare-heading small { color: var(--muted); font-size: 11px; }
.atomic-object-card dd { margin: 0; }
.atomic-unknown { color: var(--muted); font-style: italic; }
.atomic-report { min-height: 36px; margin: 4px 0 0; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: inherit; font-size: 11px; font-weight: 700; }
.atomic-compare-section { grid-column: 1 / -1; margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.atomic-compare-note,.atomic-compare-limits { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.atomic-compare-table { display: grid; gap: 10px; }
.atomic-compare-row { border-top: 1px solid var(--line); padding-top: 10px; }
.atomic-compare-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.atomic-compare-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.atomic-compare-value { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.atomic-compare-value strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.atomic-compare-value span { min-height: 20px; font-size: 12px; }
.atomic-publication-gates { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.atomic-publication-gates h4 { margin: 0 0 4px; }
.atomic-publication-gates p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.atomic-publication-gates .atomic-gate-flow { padding: 6px 8px; border-radius: 7px; background: #f5f7f5; color: #4d6250; font-weight: 700; }
.atomic-publication-gates ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.atomic-publication-gates li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.atomic-publication-gates li span { color: #8b6115; font-weight: 800; }
.atomic-publication-gates li[data-atomic-gate-state="published"] span { color: #2e6b37; }
.atomic-publication-gates li[data-atomic-gate-state="rejected"],.atomic-publication-gates li[data-atomic-gate-state="suspended"] { background: #fff5f3; }
.atomic-publication-gates li small { grid-column: 1 / -1; color: var(--muted); }
.atomic-evidence-queue { border-top: 1px solid var(--line); }
.atomic-evidence-queue .queue-note { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.atomic-evidence-queue-row { align-items: center; }
.queue-readonly { color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.atomic-evidence-history { border-top: 1px solid var(--line); }
.atomic-evidence-history-row time { color: var(--muted); font-size: 10px; white-space: nowrap; }
@media (max-width: 700px) { .report-actions,.stage-gate-grid,.compare-body { grid-template-columns: 1fr; } .compare-tray { right: 10px; bottom: 82px; } }
@media (max-width: 700px) { .atomic-compare-values { grid-template-columns: 1fr; } .atomic-object-card dl div { grid-template-columns: 1fr; gap: 3px; } }
.collection-card { padding: 18px; border: 1px solid #e1e4d8; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(34,42,18,.05); }
.collection-card h2 { margin: 4px 0; font-size: 20px; }
.collection-card > div > span, .collection-card > div > small { color: var(--muted); font-size: 10px; font-weight: 800; }
.collection-card ul { display: grid; gap: 7px; margin: 15px 0; padding: 0; list-style: none; }
.collection-card li { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #f6f7f1; }
.collection-card li button { border: 0; background: none; text-align: left; font-weight: 800; cursor: pointer; }
.collection-card li small { color: var(--muted); }
.curated-dialog { width: min(620px, calc(100vw - 24px)); }
.curated-dialog > p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.curated-place-list { display: grid; gap: 8px; max-height: min(62vh, 560px); overflow: auto; }
.curated-place-list button { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; width: 100%; padding: 11px 12px; border: 1px solid #e1e4d8; border-radius: 12px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.curated-place-list button:hover, .curated-place-list button:focus-visible { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(117,145,52,.13); }
.curated-place-list button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime-soft); font-weight: 900; }
.curated-place-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.curated-place-list small { color: var(--muted); }
.verified-facts-card { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid #dfe5ce; border-radius: 14px; background: #fbfcf7; }
.verified-facts-card h3, .verified-facts-card p { margin: 0; }
.verified-facts-card p { color: var(--ink); line-height: 1.55; }
.verified-facts-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.verified-facts-card dl div { padding: 8px; border-radius: 9px; background: #fff; }
.verified-facts-card dt { color: var(--muted); font-size: 14px; font-weight: 800; }
.verified-facts-card dd { overflow-wrap: anywhere; margin: 3px 0 0; font-size: 14px; font-weight: 700; }
.verified-facts-card small { color: var(--muted); line-height: 1.45; }
.editorial-dialog { width: min(820px, calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; }
.editorial-dialog form, .editorial-dialog label { display: grid; gap: 6px; }
.editorial-dialog form { gap: 14px; margin-top: 16px; }
.editorial-dialog input, .editorial-dialog select, .editorial-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #abb69b; border-radius: 8px; font: inherit; }
.editorial-dialog input[type=checkbox] { width: 20px; min-height: 20px; }
.editorial-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editorial-actions, .editorial-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.editorial-dialog button, .editorial-open, .editorial-public button { min-height: 44px; padding: 10px 14px; border: 1px solid #abb69b; border-radius: 10px; background: #f1f6e9; color: #24331a; cursor: pointer; font-size: 14px; }
.editorial-dialog label { font-size: 14px; }
.editorial-dialog p { font-size: 16px; line-height: 1.55; }
#editorial-history { display: grid; gap: 8px; }
#editorial-status { padding: 12px; background: #edf4e5; border-radius: 8px; }
@media (max-width: 600px) { .editorial-fields { grid-template-columns: 1fr; } }
.help-page { display: block; height: auto; min-height: 100vh; overflow: auto; background: #f7f9f2; color: #1e2b17; }
.help-page main { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; }
.help-page h1 { font-size: clamp(26px,5vw,36px); line-height: 1.25; }
.help-page h2 { font-size: 21px; margin: 0 0 10px; }
.help-page p { font-size: 16px; line-height: 1.75; margin: 0; }
.help-page section { margin: 22px 0; padding: 22px; border: 1px solid #d5ddc8; border-radius: 14px; background: #fff; }
.help-page select { min-height: 44px; padding: 8px 12px; font-size: 16px; margin-left: 10px; }
@media (max-width: 480px) { .verified-facts-card dl { grid-template-columns: 1fr; } }
.collection-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.workspace-content { display: grid; gap: 12px; }
.workspace-section, .workspace-editor { display: grid; gap: 9px; padding: 14px; border: 1px solid #e5e7dd; border-radius: 14px; background: #fafbf7; }
.workspace-section h3, .workspace-editor h3, .workspace-section p, .workspace-editor p { margin: 0; }
.workspace-section p { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.workspace-section p b { color: var(--ink); }
.queue-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; padding: 9px; border-radius: 10px; background: #fff; }
.queue-row div { display: grid; gap: 3px; min-width: 0; }
.queue-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.queue-row button:last-child { color: #8a2938; background: #f7dfe3; }
.account-state { padding: 16px; border: 1px solid #e8e0f0; border-radius: 16px; background: #faf7fc; }
.account-state strong { display: block; margin-bottom: 5px; font-size: 15px; }
.account-state p, .account-privacy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.account-settings { display: grid; gap: 10px; padding: 15px; border: 1px solid #e8e0f0; border-radius: 16px; background: #fff; }
.account-settings h3, .account-settings p { margin: 0; }
.account-settings h3 { font-size: 15px; }
.account-settings p, .account-settings label, .account-settings select, .account-settings input { font-size: 12px; line-height: 1.55; }
.account-settings label { display: grid; gap: 5px; color: var(--muted); }
.account-settings input, .account-settings select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d9d1e0; border-radius: 11px; background: #fff; color: var(--ink); }
.account-inline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-restore-preview { display: grid; gap: 8px; padding: 12px; border: 1px solid #b8a6d2; border-radius: 12px; background: #f7f2fb; }
.account-restore-preview[hidden] { display: none; }
.public-link-card { justify-items: center; text-align: center; }
.public-link-card img { width: 180px; height: 180px; border: 8px solid #fff; border-radius: 14px; box-shadow: 0 5px 22px rgba(14,17,23,.12); image-rendering: pixelated; }
.public-link-card a { max-width: 100%; overflow-wrap: anywhere; color: #5b277d; font-size: 12px; }
.update-ready { position: fixed; z-index: 120; right: 18px; bottom: 92px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; width: min(560px, calc(100vw - 36px)); padding: 13px 15px; border: 1px solid #77538f; border-radius: 15px; background: #17121c; color: #fff; box-shadow: 0 12px 42px rgba(0,0,0,.28); }
.update-ready[hidden] { display: none; }
.update-ready span { font-size: 13px; line-height: 1.45; }
.update-ready button { min-height: 38px; padding: 7px 11px; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
#update-apply { background: #f5d86e; color: #17121c; }
#update-dismiss { background: #39303f; color: #fff; }
.account-summary { display: grid; gap: 8px; margin: 0; }
.account-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.account-summary dt { color: var(--muted); font-size: 12px; }
.account-summary dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.account-actions { display: grid; gap: 8px; }
.account-actions a, .account-actions button { display: grid; min-height: 44px; place-items: center; border: 0; border-radius: 13px; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.account-primary { color: #fff; background: var(--ink); }
.account-secondary { color: var(--ink); background: var(--soft); }
.account-danger { color: #9f2633; background: #fff0f2; }
.account-actions [hidden] { display: none; }
.commercial-field { display: grid; gap: 7px; color: #646875; font-size: 11px; font-weight: 800; }
.commercial-field input, .commercial-field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
.commercial-field textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; line-height: 1.6; }
.commercial-submit { width: 100%; min-height: 48px; border: 0; border-radius: 13px; font: inherit; font-weight: 900; cursor: pointer; }
.service-data-status { padding: 10px 12px; border-radius: 10px; color: #5b438f !important; background: #f7f2ff; font-weight: 800; }
.service-data-clear { min-height: 44px; border: 1px solid #e8b2bc; border-radius: 12px; color: #a53248; background: #fff7f8; font-weight: 900; cursor: pointer; }
.alpha-intro { margin: 4px 0 18px; color: #666d76; font-size: 11px; line-height: 1.6; }
.alpha-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.alpha-metrics article { padding: 13px; border: 1px solid #e3e6dc; border-radius: 14px; background: #fff; }
.alpha-metrics small, .alpha-metrics strong, .alpha-metrics span { display: block; }
.alpha-metrics small { color: #7b8088; font-size: 8px; font-weight: 800; }
.alpha-metrics strong { margin: 7px 0 4px; font-size: 22px; }
.alpha-metrics span { color: #66732e; font-size: 8px; font-weight: 900; }
.alpha-panel { margin-top: 10px; padding: 15px; border: 1px solid #e3e6dc; border-radius: 15px; background: #fff; }
.alpha-panel h3 { margin: 2px 0 10px; font-size: 14px; }
.recommendation-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.recommendation-metrics article { padding: 10px; border-radius: 10px; background: #f5f2ff; }
.recommendation-metrics small, .recommendation-metrics strong, .recommendation-metrics span { display: block; }
.recommendation-metrics small { color: #766c8c; font-size: 8px; font-weight: 800; }
.recommendation-metrics strong { margin: 5px 0 3px; color: #513c88; font-size: 18px; }
.recommendation-metrics span { color: #766c8c; font-size: 8px; font-weight: 800; }
.recommendation-feedback-summary { margin: 10px 0 0; padding: 9px 10px; border-radius: 9px; color: #665a7e; background: #faf8ff; font-size: 10px; font-weight: 800; }
.recommendation-decision-status { margin: 6px 0 0; padding: 9px 10px; border-radius: 9px; color: #596643; background: #f3f8e6; font-size: 10px; font-weight: 800; }
.alpha-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.alpha-form-grid label { display: grid; gap: 5px; color: #717780; font-size: 9px; font-weight: 800; }
.alpha-form-grid label.wide { grid-column: 1/-1; }
.alpha-form-grid input, .alpha-form-grid select { width: 100%; height: 38px; padding: 0 10px; outline: 0; border: 1px solid #dfe2e5; border-radius: 9px; background: #fafbfc; font-size: 11px; }
.alpha-primary, .alpha-secondary { width: 100%; margin-top: 10px; padding: 11px; border: 0; border-radius: 10px; color: #111318; background: var(--lime); font-size: 11px; font-weight: 900; cursor: pointer; }
.alpha-secondary { margin-top: 5px; color: #fff; background: #20242c; }
.referral-code { margin: 0 0 7px; padding: 10px; border-radius: 9px; color: #4e5930; background: #f2f8dd; font-family: ui-monospace, monospace; font-size: 11px; text-align: center; }
.alpha-source-panel ul { margin: 0 0 10px; padding-left: 18px; color: #656b74; font-size: 10px; line-height: 1.7; }
.alpha-source-panel li b { color: #22262d; }
.alpha-source-panel > a { color: #536893; font-size: 9px; font-weight: 800; }

@media (max-width: 620px) {
  .collection-create, .collection-actions, .queue-row { grid-template-columns: 1fr; }
  .alpha-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .alpha-dialog form { padding: 19px 15px calc(19px + env(safe-area-inset-bottom)); }
  .service-data-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .service-data-dialog form { padding: 19px 15px calc(19px + env(safe-area-inset-bottom)); }
  .account-dialog { width: 100%; max-width: none; max-height: 94vh; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .account-dialog form { padding: 19px 15px calc(19px + env(safe-area-inset-bottom)); }
  .account-inline-actions { grid-template-columns: 1fr; }
  .update-ready { right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); grid-template-columns: 1fr 1fr; width: calc(100vw - 20px); }
  .update-ready span { grid-column: 1 / -1; }
  .alpha-metrics { grid-template-columns: repeat(2,1fr); }
  .recommendation-metrics { grid-template-columns: repeat(2,1fr); }
  .alpha-form-grid { grid-template-columns: 1fr; }
  .alpha-form-grid label.wide { grid-column: auto; }
}
.google-place-card{margin:14px 18px;padding:14px;border:1px solid rgba(66,133,244,.24);border-radius:18px;background:linear-gradient(135deg,rgba(66,133,244,.08),rgba(52,168,83,.06));color:var(--ink)}
.google-place-card>div{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.google-place-card b{display:grid;place-items:center;min-width:58px;height:27px;border-radius:999px;background:#fff;color:#4285f4;border:1px solid rgba(0,0,0,.08);font-size:12px;letter-spacing:.2px}
.google-place-card strong{font-size:14px}.google-place-card p,.google-place-card small{display:block;margin:4px 0;color:var(--muted);font-size:12px;line-height:1.45}
.google-place-card a{color:#3367d6;text-decoration:none}.google-place-card.loaded{border-color:rgba(52,168,83,.3)}
.data-source-card{display:grid;gap:6px;margin:0 18px 14px;padding:13px 14px;border:1px solid #dce7dd;border-radius:16px;background:#f7fbf7;color:var(--ink)}
.data-source-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.data-source-card span{color:#5b6d5d;font-size:10px;font-weight:900}.data-source-card strong{font-size:12px;text-align:right}.data-source-card p,.data-source-card small{display:block;margin:0;color:#68726a;font-size:10px;line-height:1.5}.data-source-card small{padding-left:10px;position:relative}.data-source-card small::before{position:absolute;left:0;content:"·";font-weight:900}
.recommendation-feedback{display:grid;gap:7px;margin:0 18px 14px;padding:13px;border:1px solid #ddd1ff;border-radius:16px;background:#f8f4ff}.recommendation-feedback strong{color:#5b438f;font-size:12px}.recommendation-feedback span{color:#746d80;font-size:11px}.recommendation-feedback>div{display:flex;gap:6px}.recommendation-feedback button{flex:1;padding:8px;border:1px solid #d6c8f7;border-radius:9px;color:#5b438f;background:#fff;font-size:10px;font-weight:900;cursor:pointer}.recommendation-feedback button.active{border-color:#6f52ae;color:#fff;background:#6f52ae}
.r25-discovery-redesign-marker { display: none; }

/* R25 discovery-first redesign: content proof and primary tasks stay above the fold. */
:root { --ink: #182019; --ink-2: #27352a; --muted: #68756c; --line: #e2e9df; --paper: #fbfcf8; --soft: #f1f5ed; --lime: #e8f36d; --lime-dark: #c6d64d; --purple: #5a7e55; --shadow: 0 24px 60px rgba(34, 58, 36, .12); }
body { background: #dfe8dc; }
.app-shell { background: var(--paper); box-shadow: 0 0 80px rgba(38, 67, 42, .18); }
.topbar { height: 78px; padding: 0 30px; border-bottom-color: rgba(213, 225, 210, .9); background: rgba(251, 252, 248, .92); }
.brand-symbol { background: #203023; color: var(--lime); border-radius: 13px; }
.brand-name { letter-spacing: .1em; }
.location-pill { background: #eef4ea; border: 1px solid #dbe6d7; }
.alpha-console-button { border-color: #cadbbd; background: #f2f9df; }
.map-view.active { background: #edf3ea; }
.map-stage { background: #e4eee0; }
.nearby-sheet { padding: 22px 22px 30px; border-left-color: #dde7da; background: #fbfcf8; }
.discovery-hero { display: grid; gap: 10px; margin: -2px 0 22px; padding: 20px 18px 16px; border: 1px solid #d8e7d2; border-radius: 22px; background: linear-gradient(145deg, #f5fbe8 0%, #eef7ee 56%, #e7f0fa 100%); box-shadow: 0 12px 30px rgba(56, 89, 58, .08); }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #668263; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.hero-pulse { width: 7px; height: 7px; border-radius: 50%; background: #41b96d; box-shadow: 0 0 0 4px rgba(65,185,109,.14); }
.hero-live { margin-left: auto; padding: 5px 7px; border-radius: 999px; color: #3d6c4a; background: rgba(255,255,255,.72); font-size: 8px; letter-spacing: .08em; }
.discovery-hero h2 { margin: 2px 0 0; color: #233326; font-size: clamp(23px, 2.2vw, 31px); line-height: 1.1; letter-spacing: -.065em; }
.discovery-hero h2 em { color: #587e4f; font-style: normal; }
.discovery-hero p { max-width: 33ch; margin: 0; color: #617065; font-size: 11px; line-height: 1.55; }
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hero-actions button { min-height: 40px; padding: 7px 6px; border: 1px solid rgba(96, 128, 91, .22); border-radius: 11px; color: #315238; background: rgba(255,255,255,.7); font-size: 10px; font-weight: 900; cursor: pointer; }
.hero-actions button:first-child { border-color: #263e2b; color: #fff; background: #263e2b; }
.hero-actions button:hover, .hero-actions button:focus-visible { border-color: #587e4f; transform: translateY(-1px); }
.hero-actions button span { margin-right: 3px; font-size: 14px; vertical-align: -1px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 3px; border-top: 1px solid rgba(105, 139, 98, .18); }
.hero-proof span { display: grid; gap: 2px; }
.hero-proof b { color: #334c38; font-size: 12px; letter-spacing: -.03em; }
.hero-proof small { color: #7a8b7b; font-size: 8px; line-height: 1.25; }
.sheet-heading { margin-bottom: 14px; }
.sheet-heading h1, .page-head h1 { letter-spacing: -.065em; }
.test-pool-note { border-color: #dce9d6; color: #617260; background: #f4faf0; font-size: 9px; }
.filter-tabs { border-color: #dbe6d7; }
.map-filter.active { color: #fff; background: #263e2b; }
.nearby-card { border-color: #dfe8dd; box-shadow: 0 8px 20px rgba(46, 76, 48, .05); }
.nearby-card:hover { border-color: #b8cfae; box-shadow: 0 12px 28px rgba(46, 76, 48, .1); }
.bottom-nav { border-top-color: #dce6d9; background: rgba(251, 252, 248, .95); }
.nav-item.active { color: #416943; }
.compare-tray { background: #263e2b; }
@media (max-width: 700px) {
  .topbar { height: 64px; padding: 0 14px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .brand-name, .entity-mode-switch, .alpha-console-button { display: none; }
  .location-search { width: 100%; }
  main { padding-top: 64px; }
  .map-view.active { height: calc(100vh - 142px); min-height: 620px; }
  .nearby-sheet { padding: 14px 14px calc(88px + env(safe-area-inset-bottom)); }
  .discovery-hero { margin: 0 0 14px; padding: 17px 15px 14px; border-radius: 19px; }
  .discovery-hero h2 { font-size: 25px; }
  .hero-actions button { min-height: 42px; font-size: 10px; }
  .hero-proof b { font-size: 11px; }
}
