:root { --ink: #1b1b1b; --muted: #6b6b6b; --panel: rgba(255,255,255,0.96); --accent: #b30000; --line: #e4e0d8; }
html, body { height: 100%; margin: 0; font: 13px/1.4 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); }
#map { position: absolute; inset: 0; background: #d9d9d9; }
.coffee-tile { image-rendering: pixelated; image-rendering: crisp-edges; }
#panel { position: absolute; top: 12px; right: 12px; width: 316px; max-height: calc(100% - 24px); overflow: auto; background: var(--panel); border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.25); padding: 12px 14px; z-index: 1000; }
#panel h1 { font-size: 15px; margin: 0 0 2px; } #panel .sub { color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }
#panel h2 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
#panel label { display: block; margin: 3px 0; cursor: pointer; } #panel select { width: 100%; font: inherit; padding: 3px; }
.row { display: flex; align-items: center; gap: 8px; margin: 4px 0; } .row input[type=range] { flex: 1; } .val { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
#legend { width: 100%; height: 14px; border-radius: 3px; display: block; margin-top: 6px; } .legend-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
#stats { font-size: 12px; margin-top: 8px; padding: 8px; background: #f6f3ee; border-radius: 6px; line-height: 1.5; } #stats b { color: var(--accent); }
.hint { color: var(--muted); font-size: 11.5px; margin-top: 8px; } .hint a { color: var(--muted); }
.lbl { background: none; border: none; box-shadow: none; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff; }
.lbl-district { font-weight: 700; font-size: 13px; color: #1b1b1b; } .lbl-sector { font-weight: 500; font-size: 11px; color: #333; } .lbl-region { font-weight: 800; font-size: 15px; color: #111; letter-spacing: .03em; }
.leaflet-popup-content { font-size: 12.5px; line-height: 1.45; } .leaflet-popup-content b { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { #panel { width: calc(100% - 24px); max-height: 46%; } }
/* landing page */
.land { max-width: 760px; margin: 40px auto; padding: 0 20px; } .land h1 { font-size: 24px; margin-bottom: 4px; } .land p { color: var(--muted); } .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; } .card:hover { border-color: #b30000; } .card b { display: block; font-size: 16px; margin-bottom: 4px; } .card span { color: var(--muted); font-size: 12.5px; }

.totline { font-size: 12.5px; margin: 4px 0 6px; } .totline b { color: var(--accent); }
.row.small { font-size: 11.5px; gap: 10px; } .row.small label { margin: 0; } .row.small a { color: var(--muted); }
.crow { display: grid; grid-template-columns: 96px 1fr 58px 44px; align-items: center; gap: 6px; height: 20px; font-size: 11.5px; }
.crow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crow .bar { position: relative; height: 12px; background: #f1ede6; border-radius: 2px; }
.crow .bar i { position: absolute; left: 0; top: 0; height: 100%; background: #c8632a; border-radius: 2px; } .crow .bar u { position: absolute; left: 0; top: -2px; height: 14px; border: 1.5px solid #1f5e45; border-radius: 2px; box-sizing: border-box; background: none; }
.crow .val { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; font-size: 11px; min-width: 0; } .crow input { width: 40px; font: inherit; font-size: 11px; padding: 1px 3px; }
.crow.over .nm { font-weight: 700; color: var(--accent); }
.ghead { font-size: 11px; color: var(--muted); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .05em; }
