.mcp-pluie {
  --mcp-map-height: 650px;
  --mcp-border: #e2e8f0;
  --mcp-text: #0f172a;
  --mcp-muted: #64748b;
  --mcp-soft: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mcp-text);
  background: #fff;
  border: 1px solid var(--mcp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}

.mcp-pluie *, .mcp-pluie *::before, .mcp-pluie *::after { box-sizing: border-box; }

.mcp-pluie__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.mcp-pluie__eyebrow {
  margin-bottom: 4px;
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
}

.mcp-pluie h2 { margin: 0; font-size: 27px; line-height: 1.12; font-weight: 900; }
.mcp-pluie__subtitle { margin-top: 6px; color: var(--mcp-muted); font-size: 14px; font-weight: 600; }

.mcp-pluie__update {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--mcp-border);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.mcp-pluie__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #cbd5e1;
  border-top: 1px solid var(--mcp-border);
  border-bottom: 1px solid var(--mcp-border);
}

.mcp-pluie__tabs button {
  min-height: 47px;
  padding: 9px 6px;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  transition: background .15s ease, color .15s ease;
}

.mcp-pluie__tabs button:hover { background: #eef6ff; }
.mcp-pluie__tabs button.is-active { background: #0369a1; color: #fff; }

.mcp-pluie__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: var(--mcp-soft);
  border-bottom: 1px solid var(--mcp-border);
}

.mcp-pluie__stats > div { padding: 9px 12px; border: 1px solid var(--mcp-border); border-radius: 10px; background: #fff; }
.mcp-pluie__stats span { display: block; margin-bottom: 3px; color: var(--mcp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mcp-pluie__stats strong { font-size: 17px; line-height: 1.2; }

.mcp-pluie__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--mcp-border);
}

.mcp-pluie__toolbar label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; }
.mcp-pluie__toolbar select, .mcp-pluie__toolbar button {
  min-height: 35px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 0 10px;
  font: inherit;
}
.mcp-pluie__toolbar button { margin-left: auto; cursor: pointer; font-weight: 800; }

.mcp-pluie__mapwrap { position: relative; }
.mcp-pluie__map { width: 100%; height: var(--mcp-map-height); min-height: 420px; background: #e5e7eb; }

.mcp-pluie__loading {
  position: absolute;
  z-index: 1000;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.mcp-pluie__loading.is-error { background: rgba(153, 27, 27, .95); }

.mcp-pluie__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #fff;
  border-top: 1px solid var(--mcp-border);
  color: var(--mcp-muted);
  font-size: 10px;
  font-weight: 600;
}
.mcp-pluie__foot a { color: #0369a1; font-weight: 800; text-decoration: none; }
.mcp-pluie__foot a:hover { text-decoration: underline; }

.mcp-pluie-marker { background: transparent !important; border: 0 !important; }
.mcp-pluie-marker__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 25px;
  padding: 0 6px;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,.38);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.mcp-pluie-tooltip {
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(15, 23, 42, .95) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.28) !important;
  padding: 7px 9px !important;
}
.mcp-pluie-tooltip::before { border-top-color: rgba(15, 23, 42, .95) !important; }
.mcp-tooltip { font: 11px/1.4 Arial, Helvetica, sans-serif; }
.mcp-tooltip strong { font-size: 12px; }

.mcp-pluie-legend {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 8px rgba(0,0,0,.22);
  font: 11px/1.35 Arial, Helvetica, sans-serif;
}
.mcp-pluie-legend__title { margin-bottom: 5px; font-weight: 900; }
.mcp-pluie-legend__row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.mcp-pluie-legend__row i { width: 17px; height: 9px; border: 1px solid rgba(0,0,0,.12); border-radius: 2px; }

.mcp-popup { min-width: 250px; color: #0f172a; }
.mcp-popup__title { font-size: 16px; font-weight: 900; }
.mcp-popup__id { margin: 1px 0 9px; color: #64748b; font-size: 10px; }
.mcp-popup__grid { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 8px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; font-size: 12px; }
.mcp-popup__grid strong { text-align: right; }
.mcp-popup__delta { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #f1f5f9; font-size: 11px; }
.mcp-popup__meta { margin-top: 7px; color: #64748b; font-size: 10px; line-height: 1.45; }

@media (max-width: 980px) {
  .mcp-pluie__tabs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .mcp-pluie__head { padding: 14px 13px 11px; }
  .mcp-pluie h2 { font-size: 21px; }
  .mcp-pluie__update { display: none; }
  .mcp-pluie__tabs { grid-template-columns: repeat(2, 1fr); }
  .mcp-pluie__tabs button { min-height: 43px; font-size: 12px; }
  .mcp-pluie__stats { grid-template-columns: 1fr; gap: 6px; }
  .mcp-pluie__stats > div { padding: 7px 10px; }
  .mcp-pluie__stats strong { font-size: 15px; }
  .mcp-pluie__toolbar { flex-wrap: wrap; align-items: stretch; }
  .mcp-pluie__toolbar label { flex: 1 1 210px; justify-content: space-between; }
  .mcp-pluie__toolbar select { min-width: 110px; }
  .mcp-pluie__toolbar button { margin-left: 0; width: 100%; }
  .mcp-pluie__map { height: 520px; min-height: 420px; }
  .mcp-pluie__foot { flex-direction: column; gap: 3px; }
  .mcp-pluie-marker__value { min-width: 34px; height: 23px; font-size: 10px; }
}
