/* Interactive map — shared by /map and /admin/map */
body.fullscreen { overflow: hidden; }
body.fullscreen .shell { height: 100dvh; min-height: 0; }
body.fullscreen .shell > main { flex: 1; min-height: 0; }
@media (max-width: 1023px) { body.fullscreen .shell { height: calc(100dvh - 56px); } }
.map-app { position: relative; height: 100%; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.map-canvas { height: 100%; min-height: 360px; background: #0e1116; --pin: 26px; }
.map-canvas.is-adding { cursor: crosshair; }
.leaflet-container { font: inherit; background: #0e1116; outline: 0; }

/* Panel */
.map-panel { background: var(--stage, #1d141c); border-right: 1px solid var(--rule, #4a3346); overflow-y: auto; display: flex; flex-direction: column; scrollbar-color: var(--rule, #4a3346) transparent; }
.mp-head { padding: 20px 20px 16px; background: radial-gradient(90% 120% at 100% 0%, #8aa4b822, transparent 60%), var(--bg-surface, #18161c); color: var(--text-primary, #eeeaf2); border-bottom: 1px solid var(--border-subtle, #ffffff0f); }
.mp-head h1 { font: 700 1.7rem/1 var(--display, sans-serif); letter-spacing: .02em; margin: 0; color: #fff; }
.mp-head p { margin: 10px 0 0; font-size: .92rem; line-height: 1.55; color: var(--text-secondary, #a8a2b1); }
.mp-progress { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.mp-progress[hidden] { display: none; }
.mp-progress-label { font: 700 1.05rem var(--display, sans-serif); color: #fff; }
.mp-progress-num { font-size: .92rem; color: var(--text-primary, #eeeaf2); font-variant-numeric: tabular-nums; }
.mp-progress-num strong { font: 900 1.3rem var(--display, sans-serif); color: #ffcf3a; }
.mp-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(0,0,0,.3); overflow: hidden; }
.mp-bar span { display: block; height: 100%; width: 0; background: #ffcf3a; transition: width 300ms cubic-bezier(0.2, 0, 0, 1); }

.mp-tools { padding: 16px 20px 6px; display: grid; gap: 10px; }
.mp-tools input[type=search] { width: 100%; background: var(--stage-raised, #281b26); border: 0; box-shadow: inset 0 0 0 1px var(--rule, #4a3346); color: var(--ink, #f1e9ee); font: 400 .95rem var(--text, serif); padding: 10px 12px; border-radius: 4px; }
.mp-tools input[type=search]:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--silver, #c9cdd6); }
.mp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-actions button { background: var(--stage-raised, #281b26); color: var(--ink, #f1e9ee); border: 0; box-shadow: inset 0 0 0 1px var(--rule, #4a3346); border-radius: 4px; padding: 9px; font: 700 1.05rem var(--display, sans-serif); cursor: pointer; transition-property: box-shadow, scale; transition-duration: 150ms; }
.mp-actions button:hover { box-shadow: inset 0 0 0 1px var(--silver, #c9cdd6); }
.mp-actions button:active { scale: .96; }
.mp-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-mute, #bfafba); cursor: pointer; }
.mp-check input { accent-color: #ffcf3a; width: 16px; height: 16px; }

.mp-results { list-style: none; margin: 4px 20px 0; padding: 6px; background: var(--stage-raised, #281b26); border-radius: 4px; }
.mp-results[hidden] { display: none; }
.mp-results button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--ink, #f1e9ee); text-align: left; padding: 6px; border-radius: 3px; cursor: pointer; font: 400 .9rem var(--text, serif); }
.mp-results button:hover { background: rgba(255,255,255,.06); }
.mp-results img { width: 22px; height: 22px; }
.mp-results small { margin-left: auto; color: var(--ink-mute, #bfafba); }

.mp-groups { padding: 8px 12px 0; }
.mp-group { margin-top: 14px; }
.mp-group[hidden] { display: none; }
.mp-group h2 { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.25rem/1 var(--display, sans-serif); color: var(--silver, #c9cdd6); margin: 0 8px 8px; }
.mp-group h2 span { font: 600 .85rem var(--text, serif); color: var(--ink-mute, #bfafba); }
.mp-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mp-group li[hidden] { display: none; }
.mp-cat { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; background: none; border: 0; border-radius: 4px; color: var(--ink, #f1e9ee); text-align: left; cursor: pointer; transition-property: background-color, opacity; transition-duration: 150ms; }
.mp-cat:hover { background: rgba(255,255,255,.05); }
.mp-cat img { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); padding: 3px; }
.mp-cat-name { font-size: .93rem; line-height: 1.25; }
.mp-cat-name small { display: block; font-size: .75rem; color: var(--ink-mute, #bfafba); }
.mp-cat-count { font-size: .85rem; color: var(--ink-mute, #bfafba); font-variant-numeric: tabular-nums; }
.mp-cat-found { color: #ffcf3a; }
.mp-cat[aria-pressed="false"] { opacity: .42; }
.mp-cat[aria-pressed="false"] img { filter: grayscale(1); }
.mp-foot { margin: auto 0 0; padding: 18px 20px 22px; font-size: .8rem; line-height: 1.55; color: var(--ink-mute, #bfafba); }
.mp-foot a { color: var(--rose, #ff8aa0); }
.mp-toggle { display: none; }

/* Pins */
.sp-pin { position: absolute; left: 0; top: 0; width: var(--pin); height: var(--pin); transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #14161c; box-shadow: 0 0 0 2px var(--c), 0 2px 6px rgba(0,0,0,.55); transition-property: scale; transition-duration: 120ms; }
/* leaflet.css forces `width:auto` on marker-pane images; win that explicitly */
.leaflet-container .leaflet-marker-pane .sp-pin img { position: static; width: 78% !important; height: 78% !important; max-width: none; object-fit: contain; pointer-events: none; }
.leaflet-marker-icon:hover .sp-pin { scale: 1.18; }
.sp-pin.is-found { opacity: .38; box-shadow: 0 0 0 2px #6b6f78; }
.sp-pin.is-found::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 40%; height: 40%; border-radius: 50%; background: #4ad08a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102018' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Popups */
.leaflet-popup-content-wrapper { background: var(--stage-raised, #281b26); color: var(--ink, #f1e9ee); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.leaflet-popup-tip { background: var(--stage-raised, #281b26); }
.leaflet-popup-content { margin: 14px 16px; min-width: 200px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-mute, #bfafba); }
.sp-pop p { margin: 0; }
.sp-pop-cat { display: flex; align-items: center; gap: 8px; font: 800 1.2rem/1.1 var(--display, sans-serif); color: #fff; }
.sp-pop-cat img { width: 26px; height: 26px; }
.sp-pop-name { margin-top: 6px !important; font-weight: 600; }
.sp-pop-note { margin-top: 4px !important; font-size: .88rem; color: var(--ink-mute, #bfafba); }
.sp-pop-meta { margin-top: 6px !important; font-size: .78rem; color: var(--ink-mute, #bfafba); font-variant-numeric: tabular-nums; }
.sp-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.sp-pop-actions button { background: var(--silver, #c9cdd6); color: #1d141c; border: 0; border-radius: 3px; padding: 7px 10px; font: 700 .95rem var(--display, sans-serif); cursor: pointer; }
.sp-pop-actions button:active { scale: .96; }
.sp-pop-actions button[data-act="share"] { background: transparent; color: var(--ink, #f1e9ee); box-shadow: inset 0 0 0 1px var(--rule, #4a3346); }
.sp-pop-actions button.danger { background: #c0392b; color: #fff; }
.sp-pop-actions a { font-size: .85rem; color: var(--rose, #ff8aa0); }
.sp-pop-admin { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule, #4a3346); display: grid; gap: 8px; }
.sp-pop-admin label { display: grid; gap: 3px; font-size: .75rem; color: var(--ink-mute, #bfafba); margin: 0; }
.sp-pop-admin input, .sp-pop-admin select { background: #14161c; color: var(--ink, #f1e9ee); border: 1px solid var(--rule, #4a3346); border-radius: 3px; padding: 6px 8px; font: inherit; font-size: .85rem; margin: 0; width: 100%; }

.leaflet-bar a { background: var(--stage-raised, #281b26); color: var(--ink, #f1e9ee); border-color: var(--rule, #4a3346); }
.leaflet-bar a:hover { background: var(--stage, #1d141c); color: #fff; }

/* Phones: the panel becomes a sheet over the map */
@media (max-width: 899px) {
  .map-app { grid-template-columns: 1fr; }
  .map-panel { position: absolute; inset: 0 0 0 0; z-index: 1001; transform: translateY(100%); visibility: hidden; transition-property: transform, visibility; transition-duration: 260ms; transition-timing-function: cubic-bezier(0.2, 0, 0, 1); border-right: 0; }
  .map-panel.open { transform: none; visibility: visible; }
  .mp-toggle { display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1002; background: var(--silver, #c9cdd6); color: #1d141c; border: 0; border-radius: 999px; padding: 12px 26px; font: 800 1.2rem var(--display, sans-serif); box-shadow: 0 6px 20px rgba(0,0,0,.5); cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .map-panel, .mp-bar span, .sp-pin { transition: none; } }

/* Canvas pin layer */
.sp-pins { pointer-events: none; }
.map-canvas.on-pin, .map-canvas.on-pin .leaflet-interactive { cursor: pointer; }
.map-canvas.is-adding.on-pin { cursor: pointer; }
.leaflet-image-layer { image-rendering: auto; }

/* Account note in the panel and popup */
.mp-account { margin: 0 20px; padding: 12px 14px; border-radius: 4px; background: var(--stage-raised, #281b26); font-size: .86rem; line-height: 1.5; color: var(--ink-mute, #bfafba); }
.mp-account:empty { display: none; }
.mp-account p { margin: 0; }
.mp-account strong { color: #fff; }
.mp-account a { color: var(--rose, #ff8aa0); }
.mp-account-warn { color: #ffcf3a; }
.sp-pop-hint { margin-top: 10px !important; font-size: .8rem; color: var(--ink-mute, #bfafba); }
.sp-pop-hint a { color: var(--rose, #ff8aa0); }

/* Loading veil (RinStore pattern: thin running bar + shimmer), removed once the map image decodes */
.map-app { isolation: isolate; }
.map-loading { position: absolute; inset: 0 0 0 340px; z-index: 900; display: grid; place-content: center; gap: 14px; justify-items: center; background: #0e1116; transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms; }
.map-loading.is-done { opacity: 0; visibility: hidden; }
.map-loading p { margin: 0; color: var(--ink-mute, #bfafba); font: 700 1.1rem var(--display, sans-serif); }
.map-loading-bar { width: 180px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.08); position: relative; }
.map-loading-bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #ffcf3a, transparent); animation: sp-bar 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes sp-bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (max-width: 899px) { .map-loading { inset: 0; } }

/* Hi-res tiles fade in over the overview instead of popping */
.sp-tile { opacity: 0; transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.sp-tile.is-loaded { opacity: 1; }
.sp-pins { will-change: transform; }

/* Progress popup */
.mp-progress-open { grid-column: 1 / -1; justify-self: start; margin-top: 4px; background: rgba(0,0,0,.25); color: #fff; border: 0; border-radius: 4px; padding: 7px 12px; font: 700 1rem var(--display, sans-serif); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition-property: background-color, scale; transition-duration: 150ms; }
.mp-progress-open:hover { background: rgba(0,0,0,.4); }
.mp-progress-open:active { scale: .96; }

.progress-dlg { width: min(420px, calc(100vw - 32px)); max-height: min(72vh, 620px); padding: 0; border: 0; border-radius: 10px; background: var(--stage-raised, #281b26); color: var(--ink, #f1e9ee); box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; display: none; flex-direction: column; }
.progress-dlg[open] { display: flex; animation: pd-in 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.progress-dlg::backdrop { background: rgba(8, 6, 10, .55); animation: pd-fade 220ms ease-out; }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes pd-fade { from { opacity: 0; } }
.pd-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; }
.pd-head h2 { margin: 0; font: 900 1.5rem/1 var(--display, sans-serif); color: #fff; }
.pd-close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-mute, #bfafba); cursor: pointer; }
.pd-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.pd-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 12px; }
.pd-summary div { background: rgba(0,0,0,.22); border-radius: 6px; padding: 8px 10px; display: grid; }
.pd-summary strong { font: 900 1.35rem/1.1 var(--display, sans-serif); color: #ffcf3a; font-variant-numeric: tabular-nums; }
.pd-summary span { font-size: .74rem; color: var(--ink-mute, #bfafba); }
.pd-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 8px; border-top: 1px solid var(--rule, #4a3346); scrollbar-width: thin; scrollbar-color: var(--rule, #4a3346) transparent; }
.pd-body h3 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 8px 6px; background: var(--stage-raised, #281b26); font: 800 1rem var(--display, sans-serif); color: var(--silver, #c9cdd6); }
.pd-body ul { list-style: none; margin: 0; padding: 0; }
.pd-body button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto 3px; gap: 4px 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 4px; background: none; color: var(--ink, #f1e9ee); text-align: left; cursor: pointer; font: 400 .88rem var(--text, serif); }
.pd-body button:hover { background: rgba(255,255,255,.05); }
.pd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-num { font-variant-numeric: tabular-nums; color: var(--ink-mute, #bfafba); font-size: .8rem; }
.pd-bar { grid-column: 2 / -1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.pd-bar span { display: block; height: 100%; }
.pd-foot { padding: 10px 18px 14px; border-top: 1px solid var(--rule, #4a3346); font-size: .8rem; color: var(--ink-mute, #bfafba); }
.pd-foot a { color: var(--rose, #ff8aa0); }
.pd-foot strong { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .map-loading-bar::after, .progress-dlg[open], .progress-dlg::backdrop { animation: none; }
  .sp-tile, .map-loading { transition: none; }
}

/* Pin card: details + player comments. A compact card at the map's top right;
   grows with its content up to the map height, comments scroll inside. Bottom sheet on phones. */
.pin-drawer { position: absolute; z-index: 1100; top: 12px; right: 12px; width: 320px; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--stage, #1d141c); color: var(--ink, #f1e9ee); border-radius: 8px; box-shadow: 0 0 0 1px var(--rule, #4a3346), 0 14px 40px rgba(0,0,0,.5);
  opacity: 0; translate: 0 -6px; transition: opacity 160ms ease, translate 200ms cubic-bezier(0.2, 0, 0, 1); scrollbar-width: thin; scrollbar-color: var(--rule, #4a3346) transparent; outline: 0; }
.pin-drawer.open { opacity: 1; translate: 0 0; }
.pin-drawer[hidden] { display: none; }
.pdw-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 10px 8px 8px 12px; background: var(--stage, #1d141c); }
.pdw-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #14161c); box-shadow: inset 0 0 0 1.5px var(--c); }
.pdw-icon img { width: 22px; height: 22px; object-fit: contain; }
.pdw-title h2 { margin: 0; font: 700 1.1rem/1.15 var(--display, sans-serif); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdw-title p { margin: 1px 0 0; font-size: .75rem; color: var(--ink-mute, #bfafba); font-variant-numeric: tabular-nums; }
.pdw-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink-mute, #bfafba); display: grid; place-items: center; cursor: pointer; }
.pdw-close:hover { background: rgba(255,255,255,.07); color: #fff; }
.pdw-note { margin: 0 12px 6px; font-size: .84rem; line-height: 1.5; color: var(--ink-mute, #bfafba); }
.pdw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 12px 10px; border-bottom: 1px solid var(--rule, #4a3346); }
.pdw-acts button { border: 0; border-radius: 4px; padding: 6px 10px; font: 700 .9rem var(--display, sans-serif); cursor: pointer; }
.pdw-found { background: #ffcf3a; color: #1d141c; }
.pdw-found.is-on { background: transparent; color: #ffcf3a; box-shadow: inset 0 0 0 1.5px #ffcf3a; }
.pdw-share { background: transparent; color: var(--ink, #f1e9ee); box-shadow: inset 0 0 0 1px var(--rule, #4a3346); }
.pdw-share:hover { box-shadow: inset 0 0 0 1px var(--silver, #c9cdd6); }
.pdw-acts button:active { scale: .96; }
.pdw-acts a { font-size: .8rem; color: var(--rose, #ff8aa0); }

.pdw-comments { padding: 10px 12px 12px; }
.pdw-comments h3 { margin: 0 0 8px; font: 700 .98rem var(--display, sans-serif); color: var(--silver, #c9cdd6); }
.pdw-comments h3 span { font: 500 .8rem var(--text, sans-serif); color: var(--ink-mute, #bfafba); }
.cm-signin { margin: 0 0 10px; padding: 9px 10px; border-radius: 6px; background: var(--stage-raised, #281b26); font-size: .82rem; line-height: 1.5; color: var(--ink-mute, #bfafba); }
.cm-signin a { color: #ffcf3a; font-weight: 600; }

.cm-form { margin-bottom: 12px; }
.cm-form textarea { display: block; width: 100%; margin: 0; min-height: 64px; resize: vertical; background: var(--stage-raised, #281b26); color: var(--ink, #f1e9ee);
  border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule, #4a3346); padding: 8px 10px; font: 400 .88rem/1.45 var(--text, sans-serif); }
.cm-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px #ffcf3a; }
.cm-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cm-file { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 0 0; padding: 4px 2px; font-size: .84rem; font-weight: 600; color: var(--ink, #f1e9ee); cursor: pointer; }
.cm-file:hover span, .cm-file:focus-within span { text-decoration: underline; }
.cm-len { font-size: .76rem; color: var(--ink-mute, #bfafba); font-variant-numeric: tabular-nums; }
.cm-send { border: 0; border-radius: 4px; padding: 6px 14px; background: #ffcf3a; color: #1d141c; font: 700 .9rem var(--display, sans-serif); cursor: pointer; }
.cm-send:disabled { background: var(--stage-raised, #281b26); color: var(--ink-mute, #bfafba); cursor: default; }
.cm-preview { position: relative; display: inline-block; margin-top: 6px; }
.cm-preview[hidden] { display: none; }
.cm-preview img { display: block; max-width: 100%; max-height: 110px; border-radius: 6px; }
.cm-preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.cm-preview button svg { width: 14px; height: 14px; }
.cm-err { margin: 6px 0 0; font-size: .8rem; color: #ff8a9a; }
.cm-err[hidden] { display: none; }

.cm-list { list-style: none; margin: 0; padding: 0; }
.cm { padding: 10px 0; border-top: 1px solid var(--rule, #4a3346); }
.cm:first-child { border-top: 0; padding-top: 2px; }
.cm-empty { padding: 8px 0 2px; font-size: .82rem; line-height: 1.5; color: var(--ink-mute, #bfafba); }
.cm-shot { display: block; margin-bottom: 6px; border-radius: 6px; overflow: hidden; background: #0e1116; }
.cm-shot img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.cm-row { display: flex; gap: 8px; align-items: flex-start; }
.cm-text { flex: 1; min-width: 0; }
.cm-body { margin: 0; font-size: .86rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.cm-body a, .cm-link { color: #8ec5ff; overflow-wrap: anywhere; }
.cm-link { display: inline-block; margin-top: 2px; font-size: .8rem; }
.cm-yt { position: relative; flex: 0 0 88px; width: 88px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; display: grid; place-items: center; }
.cm-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-yt svg { position: relative; width: 24px; height: 24px; }
.cm-foot { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.cm-vote { display: inline-flex; align-items: center; gap: 4px; min-width: 36px; height: 26px; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: var(--ink-mute, #bfafba); font: 600 .82rem var(--text, sans-serif); font-variant-numeric: tabular-nums; cursor: pointer; }
.cm-vote svg { width: 15px; height: 15px; }
.cm-vote:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--ink, #f1e9ee); }
.cm-vote[data-cv="1"][aria-pressed="true"] { color: #4ad08a; }
.cm-vote[data-cv="-1"][aria-pressed="true"] { color: #ff8a9a; }
.cm-vote:disabled { cursor: default; opacity: .7; }
.cm-by { margin-left: 4px; font-size: .72rem; color: var(--ink-mute, #bfafba); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cm-del { margin-left: auto; border: 0; background: none; color: #ff8a9a; font-size: .75rem; cursor: pointer; padding: 4px; }
.cm-del:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .pin-drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 55dvh; border-radius: 10px; translate: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pin-drawer { transition: none; } }

/* Fold the filter panel away so the map gets the whole width (desktop) */
.mp-head { position: relative; }
.mp-fold { position: absolute; top: 14px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 4px; display: grid; place-items: center; background: none; color: var(--text-secondary, #a8a2b1); cursor: pointer; }
.mp-fold:hover { background: rgba(255,255,255,.07); color: #fff; }
.mp-head h1 { padding-right: 36px; }
.mp-unfold { position: absolute; z-index: 1000; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 6px;
  background: var(--stage, #1d141c); color: var(--ink, #f1e9ee); font: 700 1rem var(--display, sans-serif); box-shadow: 0 0 0 1px var(--rule, #4a3346), 0 8px 24px rgba(0,0,0,.45); cursor: pointer; }
.mp-unfold:hover { box-shadow: 0 0 0 1px var(--silver, #c9cdd6), 0 8px 24px rgba(0,0,0,.45); }
.mp-unfold[hidden] { display: none; }
@media (min-width: 900px) {
  .map-app.panel-off { grid-template-columns: minmax(0, 1fr); }
  .map-app.panel-off .map-panel { display: none; }
}
@media (max-width: 899px) { .mp-fold, .mp-unfold { display: none !important; } }
