/* Egen kod, idé från affectUI Region DACH (MIT), ingen kod tagen: egen förenklad kontur av Sverige */
.nsm-root {
  --nsm-ember: #D9601C;
  --nsm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 1px -1px rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.88);
  font-variant-numeric: tabular-nums;
}
.nsm-root *, .nsm-root *::before, .nsm-root *::after { box-sizing: border-box; }
.nsm-root p { margin: 0; }
.nsm-map svg { display: block; width: 100%; height: auto; max-height: 300px; overflow: visible; }
.nsm-land path { fill: #F4F2EE; stroke: rgba(0, 0, 0, 0.18); stroke-width: 0.9; stroke-linejoin: round; }
.nsm-dot { fill: rgba(0, 0, 0, 0.38); stroke: #fff; stroke-width: 1.5; transition: fill 220ms ease; }
.nsm-ring { fill: rgba(217, 96, 28, 0.14); stroke: rgba(217, 96, 28, 0.45); stroke-width: 0.8; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.6); transition: opacity 260ms ease, transform 420ms var(--nsm-ease); }
.nsm-city[data-on] .nsm-dot { fill: var(--nsm-ember); }
.nsm-city[data-on] .nsm-ring { opacity: 1; transform: scale(1); }
.nsm-city[data-pop] .nsm-ring { animation: nsm-pop 700ms var(--nsm-ease); }
@keyframes nsm-pop { 0% { transform: scale(0.4); opacity: 0.2; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }

.nsm-k { font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(0, 0, 0, 0.58); }
.nsm-total { margin-top: 2px !important; white-space: nowrap; }
.nsm-total-n { font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; color: #000; }
.nsm-total-l { color: rgba(0, 0, 0, 0.61); }
.nsm-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nsm-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 32px; padding: 0 8px; margin: 0; border: 0; border-radius: 6px;
  background: none; font: inherit; color: rgba(0, 0, 0, 0.61); text-align: left; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.nsm-item:hover { background: rgba(0, 0, 0, 0.03); color: rgba(0, 0, 0, 0.88); }
.nsm-item:focus-visible { outline: 2px solid rgba(217, 96, 28, 0.4); outline-offset: -1px; }
.nsm-item i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: rgba(0, 0, 0, 0.3); transition: background-color 200ms ease; }
.nsm-item[aria-pressed="true"] { background: rgba(217, 96, 28, 0.1); color: #000; font-weight: 500; }
.nsm-item[aria-pressed="true"] i { background: var(--nsm-ember); }
.nsm-n { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nsm-v { color: rgba(0, 0, 0, 0.88); font-weight: 500; }
.nsm-read { margin-top: 10px !important; font-size: 12px; line-height: 16px; color: rgba(0, 0, 0, 0.58); }
@media (prefers-reduced-motion: reduce) {
  .nsm-ring, .nsm-dot, .nsm-item, .nsm-item i { transition: none; }
  .nsm-city[data-pop] .nsm-ring { animation: none; }
}

/* Mörkt läge, samma konvention som affectUI */
:where(.dark, [data-theme="dark"]) .nsm-root { background: #1C1B1A; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.4); color: rgba(255, 255, 255, 0.9); }
:where(.dark, [data-theme="dark"]) .nsm-land path { fill: #262524; stroke: rgba(255, 255, 255, 0.22); }
:where(.dark, [data-theme="dark"]) .nsm-dot { fill: rgba(255, 255, 255, 0.45); stroke: #1C1B1A; }
:where(.dark, [data-theme="dark"]) .nsm-ring { fill: rgba(240, 138, 75, 0.16); stroke: rgba(240, 138, 75, 0.55); }
:where(.dark, [data-theme="dark"]) .nsm-k, :where(.dark, [data-theme="dark"]) .nsm-read { color: rgba(255, 255, 255, 0.58); }
:where(.dark, [data-theme="dark"]) .nsm-total-n { color: rgba(255, 255, 255, 0.94); }
:where(.dark, [data-theme="dark"]) .nsm-total-l, :where(.dark, [data-theme="dark"]) .nsm-item { color: rgba(255, 255, 255, 0.64); }
:where(.dark, [data-theme="dark"]) .nsm-item:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.9); }
:where(.dark, [data-theme="dark"]) .nsm-item i { background: rgba(255, 255, 255, 0.35); }
:where(.dark, [data-theme="dark"]) .nsm-item[aria-pressed="true"] { background: rgba(240, 138, 75, 0.14); color: rgba(255, 255, 255, 0.94); }
:where(.dark, [data-theme="dark"]) .nsm-v { color: rgba(255, 255, 255, 0.9); }
