/* =========================================================
   Hydrate my Route — tokens (dark is the default, light is opt-in)
   ========================================================= */
:root {
    --bg: #0b0d10;
    --sidebar: #0d1014;
    --map-bg: #0e1217;
    --card: #12161c;
    --card-border: #1a2027;
    --border: #181d24;
    --border-strong: #232a33;
    --text: #e7ecf2;
    --text-muted: #aeb7c2;
    --text-soft: #7e8893;
    --text-faint: #6b7480;
    --accent: #3fa9ff;
    --accent-strong: #62b8ff;
    --accent-ink: #06141f;
    --accent-soft: #3fa9ff1f;
    --danger: #ff6b6b;
    --danger-soft: #ff6b6b1f;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 4px 8px rgba(0, 0, 0, .3);
    --transition: 150ms cubic-bezier(.4, 0, .2, 1);
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #eef1f5;
    --sidebar: #ffffff;
    --map-bg: #e6ebf1;
    --card: #f5f7fa;
    --card-border: #e2e6ec;
    --border: #e6eaf0;
    --border-strong: #cdd3db;
    --text: #1a2230;
    --text-muted: #4a5563;
    --text-soft: #5b6573;
    --text-faint: #8b95a3;
    --accent: #1b68dc;
    --accent-strong: #1351b3;
    --accent-ink: #ffffff;
    --accent-soft: #1b68dc14;
    --danger: #c0392b;
    --danger-soft: #c0392b14;
    --shadow: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body.rw {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    overflow: hidden;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
@keyframes rw-flow { to { stroke-dashoffset: -180; } }
@keyframes rw-spin { to { transform: rotate(360deg); } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   Buttons
   ========================================================= */
.rw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition), background var(--transition);
}
.rw-btn-primary:hover:not(:disabled) { background: var(--accent-strong); transform: translateY(-1px); }
.rw-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.rw-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.rw-btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.rw-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    padding: 2px;
}
.rw-link:hover { opacity: .75; }

/* =========================================================
   Theme toggle
   ========================================================= */
.rw-theme-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--card);
    color: var(--text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), border-color var(--transition);
}
.rw-theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.rw-theme-toggle svg { width: 17px; height: 17px; }
.rw-theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .rw-theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .rw-theme-toggle .icon-moon { display: block; }

/* =========================================================
   Brand
   ========================================================= */
.rw-brand { display: flex; align-items: center; gap: 13px; }
.rw-logo {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rw-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.rw-brand-sub { font-size: 10.5px; letter-spacing: .2em; color: var(--text-faint); font-family: var(--mono); margin-top: 3px; }

/* =========================================================
   Start screen
   ========================================================= */
.rw-start {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--accent) 9%, var(--bg)) 0%, var(--bg) 42%);
}
.rw-start[hidden] { display: none; }
.rw-start-page { max-width: 780px; margin: 0 auto; padding: 56px 24px 64px; }
.rw-start .rw-brand { margin-bottom: 26px; }
.rw-start-title {
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 14px;
}
.rw-start-text { color: var(--text-muted); line-height: 1.65; margin: 0 0 26px; font-size: 15.5px; }
.rw-start-text strong { color: var(--text); font-weight: 600; }

.rw-dropzone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--card);
    padding: 36px 24px;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
}
.rw-dropzone.is-hover { border-color: var(--accent); background: var(--accent-soft); }
.rw-dz-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.rw-dz-primary { font-weight: 600; font-size: 16px; }
.rw-dz-or { color: var(--text-faint); font-size: 12px; margin: 12px 0; text-transform: lowercase; letter-spacing: .1em; font-family: var(--mono); }
.rw-start-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rw-start-error {
    margin: 16px 0 0;
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
}
.rw-start-error[hidden] { display: none; }
.rw-theme-fixed { position: fixed; top: 20px; right: 20px; z-index: 51; }

/* start page content sections (SEO / LLM) */
.rw-start-content { margin-top: 8px; }
.rw-sec { margin-top: 52px; }
.rw-sec > h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 18px;
}
.rw-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.rw-steps li {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 15px 18px 15px 58px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
}
.rw-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; left: 16px; top: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 600; font-size: 13px;
}
.rw-steps strong { display: block; color: var(--text); margin-bottom: 2px; }

.rw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rw-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 14px 16px; }
.rw-card h3 { margin: 0 0 5px; font-size: 14.5px; font-weight: 600; }
.rw-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.rw-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.rw-feature-list li { display: flex; gap: 11px; color: var(--text-muted); line-height: 1.55; font-size: 14px; }
.rw-feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.rw-faq details {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 0 16px;
    margin-bottom: 10px;
}
.rw-faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    display: flex;
    gap: 8px;
}
.rw-faq summary::-webkit-details-marker { display: none; }
.rw-faq summary::before { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.rw-faq details[open] summary::before { content: "\2013"; }
.rw-faq p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.6; font-size: 14px; }

