* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
#sidebar {
    width: 360px; min-width: 360px;
    background: #1e293b; color: #e2e8f0;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
#sidebar h1 {
    font-size: 16px; padding: 14px 16px 8px;
    border-bottom: 1px solid #334155;
    display: flex; align-items: center; gap: 8px;
}
#sidebar h1 span { font-size: 20px; }

.section { padding: 10px 16px; border-bottom: 1px solid #334155; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 8px; }

label { display: block; font-size: 12px; color: #cbd5e1; margin-bottom: 3px; }
textarea, input[type="number"], input[type="text"], select {
    width: 100%; padding: 7px 10px;
    background: #0f172a; border: 1px solid #475569; border-radius: 4px;
    color: #f1f5f9; font-size: 13px; font-family: inherit;
}
textarea { resize: vertical; min-height: 70px; font-family: 'Consolas', monospace; font-size: 12px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: #3b82f6; }

.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row > .unit { flex: 0 0 65px; }
.field { margin-bottom: 8px; }

button#calcBtn {
    width: 100%; padding: 10px;
    background: #2563eb; color: white; border: none; border-radius: 5px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
button#calcBtn:hover { background: #1d4ed8; }
button#calcBtn:disabled { background: #475569; cursor: not-allowed; }

/* Results summary */
#summary { padding: 10px 16px; border-bottom: 1px solid #334155; display: none; }
#summary .stat { display: inline-block; margin-right: 14px; font-size: 13px; }
#summary .val { font-weight: 700; color: #60a5fa; }

/* Warnings */
#warnings {
    padding: 8px 16px; background: #78350f; color: #fbbf24;
    font-size: 12px; display: none;
}

/* Legs table */
#legsTable { font-size: 11px; border-collapse: collapse; width: 100%; }
#legsTable th {
    position: sticky; top: 0; background: #334155;
    padding: 5px 4px; text-align: center; font-weight: 600; white-space: nowrap;
}
#legsTable td { padding: 4px; text-align: center; border-top: 1px solid #334155; }
#legsTable tr:hover td { background: #1e3a5f; }

/* Map */
#map { flex: 1; }

/* Leaflet label overrides */
.leg-label {
    background: rgba(255,255,255,0.92);
    border: 1px solid #64748b;
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
    color: #1e293b;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.leg-label .mk-wind {
    color: #b91c1c;
    font-weight: 700;
}
.wp-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    white-space: nowrap;
}
.brg-label {
    background: rgba(255,255,255,0.9);
    border: 1px solid #cc00cc;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: center;
    color: #990099;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.brg-label .brg-top {
    border-bottom: 1px solid #cc00cc;
    padding-bottom: 1px;
    margin-bottom: 1px;
}
.brg-label .brg-bot {
    font-weight: 700;
}
.wind-label {
    background: rgba(255,255,255,0.9);
    border: 1px solid #333;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
    color: #1e293b;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
/* Altitude change indicators — aviation-style schematic (diagonal + platform) */
.alt-change-svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
    overflow: visible;
}
.alt-change-svg text {
    paint-order: stroke;
    stroke: rgba(255,255,255,0.9);
    stroke-width: 0.5;
}
/* Route file save/open */
.route-file-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.btn-file {
    padding: 3px 8px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.btn-file:hover { background: #475569; }
.route-file-name {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#routes-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10005;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#routes-modal-overlay.active { display: flex; }
#routes-modal {
    background: #1e293b; border-radius: 8px; padding: 20px;
    max-width: 420px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-height: 80vh; overflow-y: auto;
}
#routes-modal h2 { font-size: 15px; margin-bottom: 10px; }
.routes-list {
    max-height: 250px;
    overflow-y: auto;
}
.routes-list-empty {
    font-size: 11px; color: #64748b; padding: 12px 0; text-align: center;
}
.route-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 13px;
    border-bottom: 1px solid #334155;
    cursor: pointer;
}
.route-item:hover { background: #334155; }
.route-item.selected { background: #1e3a5f; border-color: #3b82f6; }
.route-item .ri-name { flex: 1; }
.route-item .ri-date { font-size: 10px; color: #64748b; }
.route-item .ri-del {
    color: #ef4444; cursor: pointer; font-size: 14px; padding: 0 3px;
}
.route-item .ri-del:hover { color: #f87171; }

/* Fuel section */
.btn-fuel {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: #b45309;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-fuel:hover { background: #d97706; }
.fuel-result { margin-top: 8px; }
.fuel-summary {
    font-size: 12px;
    margin-bottom: 6px;
}
.fuel-total { font-size: 13px; margin-bottom: 2px; }
.fuel-capacity { color: #94a3b8; }
.fuel-ok { color: #4ade80; font-weight: 700; }
.fuel-deficit { color: #f87171; font-weight: 700; }
.fuel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 4px;
}
.fuel-table td {
    padding: 2px 5px;
    border-bottom: 1px solid #334155;
}
.fuel-table td:nth-child(2),
.fuel-table td:nth-child(3) { text-align: right; white-space: nowrap; }
.fuel-total-row td {
    border-top: 2px solid #60a5fa;
    font-weight: 700;
    padding-top: 4px;
}

/* Waypoints altitude panel */
.waypoints-alt-panel {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #334155;
}
.wp-alt-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.wp-alt-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
}
.wp-alt-num {
    flex: 0 0 18px;
    color: #94a3b8;
    text-align: right;
    font-size: 10px;
}
.wp-alt-name {
    flex: 1;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wp-alt-input {
    flex: 0 0 70px;
    padding: 3px 6px;
    font-size: 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 3px;
    color: #f1f5f9;
    text-align: right;
}
.wp-alt-unit {
    flex: 0 0 18px;
    color: #94a3b8;
    font-size: 10px;
}

/* Context menu altitude inline */
.rcm-alt {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-top: 1px solid #334155;
    cursor: default;
}
.rcm-alt:hover { background: transparent; }
.rcm-alt-input {
    padding: 3px 6px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 3px;
    color: #f1f5f9;
    font-size: 12px;
}
.rcm-alt-btn {
    padding: 3px 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}
.rcm-alt-btn:hover { background: #1d4ed8; }

/* Alternate aerodrome markers */
.alt-airport-marker .alt-diamond {
    width: 16px;
    height: 16px;
    background: #eab308;
    border: 2px solid #422006;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin: 2px;
}
.alt-airport-label {
    background: rgba(255, 247, 218, 0.92);
    border: 2px solid #ca8a04;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    line-height: 1.4;
    color: #422006;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.alt-airport-label .alt-name { color: #713f12; font-weight: 500; font-size: 13px; font-family: 'Segoe UI', sans-serif; }
.alt-airport-label .alt-elev { color: #854d0e; }
.alt-airport-label .alt-rwys { color: #1e3a8a; }

/* Airport entry modal */
#airport-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10006;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#airport-modal-overlay.active { display: flex; }
#airport-modal {
    background: #1e293b; border-radius: 8px; padding: 20px;
    max-width: 420px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
#airport-modal h2 { font-size: 15px; margin-bottom: 8px; color: #f59e0b; }

/* Route edit markers */
.route-edit-marker {
    cursor: move;
}
.route-edit-marker .rem-inner {
    width: 24px;
    height: 24px;
    background: #2563eb;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    line-height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
#routeEditBtn.active {
    background: #2563eb;
    color: #fff;
    border-color: #3b82f6;
}

/* Route context menu */
.route-ctx-menu {
    display: none;
    position: fixed;
    z-index: 10060;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    min-width: 180px;
    font-size: 13px;
    overflow: hidden;
}
.route-ctx-menu.active { display: block; }
.route-ctx-menu .rcm-item {
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
}
.route-ctx-menu .rcm-item:hover { background: #334155; }

.route-dirty-mark {
    color: #f59e0b;
    font-weight: 700;
    font-size: 14px;
    margin-left: 4px;
}

/* Interactive zone drawing hint bar */
.draw-hint {
    display: none;
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px 18px;
    border-radius: 6px;
    border: 2px solid #2563eb;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.draw-hint.active { display: flex; }
.draw-hint button {
    padding: 4px 12px;
    background: #991b1b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.draw-hint button:hover { background: #b91c1c; }

/* Plan output button */
.btn-plan {
    width: 100%;
    padding: 10px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-plan:hover { background: #10b981; }

/* Weight & Balance */
.btn-wb {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-wb:hover { background: #8b5cf6; }
.wb-result { margin-top: 8px; }

.trim-advice {
    font-size: 12px;
    color: #a5b4fc;
    margin-top: 3px;
}

/* Meteo button */
.btn-meteo {
    width: 100%;
    padding: 6px;
    margin-top: 6px;
    background: #1e6f50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-meteo:hover { background: #22865f; }
.btn-meteo:disabled { background: #475569; cursor: not-allowed; }

/* Terrain max elevation labels */
.terrain-label {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #6b4423;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    white-space: nowrap;
}
/* Geographic landmarks along route */
.landmark-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a3728;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    white-space: nowrap;
    font-style: italic;
}
.hint {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}
.btn-secondary {
    width: 100%;
    padding: 7px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover { background: #64748b; }
.btn-danger-sm {
    padding: 7px 10px;
    background: #991b1b;
    color: #fca5a5;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-danger-sm:hover { background: #b91c1c; }
.zone-btns-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.zone-btns-row .btn-secondary { flex: 1; min-width: 70px; font-size: 11px; padding: 6px 4px; }
.zone-btns-row .btn-danger-sm { flex: 1 1 100%; margin-top: 2px; }
.zone-list {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 4px;
}
.zone-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    font-size: 12px;
    border-bottom: 1px solid #334155;
    cursor: default;
}
.zone-list-item:hover { background: #334155; }
.zone-list-item .z-type {
    font-weight: 700;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    color: #fff;
}
.zone-list-item .z-type-P { background: #be123c; }
.zone-list-item .z-type-R { background: #9333ea; }
.zone-list-item .z-type-D { background: #c2410c; }
.zone-list-item .z-name { flex: 1; }
.zone-list-item .z-temp {
    font-size: 9px;
    color: #fbbf24;
    background: #78350f;
    padding: 1px 4px;
    border-radius: 3px;
}
.zone-list-item .z-del {
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 3px;
}
.zone-list-item .z-del:hover { color: #f87171; }
.zone-list-empty { font-size: 11px; color: #64748b; padding: 8px 0; text-align: center; }
/* Waypoint manager */
.wpt-list {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 4px;
}
.wpt-list-empty { font-size: 11px; color: #64748b; padding: 8px 0; text-align: center; }
.wpt-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    font-size: 12px;
    border-bottom: 1px solid #334155;
    cursor: default;
}
.wpt-list-item:hover { background: #334155; }
.wpt-list-item .wpt-code {
    font-weight: 700;
    font-family: 'Consolas', monospace;
    min-width: 48px;
    color: #60a5fa;
}
.wpt-list-item .wpt-coord {
    flex: 1;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: #94a3b8;
}
.wpt-list-item .wpt-edit {
    color: #60a5fa;
    cursor: pointer;
    font-size: 13px;
    padding: 0 3px;
}
.wpt-list-item .wpt-edit:hover { color: #93c5fd; }
/* Waypoint modal */
#wpt-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10002;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#wpt-modal-overlay.active { display: flex; }
#wpt-modal {
    background: #1e293b; border-radius: 8px; padding: 20px;
    max-width: 400px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
#wpt-modal h2 { font-size: 15px; margin-bottom: 12px; }

/* ATC zones */
.atc-alt-filter { margin-top: 2px; }
.atc-zone-list {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 4px;
}
.atc-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.atc-zone-label {
    font-size: 11px;
    font-weight: 700;
    color: #0055aa;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    white-space: nowrap;
}
.atc-zone-tooltip {
    font-size: 12px;
}
/* ATC zone modal */
#atc-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10003;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#atc-modal-overlay.active { display: flex; }
#atc-modal {
    background: #1e293b; border-radius: 8px; padding: 20px;
    max-width: 480px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-height: 90vh; overflow-y: auto;
}
#atc-modal h2 { font-size: 15px; margin-bottom: 12px; }
#atc-modal textarea {
    font-family: 'Consolas', monospace;
    font-size: 11px;
}

/* Zone modal */
#zone-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#zone-modal-overlay.active { display: flex; }
#zone-modal {
    background: #1e293b; border-radius: 8px; padding: 20px;
    max-width: 440px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
#zone-modal h2 { font-size: 15px; margin-bottom: 12px; }
#zone-modal textarea {
    font-family: 'Consolas', monospace;
    font-size: 11px;
}
.zone-label {
    font-size: 11px;
    font-weight: 700;
    color: #cc0066;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    white-space: nowrap;
}

/* Unresolved ICAO modal */
#modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
}
#modal-overlay.active { display: flex; }
#modal {
    background: #1e293b; border-radius: 8px; padding: 24px;
    max-width: 420px; width: 90%; color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
#modal h2 { font-size: 15px; margin-bottom: 12px; }
#modal .field-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
#modal .field-row .code { font-weight: 700; min-width: 60px; font-family: monospace; }
#modal input { flex: 1; padding: 6px 8px; background: #0f172a; border: 1px solid #475569; border-radius: 4px; color: #f1f5f9; font-size: 13px; }
#modal button {
    margin-top: 12px; padding: 8px 20px;
    background: #2563eb; color: white; border: none; border-radius: 4px;
    cursor: pointer; font-size: 13px;
}

/* ── Print frame ─────────────────────────────────────────────── */
.print-frame {
    position: absolute;
    border: 3px dashed #2563eb;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.30);
    z-index: 800;
    cursor: move;
    pointer-events: auto;
}
.print-frame-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #2563eb;
    border-radius: 2px;
    z-index: 801;
    pointer-events: auto;
}
.print-frame-handle.h-nw { top: -7px; left: -7px; cursor: nw-resize; }
.print-frame-handle.h-n  { top: -7px; left: calc(50% - 6px); cursor: n-resize; }
.print-frame-handle.h-ne { top: -7px; right: -7px; cursor: ne-resize; }
.print-frame-handle.h-e  { top: calc(50% - 6px); right: -7px; cursor: e-resize; }
.print-frame-handle.h-se { bottom: -7px; right: -7px; cursor: se-resize; }
.print-frame-handle.h-s  { bottom: -7px; left: calc(50% - 6px); cursor: s-resize; }
.print-frame-handle.h-sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.print-frame-handle.h-w  { top: calc(50% - 6px); left: -7px; cursor: w-resize; }

.print-frame-toolbar {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 802;
    white-space: nowrap;
}
.print-frame-toolbar button {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}
.print-frame-toolbar .pf-print { background: #2563eb; }
.print-frame-toolbar .pf-print:hover { background: #1d4ed8; }
.print-frame-toolbar .pf-cancel { background: #475569; }
.print-frame-toolbar .pf-cancel:hover { background: #64748b; }

.pf-control-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #333;
}
.pf-control-btn:hover { background: #f4f4f4; }
.pf-control-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Print — @media print only hides UI; all sizing is done by JS inline styles */
@media print {
    #sidebar { display: none !important; }
    .leaflet-control-container { display: none !important; }
    .print-frame, .print-frame-handle, .print-frame-toolbar { display: none !important; }
    body {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    @page { margin: 5mm; }
}
