html,
body,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
}

#panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #111;
  font-size: 13px;
}

#panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#panel header span {
  color: #3b5567;
  white-space: nowrap;
}

#panel label,
#status,
fieldset {
  display: block;
  margin-bottom: 10px;
}

#styleSelect,
#baseMap,
#opacityRange {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
}

fieldset {
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 5px;
}

legend {
  padding: 0 4px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-row input {
  margin: 0;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

button {
  padding: 6px 10px;
  cursor: pointer;
}

#status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
