/* ── Currency map ────────────────────────────────────────────────────────────── */

/* Left panel head */
.cm-panel-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.cm-panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 4px;
}
.cm-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cm-panel-sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.cm-panel-source {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
}
.cm-panel-source-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.cm-panel-source-link:hover { color: var(--ink-soft); }

/* Continent filter chips */
.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.cm-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
  font-family: inherit;
}
.cm-chip:hover {
  background: var(--bg-warm);
  color: var(--ink-soft);
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
}
.cm-chip--active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Zone list */
.cm-zone-list {
  padding: 6px 8px 12px;
}
.cm-zone-list-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 8px 6px;
}
.cm-zone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.3;
}
.cm-zone-item:hover { background: var(--bg-warm); }
.cm-zone-item--active { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.cm-zone-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cm-zone-sym {
  font-size: 14px;
  font-weight: 700;
  min-width: 22px;
  color: var(--ink);
}
.cm-zone-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-zone-count {
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.cm-zone-sep {
  height: 1px;
  background: var(--rule);
  margin: 6px 10px;
}

/* Map overlays */
.cm-map-title {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
}
.cm-map-title-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 3px;
}
.cm-map-title-text {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}

.cm-reset-btn {
  position: absolute;
  bottom: 40px;
  right: 14px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cm-reset-btn.visible { opacity: 1; pointer-events: auto; }
.cm-reset-btn:hover { background: var(--bg-warm); }

.cm-tooltip {
  position: absolute;
  bottom: 40px;
  left: 20px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(26,58,92,0.10);
}
.cm-tooltip.visible { opacity: 1; }
.cm-tooltip-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.cm-tooltip-currency {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cm-tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Right panel */
.cm-info-chevron { transition: transform 0.3s ease; }
[data-panel="right"][data-panel-open="false"] .cm-info-chevron { transform: rotate(180deg); }

.cm-info-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.cm-info-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.cm-info-head {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  flex-shrink: 0;
}
.cm-info-sym {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.cm-info-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cm-info-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 3px;
}
.cm-info-stats {
  display: flex;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.cm-info-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
}
.cm-info-stat + .cm-info-stat { border-left: 1px solid var(--rule); }
.cm-info-stat-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.cm-info-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 3px;
}
.cm-info-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 16px 6px;
}
.cm-info-country-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 20px;
}
.cm-info-country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transition: background 0.1s;
  cursor: default;
}
.cm-info-country:hover { background: var(--bg-warm); }
.cm-info-flag { flex-shrink: 0; }
.cm-info-country-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-info-country-pop {
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* Right panel — single country card */
.cm-cc {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.cm-cc-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--rule);
}
.cm-cc-hero .hej-flag { flex-shrink: 0; }
.cm-cc-hero-text { min-width: 0; }
.cm-cc-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cm-cc-cont {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 3px;
}
.cm-cc-currency {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cm-cc-accent) 9%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--cm-cc-accent) 24%, transparent);
}
.cm-cc-sym {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--cm-cc-accent);
  min-width: 44px;
  text-align: center;
}
.cm-cc-cur-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cm-cc-cur-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 3px;
}
.cm-cc-shared {
  margin: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cm-cc-shared-text {
  font-size: 13px;
  color: var(--ink-soft);
}
.cm-cc-zone-btn {
  align-self: flex-start;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.12s;
}
.cm-cc-zone-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cm-cc-actions {
  margin-top: auto;
  padding: 16px;
}
.cm-cc-profile {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.cm-cc-profile:hover { background: var(--bg-warm); color: var(--ink); }

/* Currency symbol watermark on map */
.hejmap-label-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.hejmap-sym {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,0.16);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.05em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
[data-theme="light"] .hejmap-sym {
  color: rgba(0,0,0,0.09);
  text-shadow: none;
}

/* Edge fades */
.cm-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.cm-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
