#site-currency-tools { flex: 0 0 60px; width: 60px; }
#site-currency-tools .cu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 60px; min-height: 44px; padding: 7px; border: 1px solid var(--theme-line, #d7e0e2);
  border-radius: 999px; color: var(--theme-ink, #173e52); background: transparent;
  font: 650 20px/1 var(--body, sans-serif); cursor: pointer;
}
#site-currency-tools .cu-toggle > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#site-currency-tools .cu-toggle:hover,
#site-currency-tools .cu-toggle[aria-expanded="true"] { background: var(--theme-raised, #edf3f4); }
#site-currency-tools .cu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hero-on-cover #site-currency-tools .cu-toggle { color: #fffefa; border-color: #ffffff70; background: #ffffff10; }
.hero-on-cover #site-currency-tools .cu-toggle:hover,
.hero-on-cover #site-currency-tools .cu-toggle[aria-expanded="true"] { color: #173e52; background: #f0f5f7; }
#currency-panel {
  --cu-bg: var(--planner-card, #fffaf8); --cu-ink: var(--planner-ink, #5f2c43);
  --cu-accent: var(--planner-accent, #843c58); --cu-muted: var(--planner-muted, #795463);
  --cu-line: var(--planner-line, #dcc5cf); --cu-soft: var(--planner-raised, #f5e9ee);
  display: none; position: fixed; inset: auto; z-index: 150; width: 340px;
  max-width: calc(100vw - 24px); margin: 0; padding: 22px;
  border: 1px solid var(--cu-line); border-radius: 22px; overflow: auto;
  color: var(--cu-ink); background: var(--cu-bg); box-shadow: 0 22px 70px #21182545;
  font: 400 16px/1.5 var(--body, sans-serif); overscroll-behavior: contain;
}
#currency-panel[hidden] { display: none !important; }
#currency-panel.is-open { display: block; }
#currency-panel::backdrop { background: transparent; }
#currency-panel * { box-sizing: border-box; }
#currency-panel .cu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#currency-panel h2 { margin: 0; color: var(--cu-ink); font: 600 32px/1.05 var(--display, Georgia, serif); letter-spacing: -.035em; }
#currency-panel button { font-family: var(--body, sans-serif); cursor: pointer; }
#currency-panel .cu-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--cu-line); border-radius: 50%; background: var(--cu-soft); color: var(--cu-ink); }
#currency-panel .cu-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#currency-panel .cu-rates { display: grid; gap: 9px; margin: 0; }
#currency-panel .cu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--cu-line); border-radius: 13px; background: var(--cu-soft); }
#currency-panel dt { display: grid; gap: 2px; color: var(--cu-ink); font-size: 16px; font-weight: 650; }
#currency-panel dt > span { font-size: 14px; font-weight: 400; color: var(--cu-muted); }
#currency-panel dd { margin: 0; color: var(--cu-accent); font-size: 21px; font-weight: 700; white-space: nowrap; }
#currency-panel .cu-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--cu-line); }
#currency-panel .cu-date { margin: 0; color: var(--cu-muted); font-size: 13px; }
#currency-panel .cu-source { display: block; color: var(--cu-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#currency-panel .cu-refresh { min-height: 40px; padding: 6px 10px; border: 1px solid var(--cu-line); border-radius: 999px; color: var(--cu-accent); background: transparent; font-size: 14px; font-weight: 600; }
#currency-panel .cu-refresh:disabled { opacity: .55; cursor: wait; }
#currency-panel .cu-status { color: var(--cu-muted); font-size: 13px; margin: 10px 0 0; }
#currency-panel .cu-status:empty { display: none; }
#currency-panel button:focus-visible,
#currency-panel a:focus-visible { outline: 2px solid var(--cu-accent); outline-offset: 3px; }
@media (max-width: 360px) {
  #currency-panel { padding: 18px; }
  #currency-panel .cu-row { padding-inline: 12px; }
}
