.header .currency-trigger {
  display:inline-flex; align-items:center; justify-content:center; flex:none; gap:7px;
  min-height:42px; padding:0 11px; border:1px solid #8ca79a; border-radius:999px;
  background:#ffffff0b; color:#fff9e9;
  font-family:inherit; font-size:12px; font-weight:700; line-height:1.1; letter-spacing:.035em;
  transition:background-color .16s, border-color .16s;
}
.header .currency-trigger .currency-globe { flex:none; color:#eed0a3; }
.header .currency-trigger .currency-caret { flex:none; transition:transform .16s; }
.header .currency-trigger:hover, .header .currency-trigger[aria-expanded="true"] {
  background:#365b50; border-color:#f1d7aa;
}
.header .currency-trigger[aria-expanded="true"] .currency-caret { transform:rotate(180deg); }

dialog.currency-dialog {
  --currency-ink:#193e35; --currency-dim:#51695f; --currency-sage:#eaf1e8; --currency-line:#dbe4db;
  box-sizing:border-box; position:fixed; inset:var(--currency-top,64px) var(--currency-right,16px) auto auto;
  width:min(390px,calc(100vw - 24px)); max-width:none; margin:0; padding:0;
  max-height:min(610px,calc(100dvh - var(--currency-top,64px) - 14px)); overflow:hidden;
  border:1px solid #d4ded3; border-radius:20px; background:#fffefb; color:var(--currency-ink);
  box-shadow:0 12px 32px #0d2b2333, 0 2px 6px #0d2b2314;
  font-family:inherit; text-align:left; color-scheme:light;
}
dialog.currency-dialog[open] { display:flex; flex-flow:column; }
dialog.currency-dialog::backdrop { background:#09221b36; }
.currency-dialog [hidden] { display:none !important; }
.currency-dialog :is(button,input) { font:inherit; color:inherit; }
.currency-dialog button { border:0; cursor:pointer; }
.currency-dialog :is(button,input):focus-visible { outline:2px solid #146755; outline-offset:-3px; }
.currency-dialog svg { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.currency-panel-head { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 10px; }
.currency-panel-head h2 {
  margin:0; color:var(--currency-ink); font:400 30px/1.12 Georgia,"Times New Roman",serif; letter-spacing:-.035em;
}
.currency-dialog .currency-close {
  width:40px; height:40px; display:grid; place-items:center; padding:0; background:#f0f3ed; border-radius:50%;
}
.currency-close svg { width:18px; height:18px; }
.currency-query { position:relative; margin:0 20px 14px; }
.currency-search {
  display:flex; align-items:center; gap:9px; height:44px; padding:0 12px; border:1px solid #a0b3a6;
  border-radius:10px; background:#fff; color:#536d60;
}
.currency-search svg { width:18px; height:18px; flex:none; }
.currency-search:focus-within { border-color:#27725d; box-shadow:0 0 0 2px #d7e8db; }
.currency-search input[type="search"] {
  min-width:0; width:100%; height:100%; padding:0; border:0; border-radius:0; margin:0;
  outline:0; box-shadow:none; background:transparent; font-family:inherit; font-size:16px; color:#193e35;
}
.currency-search input::-webkit-search-cancel-button { -webkit-appearance:none; }
.currency-search input::placeholder { color:#61776c; opacity:1; }
.currency-query:has(.currency-clear:not([hidden])) input { padding-right:38px; }
.currency-dialog .currency-clear { position:absolute; right:6px; top:5px; height:34px; padding:0 8px; border-radius:6px; background:#eff3ec; color:#335c4d; font-size:13px; font-weight:650; }
.currency-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#a9baac transparent; padding:0 20px 15px; }
.currency-dialog .currency-auto {
  display:flex; align-items:center; gap:12px; width:100%; min-height:61px; padding:9px 12px;
  background:#f4f6ef; border:1px solid var(--currency-line); border-radius:12px; text-align:left;
}
.currency-dialog .currency-auto[aria-pressed="true"] { border-color:#a9c2ac; background:#eaf2e7; }
.currency-compass { flex:none; width:27px; height:27px; color:#39604b; }
.currency-auto>span:nth-child(2) { flex:1; min-width:0; }
.currency-auto strong,.currency-auto small { display:block; }
.currency-auto strong { font-size:15px; font-weight:700; }
.currency-auto small { margin-top:3px; font-size:12px; line-height:1.3; color:var(--currency-dim); }
.currency-group-title { margin:16px 0 8px; color:var(--currency-dim); font-family:inherit; font-size:12px; font-weight:700; line-height:1.25; }
.currency-quick { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.currency-dialog .currency-chip { min-height:40px; border:1px solid #c5d2c6; border-radius:9px; background:#fffefb; font-size:13px; font-weight:700; }
.currency-dialog .currency-chip[aria-pressed="true"] { background:#244d3e; border-color:#244d3e; color:#fffcef; }
.currency-list-title { display:flex; justify-content:space-between; align-items:baseline; padding-bottom:7px; border-bottom:1px solid var(--currency-line); margin-bottom:2px; }
.currency-count { font-size:11px; font-variant-numeric:tabular-nums; font-weight:600; }
.currency-dialog .currency-row {
  display:grid; grid-template-columns:34px 1fr auto 17px; align-items:center; gap:10px; width:100%; min-height:45px;
  padding:5px 6px; border-radius:7px; background:transparent; text-align:left;
}
.currency-symbol { display:grid; place-items:center; min-height:28px; border-radius:7px; background:#f1f3ed; color:#465e51; font-size:12px; font-weight:650; }
.currency-name { font-size:14px; line-height:1.25; }
.currency-name::first-letter { text-transform:uppercase; }
.currency-iso { color:var(--currency-dim); font-size:11px; font-weight:700; letter-spacing:.05em; }
.currency-tick { display:inline-grid; place-items:center; width:17px; height:17px; border-radius:50%; }
[aria-pressed="true"]>.currency-tick { background:#285c46; }
[aria-pressed="true"]>.currency-tick::after { content:""; margin-top:-2px; width:8px; height:5px; border:solid white; border-width:0 0 1.6px 1.6px; transform:rotate(-45deg); }
.currency-dialog .currency-row[aria-pressed="true"] { background:var(--currency-sage); }
.currency-empty { padding:16px 0 24px; margin:0; color:var(--currency-dim); font-size:14px; }
.currency-live { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (hover:hover) {
  .currency-dialog :is(.currency-close,.currency-chip,.currency-auto,.currency-row,.currency-clear):hover { background:#e6eee3; color:#1f493b; }
  .currency-dialog .currency-chip[aria-pressed="true"]:hover { background:#183e31; color:white; }
}
@media(max-width:600px) {
  dialog.currency-dialog {
    inset:auto 0 0; width:100%; border-radius:20px 20px 0 0; border-bottom:0;
    height:min(80dvh,650px); max-height:100dvh; padding-bottom:env(safe-area-inset-bottom);
  }
  dialog.currency-dialog::backdrop { background:#09221b70; }
  html:has(.currency-dialog[open]) { overflow:hidden; }
  .currency-panel-head { padding-top:14px; }
  .currency-dialog .currency-chip, .currency-dialog .currency-close { min-height:44px; }
  .currency-dialog .currency-close { width:44px; }
  .currency-dialog .currency-row { min-height:47px; }
}
@media(max-width:420px) {
  .header .currency-trigger { min-height:41px; gap:4px; padding-inline:7px; font-size:11px; }
  .header .currency-globe { width:14px; height:14px; }
  .header .head-inner { gap:5px; }
}
@media(max-width:360px) {
  .header .currency-trigger .currency-globe { display:none; }
  .header .head-inner .brand-lockup { width:clamp(70px,calc(100vw - 244px),98px); }
  .header .head-inner .header-end { gap:2px; }
}
@media(prefers-reduced-motion:reduce) { .header .currency-trigger,.header .currency-trigger .currency-caret { transition:none; } }
