@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #183126;
    --muted: #6d7d74;
    --paper: #f7f8f3;
    --panel: #fff;
    --line: #e4e9e2;
    --green: #a7e7a0;
    --green-dark: #227447;
    --planned: #2457ff;
    --planned-dark: #0929a8;
    --visited: #a7ed73;
    --visited-dark: #27804b;
    --accent: #ff704d;
    --shadow: 0 18px 55px rgba(23, 49, 37, .14);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
.app-shell { height: 100dvh; min-height: 0; display: grid; grid-template-rows: 76px minmax(0, 1fr); overflow: hidden; }
.topbar {
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 243, .94);
    backdrop-filter: blur(14px);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 14px; color: white; background: var(--green-dark);
    transform: rotate(-3deg);
}
.brand-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.brand span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.about-button, .account-button, .primary-button, .danger-button {
    border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
    background: #e9eee9; font-size: 13px; font-weight: 700;
}
.about-button:hover { background: #dfe7df; }
.account-button { color: white; background: var(--planned); }
.account-button:hover { background: #1744df; }
.account-button.signed-in { color: var(--ink); background: #dfe9e2; }
.workspace { height: 100%; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 390px minmax(0, 1fr); }
.sidebar {
    z-index: 700; min-height: 0; display: flex; flex-direction: column;
    padding: 29px 24px 18px; background: var(--panel); border-right: 1px solid var(--line);
}
.sidebar-head { display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow {
    margin: 0 0 6px; color: var(--green-dark); font-size: 11px; font-weight: 800;
    letter-spacing: .13em; text-transform: uppercase;
}
h1 { margin: 0; font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
.intro { margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sidebar-tabs { display: flex; gap: 5px; margin-bottom: 14px; padding: 4px; border-radius: 13px; background: #eef2ed; }
.sidebar-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.sidebar-tabs button.active { background: white; box-shadow: 0 2px 8px rgba(23,49,37,.08); }
.news-badge { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: #f05245; vertical-align: middle; }
.news-badge[hidden] { display: none; }
.parks-panel, .news-panel, .friends-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.parks-panel[hidden], .news-panel[hidden], .friends-panel[hidden], .friends-content[hidden] { display: none; }
.sidebar.news-active .intro, .sidebar.news-active .sidebar-foot { display: none; }
.friends-panel { overflow: auto; scrollbar-width: thin; }
.friends-guest { padding: 20px 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.friends-content { display: grid; gap: 14px; }
.friend-search { display: grid; gap: 7px; }
.friend-search label { color: var(--muted); font-size: 11px; font-weight: 700; }
.friend-search > div { display: flex; gap: 6px; }
.friend-search input { min-width: 0; flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; }
.friend-search button, .friend-person button { padding: 9px 11px; border: 0; border-radius: 10px; color: white; background: var(--green-dark); cursor: pointer; font-size: 11px; font-weight: 800; }
.friend-feedback { margin: 0; color: var(--green-dark); font-size: 11px; }
.friend-feedback.error { color: #a1433a; }
.friend-search-results { display: grid; gap: 7px; }
.friend-search-results:empty { display: none; }
.friend-search-results > h3 { margin: 0; font-size: 12px; }
.friend-search-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf7; }
.friend-search-result > span { display: grid; min-width: 0; gap: 2px; }
.friend-search-result strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.friend-search-result small { color: var(--muted); font-size: 10px; }
.friend-search-result button { flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 8px; color: white; background: var(--green-dark); cursor: pointer; font-size: 10px; font-weight: 800; }
.friend-search-result button:disabled { color: #6b776f; background: #e8eee9; cursor: default; }
.friend-people { display: grid; gap: 7px; }
.friend-group-title, .friends-activity-title { margin: 4px 0 2px; font-size: 12px; }
.friend-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.friend-person span { display: grid; gap: 2px; min-width: 0; }
.friend-person strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.friend-person small { color: var(--muted); font-size: 10px; }
.friend-person button { flex: 0 0 auto; background: #e9efeb; color: var(--ink); }
.friend-person button.accept { background: var(--green-dark); color: white; }
.friend-reject { justify-self: end; margin: -3px 4px 2px; padding: 3px 6px; border: 0; color: #85746b; background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; }
.friends-empty { margin: 3px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.friends-activity { display: grid; gap: 7px; padding-bottom: 12px; }
.friend-activity-card { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; text-align: left; }
.friend-activity-card:hover { border-color: #a9cbb3; background: #f8faf7; }
.friend-activity-card strong, .friend-activity-card small, .friend-activity-card span { display: block; }
.friend-activity-card strong { font-size: 11px; }
.friend-activity-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.friend-activity-card span { margin-top: 4px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.news-intro { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.news-list { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.news-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; width: 100%; margin: 0 0 8px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; text-align: left; }
.news-card:hover { border-color: #a9cbb3; background: #f8faf7; }
.news-card-icon, .news-card-image { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #eaf2e9; }
.news-card-icon { display: grid; place-items: center; color: var(--green-dark); font-size: 22px; }
.news-card-copy { display: grid; gap: 4px; min-width: 0; }
.news-card-copy strong { font-size: 11px; line-height: 1.3; }
.news-card-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.news-card-copy span { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-dialog { width: min(410px, calc(100vw - 28px)); padding: 28px; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: var(--shadow); }
.news-dialog::backdrop { background: rgba(16,32,25,.38); backdrop-filter: blur(3px); }
.news-dialog h2 { margin: 0; font-size: 22px; }
.news-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }
.news-dialog-preview { display: grid; gap: 7px; margin: 14px 0; }
.news-dialog-preview span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.news-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; align-items: center; }
.news-dialog-actions button { min-height: 39px; padding: 8px 13px; border: 0; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 800; }
.news-dialog-actions button:first-child { background: #edf1ec; }
.search {
    display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px;
    border: 1px solid var(--line); border-radius: 13px; background: #f7f8f6;
}
.search:focus-within { border-color: #85b991; box-shadow: 0 0 0 3px rgba(34, 116, 71, .09); }
.search svg, .icon-button svg, .locate-button svg {
    width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.search svg { color: #7f8d85; flex: 0 0 auto; }
.search input { width: 100%; outline: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #96a29b; }
.filters { display: flex; gap: 6px; margin: 14px 0 16px; }
.filter {
    display: flex; gap: 5px; align-items: center; min-width: 0; padding: 7px 9px;
    border: 1px solid var(--line); border-radius: 999px; background: white;
    cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700;
}
.filter:hover, .filter.active { border-color: var(--ink); background: var(--ink); color: white; }
.filter span { opacity: .65; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot.planned { background: var(--planned); border: 1px solid var(--planned-dark); }
.dot.visited { background: var(--visited); border: 1px solid var(--visited-dark); }
.park-list { flex: 1; overflow: auto; min-height: 0; margin: 0 -9px; padding: 0 9px 10px; scrollbar-width: thin; }
.activity-highlight { outline: 3px solid var(--accent); outline-offset: 2px; }
.park-card {
    width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; gap: 10px; align-items: center;
    margin-bottom: 6px; padding: 11px 9px; border: 0; border-radius: 12px;
    background: transparent; cursor: pointer; text-align: left;
}
.park-card:hover, .park-card.active { background: #f2f5f0; }
.park-card.active { box-shadow: inset 3px 0 var(--accent); }
.park-card.editor-active { background: #fff1e8; box-shadow: inset 4px 0 #dc4a16; }
.park-badge {
    width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 11px; background: #edf2ec; font-size: 15px;
}
.park-badge.planned { color: #0929a8; background: #dfe5ff; }
.park-badge.visited { color: var(--visited-dark); background: #dcf5d1; }
.park-badge.unmarked { color: #0057c2; background: #dceeff; }
.park-copy { min-width: 0; display: grid; gap: 3px; }
.park-copy strong { overflow: hidden; font-size: 12.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.park-copy small { color: var(--muted); font-size: 10px; }
.park-list-rating { color: #95630d; font-weight: 800; white-space: nowrap; }
.park-list-rating.missing { color: #89948c; font-weight: 600; }
.park-list-friends { color: var(--green-dark) !important; font-weight: 700; }
.rating-sort { align-self: flex-start; margin: 2px 0 8px; padding: 5px 9px; border: 1px solid #e4decf; border-radius: 999px; color: #81632c; background: #fffbf2; cursor: pointer; font-size: 10px; font-weight: 700; }
.rating-sort[aria-pressed="true"] { border-color: #d79b27; color: #654512; background: #fff0cd; }
.chevron { color: #a8b0ab; font-size: 18px; }
.unread-badge {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    min-width: 23px; height: 23px; padding: 0 6px; border: 2px solid white;
    border-radius: 999px; color: white; background: #f05245;
    box-shadow: 0 2px 7px rgba(157,48,39,.24); font-size: 10px; font-weight: 900;
}
.park-unread-marker {
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0;
}
.park-unread-marker span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 6px; border: 3px solid white;
    border-radius: 999px; color: white; background: #f05245;
    box-shadow: 0 3px 10px rgba(111,31,24,.38); font-size: 10px; font-weight: 900;
}
.park-content-marker { border: 0; background: transparent; }
.mobile-park-info {
    position: relative; display: grid; gap: 3px; width: 204px; min-height: 52px;
    padding: 7px 10px; border: 1px solid #d5e1d9; border-radius: 12px;
    color: #183126; background: rgba(255,255,255,.97);
    box-shadow: 0 3px 12px rgba(23,49,37,.24); font: 700 11px Manrope, sans-serif;
}
.mobile-park-info > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-park-stats, .park-tooltip-stats { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.mobile-park-stats > span, .park-tooltip-stats > span { display: inline-flex; align-items: center; gap: 3px; }
.mobile-park-stats svg, .park-tooltip-stats svg { width: 14px; height: 14px; fill: none; stroke: #227447; stroke-width: 1.8; stroke-linejoin: round; }
.mobile-park-stats .content-rating, .park-tooltip-stats .content-rating { color: #a66b09; font-weight: 800; }
.mobile-park-info.has-unread::after {
    position: absolute; top: -2px; right: 1px; width: 9px; height: 9px; border: 2px solid white;
    border-radius: 50%; background: #f05245; content: '';
}
.empty { padding: 40px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.sidebar-foot { padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.sidebar-foot { display: flex; justify-content: space-between; gap: 10px; }
.legend { display: flex; align-items: center; gap: 5px; }
.map-wrap { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
#map { width: 100%; height: 100%; background: #dce8dc; }
.leaflet-control-zoom { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 36px !important; color: var(--ink) !important; }
.leaflet-control-attribution { font-size: 9px; }
.map-note {
    position: absolute; z-index: 500; top: 18px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); box-shadow: 0 8px 28px rgba(23, 49, 37, .12);
    backdrop-filter: blur(10px); font-size: 11px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,112,77,.15); }
.locate-button, .icon-button {
    display: grid; place-items: center; border: 0; cursor: pointer; background: white;
}
.locate-button {
    position: absolute; z-index: 500; right: 18px; bottom: 28px; width: 44px; height: 44px;
    border-radius: 14px; box-shadow: var(--shadow);
}
.locate-button:hover { color: var(--green-dark); }
.starts-toggle { position: absolute; z-index: 500; left: 16px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 11px 5px 5px; border: 1px solid #efd2b0; border-radius: 12px; color: #6d3c12; background: rgba(255, 251, 244, .96); box-shadow: var(--shadow); cursor: pointer; font-size: 11px; font-weight: 800; }
.starts-toggle[hidden] { display: none; }
.starts-toggle.muted { opacity: .62; filter: grayscale(.7); }
.starts-toggle-symbol { display: block; width: 28px; height: 28px; flex: none; border: 2px solid white; border-radius: 50%; background: #f39200 url('../img/five-verst-logo.png') center / 150% auto no-repeat; box-shadow: 0 1px 5px rgba(95, 49, 13, .3); }
.starts-toggle b { margin-left: 3px; font-size: 10px; }
.five-verst-icon { overflow: visible; border: 0; background: transparent; }
.five-verst-icon:hover, .five-verst-icon:focus-within { z-index: 1500 !important; }
.five-verst-pin { position: relative; display: block; width: 32px; height: 32px; border: 3px solid white; border-radius: 50%; background: #f39200 url('../img/five-verst-logo.png') center / 150% auto no-repeat; box-shadow: 0 2px 10px rgba(95, 49, 13, .4); }
.five-verst-pin::after { content: ''; position: absolute; z-index: -1; bottom: -7px; left: 9px; width: 9px; height: 9px; border-right: 2px solid white; border-bottom: 2px solid white; background: #f39200; transform: rotate(45deg); }
.five-verst-pin.is-selected { outline: 3px solid #7c3e10; outline-offset: 2px; }
.five-verst-pin.is-hidden { opacity: .55; filter: grayscale(.8); }
.five-verst-hover { position: absolute; bottom: 39px; left: 13px; display: none; gap: 4px; width: 220px; padding: 11px 12px; border: 1px solid #edcfad; border-radius: 12px; color: var(--ink); background: #fffdf8; box-shadow: var(--shadow); text-align: left; transform: translateX(-50%); }
.five-verst-hover::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.five-verst-pin:hover .five-verst-hover, .five-verst-icon:focus-within .five-verst-hover { display: grid; }
.five-verst-hover strong { font-size: 12px; line-height: 1.35; }
.five-verst-hover small { color: var(--muted); font-size: 10px; }
.five-verst-hover a { justify-self: start; color: var(--green-dark); font-size: 11px; font-weight: 800; text-decoration: underline; }
.five-verst-popup { display: grid; gap: 5px; min-width: 180px; }
.five-verst-popup small { color: #a45818; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.five-verst-popup strong { font-size: 14px; }
.five-verst-popup span { color: var(--muted); font-size: 11px; }
.five-verst-popup a { margin-top: 4px; color: var(--green-dark); font-size: 11px; font-weight: 800; }
.leaflet-popup-pane { z-index: 900; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; background: #edf1ec; }
.mobile-only { display: none; }
.leaflet-tooltip.park-tooltip {
    max-width: 260px; padding: 9px 11px; border: 0; border-radius: 10px;
    box-shadow: 0 8px 26px rgba(23,49,37,.18); color: var(--ink);
    font: 700 11px Manrope, sans-serif; white-space: normal;
}
.park-tooltip strong { display: block; line-height: 1.3; }
.park-tooltip-stats { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.park-tooltip small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.leaflet-tooltip-top:before { border-top-color: white; }
.park-dialog, .about-dialog {
    width: min(430px, calc(100vw - 28px)); padding: 29px; border: 0; border-radius: 24px;
    color: var(--ink); background: white; box-shadow: var(--shadow);
}
.park-dialog { max-height: min(90dvh, 820px); overflow-y: auto; }
.park-dialog.tracks-open { width: min(790px, calc(100vw - 28px)); }
.mobile-park-tabs, .mobile-status-toggle, .overview-previews { display: none; }
.park-overview { display: contents; }
.park-copy-details { display: grid; gap: 14px; }
.park-copy-details > summary { display: none; }
.park-dialog::backdrop, .about-dialog::backdrop { background: rgba(16, 32, 25, .38); backdrop-filter: blur(3px); }
.dialog-close {
    position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0;
    border-radius: 50%; background: #eef1ed; cursor: pointer; color: #607067; font-size: 20px;
}
.park-dialog h2, .about-dialog h2 { max-width: 340px; margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
.dialog-district { margin: 8px 0 16px; color: var(--muted); font-size: 12px; }
.park-edit-button { display: inline-flex; align-items: center; margin: -5px 0 16px; padding: 8px 11px; border: 1px solid #d3ddcf; border-radius: 9px; color: var(--green-dark); background: #f3f8f0; cursor: pointer; font-size: 11px; font-weight: 800; }
.park-edit-button:hover { background: #e5f1df; }
.park-edit-button[hidden] { display: none; }
.park-rating { display: grid; gap: 9px; margin: 0 0 17px; padding: 13px 15px; border: 1px solid #e9dcc2; border-radius: 16px; background: #fffbf2; }
.rating-summary { display: flex; align-items: baseline; gap: 7px; }
.rating-summary-star { align-self: center; color: #e5a526; font-size: 22px; line-height: 1; }
.rating-summary strong { color: #4c3c1f; font-size: 21px; line-height: 1; }
.rating-summary > span:last-child { color: #756d5e; font-size: 11px; }
.rating-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rating-action > span { color: #665a42; font-size: 11px; font-weight: 700; }
.rating-stars { display: flex; gap: 1px; }
.rating-stars button { width: 36px; height: 38px; padding: 0; border: 0; border-radius: 8px; color: #c6c4bd; background: transparent; cursor: pointer; font-size: 29px; line-height: 1; }
.rating-stars button.filled, .rating-stars button.preview { color: #e3a01a; }
.rating-stars button:hover, .rating-stars button:focus-visible { background: #fff0cb; outline-color: #ad7413; }
.rating-stars button:disabled { opacity: .55; cursor: wait; }
.rating-remove { justify-self: end; padding: 0; border: 0; color: #766b55; background: none; cursor: pointer; font-size: 10px; text-decoration: underline; }
.rating-remove[hidden] { display: none; }
.park-friends { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #d9e9da; border-radius: 14px; background: #f4faf3; }
.park-friends[hidden] { display: none; }
.park-friends > strong { color: var(--green-dark); font-size: 11px; }
.park-friends > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.park-friends span { padding: 5px 8px; border-radius: 999px; color: #24553c; background: white; font-size: 10px; font-weight: 700; }
.park-cover { margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #edf1ed; }
.park-cover[hidden] { display: none; }
.park-cover > a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e5ebe6; }
.park-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.park-cover figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; color: var(--muted); font-size: 10px; }
.park-cover figcaption strong { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.park-cover figcaption span { flex: 0 0 auto; }
.park-cover figcaption .cover-author-row { display: inline-flex; align-items: center; gap: 7px; }
.park-facts {
    display: grid; gap: 14px; margin: 0 0 20px; padding: 16px;
    border: 1px solid var(--line); border-radius: 16px; background: #f8faf7;
}
.area-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.area-fact span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.area-fact strong { color: var(--green-dark); font-size: 18px; }
.metro-fact { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.metro-fact > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metro-fact > div { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 11px; }
.metro-fact > div span { padding: 5px 8px; border: 1px solid #cbdad0; border-radius: 999px; color: var(--green-dark); background: white; font-size: 10px; font-weight: 800; }
.park-copy-block { display: grid; gap: 5px; }
.park-copy-block h3, .status-heading { margin: 0; font-size: 12px; }
.park-copy-block p {
    margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55;
}
.park-links { display: flex; flex-wrap: wrap; gap: 7px; }
.park-links:empty { display: none; }
.park-links a {
    padding: 6px 9px; border: 1px solid #cfdcd2; border-radius: 999px;
    color: var(--green-dark); background: white; font-size: 10px; font-weight: 700;
    text-decoration: none;
}
.park-links a:hover { border-color: var(--green-dark); }
.status-heading { margin: 0 0 9px; }
.status-options { display: grid; gap: 8px; }
.status-options button {
    display: grid; grid-template-columns: 40px 1fr 20px; gap: 11px; align-items: center;
    padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; text-align: left;
}
.status-options button:hover { border-color: #93a59b; background: #fafbf9; }
.status-options button.selected { border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(34,116,71,.1); }
.status-options button[data-status="PLANNED"].selected {
    border-color: var(--planned-dark); box-shadow: 0 0 0 2px rgba(36,87,255,.18);
}
.status-options button b { visibility: hidden; color: var(--green-dark); }
.status-options button.selected b { visibility: visible; }
.status-options span { display: grid; gap: 2px; }
.status-options strong { font-size: 12px; }
.status-options small { color: var(--muted); font-size: 10px; }
.status-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-style: normal; }
.status-icon.planned { color: #0929a8; background: #dfe5ff; }
.status-icon.visited { color: var(--visited-dark); background: #dcf5d1; }
.status-icon.unmarked { color: #0057c2; background: #dceeff; }
.shared-note { margin: 17px 0 0; color: #8a968f; font-size: 10px; text-align: center; }

.park-photos, .park-chat {
    margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.photo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-head h3 { margin: 2px 0 0; font-size: 16px; }
.photo-head .eyebrow { margin: 0; }
.photo-head > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.photo-placeholder {
    grid-column: 1 / -1; margin: 0; padding: 24px 12px; border: 1px dashed #d5ddd7;
    border-radius: 14px; color: #839087; background: #f7f9f7; font-size: 11px; text-align: center;
}
.photo-placeholder.error { color: #a1433a; }
.park-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f2f5f2; }
.park-photo.is-cover { border-color: #75a886; }
.park-photo > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ece8; }
.park-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.park-photo > a:hover img { transform: scale(1.025); }
.park-photo figcaption { display: grid; gap: 3px; padding: 8px 9px 9px; }
.park-photo figcaption strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.park-photo figcaption span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.photo-author-row, .chat-author-row { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.photo-author-row strong { min-width: 0; }
.author-friend-button { flex: 0 0 auto; padding: 3px 6px; border: 1px solid #c8decf; border-radius: 7px; color: var(--green-dark); background: #f1f8f1; cursor: pointer; font-size: 9px; font-weight: 800; white-space: nowrap; }
.author-friend-button:disabled { color: #718076; background: #edf1ed; cursor: default; }
.photo-viewer-caption .author-friend-button { margin-left: 8px; color: #e3f3e6; background: #345244; border-color: #557863; }
.photo-cover-badge { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 7px; color: #fff; background: rgba(24, 74, 47, .85); font-size: 9px; font-weight: 800; }
.photo-admin-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px 9px; }
.photo-admin-actions button, .chat-admin-action { padding: 5px 7px; border: 1px solid #c9d9cd; border-radius: 7px; color: var(--green-dark); background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.photo-admin-actions button:hover, .chat-admin-action:hover { background: #eaf4ec; }
.photo-admin-actions button:disabled, .chat-admin-action:disabled { cursor: default; opacity: .55; }
.photo-viewer { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: min(94dvh, 920px); padding: 14px; border: 0; border-radius: 18px; color: white; background: #14231c; box-shadow: var(--shadow); }
.photo-viewer::backdrop { background: rgba(8,18,13,.82); }
.photo-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; }
.photo-viewer-head button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 9px; color: white; background: #345244; cursor: pointer; font-size: 12px; font-weight: 800; }
.photo-viewer-head span { color: #cbd8d0; font-size: 12px; font-weight: 700; }
.photo-viewer-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 0; }
.photo-viewer-stage img { display: block; width: 100%; max-height: min(72dvh, 730px); object-fit: contain; }
.photo-viewer-arrow { width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: #345244; cursor: pointer; font-size: 32px; line-height: 1; }
.photo-viewer-arrow:disabled { cursor: default; opacity: .35; }
.photo-viewer-caption { min-height: 17px; margin: 12px 4px 2px; color: #e6eee8; font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.photo-form { display: grid; gap: 9px; margin-top: 11px; padding: 12px; border-radius: 13px; background: #f3f6f3; }
.photo-form[hidden], .photo-login-prompt[hidden] { display: none; }
.photo-file-field, .photo-caption-field { display: grid; gap: 5px; }
.photo-file-field > span, .photo-caption-field > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.photo-file-field input, .photo-caption-field input { width: 100%; font-size: 11px; }
.file-drop-zone { padding: 13px; border: 2px dashed #b8cbbb; border-radius: 11px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.file-drop-zone.is-drag-over { border-color: var(--green-dark); background: #eaf7e9; box-shadow: inset 0 0 0 2px rgba(34, 116, 71, .12); }
.park-photos.is-drag-over, .park-tracks.is-drag-over { outline: 2px dashed var(--green-dark); outline-offset: -2px; }
.file-drop-hint { color: var(--green-dark) !important; font-size: 12px !important; font-weight: 800 !important; }
.photo-file-status, .photo-error { margin: 0; font-size: 10px; line-height: 1.4; }
.photo-file-status { color: var(--muted); overflow-wrap: anywhere; }
.photo-error { padding: 8px 10px; border-radius: 9px; color: #a33731; background: #fff0ee; }
.photo-error[hidden] { display: none; }
.photo-caption-field input { padding: 9px 10px; border: 1px solid #d9e1db; border-radius: 10px; outline: 0; }
.photo-caption-field input:focus { border-color: #5590e8; box-shadow: 0 0 0 3px rgba(36,87,255,.1); }
.photo-upload { justify-self: end; padding: 9px 13px; border-radius: 10px; color: white; background: var(--planned); font-size: 11px; font-weight: 800; }
.photo-upload:disabled { cursor: wait; opacity: .55; }
.photo-login-prompt {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding: 12px; border: 1px solid #cbd8f6; border-radius: 12px;
    color: #4e607e; background: #eef3ff; font-size: 11px;
}
.photo-login-prompt button { flex: 0 0 auto; padding: 8px 13px; border-radius: 9px; color: white; background: var(--planned); font-weight: 800; }
.park-content-tabs { display: flex; gap: 7px; margin-top: 24px; padding: 4px; border-radius: 13px; background: #eef3ee; }
.park-content-tabs button { flex: 1; padding: 10px 8px; border: 0; border-radius: 10px; color: #586b5d; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.park-content-tabs button.active { color: var(--green-dark); background: white; box-shadow: 0 1px 5px rgba(31,55,38,.12); }
.park-photos, .park-tracks { margin-top: 0; padding-top: 17px; border-top: 0; }
.park-photos[hidden], .park-tracks[hidden], .track-member[hidden], .track-login-prompt[hidden], .track-map-card[hidden] { display: none; }
.track-login-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid #cbd8f6; border-radius: 12px; color: #4e607e; background: #eef3ff; font-size: 11px; }
.track-login-prompt button { flex: 0 0 auto; padding: 8px 13px; border-radius: 9px; color: white; background: var(--planned); font-weight: 800; }
.track-sort-label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.track-sort-label select { max-width: 235px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; }
.track-list { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.track-list > .photo-placeholder { margin: 0; }
.track-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 11px; }
.track-table th { padding: 9px 10px; color: #607267; background: #f0f5f0; font-size: 10px; text-align: left; white-space: nowrap; }
.track-table td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.track-table tbody tr:hover { background: #f8faf7; }
.track-table td:nth-child(2), .track-table td:nth-child(3), .track-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.track-name-cell { min-width: 170px; max-width: 270px; }
.track-name-cell strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.track-name-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.track-name-cell p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.track-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 145px; }
.track-actions button, .track-actions a { padding: 6px 8px; border: 1px solid #cbd9ce; border-radius: 8px; color: var(--green-dark); background: white; cursor: pointer; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.track-actions button:first-child { color: white; background: var(--green-dark); }
.track-file-names { display: grid; gap: 8px; }
.track-file-names:empty { display: none; }
.track-file-names label { display: grid; gap: 4px; padding: 9px; border: 1px solid #d9e1db; border-radius: 9px; background: white; }
.track-file-names span { overflow-wrap: anywhere; }
.track-form { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 13px; background: #f3f6f3; }
.track-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.track-form input, .track-form textarea { width: 100%; padding: 8px; border: 1px solid #d9e1db; border-radius: 9px; font: inherit; font-size: 11px; }
.track-form button { justify-self: end; }
@media (pointer: coarse) {
    .file-drop-zone { padding: 0; border: 0; background: transparent; }
    .file-drop-hint { display: none; }
}
.track-map-card { position: absolute; z-index: 850; top: 72px; left: 16px; display: grid; gap: 7px; max-width: min(350px, calc(100% - 32px)); padding: 13px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.track-map-card strong { font-size: 13px; }
.track-map-card span { color: var(--muted); font-size: 11px; }
.track-map-card div { display: flex; flex-wrap: wrap; gap: 6px; }
.track-map-card button { padding: 7px 9px; border: 1px solid #cbd9ce; border-radius: 8px; color: var(--green-dark); background: #f5faf5; cursor: pointer; font-size: 10px; font-weight: 800; }
.chat-head, .chat-form-foot, .chat-identity, .chat-message > div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.chat-head h3 { margin: 2px 0 0; font-size: 16px; }
.chat-head .eyebrow { margin: 0; }
.chat-live {
    display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
    font-size: 10px; font-weight: 700;
}
.chat-live i {
    width: 7px; height: 7px; border-radius: 50%; background: #36a565;
    box-shadow: 0 0 0 3px rgba(54,165,101,.14);
}
.chat-identity {
    margin-top: 14px; padding: 8px 10px; border-radius: 10px; background: #f1f5f2;
    color: var(--muted); font-size: 11px;
}
.chat-identity[hidden], .chat-form[hidden], .chat-login-prompt[hidden] { display: none; }
.chat-identity strong { color: var(--ink); }
.chat-identity button {
    padding: 0; color: #0d57a9; background: transparent; font-size: 11px; font-weight: 700;
}
.chat-messages {
    display: flex; flex-direction: column; gap: 8px; min-height: 92px; max-height: 280px;
    margin-top: 12px; padding: 12px; overflow-y: auto; border: 1px solid var(--line);
    border-radius: 14px; background: #f5f7f4;
}
.chat-placeholder {
    margin: auto; padding: 18px 10px; color: #839087; font-size: 11px;
    line-height: 1.5; text-align: center;
}
.chat-placeholder.error { color: #a1433a; }
.chat-message {
    align-self: flex-start; width: min(88%, 330px); padding: 9px 11px;
    border: 1px solid #dce3dd; border-radius: 12px 12px 12px 3px; background: white;
}
.chat-message.own {
    align-self: flex-end; border-color: #bfd1f7; border-radius: 12px 12px 3px 12px;
    background: #eaf1ff;
}
.chat-message strong { color: var(--ink); font-size: 11px; }
.chat-message time { color: #8a968f; font-size: 9px; }
.chat-message p {
    margin: 5px 0 0; color: #46534c; font-size: 12px; line-height: 1.45;
    overflow-wrap: anywhere; white-space: pre-wrap;
}
.chat-message-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 7px;
}
.chat-like {
    display: inline-flex; align-items: center; gap: 4px; min-width: 34px; padding: 3px 7px;
    border: 1px solid #d9dfdb; border-radius: 999px; color: #88948d;
    background: rgba(255,255,255,.78); font-size: 12px;
}
.chat-like span { line-height: 1; }
.chat-like b { font-size: 9px; font-weight: 800; }
.chat-like:hover { border-color: #e3a6a0; color: #e04b43; }
.chat-like.liked {
    border-color: #f0b0aa; color: #e23f37; background: #fff0ee;
}
.chat-like:disabled { cursor: wait; opacity: .55; }
.chat-form { display: grid; gap: 9px; margin-top: 10px; }
.chat-name-field, .chat-text-field { display: grid; gap: 5px; }
.chat-name-field > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.chat-name-field input, .chat-text-field textarea {
    width: 100%; padding: 10px 11px; border: 1px solid #d9e1db; border-radius: 11px;
    outline: none; color: var(--ink); background: white; font: inherit;
}
.chat-text-field textarea { min-height: 72px; resize: vertical; font-size: 12px; line-height: 1.45; }
.chat-name-field input:focus, .chat-text-field textarea:focus {
    border-color: #5590e8; box-shadow: 0 0 0 3px rgba(36,87,255,.1);
}
.chat-form-foot small { max-width: 210px; color: #8a968f; font-size: 9px; line-height: 1.35; }
.chat-send {
    min-width: 104px; padding: 10px 14px; border-radius: 10px; color: white;
    background: #2457ff; font-size: 11px; font-weight: 800;
}
.chat-send:hover { background: #1744df; }
.chat-send:disabled { cursor: wait; opacity: .55; }
.chat-login-prompt {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding: 12px; border: 1px solid #cbd8f6; border-radius: 12px;
    color: #4e607e; background: #eef3ff; font-size: 11px; line-height: 1.4;
}
.chat-login-prompt button {
    flex: 0 0 auto; padding: 8px 13px; border: 0; border-radius: 9px;
    color: white; background: var(--planned); font-weight: 800;
}
.auth-dialog, .account-dialog {
    width: min(420px, calc(100% - 28px)); padding: 28px; border: 0; border-radius: 22px;
    color: var(--ink); background: white; box-shadow: var(--shadow);
}
.auth-dialog::backdrop, .account-dialog::backdrop { background: rgba(17,35,26,.5); backdrop-filter: blur(3px); }
.auth-dialog h2, .account-dialog h2 { margin: 4px 0 18px; font-size: 25px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 12px; background: #eef1ed; }
.auth-tabs button { padding: 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(23,49,37,.08); }
.auth-form { display: grid; gap: 12px; margin-top: 18px; }
.auth-form label { display: grid; gap: 5px; }
.auth-form label[hidden] { display: none; }
.auth-form label span { color: var(--muted); font-size: 10px; font-weight: 800; }
.auth-form input { width: 100%; padding: 11px 12px; border: 1px solid #d9e1db; border-radius: 11px; outline: 0; }
.auth-form input:focus { border-color: #5590e8; box-shadow: 0 0 0 3px rgba(36,87,255,.1); }
.auth-form .primary-button { margin-top: 2px; color: white; background: var(--planned); }
.auth-hint, .auth-error { margin: 0; font-size: 10px; line-height: 1.45; }
.auth-hint { color: var(--muted); }
.auth-error { color: #a33731; }
.auth-error[hidden] { display: none; }
.danger-button { margin-top: 8px; color: #a33731; background: #fff0ee; }
.account-admin-button { display: block; width: 100%; margin: 12px 0 4px; padding: 11px; border: 0; border-radius: 10px; color: white; background: var(--green-dark); cursor: pointer; font-size: 12px; font-weight: 800; }
.account-admin-button[hidden] { display: none; }
.admin-dialog { width: min(900px, calc(100vw - 28px)); max-width: none; max-height: min(90dvh, 850px); padding: 26px; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: var(--shadow); }
.admin-dialog::backdrop { background: rgba(17,35,26,.5); backdrop-filter: blur(3px); }
.admin-dialog h2 { margin: 0 0 15px; font-size: 24px; }
.admin-search { display: flex; gap: 7px; margin-bottom: 10px; }
.admin-search input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.admin-search button, .admin-pages button, .admin-actions button, .admin-edit button, .admin-role button, .admin-delete-form button { padding: 9px 11px; border: 0; border-radius: 9px; background: #eaf1eb; cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-search button, .admin-edit button, .admin-role button { color: white; background: var(--green-dark); }
.admin-error { margin: 6px 0; padding: 8px; border-radius: 8px; color: #a33731; background: #fff0ee; font-size: 11px; }
.admin-error[hidden] { display: none; }
.admin-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px; min-height: 350px; }
.admin-list-column { display: flex; flex-direction: column; min-height: 0; }
.admin-total { margin: 3px 0 9px; color: var(--muted); font-size: 11px; }
.admin-user-list { flex: 1; min-height: 0; max-height: 540px; overflow-y: auto; }
.admin-user-row { display: grid; gap: 3px; width: 100%; margin-bottom: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; text-align: left; }
.admin-user-row.active { border-color: var(--green-dark); background: #f2f8f2; }
.admin-user-row strong { font-size: 12px; }
.admin-user-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row.blocked small { color: #a33731; }
.admin-pages { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; font-size: 10px; }
.admin-pages button:disabled { opacity: .45; cursor: default; }
.admin-detail { min-width: 0; max-height: 590px; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf7; }
.admin-detail h3 { margin: 0 0 7px; font-size: 17px; }
.admin-detail-meta, .admin-stats { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-stats span { padding: 5px 7px; border-radius: 7px; background: white; }
.admin-edit { display: grid; gap: 9px; }
.admin-edit label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-edit input, .admin-delete-form input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 12px; }
.admin-edit button { justify-self: start; }
.admin-role { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.admin-role label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-role select { min-width: 160px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.admin-actions .admin-danger, .admin-delete-form button { color: #a33731; background: #fff0ee; }
.admin-actions button:disabled { opacity: .5; cursor: default; }
.admin-delete-form { display: grid; gap: 8px; margin-top: 12px; padding: 11px; border: 1px solid #efc6c0; border-radius: 11px; background: #fff8f7; }
.admin-delete-form[hidden] { display: none; }
.admin-delete-form label { color: #87483f; font-size: 11px; line-height: 1.5; }
.admin-delete-form button { justify-self: start; }
.park-editor { position: absolute; z-index: 1100; top: 12px; left: 12px; width: min(370px, calc(100% - 24px)); max-height: calc(100% - 24px); display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.park-editor[hidden] { display: none; }
.park-editor-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.park-editor-head strong { flex: 1; font-size: 15px; }
.park-editor button { border: 0; border-radius: 8px; padding: 7px 9px; background: #eaf1eb; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; }
.park-editor button:disabled { opacity: .45; cursor: default; }
.park-editor-head button:last-child { font-size: 19px; line-height: 1; }
.park-editor-body { display: grid; gap: 9px; overflow-y: auto; min-height: 0; }
.park-editor.collapsed .park-editor-body { display: none; }
.park-editor-pick, .park-editor-ring, .park-editor-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.park-editor-pick select, .park-editor-ring select { min-width: 0; flex: 1; }
.park-editor label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.park-editor label small { font-weight: 400; }
.park-editor input, .park-editor textarea, .park-editor select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 11px; }
.park-editor textarea { resize: vertical; }
.park-editor-hint { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.park-editor-actions .primary-button { margin: 0; color: white; background: var(--green-dark); }
.park-editor-actions #editorVisibility { color: #a33731; background: #fff0ee; }
.park-editor-ring #editorSplitStart { color: #7b3e13; background: #fff0de; }
.park-editor-split { display: grid; gap: 8px; padding: 11px; border: 1px solid #e9c294; border-radius: 10px; background: #fff8ef; }
.park-editor-split[hidden] { display: none; }
.park-editor-split strong { color: #843f17; font-size: 12px; }
.park-editor-split p { margin: 0; color: #6f6154; font-size: 10px; line-height: 1.45; }
.park-editor-split > div { display: flex; flex-wrap: wrap; gap: 6px; }
.park-editor-split #editorSplitConfirm { color: white; background: #b54d17; }
.park-editor-selected-shape { filter: drop-shadow(0 0 4px #f17127); }
.park-editor-vertex { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; background: #dc4a16; box-shadow: 0 1px 5px #3338; }
.park-editor-midpoint { width: 11px; height: 11px; border: 2px solid #dc4a16; border-radius: 50%; background: white; }
.start-editor { position: absolute; z-index: 1100; top: 12px; left: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px); display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.start-editor[hidden] { display: none; }
.start-editor-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.start-editor-head strong { flex: 1; font-size: 15px; }
.start-editor-head button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #eaf1eb; color: var(--ink); cursor: pointer; font-size: 19px; }
.start-editor-body { display: grid; gap: 10px; min-height: 0; overflow-y: auto; }
.start-editor-pick { display: flex; gap: 6px; }
.start-editor-pick select { flex: 1; min-width: 0; }
.start-editor button { cursor: pointer; }
.start-editor-pick button, .start-editor-actions button { padding: 8px 10px; border: 0; border-radius: 8px; color: var(--ink); background: #eaf1eb; font-size: 11px; font-weight: 800; }
.start-editor input, .start-editor select { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 11px; }
.start-editor form, .start-editor label { display: grid; gap: 5px; }
.start-editor form { gap: 9px; }
.start-editor label { color: var(--muted); font-size: 10px; font-weight: 700; }
.start-editor-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.start-editor-hint { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.start-editor-error { margin: 0; padding: 8px; border-radius: 8px; color: #a33731; background: #fff0ee; font-size: 10px; }
.start-editor-error[hidden] { display: none; }
.start-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.start-editor-actions .primary-button { margin: 0; color: white; background: var(--green-dark); }
.start-editor-actions button:disabled { opacity: .5; cursor: wait; }
.start-editor-actions #startEditorVisibility { color: #a33731; background: #fff0ee; }
.start-editor-actions #startEditorVisibility[hidden] { display: none; }
@media (max-width: 690px) {
    .admin-dialog { max-height: 94dvh; padding: 20px 14px; }
    .admin-layout { grid-template-columns: 1fr; gap: 12px; }
    .admin-user-list { max-height: 180px; }
    .admin-detail { max-height: 48dvh; }
    .park-editor { inset: auto 8px 8px; width: auto; max-height: 48dvh; padding: 10px; }
    .start-editor { inset: auto 8px 8px; width: auto; max-height: 64dvh; padding: 12px; }
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.about-dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.65; }
.primary-button { margin-top: 5px; color: white; background: var(--green-dark); }
.toast {
    position: fixed; z-index: 3000; left: 50%; bottom: 24px; transform: translate(-50%, 25px);
    padding: 11px 16px; border-radius: 12px; color: white; background: var(--ink);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease;
    font-size: 12px; font-weight: 700;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.scrim { display: none; }

@media (min-width: 761px) {
    .park-dialog, .park-dialog.tracks-open { width: min(900px, calc(100vw - 40px)); max-width: none; max-height: min(90dvh, 850px); padding: 0; }
    .park-dialog-header { position: sticky; z-index: 8; top: 0; height: 104px; padding: 13px 68px 10px 28px; border-bottom: 1px solid var(--line); background: white; }
    .park-dialog-header .eyebrow { margin: 0 0 5px; }
    .park-dialog-header h2 { display: -webkit-box; max-width: none; max-height: 53px; overflow: hidden; font-size: 22px; line-height: 26px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .park-dialog-header .dialog-district { margin: 4px 0 0; }
    .park-dialog-header .dialog-close { top: 18px; right: 22px; }
    .mobile-park-tabs { position: sticky; z-index: 7; top: 104px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 7px 28px; border-bottom: 1px solid var(--line); background: white; }
    .mobile-park-tabs button { min-height: 38px; border: 0; border-radius: 9px; color: #586b5d; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
    .mobile-park-tabs button.active { color: var(--green-dark); background: #edf5ed; }
    .mobile-park-tabs button:hover:not(.active) { background: #f6f8f5; }
    .mobile-park-tabs span { color: var(--muted); }
    .park-content-tabs { display: none; }
    .park-overview { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "edit edit" "left right"; align-items: start; gap: 14px 18px; padding: 18px 28px 28px; }
    .park-overview[hidden], .park-photos[hidden], .park-tracks[hidden], .park-chat[hidden] { display: none; }
    .park-edit-button { grid-area: edit; justify-self: start; margin: 0; }
    .overview-left, .overview-right { display: grid; align-content: start; gap: 12px; min-width: 0; }
    .overview-left { grid-area: left; }
    .overview-right { grid-area: right; }
    .park-rating { grid-template-columns: 1fr auto; align-items: center; gap: 5px 8px; margin: 0; padding: 11px 13px; }
    .rating-action > span { display: none; }
    .rating-stars button { width: 28px; height: 34px; font-size: 22px; }
    .rating-remove { grid-column: 2; }
    .park-friends { margin: 0; }
    .park-cover { margin: 0; }
    .park-cover > a { height: 245px; aspect-ratio: auto; }
    .park-facts { gap: 10px; margin: 0; padding: 14px; }
    .metro-fact { padding-top: 9px; }
    .park-copy-details { display: block; padding-top: 9px; border-top: 1px solid var(--line); }
    .park-copy-details > summary { display: grid; gap: 4px; cursor: pointer; list-style: none; }
    .park-copy-details > summary::-webkit-details-marker { display: none; }
    .park-copy-details > summary strong { font-size: 12px; }
    .park-copy-details > summary span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .park-copy-details > summary em { color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 800; }
    .park-copy-details[open] > summary span { display: none; }
    .park-copy-details[open] > summary em { font-size: 0; }
    .park-copy-details[open] > summary em::before { content: 'Свернуть'; font-size: 10px; }
    .park-copy-details[open] .park-copy-block, .park-copy-details[open] .park-links { margin-top: 10px; }
    .status-heading { margin: 0; }
    .status-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .status-options button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 85px; padding: 8px; }
    .status-options button b, .status-options small { display: none; }
    .status-options strong { font-size: 10px; line-height: 1.25; }
    .status-icon { width: 30px; height: 30px; border-radius: 8px; }
    .shared-note { margin: 0; text-align: left; }
    .overview-previews { display: grid; gap: 7px; margin-top: 2px; }
    .overview-previews button { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; cursor: pointer; text-align: left; }
    .overview-previews button:hover { border-color: #aac9b1; background: #f2f8f1; }
    .overview-previews strong { font-size: 12px; }
    .overview-previews span { grid-column: 1; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .overview-previews b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green-dark); font-size: 10px; white-space: nowrap; }
    .park-photos, .park-tracks, .park-chat { margin: 0; padding: 20px 28px 28px; border-top: 0; }
    .photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chat-messages { max-height: 420px; }
}

@media (max-width: 760px) {
    .app-shell { grid-template-rows: 66px 1fr; }
    .topbar { padding: 0 14px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
    .about-button { display: none; }
    .account-button { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-only { display: grid; }
    .workspace { display: block; position: relative; height: 100%; }
    .map-wrap { height: 100%; }
    .sidebar {
        position: fixed; z-index: 1600; inset: auto 0 0; height: min(76vh, 680px);
        padding: 22px 18px max(14px, env(safe-area-inset-bottom)); border: 0;
        border-radius: 24px 24px 0 0; box-shadow: var(--shadow);
        transform: translateY(104%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    }
    .sidebar.open { transform: translateY(0); }
    .scrim { position: fixed; z-index: 1500; inset: 0; background: rgba(17,35,26,.32); }
    .scrim.show { display: block; }
    .sidebar-foot { display: none; }
    h1 { font-size: 27px; }
    .intro { margin-bottom: 14px; }
    .filters { overflow-x: auto; }
    .filter { flex: 0 0 auto; }
    .map-note { top: 14px; }
    .leaflet-control-zoom { margin-top: 62px !important; }
    .locate-button { right: 14px; bottom: 18px; }
    .starts-toggle { left: 12px; bottom: 18px; }
    .park-dialog {
        width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0;
        padding: 0 0 max(18px, env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
    }
    .park-dialog.tracks-open { width: 100%; }
    .park-dialog-header {
        position: sticky; z-index: 8; top: 0; height: 86px; padding: 10px 56px 8px 16px;
        border-bottom: 1px solid var(--line); background: white;
    }
    .park-dialog-header .eyebrow { display: none; }
    .park-dialog-header h2 { display: -webkit-box; max-width: none; max-height: 42px; overflow: hidden; font-size: 16px; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .park-dialog-header .dialog-district { margin: 2px 0 0; font-size: 11px; }
    .park-dialog-header .dialog-close { top: 12px; right: 14px; }
    .mobile-park-tabs {
        position: sticky; z-index: 7; top: 86px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2px; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); background: white;
    }
    .mobile-park-tabs button { min-width: 0; min-height: 38px; padding: 5px 2px; border: 0; border-radius: 9px; color: #586b5d; background: transparent; font-size: 11px; font-weight: 800; white-space: nowrap; }
    .mobile-park-tabs button.active { color: var(--green-dark); background: #edf5ed; }
    .mobile-park-tabs span { color: var(--muted); font-size: 10px; }
    .park-overview { display: flex; flex-direction: column; padding: 16px; }
    .overview-left, .overview-right { display: contents; }
    .park-edit-button { order: 0; align-self: flex-start; }
    .park-rating { order: 1; }
    .park-friends { order: 2; }
    .park-cover { order: 3; }
    .park-facts { order: 4; }
    .status-heading { order: 5; }
    .mobile-status-toggle { order: 6; }
    .status-options { order: 7; }
    .shared-note { order: 8; }
    .overview-previews { order: 9; }
    .park-overview[hidden], .park-photos[hidden], .park-tracks[hidden], .park-chat[hidden] { display: none; }
    .park-photos, .park-tracks, .park-chat { margin: 0; padding: 16px; border-top: 0; }
    .park-content-tabs { display: none; }
    .park-edit-button { margin: 0 0 10px; }
    .park-rating { grid-template-columns: 1fr auto; align-items: center; gap: 5px 8px; margin-bottom: 12px; padding: 10px 12px; }
    .rating-summary-star { font-size: 19px; }
    .rating-summary strong { font-size: 18px; }
    .rating-action > span { display: none; }
    .rating-stars button { width: 28px; height: 34px; font-size: 22px; }
    .rating-remove { grid-column: 2; font-size: 10px; }
    .park-friends { margin-bottom: 12px; padding: 9px 11px; }
    .park-cover { margin-bottom: 12px; }
    .park-cover > a { height: 170px; aspect-ratio: auto; }
    .park-facts { gap: 10px; margin-bottom: 12px; padding: 12px; }
    .area-fact strong { font-size: 15px; }
    .metro-fact { padding-top: 8px; }
    .park-copy-details { display: block; padding-top: 8px; border-top: 1px solid var(--line); }
    .park-copy-details > summary { display: grid; gap: 3px; cursor: pointer; list-style: none; }
    .park-copy-details > summary::-webkit-details-marker { display: none; }
    .park-copy-details > summary strong { font-size: 12px; }
    .park-copy-details > summary span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .park-copy-details > summary em { color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 800; }
    .park-copy-details[open] > summary span { display: none; }
    .park-copy-details[open] > summary em::before { content: 'Свернуть'; }
    .park-copy-details[open] > summary em { font-size: 0; }
    .park-copy-details[open] > summary em::before { font-size: 10px; }
    .park-copy-details[open] .park-copy-block { margin-top: 10px; }
    .park-copy-details[open] .park-links { margin-top: 10px; }
    .status-heading { margin-bottom: 6px; }
    .mobile-status-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbdad0; border-radius: 11px; color: var(--green-dark); background: #f3f8f0; text-align: left; font-size: 12px; font-weight: 800; }
    .mobile-status-toggle span:last-child { color: #607267; font-size: 10px; }
    .status-options { display: none; margin-top: 8px; }
    .status-options.mobile-expanded { display: grid; }
    .shared-note { margin: 6px 0 12px; text-align: left; }
    .overview-previews { display: grid; gap: 7px; }
    .overview-previews button { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf7; cursor: pointer; text-align: left; }
    .overview-previews strong { font-size: 11px; }
    .overview-previews span { grid-column: 1; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .overview-previews b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green-dark); font-size: 10px; white-space: nowrap; }
    .track-list { overflow-x: visible; border: 0; }
    .track-table, .track-table tbody, .track-table tr { display: block; width: 100%; min-width: 0; }
    .track-table thead { display: none; }
    .track-table tr { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; }
    .track-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 11px; border-top: 0; font-size: 11px; }
    .track-table td::before { color: var(--muted); font-size: 10px; font-weight: 700; }
    .track-table td:nth-child(2)::before { content: 'Длина'; }
    .track-table td:nth-child(3)::before { content: 'Набор ↑'; }
    .track-table td:nth-child(4)::before { content: 'Сброс ↓'; }
    .track-table .track-name-cell { display: block; min-width: 0; max-width: none; padding: 11px 11px 7px; }
    .track-table .track-name-cell strong { font-size: 12px; }
    .track-table td:last-child { padding: 9px 11px 11px; border-top: 1px solid var(--line); }
    .track-actions { min-width: 0; }
    .chat-messages { max-height: none; overflow-y: visible; }
    .track-map-card { inset: auto 0 0; max-width: none; padding: 13px 16px max(13px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
    .photo-upload { justify-self: stretch; min-height: 44px; }
    .photo-viewer { width: 100vw; max-height: 100dvh; padding: 12px 8px max(12px, env(safe-area-inset-bottom)); border-radius: 0; }
    .photo-viewer-stage { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 2px; }
    .photo-viewer-stage img { max-height: 76dvh; }
    .photo-viewer-arrow { width: 34px; height: 44px; border-radius: 9px; font-size: 29px; }
}

@media (max-width: 420px) {
    .brand-mark { display: none; }
    .brand strong { font-size: 13px; }
    .brand small { font-size: 9px; }
    .topbar-actions { gap: 4px; }
    .topbar-actions .icon-button { width: 36px; height: 36px; }
    .account-button { max-width: 90px; padding: 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
