.topbar{
  padding:10px 14px;
  border-bottom:1px solid #eee;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#fff;
}

.brand{font-weight:700;}
.rightNote{color:#555;font-size:13px;}

.nav{
  display:flex;
  gap:8px;
  align-items:center;
  margin-left:auto;
  margin-right:10px;
}

.tabBtn{
  border:1px solid #ddd;
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
  font-size:13px;
}

.tabBtn:hover{background:#f6f6f6;}

.tabBtn.active{
  border-color:#0b3d91;
  box-shadow:0 0 0 2px rgba(11,61,145,0.08);
  font-weight:600;
}

.mainLayout{
  display:flex;
  height:calc(100vh - 52px);
}

.panel{
  width:340px;
  padding:14px;
  overflow:auto;
  background:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  border-right:1px solid #eee;
}

.mapContainer{
  flex:1;
  display:flex;
  flex-direction:column;
}

#map{flex:1;}

.card{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:12px;
  margin:12px 0;
  box-shadow:0 1px 6px rgba(0,0,0,0.05);
}

.row{
  display:flex;
  justify-content:space-between;
  margin:6px 0;
}

.muted{
  color:#666;
  font-size:13px;
}

.cardTitle{
  margin:0 0 6px 0;
  font-size:18px;
}

.smallNote{
  font-size:12px;
  color:#666;
  margin-bottom:8px;
}

.landcoverWrap{
  height:170px;
}

#landcoverChart{
  width:100% !important;
  height:100% !important;
  display:block;
}

.bottomChart{
  height:220px;
  min-height:140px;
  max-height:55vh;
  border-top:1px solid #eee;
  padding:10px 18px 12px;
  background:#fff;
  position:relative;
  overflow:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.resizeHandle{
  height:10px;
  cursor:ns-resize;
  position:absolute;
  top:0;
  left:0;
  right:0;
}

.resizeHandle::after{
  content:"";
  display:block;
  width:44px;
  height:4px;
  border-radius:999px;
  background:#cfcfcf;
  margin:3px auto 0;
}

.chartHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:8px;
  margin-bottom:6px;
}

.chartControls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.chartControls label{
  display:flex;
  gap:6px;
  align-items:center;
  font-size:13px;
}

.chartControls select{
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
}

.chartBtn{
  border:1px solid #ddd;
  background:#fff;
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
}

.chartBtn:hover{background:#f5f5f5;}

#stationChart{
  width:100%;
  height:calc(100% - 62px) !important;
}

.bottomChart.closed{display:none;}

.showChartBtn{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
  display:none;
}

.showChartBtn.visible{display:inline-block;}