:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101725; color: #f5f6fb; }
* { box-sizing: border-box; }
html, body, main, #map { width: 100%; height: 100%; margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
#map { background: #678a97; z-index: 0; }
.topbar { position: absolute; z-index: 500; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { color: white; text-shadow: 0 2px 6px #000; font-size: 19px; font-weight: 900; letter-spacing: .14em; flex: 1; text-align: center; }
.brand small { color: #ff91a9; font-size: 11px; }
.button, .actions button { border: 0; border-radius: 9px; padding: 11px 15px; background: #20283a; color: white; font-weight: 700; box-shadow: 0 3px 14px #0005; }
.accent { background: #ea587d !important; color: #141622 !important; }
button:disabled { opacity: .55; cursor: not-allowed; }
#panel { position: absolute; z-index: 600; top: 0; bottom: 0; left: 0; width: min(390px, 90vw); background: #161b29; box-shadow: 0 0 30px #0007; padding: max(20px, env(safe-area-inset-top)) 18px 20px; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease; }
#panel.open { transform: translateX(0); }
.panel-head { display: flex; justify-content: space-between; align-items: start; }
.panel-head strong { font-size: 22px; }
p { color: #b6bfd1; line-height: 1.4; }
.panel-head p { margin: 6px 0 22px; }
.icon { background: none; color: white; border: 0; font-size: 32px; line-height: 1; }
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea { width: 100%; border: 1px solid #49546a; background: #252e40; color: white; border-radius: 8px; padding: 10px; }
#count { font-size: 13px; }
#results { display: grid; gap: 6px; }
.result { text-align: left; width: 100%; display: flex; align-items: center; gap: 10px; background: #252e40; border: 0; border-radius: 7px; color: white; padding: 10px; }
.result img, .category-icon { width: 32px; height: 32px; object-fit: contain; flex: none; }
.result small { display: block; color: #b6bfd1; margin-top: 3px; }
.bulk-actions { display: flex; gap: 8px; }
.bulk-actions button { flex: 1; background: #30394d; color: #f5f6fb; border: 1px solid #49546a; border-radius: 6px; padding: 10px; }
.filter-node { border-bottom: 1px solid #30394d; }
.filter-node summary { display: flex; align-items: center; list-style: none; cursor: pointer; min-height: 46px; }
.filter-node summary::-webkit-details-marker { display: none; }
.filter-node summary::after { content: "+"; font-size: 19px; margin: 0 8px; flex: none; }
.filter-node[open] > summary::after { content: "-"; }
.filter-label { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 46px; flex: 1; cursor: pointer; min-width: 0; }
.filter-node input[type=checkbox], .marker-row input { width: 20px; height: 20px; flex: none; accent-color: #ef7c9b; cursor: pointer; }
.filter-name { flex: 1; overflow-wrap: anywhere; }
.filter-count { color: #b6bfd1; font-size: 12px; font-weight: normal; }
.filter-node.section > summary { background: #1d2434; text-transform: uppercase; letter-spacing: .05em; }
.filter-node.section > summary .filter-label { font-size: 12px; }
.filter-children { padding-left: 12px; border-left: 1px solid #384055; }
.marker-row { display: flex; align-items: center; gap: 6px; }
.marker-row button { min-height: 44px; display: flex; align-items: center; gap: 8px; text-align: left; flex: 1; border: 0; color: #d3d9e7; background: none; padding: 4px; font-size: 12px; }
.marker-row button:hover, .filter-node summary:hover { background: #30394d; }
.marker-row .category-icon { width: 26px; height: 26px; }
#search-results h2 { font-size: 15px; }
#result-count { font-size: 12px; }
footer { border-top: 1px solid #384055; margin-top: 20px; padding-top: 8px; font-size: 12px; }
a { color: #ffadbd; }
.account-section { background: #20283a; padding: 12px; margin-bottom: 16px; border-radius: 8px; }
.account-section h2 { font-size: 15px; margin: 0; }
.account-section p { font-size: 12px; overflow-wrap: anywhere; }
.account-section button, .progress-toggle { padding: 10px; border: 1px solid #49546a; background: #30394d; color: white; border-radius: 6px; min-height: 44px; }
.account-section a { font-size: 13px; }
#invite-accounts:not([hidden]) { display: block; margin-top: 12px; }
.is-completed > span > span:first-child, .marker-row.is-completed button > span { text-decoration: line-through; color: #a4d5bb; }
.progress-toggle[aria-pressed=true] { border-color: #69cb98; color: #a4e7c2; }
#notice, #pick-hint { position: absolute; z-index: 700; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; background: #20283a; color: white; border-radius: 8px; box-shadow: 0 3px 18px #0008; padding: 12px 16px; }
#pick-hint button { margin-left: 8px; }
dialog { width: min(440px, 94vw); max-height: 90dvh; border: 1px solid #49546a; border-radius: 12px; background: #161b29; color: white; padding: 22px; }
dialog::backdrop { background: #000a; }
dialog h2 { margin: 0; font-size: 20px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.error { color: #ff9aab; }
.leaflet-bottom.leaflet-left { bottom: 8px; }
.leaflet-control-zoom { margin-top: 72px !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #20283a; color: white; }
.popup-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.popup-actions { display: flex; gap: 8px; }
.popup-actions button { padding: 8px; }
@media (max-width: 480px) { .brand { font-size: 14px; } .button { padding: 10px; font-size: 13px; } }