.rw-start-foot {
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.rw-start-foot p { margin: 4px 0; }
.rw-start-foot a { color: var(--text-muted); }

/* restart button (sidebar header) */
.rw-restart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 11px;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.rw-restart:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* =========================================================
   App layout
   ========================================================= */
.rw-app { display: flex; height: 100vh; width: 100%; }
.rw-app[hidden] { display: none; }

.rw-sidebar {
    width: 392px;
    min-width: 392px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
}
.rw-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border);
}
.rw-side-head .rw-logo { width: 34px; height: 34px; }
.rw-side-title { flex: 1; line-height: 1.1; }

/* file chip */
.rw-file-chip {
    margin: 16px 22px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 13px;
    color: var(--accent);
}
.rw-file-name {
    flex: 1;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rw-file-replace {
    background: none; border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    padding: 2px 4px;
}
.rw-file-replace:hover { color: var(--text-muted); }

/* stats */
.rw-stats {
    padding: 14px 22px 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.rw-stat { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
.rw-stat-label { font-size: 10px; letter-spacing: .15em; color: var(--text-faint); font-family: var(--mono); }
.rw-stat-val { font-size: 22px; font-weight: 600; font-family: var(--mono); margin-top: 4px; color: var(--text); }
.rw-stat-val.accent { color: var(--accent); }
.rw-stat-val span { font-size: 12px; color: var(--text-soft); margin-left: 3px; }

/* scroll area */
.rw-side-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 10px 16px 12px; }

/* =========================================================
   Filters
   ========================================================= */
.rw-filters { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0 14px; margin: 6px 0 12px; }
.rw-filters > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    padding: 13px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rw-filters > summary::-webkit-details-marker { display: none; }
.rw-filters > summary::before {
    content: "›";
    color: var(--text-soft);
    font-size: 1.3em;
    line-height: 1;
    transition: transform var(--transition);
}
.rw-filters[open] > summary::before { transform: rotate(90deg); }

.rw-field { margin: 14px 0; }
.rw-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.rw-range-row { display: flex; align-items: center; gap: 10px; }
.rw-range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.rw-range-row input[type="number"] {
    width: 76px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 6px 8px;
    font-family: var(--mono);
    font-size: 12px;
}
.rw-range-row input[type="number"]:focus { outline: none; border-color: var(--accent); }
.rw-unit { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

.rw-switch { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.rw-switch input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.rw-switch span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.rw-switch small { display: block; color: var(--text-faint); font-size: 11px; }

.rw-search-btn { width: 100%; margin: 10px 0 14px; }


/* check groups */
.rw-check-group { margin: 14px 0; }
.rw-check-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rw-check-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rw-check-count { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.rw-check-toolbar { display: flex; gap: 6px; margin-bottom: 6px; }
.rw-check-search {
    flex: 1; min-width: 0;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
}
.rw-check-search:focus { outline: none; border-color: var(--accent); }
.rw-check-toolbar button {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 11px;
    cursor: pointer;
}
.rw-check-toolbar button:hover { color: var(--accent); border-color: var(--accent); }
.rw-check-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    max-height: 190px;
    overflow-y: auto;
    padding: 4px;
}
.rw-check-row { display: flex; gap: 9px; align-items: flex-start; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.rw-check-row:hover { background: var(--card); }
.rw-check-row.is-checked { background: var(--accent-soft); }
.rw-check-row.is-hidden { display: none; }
.rw-check-row input { margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.rw-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.rw-check-key { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); align-self: flex-start; }
.rw-check-desc { color: var(--text-muted); line-height: 1.35; }
.rw-check-empty { display: none; text-align: center; color: var(--text-faint); padding: 10px; font-style: italic; font-size: 12px; }
.rw-check-list.is-empty .rw-check-empty { display: block; }

/* =========================================================
   Progress
   ========================================================= */
.rw-progress { margin: 8px 6px 14px; }
.rw-progress[hidden] { display: none; }
.rw-progress-bar { height: 6px; border-radius: 999px; background: var(--card-border); overflow: hidden; }
.rw-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--transition); }
.rw-progress-text { margin-top: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--text-soft); }

/* =========================================================
   POI list
   ========================================================= */
.rw-poi-empty { color: var(--text-faint); font-size: 13px; line-height: 1.5; padding: 10px 8px; }
.rw-poi-empty[hidden] { display: none; }
.rw-poi-toolbar { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.rw-poi-toolbar[hidden] { display: none; }
.rw-poi-heading { font-size: 11px; letter-spacing: .15em; color: var(--text-soft); font-family: var(--mono); margin-right: auto; }

.rw-poi-group { margin-bottom: 4px; }
.rw-poi-group-head {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 8px; border-radius: 8px; cursor: pointer;
}
.rw-poi-group-head:hover { background: var(--card); }
.rw-poi-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rw-poi-group-label { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.rw-poi-group-count { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

.rw-poi-row { display: flex; align-items: center; gap: 11px; padding: 7px 8px 7px 12px; border-radius: 8px; cursor: pointer; }
.rw-poi-row:hover { background: var(--card); }
.rw-poi-box {
    width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--accent);
}
.rw-poi-box svg { display: none; width: 11px; height: 11px; color: var(--accent-ink); }
.rw-poi-row.is-on .rw-poi-box svg { display: block; }
.rw-poi-name { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-poi-row.is-on .rw-poi-name { color: var(--text-muted); }
.rw-poi-dist { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }

/* =========================================================
   Sidebar footer
   ========================================================= */
.rw-side-foot { padding: 14px 22px 20px; border-top: 1px solid var(--border); }
.rw-primary-btn { width: 100%; }
.rw-primary-btn .ic-download { display: none; }
.rw-primary-btn.is-download .ic-search { display: none; }
.rw-primary-btn.is-download .ic-download { display: inline-block; }
.rw-foot-hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-soft);
    text-align: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.rw-foot-hint[hidden] { display: none; }
.rw-foot-note { margin-top: 10px; font-size: 10.5px; color: var(--text-faint); line-height: 1.5; text-align: center; }

/* =========================================================
   Map
   ========================================================= */
.rw-map-wrap { flex: 1; position: relative; height: 100%; background: var(--map-bg); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--map-bg); }
.leaflet-container { font: inherit; background: var(--map-bg); }
.leaflet-container * { max-width: none; }
/* dark-mode map: invert the raster tiles into a dark basemap. The route and
   POI markers are SVG overlays, so they keep their real colours. */
:root:not([data-theme="light"]) .leaflet-tile {
    filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9);
}

.rw-map-chip {
    position: absolute; top: 18px; left: 18px; z-index: 500;
    display: flex; align-items: center; gap: 12px;
    background: color-mix(in srgb, var(--sidebar) 86%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px;
}
.rw-map-chip[hidden] { display: none; }
.rw-map-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.rw-map-chip-name { font-size: 13px; font-weight: 600; }
.rw-map-chip-sub { font-size: 11px; font-family: var(--mono); color: var(--text-faint); margin-top: 1px; }

.rw-legend {
    position: absolute; bottom: 18px; left: 18px; z-index: 500;
    background: color-mix(in srgb, var(--sidebar) 86%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 15px;
    display: flex; flex-direction: column; gap: 8px;
}
.rw-legend[hidden] { display: none; }
.rw-legend-title { font-size: 10px; letter-spacing: .16em; color: var(--text-faint); font-family: var(--mono); margin-bottom: 2px; }
.rw-legend-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-muted); }
.rw-legend-row span.dot { width: 10px; height: 10px; border-radius: 50%; }

/* =========================================================
   Donation popup (kept from previous design)
   ========================================================= */
.donate-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity var(--transition);
}
.donate-overlay[hidden] { display: none; }
.donate-overlay.is-visible { opacity: 1; }
.donate-dialog {
    position: relative;
    background: var(--sidebar);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem 1.6rem;
    max-width: 380px; width: 100%;
    text-align: center;
    transform: translateY(10px) scale(.98);
    transition: transform var(--transition);
}
.donate-overlay.is-visible .donate-dialog { transform: none; }
.donate-close {
    position: absolute; top: .55rem; right: .55rem;
    width: 32px; height: 32px; padding: 0; border: none; background: transparent;
    color: var(--text-faint); font-size: 1.5rem; line-height: 1; cursor: pointer;
    border-radius: 999px; transition: color var(--transition), background var(--transition);
}
.donate-close:hover { color: var(--text); background: var(--card); }
.donate-emoji { font-size: 2.5rem; line-height: 1; margin-bottom: .4rem; }
.donate-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
.donate-text { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1.25rem; }
.donate-actions { display: flex; flex-direction: column; gap: .35rem; }
.donate-btn-primary {
    display: inline-block; background: var(--accent); color: var(--accent-ink) !important;
    border-radius: var(--radius); padding: .7rem 1.25rem; font-weight: 600; text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}
.donate-btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); text-decoration: none; }
.donate-btn-text { background: transparent; border: none; color: var(--text-muted); font-size: .88rem; cursor: pointer; padding: .45rem; }
.donate-btn-text:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    .donate-overlay, .donate-dialog { transition: none; }
}

/* =========================================================
   Responsive — stack sidebar over map on narrow screens
   ========================================================= */
@media (max-width: 720px) {
    body.rw { overflow: auto; }
    .rw-app { flex-direction: column; height: auto; min-height: 100vh; }
    .rw-sidebar { width: 100%; min-width: 0; height: auto; order: 2; border-right: none; border-top: 1px solid var(--border); }
    .rw-map-wrap { order: 1; height: 52vh; min-height: 320px; }
    .rw-side-scroll { overflow: visible; }
}
