:root { --mp-soft: #faf7f5; --mp-ink-3: #8d8388; --mp-halo: rgba(122, 46, 82, .22); --mp-me: #2b6fd6; --mp-me-halo: rgba(43, 111, 214, .22); --mp-shadow: 0 1px 2px rgba(28, 23, 25, .05), 0 12px 32px -16px rgba(28, 23, 25, .18); --mp-pop-shadow: 0 2px 6px rgba(28, 23, 25, .10), 0 18px 40px -14px rgba(28, 23, 25, .35); --mp-ground: #efe9e4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mp-soft: #241e21; --mp-ink-3: #877c81; --mp-halo: rgba(224, 141, 184, .25); --mp-me: #6aa5ff; --mp-me-halo: rgba(106, 165, 255, .25); --mp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7); --mp-pop-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px -14px rgba(0, 0, 0, .9); --mp-ground: #1a1517; } }
:root[data-theme="dark"] { --mp-soft: #241e21; --mp-ink-3: #877c81; --mp-halo: rgba(224, 141, 184, .25); --mp-me: #6aa5ff; --mp-me-halo: rgba(106, 165, 255, .25); --mp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .7); --mp-pop-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px -14px rgba(0, 0, 0, .9); --mp-ground: #1a1517; }
html, body.mp-page { height: 100%; }
body.mp-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.mp-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mp-brand img { width: 28px; height: 28px; border-radius: 7px; }
.mp-top nav { display: flex; align-items: center; gap: 16px; }
.mp-top nav a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; }
.mp-top .btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.mp { position: relative; flex: 1; min-height: 0; background: var(--mp-ground); }
.mp-map { position: absolute; inset: 0; }
.mp-map .maplibregl-canvas { outline: none; }
.mp-defs { position: absolute; }
.mp-layer { position: absolute; inset: 0; pointer-events: none; }
.mp-layer > * { pointer-events: auto; }
.mp-tl { position: absolute; z-index: 5; top: 12px; left: 12px; right: 64px; display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.mp-tl > * { pointer-events: auto; }
.mp-title { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--mp-shadow); font-size: 14px; font-weight: 700; line-height: 1.5; }
.mp-title small { margin-left: 6px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.mp-chips { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.mp-chips::-webkit-scrollbar { display: none; }
.mp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mp-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg-2); border-color: transparent; }
.mp-chip.mp-near { color: var(--mp-me); border-color: var(--mp-me); }
.mp-chip.mp-near[aria-pressed="true"] { background: var(--mp-me); color: #fff; }
.mp-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.mp-msg { margin: 0; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); max-width: 100%; }
.mp-zoom { position: absolute; z-index: 5; top: 12px; right: 12px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--mp-shadow); }
.mp-zoom button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; }
.mp-zoom button + button { border-top: 1px solid var(--line); }
.mp-attr { position: absolute; z-index: 4; right: 0; bottom: 0; margin: 0; padding: 2px 8px; border-top-left-radius: 8px; background: var(--bg-2); color: var(--ink-2); font-size: 11px; }
.mp-attr a { color: inherit; }
.mp-pin, .mp-glob, .mp-me { position: absolute; left: 0; top: 0; }
.mp-pin, .mp-glob { border: 0; padding: 0; font: inherit; cursor: pointer; }
.mp-pin { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); display: grid; place-items: center; z-index: 2; }
.mp-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.mp-mono { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.mp-pin.paid { z-index: 3; }
.mp-badge { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--bg-2); }
.mp-badge svg { width: 11px; height: 11px; fill: currentColor; display: block; }
.mp-pin.on { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 4; }
.mp-me { width: 16px; height: 16px; border-radius: 50%; background: var(--mp-me); border: 3px solid var(--bg-2); box-shadow: 0 0 0 10px var(--mp-me-halo); z-index: 1; pointer-events: none; }
.mp-glob { border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; display: grid; place-items: center; box-shadow: 0 0 0 7px var(--mp-halo); z-index: 1; }
.mp-glob.g1 { width: 36px; height: 36px; font-size: 14px; }
.mp-glob.g2 { width: 44px; height: 44px; font-size: 15px; }
.mp-glob.g3 { width: 54px; height: 54px; font-size: 17px; box-shadow: 0 0 0 9px var(--mp-halo); }
.mp-glob.g4 { width: 64px; height: 64px; font-size: 19px; box-shadow: 0 0 0 11px var(--mp-halo); }
.mp-pin:focus-visible, .mp-glob:focus-visible, .mp-chip:focus-visible, .mp-zoom button:focus-visible, .mp-pop a:focus-visible, .mp-pop button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mp-pop { position: absolute; z-index: 6; width: 290px; max-width: calc(100% - 16px); padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--mp-pop-shadow); display: grid; gap: 12px; }
.mp-pop.card { cursor: pointer; }
.mp-pop.hover { pointer-events: none; }
.mp-pop.sheet { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-width: none; max-height: calc(100% - 120px); overflow-y: auto; }
.mp-pop-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mp-pop-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; font-size: 20px; }
.mp-pop-id { min-width: 0; display: grid; gap: 1px; }
.mp-pop-name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.mp-pop-meta { font-size: 13px; color: var(--ink-2); }
.mp-pop-open { font-size: 13px; font-weight: 600; color: var(--ok); }
.mp-pop-open.closed { color: var(--mp-ink-3); }
.mp-pop-hint { font-size: 12px; color: var(--mp-ink-3); }
.mp-pop-x { margin-left: auto; align-self: flex-start; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mp-soft); color: var(--ink-2); font: inherit; font-size: 16px; cursor: pointer; }
.mp-rows { display: grid; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.mp-rows div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; font-size: 14px; }
.mp-rows dt { color: var(--mp-ink-3); font-size: 13px; }
.mp-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mp-rows a { color: var(--accent); font-weight: 600; text-decoration: none; }
.mp-web { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.mp-go { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.mp-list { margin: 0; padding: 16px 16px 16px 32px; }
.mp-nomap { position: absolute; inset: 0; overflow: auto; padding: 130px 16px 16px; background: var(--bg); }
@media (max-width: 520px) { .mp-title small { display: block; margin-left: 0; } .mp-top nav { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .mp-pin, .mp-glob { transition: none; } }
