/* Source: eurocoins-js/app/eurocoins-shell.css. Sync the vendored copies with scripts/sync-header-style.cjs. */
:root {
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  --ec-language-width: 162px;
  --ec-theme-width: 32px;
  --ec-account-width: 112px;
  --ec-rule: #e4e4e7;
  --ec-header-bg: rgb(255 255 255 / 85%);
  --ec-ink: #18181b;
  --ec-muted: #52525b;
  --ec-panel: #fff;
  --ec-control: #f4f4f5;
  --ec-accent: #047857;
  --ec-selection: rgb(16 185 129 / 10%);
  --ec-inline: 16px;
}
:root::-webkit-scrollbar { width: auto; }
:root.dark {
  --ec-rule: #3f3f46;
  --ec-header-bg: rgb(9 9 11 / 80%);
  --ec-ink: #f4f4f5;
  --ec-muted: #a1a1aa;
  --ec-panel: #151817;
  --ec-control: #27272a;
  --ec-accent: #6ee7b7;
  --ec-selection: rgb(52 211 153 / 12%);
}
@media (min-width: 640px) { :root { --ec-inline: 24px; } }
@media (min-width: 1024px) { :root { --ec-inline: 32px; } }

.ec-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ec-rule);
  background: var(--ec-header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: Arial, Helvetica, sans-serif;
}
.ec-header .ec-header-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  height: 56px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--ec-inline);
  gap: 8px;
  flex-wrap: nowrap;
}
@media (min-width: 768px) {
  .ec-header .ec-header-inner { height: 64px; }
}
.ec-header .ec-brand {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  margin: 0;
  color: var(--ec-ink);
  font: 700 15px/20px Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
}
.ec-brand img {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 5px;
}
.ec-brand .ec-brand-detail {
  display: block;
  margin: 0;
  color: var(--ec-muted);
  font: 400 11px/16px Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  white-space: nowrap;
}
.ec-header .ec-mobile-only { display: flex; }
.ec-header .ec-desktop-only { display: none; }
@media (min-width: 768px) {
  .ec-header .ec-mobile-only { display: none; }
  .ec-header .ec-desktop-only { display: flex; }
}
.ec-preferences {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: calc(var(--ec-language-width) + var(--ec-theme-width) + 8px);
}
.ec-account-slot {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ec-account-slot:not([aria-hidden="true"])::before {
  content: "";
  flex: 0 0 1px;
  height: 20px;
  background: var(--ec-rule);
}
.ec-account-control {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid var(--ec-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ec-muted);
  font: 600 12px/18px Arial, Helvetica, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.ec-account-control:hover { background: var(--ec-control); color: var(--ec-ink); }
@media (max-width: 767px) {
  .ec-account-control {
    flex: none;
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
  }
}
@media (min-width: 768px) {
  .ec-account-slot { flex: 0 0 var(--ec-account-width); }
}
.ec-language {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  width: var(--ec-language-width);
  align-items: center;
  padding: 2px;
  border: 1px solid var(--ec-rule);
  border-radius: 999px;
  background: var(--ec-control);
}
.ec-language button {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  min-height: 26px;
  padding: 3px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ec-muted);
  font: 600 11px/16px Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-transform: uppercase;
}
.ec-language button[aria-pressed="true"] {
  color: var(--ec-ink);
  background: var(--ec-panel);
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
button.ec-theme {
  display: grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  width: var(--ec-theme-width);
  height: var(--ec-theme-width);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--ec-rule);
  border-radius: 50%;
  background: var(--ec-control);
  color: var(--ec-muted);
  cursor: pointer;
}
.ec-theme::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dark .ec-theme::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4'/%3E%3Cpath d='M10 2v2m0 12v2M2 10h2m12 0h2M4.3 4.3l1.4 1.4m8.6 8.6 1.4 1.4M4.3 15.7l1.4-1.4m8.6-8.6 1.4-1.4' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ec-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 4px;
  margin: 12px 8px 0;
  padding: 8px 8px 0;
  border-top: 1px solid var(--ec-rule);
  color: var(--ec-muted);
  font: 600 13px/18px Arial, Helvetica, sans-serif;
}
.ec-settings .ec-theme { justify-self: end; width: 44px; height: 44px; }
.ec-settings .ec-language button { min-height: 40px; }
.ec-settings .ec-language { justify-self: end; }

.ec-dock { display: none; }
@media (max-width: 767px) {
  nav.ec-dock {
    position: fixed;
    z-index: 60;
    inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    width: min(calc(100% - 24px), 480px);
    margin: 0 auto;
    padding: 7px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 28px;
    background: rgb(248 250 249 / 88%);
    box-shadow: 0 12px 40px -12px rgb(6 40 30 / 25%), inset 0 1px 0 rgb(255 255 255 / 90%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    font-family: Arial, Helvetica, sans-serif;
  }
  .dark nav.ec-dock {
    border-color: rgb(255 255 255 / 12%);
    background: rgb(28 32 31 / 88%);
    box-shadow: 0 12px 40px -12px rgb(0 0 0 / 70%), inset 0 1px 0 rgb(255 255 255 / 7%);
  }
  .ec-dock > .ec-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 62px;
    padding: 6px 2px;
    border: 0;
    border-radius: 20px;
    font: 600 10px/12px Arial, Helvetica, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  .ec-dock > .ec-dock-item:focus-visible { outline: 2px solid var(--ec-accent); outline-offset: 2px; }
  .ec-dock > .ec-dock-item:not(.ec-primary) {
    color: var(--ec-muted);
    background: transparent;
  }
  .ec-dock > .ec-dock-item:not(.ec-primary):is(:hover,[aria-current],[aria-expanded="true"],.ec-active) {
    color: var(--ec-accent);
    background: var(--ec-selection);
  }
}
dialog.ec-sheet {
  position: fixed;
  inset: auto 12px var(--ec-sheet-bottom, calc(102px + env(safe-area-inset-bottom, 0px)));
  width: calc(100% - 24px);
  max-width: 480px;
  max-height: calc(100dvh - var(--ec-sheet-bottom, calc(102px + env(safe-area-inset-bottom, 0px))) - 24px);
  margin: 0 auto;
  padding: 16px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ec-rule);
  border-radius: 28px;
  background: var(--ec-panel);
  color: var(--ec-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 18%);
  font-family: Arial, Helvetica, sans-serif;
}
.ec-sheet::backdrop { background: rgb(9 19 15 / 35%); }
.ec-sheet-handle { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 999px; background: var(--ec-rule); }
.ec-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0 12px; }
.ec-sheet-heading h2 { margin: 0; font: 600 20px/28px Arial, Helvetica, sans-serif; }
.ec-sheet-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ec-rule);
  border-radius: 50%;
  background: var(--ec-control);
  color: var(--ec-muted);
  cursor: pointer;
}
.ec-sheet-close::before { content: "\00d7"; font: 400 24px/1 Arial, Helvetica, sans-serif; }
@media (min-width: 768px) { dialog.ec-sheet { display: none; } }
