.datalyse-explorer {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  color: #102d40;
  background: radial-gradient(ellipse at 30% 55%, #c5f3ef90, transparent 55%), #f3fafb;
  border-block: 1px solid #cee2e6;
  scroll-margin-top: 6rem;
}
.datalyse-container { max-width: 1280px; margin-inline: auto; }
.datalyse-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.datalyse-eyebrow { color: #007f8a; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.datalyse-heading h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.05em; margin-bottom: 1rem; }
.datalyse-heading h2 span { color: #008f9b; }
.datalyse-heading p { max-width: 60ch; line-height: 1.65; }
.datalyse-total { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.75rem; border: 1px solid #bcdbdf; border-radius: 1.2rem; background: #ffffffd0; }
.datalyse-total strong { color: #007f8a; font-size: 3.4rem; line-height: 1; font-weight: 800; letter-spacing: -0.06em; }
.datalyse-total span { font-size: 0.9rem; line-height: 1.6; }
.datalyse-total b { font-size: 0.75rem; font-weight: 500; color: #4b6675; }
.datalyse-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.datalyse-tabs :is(a, button), .datalyse-filters button { min-height: 2.75rem; padding: 0.65rem 1rem; border: 1px solid #bad3dc; border-radius: 2rem; background: #fff; color: #23485c; font-size: 0.88rem; font-weight: 650; }
.datalyse-tabs button[aria-pressed=true], .datalyse-filters button[aria-pressed=true] { color: white; border-color: #007c8b; background: #007c8b; }
.datalyse-tools { display: grid; grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr); gap: 1.5rem; margin-bottom: 1.5rem; align-items: end; }
.datalyse-search, .datalyse-rate-heading label { display: grid; gap: 0.45rem; color: #345667; font-size: 0.8rem; font-weight: 650; }
.datalyse-explorer input { width: 100%; min-height: 2.8rem; border: 1px solid #b1ccd6; background: white; border-radius: 0.75rem; padding: 0.65rem 0.9rem; color: #102d40; font: inherit; }
.datalyse-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.datalyse-filters[hidden] { display: none; }
.datalyse-filters button { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
.datalyse-filters b { margin-left: 0.25rem; opacity: 0.75; font-weight: 500; }
.datalyse-map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.75fr); gap: 1.5rem; }
.datalyse-map { min-width: 0; position: relative; display: grid; align-content: center; border-radius: 1.5rem; background: radial-gradient(ellipse at center, #daf4f5, #f0f8f9 70%); border: 1px solid #c5e0e6; overflow: hidden; }
.datalyse-map canvas { width: 100%; height: clamp(360px, 45vw, 620px); display: block; cursor: grab; touch-action: none; }
.datalyse-map canvas:active { cursor: grabbing; }
.datalyse-map-controls { display: flex; flex-direction: column; gap: 0.4rem; position: absolute; right: 1rem; bottom: 3rem; }
.datalyse-map-controls button { width: 2.75rem; height: 2.75rem; border: 1px solid #a7cfd7; border-radius: 0.65rem; background: #fff; color: #006f80; font-size: 1.2rem; box-shadow: 0 2px 8px #0031520a; }
.datalyse-map-help { padding: 0.8rem 1rem 1rem; color: #476a79; text-align: center; font-size: 0.75rem; }
.datalyse-hover { position: absolute; top: 1rem; left: 1rem; padding: 0.4rem 0.7rem; border-radius: 0.5rem; color: #006979; background: #ffffffc0; font-size: 0.85rem; pointer-events: none; }
.datalyse-hover:empty { display: none; }
.datalyse-country-panel { min-width: 0; padding: 1.5rem; border: 1px solid #c5dce3; border-radius: 1.5rem; background: #fff; }
.datalyse-country-panel h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.6rem; }
.datalyse-country-panel > p:not(.datalyse-eyebrow) { font-size: 0.85rem; line-height: 1.7; color: #4b6575; }
.datalyse-selected h4 { font-size: 1.5rem; color: #007f8a; font-weight: 800; margin-top: 1.25rem; }
.datalyse-selected dl { margin-block: 1rem; }
.datalyse-selected dl div { display: grid; grid-template-columns: 70px 1fr; gap: 0.75rem; padding-block: 0.4rem; font-size: 0.82rem; border-bottom: 1px solid #e1edef; }
.datalyse-selected dt { color: #5a717e; }
.datalyse-selected a { display: inline-block; min-height: 2.75rem; padding-block: 0.5rem; color: #007583; font-size: 0.82rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.datalyse-country-list { max-height: 270px; overflow-y: auto; scrollbar-width: thin; margin-top: 1rem; }
.datalyse-country-list button { display: flex; width: 100%; justify-content: space-between; gap: 0.8rem; align-items: center; min-height: 2.75rem; padding: 0.65rem 0.75rem; border-bottom: 1px solid #e5eff2; color: #284c5e; font-size: 0.82rem; text-align: left; }
.datalyse-country-list button:hover, .datalyse-country-list button[aria-pressed=true] { background: #e2f5f2; color: #006e7b; }
.datalyse-country-list small { color: #66838e; }
.datalyse-list-count { font-size: 0.72rem; color: #5c7d89; margin-bottom: 0.5rem; }
.datalyse-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-block: 1rem 2rem; font-size: 0.75rem; color: #4d6a78; }
.datalyse-legend span { display: inline-flex; gap: 0.45rem; align-items: center; }
.datalyse-legend i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #08bbc0; }
.datalyse-legend span:nth-child(2) i { background: #71858c; }
.datalyse-legend span:nth-child(3) i { background: #92fff0; border: 1px solid #008f9b; }
.datalyse-rate-panel { padding: clamp(1rem, 2vw, 1.75rem); border: 1px solid #c6dde3; border-radius: 1.25rem; background: #fff; min-width: 0; }
.datalyse-rate-heading { display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; align-items: end; }
.datalyse-rate-heading h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; }
.datalyse-table-scroll { max-width: 100%; overflow-x: auto; }
.datalyse-explorer table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.datalyse-explorer th { background: #e7f4f5; text-align: left; font-weight: 750; color: #185265; }
.datalyse-explorer :is(th, td) { padding: 0.85rem 0.75rem; border-bottom: 1px solid #dce9ed; vertical-align: top; }
.datalyse-explorer td { white-space: nowrap; }
.datalyse-explorer td:last-child { white-space: normal; }
.datalyse-explorer details { min-width: 180px; max-width: 360px; background: #f2f9f9; padding: 0.5rem; border-radius: 0.5rem; }
.datalyse-explorer summary { color: #007d8b; cursor: pointer; font-weight: 650; }
.datalyse-explorer details dl { padding-top: 0.75rem; font-size: 0.75rem; }
.datalyse-explorer details dt { margin-top: 0.7rem; font-weight: 750; color: #315569; }
.datalyse-explorer details dd { margin-top: 0.3rem; line-height: 1.6; }
.datalyse-restrictions { white-space: pre-line; }
.datalyse-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; color: #537180; font-size: 0.8rem; }
.datalyse-pagination button, .datalyse-rate-panel [data-retry] { min-height: 2.75rem; padding: 0.55rem 1rem; border: 1px solid #b4d3da; border-radius: 0.65rem; color: #006d7f; margin-left: 0.4rem; }
.datalyse-pagination button:disabled { opacity: 0.4; cursor: default; }
.datalyse-live-note, .datalyse-source { margin-top: 1.25rem; color: #5a7481; font-size: 0.75rem; line-height: 1.8; }
.datalyse-explorer a { text-underline-offset: 3px; }
.datalyse-estimate-trigger { color: #007d8b; min-height: 2.75rem; padding: 0.5rem; text-decoration: underline; }
.datalyse-estimate { margin-top: 1.5rem; border: 1px solid #a5d9da; border-radius: 1rem; padding: 1.25rem; background: #eefaf8; }
.datalyse-estimate h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.datalyse-estimate-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; }
.datalyse-estimate label { font-size: 0.75rem; color: #345667; }
.datalyse-estimate input { margin-top: 0.4rem; }
.datalyse-estimate output { display: block; color: #006e7b; font-weight: 800; font-size: 1.4rem; margin-block: 1rem; }
.datalyse-estimate p { font-size: 0.75rem; color: #56717d; }
.datalyse-source a, .datalyse-live-note a { color: #007787; text-decoration: underline; }
.datalyse-explorer :is(button, a, input, summary, canvas, [tabindex]):focus-visible { outline: 3px solid #008f9b; outline-offset: 3px; }
@media (max-width: 900px) {
  .datalyse-explorer { padding: 3rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left)); }
  .datalyse-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.55fr); align-items: start; gap: 1.5rem; }
  .datalyse-heading h2 { max-width: 20ch; }
  .datalyse-total { min-width: 0; padding: 1rem; gap: 0.8rem; }
  .datalyse-total strong { font-size: 2.75rem; }
  .datalyse-total span { font-size: 0.82rem; }
  .datalyse-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1.5rem; }
  .datalyse-tabs :is(a, button) { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 3rem; padding: 0.65rem; border-radius: 0.75rem; font-size: 0.82rem; line-height: 1.4; text-align: center; white-space: normal; }
  .datalyse-tools { grid-template-columns: 1fr; gap: 1rem; }
  .datalyse-search { font-size: 0.85rem; }
  .datalyse-explorer input { min-width: 0; min-height: 3rem; font-size: 1rem; }
  .datalyse-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .datalyse-filters button { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 2.75rem; padding: 0.55rem 0.65rem; border-radius: 0.75rem; font-size: 0.78rem; line-height: 1.4; text-align: left; white-space: normal; }
  .datalyse-filters b { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 1.5rem; min-height: 1.5rem; margin-left: 0.35rem; padding-inline: 0.25rem; border-radius: 0.4rem; background: #e6f5f5; color: #006d7c; font-size: 0.7rem; font-weight: 700; opacity: 1; }
  .datalyse-filters button[aria-pressed=true] b { background: #ffffff26; color: white; }
  .datalyse-map-layout { grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr); gap: 1rem; align-items: start; }
  .datalyse-map, .datalyse-country-panel { border-radius: 1.15rem; }
  .datalyse-map canvas { height: 22rem; min-height: 0; }
  .datalyse-map canvas:focus-visible { outline-offset: -4px; }
  .datalyse-map-controls { position: static; flex-direction: row; justify-content: center; gap: 0.6rem; padding: 0.5rem 1rem; }
  .datalyse-map-controls button { flex-shrink: 0; }
  .datalyse-map-help { padding-top: 0.4rem; line-height: 1.55; }
  .datalyse-country-panel { padding: 1.15rem; }
  .datalyse-country-panel h3 { font-size: 1.25rem; line-height: 1.3; }
  .datalyse-selected dl div { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.5rem; }
  .datalyse-selected dd { overflow-wrap: anywhere; }
  .datalyse-country-list { max-height: 15rem; overscroll-behavior-y: contain; }
  .datalyse-country-list button { min-height: 3rem; padding-inline: 0.5rem; }
  .datalyse-country-list button span { min-width: 0; overflow-wrap: anywhere; }
  .datalyse-country-list small { flex-shrink: 0; }
  .datalyse-legend { gap: 0.65rem 1rem; margin-bottom: 1.25rem; font-size: 0.72rem; }
  .datalyse-legend i { flex-shrink: 0; }
  .datalyse-rate-panel { padding: 1rem; }
  .datalyse-rate-heading { gap: 1rem; }
  .datalyse-rate-heading h3 { font-size: 1.4rem; line-height: 1.3; overflow-wrap: anywhere; }
  .datalyse-rate-heading label { min-width: 0; }
  .datalyse-table-scroll { max-height: min(32rem, 65svh); overflow: auto; border: 1px solid #c6dde3; border-radius: 0.75rem; overscroll-behavior: contain; scrollbar-width: thin; }
  .datalyse-explorer table { font-size: 0.8rem; }
  .datalyse-explorer table:has(th:nth-child(6)) { min-width: 44rem; }
  .datalyse-explorer table:has(th:nth-child(8)) { min-width: 56rem; }
  .datalyse-explorer th { position: sticky; top: 0; z-index: 1; }
  .datalyse-explorer details { min-width: 12rem; padding: 0.35rem 0.65rem; }
  .datalyse-explorer summary { min-height: 2.75rem; padding-block: 0.65rem; line-height: 1.5; }
  .datalyse-estimate-trigger { min-height: 2.75rem; width: 100%; text-align: left; }
  .datalyse-pagination { gap: 0.75rem; }
  .datalyse-pagination > div { display: flex; gap: 0.5rem; }
  .datalyse-pagination button { margin-left: 0; }
  .datalyse-estimate { padding: 1rem; }
  .datalyse-estimate-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .datalyse-estimate label { line-height: 1.5; }
  .datalyse-estimate output { font-size: 1.2rem; line-height: 1.5; overflow-wrap: anywhere; }
  .datalyse-source, .datalyse-live-note { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .datalyse-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
  .datalyse-heading h2 { max-width: 18ch; font-size: clamp(1.75rem, 7.5vw, 2.25rem); }
  .datalyse-heading > div > p:last-child { font-size: 0.95rem; }
  .datalyse-total { width: 100%; }
  .datalyse-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datalyse-tabs > :last-child { grid-column: 1 / -1; }
  .datalyse-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datalyse-map-layout { grid-template-columns: 1fr; }
  .datalyse-map canvas { height: clamp(14rem, 64vw, 20rem); }
  .datalyse-country-list { max-height: 13rem; }
  .datalyse-rate-heading { flex-direction: column; align-items: stretch; }
  .datalyse-pagination { align-items: stretch; }
  .datalyse-pagination > span, .datalyse-pagination > div { width: 100%; }
  .datalyse-pagination button { flex: 1; }
}
