:root {
  color-scheme: dark;
  --green: #161616;
  --ink: #f5f5f5;
  --muted: #aaaaaa;
  --mint: #9bdf68;
  --paper: #000000;
  --line: #333333;
}

::selection { background: #3a3a3a; color: #ffffff; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible { outline-color: #9bdf68; }
input::placeholder { color: #aaaaaa; opacity: 1; }
.prototype-bar { background: #101010; color: #dddddd; border-bottom: 1px solid #333333; }
.dot, .brand-dot { color: #9bdf68; }
.dot { background: #9bdf68; }
.brand { color: #ffffff; }
.site-header nav a:hover { color: #9bdf68; }
.owner-button { background: #141414; border-color: #707070; color: #ffffff; }
.owner-button:hover { background: #252525; }
.demo-tag { background: #292929; color: #dddddd; }
.eyebrow, .hero-footnote { color: #b8b8b8; }
.tiny-line { background: #888888; }
.hero h1 .serif { color: #ffffff; }
.text-link { border-color: #707070; color: #ffffff; }
.route-graphic.currency-flow { color: #ffffff; }
.currency-flow-arrow { color: #bbbbbb; }

.calculator { background: #111111; border-color: #383838; box-shadow: 0 20px 55px #00000080; }
.dark, .calc-symbol { color: #ffffff; }



.currency-options-note { color: #b7b7b7; }
.currency-field { background: #0a0a0a; border-color: #707070; }
.currency-field label { color: #bbbbbb; }
.amount-row input { color: #ffffff; }
.select-wrap { position: relative; flex: 0 0 auto; }
.select-wrap .flag {
  position: absolute;
  inset-inline-start: 9px;
  pointer-events: none;
}
.select-wrap select {
  width: 110px;
  min-height: 44px;
  padding: 6px 8px 6px 38px;
  color: #f5f5f5;
  color-scheme: dark;
  background: #171c15;
  border: 1px solid #53654a;
  border-radius: 10px;
  cursor: pointer;
}
.select-wrap select:hover, .select-wrap select:focus-visible {
  background: #20291c;
  border-color: var(--mint);
}
.select-wrap select option { background: #171c15; color: #f5f5f5; }

@supports (appearance: base-select) and selector(select::picker(select)) {
  .select-wrap select,
  .select-wrap select::picker(select) { appearance: base-select; }
  .select-wrap select:open { background: #20291c; border-color: var(--mint); }
  .select-wrap select::picker-icon { color: var(--mint); }
  .select-wrap select:open::picker-icon { rotate: 180deg; }
  .select-wrap select::picker(select) {
    min-inline-size: anchor-size(width);
    margin-block: 5px;
    padding: 5px;
    background: #171c15;
    border: 1px solid #53654a;
    border-radius: 12px;
    box-shadow: 0 12px 28px #0009;
  }
  .select-wrap select option {
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
  }
  .select-wrap select option:checked { background: #263621; color: #cbf5ad; }
  .select-wrap select option:hover, .select-wrap select option:focus-visible {
    background: #34492b;
    color: #ffffff;
  }
  .select-wrap select option::checkmark { order: 1; margin-inline-start: auto; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .select-wrap, .select-wrap select option { transition: scale 160ms ease-out; }
  .select-wrap:hover { scale: 1.045; }
  .select-wrap select option:hover { scale: 1.035; }
}
.amount-row input, .amount-row output, #quote-rate { color: #ffffff; }
.amount-row input, .amount-row output { font-variant-numeric: tabular-nums; }
.receive-field { background: #151515; border-color: #707070; }
.swap-row > span { background: #555555; }
.swap-row button { background: #1b1b1b; border-color: #707070; color: #ffffff; }
.swap-row button:hover { background: #303030; }
.calc-meta { color: #bbbbbb; }
.calc-meta span:last-child { background: #272727; color: #dddddd; }
.calc-disclosure, .local-note { color: #aaaaaa; }
.primary-button { background: #166534; color: #ffffff; }
.primary-button:hover:not(:disabled):not([aria-disabled="true"]) { background: #1b7a3f; }
.primary-button:disabled { background: #303030; color: #cccccc; }
.error-message { color: #ffaca0; }

.ticker-shell { background: #111111; border-color: #333333; }
.ticker-label, .ticker-rate { color: #eeeeee; }
.ticker-rate strong { color: #ffffff; }
.ticker-date { color: #bbbbbb; }
.source-info > a { color: #ffffff; }
.refresh-button, .table-action { color: #eeeeee; }
.refresh-button:hover, .table-action:hover { color: #9bdf68; }
.rate-table thead { background: #181818; }
.rate-table thead th { color: #cccccc; }
.column-note { border-color: #606060; color: #cccccc; }
.rate-table td:nth-child(2) { color: #ffffff; }
.table-footnote { color: #aaaaaa; }

.how-section { background: #111111; border: 1px solid #383838; color: #f5f5f5; }
.how-section .eyebrow { color: #bbbbbb; }
.how-section h2 .serif { color: #ffffff; }
.how-heading > p, .step p { color: #bbbbbb; }
.flow-badge { background: #222222; border-color: #555555; color: #eeeeee; }
.flow-badge > span { color: #dddddd; }
.step { border-color: #383838; }
.step-number { color: #cccccc; }
.faq-list summary > span { color: #ffffff; }
.site-footer { background: #0d0d0d; }
.footer-top p, .footer-bottom { color: #aaaaaa; }
.footer-currencies { color: #eeeeee; }
.footer-currencies > span { color: #bbbbbb; }
.footer-bottom { border-color: #333333; }

.notice { background: #1b1b1b; border-color: #555555; color: #dddddd; }
.skip-link { background: #ffffff; color: #000000; }
dialog { background: #111111; border-color: #606060; box-shadow: 0 30px 100px #000000b0; }
dialog::backdrop { background: #000000bd; }
.close-dialog { color: #cccccc; }
.close-dialog:hover { color: #ffffff; }
.optional { color: #bbbbbb; }
dialog form input, .request-item select { background: #0a0a0a; color: #ffffff; border-color: #707070; }
.owner-tabs button[aria-selected=true] { border-color: #9bdf68; color: #ffffff; }
.owner-tabs span { background: #292929; color: #eeeeee; }
.empty-state > span { color: #dddddd; }
.request-id { color: #aaaaaa; }
.toast { background: #222222; color: #ffffff; border: 1px solid #666666; box-shadow: 0 8px 30px #00000080; }

/* Public navigation stays compact while every account action remains reachable. */
body:not([data-admin-page]) .site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 22px;
  min-height: 96px;
  padding-block: 16px;
}
body:not([data-admin-page]) .site-header > .brand { min-width: 0; max-width: 190px; }
body:not([data-admin-page]) .site-header > .brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not([data-admin-page]) .site-header > nav {
  display: flex;
  min-width: 0;
  width: auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.1vw, 18px);
  font-size: 11px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #34442c transparent;
}
body:not([data-admin-page]) .site-header > nav > a,
body:not([data-admin-page]) .site-header > nav > button {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.4;
}
body:not([data-admin-page]) .site-header .header-actions {
  min-width: 0;
  max-width: min(40vw, 420px);
  gap: 8px;
}
body:not([data-admin-page]) .site-header .account-controls { min-width: 0; flex-wrap: wrap; gap: 8px; }
body:not([data-admin-page]) .site-header .session-label { max-width: 112px; }
body:not([data-admin-page]) .site-header .account-link { white-space: nowrap; }

@media (max-width: 1150px) {
  body:not([data-admin-page]) .site-header { grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; }
  body:not([data-admin-page]) .site-header .header-actions { grid-column: 2; grid-row: 1; max-width: 100%; }
  body:not([data-admin-page]) .site-header > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
}

@media (max-width: 800px) {
  body:not([data-admin-page]) .site-header {
    grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
    gap: 6px 10px;
    min-height: 0;
    padding-block: 12px 8px;
  }
  body:not([data-admin-page]) .site-header > .brand { grid-column: 1; grid-row: 1; gap: 7px; max-width: 100%; font-size: 24px; letter-spacing: -1.3px; }
  body:not([data-admin-page]) .site-header > .brand > svg { width: 27px; height: 27px; }
  body:not([data-admin-page]) .site-header .header-actions,
  body:not([data-admin-page]) .site-header .account-controls { display: contents; }
  body:not([data-admin-page]) .site-header .session-label,
  body:not([data-admin-page]) .site-header #open-owner > span,
  body:not([data-admin-page]) .site-header #open-notifications > span:not(.notification-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body:not([data-admin-page]) .site-header #sign-in,
  body:not([data-admin-page]) .site-header #open-profile {
    grid-column: 2 / 4;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    max-width: 100%;
    font-size: 11px;
    gap: 6px;
  }
  body:not([data-admin-page]) .site-header #open-owner {
    grid-column: 4;
    grid-row: 1;
    width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }
  body:not([data-admin-page]) .site-header #open-owner > .icon { width: 18px; height: 18px; }
  body:not([data-admin-page]) .site-header #open-mine { grid-column: 1 / 3; grid-row: 2; justify-content: center; min-height: 44px; font-size: 11px; }
  body:not([data-admin-page]) .site-header #open-notifications { grid-column: 3; grid-row: 2; width: 44px; min-height: 44px; padding: 0; justify-content: center; position: relative; }
  body:not([data-admin-page]) .site-header #open-notifications .notification-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 9px; }
  body:not([data-admin-page]) .site-header #sign-out { grid-column: 4; grid-row: 2; justify-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 11px; }
  body:not([data-admin-page]) .site-header #session-retry { grid-column: 1 / 4; grid-row: 2; justify-self: start; min-height: 44px; font-size: 11px; }
  body:not([data-admin-page]) .site-header > nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 20px;
    padding: 7px 2px 1px;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 8px;
    scrollbar-width: thin;
    scrollbar-color: #34442c transparent;
    -webkit-overflow-scrolling: touch;
  }
  body:not([data-admin-page]) .site-header > nav > a,
  body:not([data-admin-page]) .site-header > nav > button { min-height: 40px; font-size: 11px; padding-block: 6px; }
  body:not([data-admin-page]) .site-header > nav > :focus-visible { outline-offset: 1px; }
}

@media (max-width: 480px) {
  body:not([data-admin-page]) .hero h1 { font-size: clamp(36px, 9.75vw, 39px); line-height: 1.17; letter-spacing: -1.85px; }
  body:not([data-admin-page]) .hero h1 .serif { font-size: 1em; letter-spacing: inherit; }
  body:not([data-admin-page]) .hero .currency-flow { max-width: 100%; }
}

/* Quiet depth, a clear accent, and consistent feedback on interactive controls. */
:root {
  --valut-accent: #b8ee80;
  --valut-edge: #46543d;
  --valut-ease: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: #b8ee80; color: #14200e; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--valut-accent);
  outline-offset: 4px;
}
body:not([data-admin-page]) .prototype-bar {
  background: linear-gradient(90deg, #10150e, #101010 70%);
  border-color: #303c29;
}
body:not([data-admin-page]) .brand-dot { color: var(--valut-accent); }
body:not([data-admin-page]) .hero h1 .serif { color: #bce895; }
body:not([data-admin-page]) .hero .text-link { color: #d8efc5; border-color: #60774e; }
body:not([data-admin-page]) .calculator {
  background: radial-gradient(ellipse at 100% 0, #badc9a08, transparent 55%),
    linear-gradient(145deg, #1b1e1b, #131613 55%, #101310);
  border-color: #485142;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #f0ffe010, 0 24px 64px #0008;
}
.currency-field {
  background: linear-gradient(145deg, #101511, #0c100d);
  border-color: #424c3c;
  border-radius: 13px;
}
.currency-field label { color: #bac2b5; }
.currency-field:focus-within {
  border-color: #a5dc73;
  box-shadow: 0 0 0 3px #9bdf6814;
}
.receive-field { background: linear-gradient(145deg, #1a2018, #131812); border-color: #59694c; }
.select-wrap select { background: #1d2818; border-color: #61784c; box-shadow: inset 0 1px 0 #e1ffd00b; }
.official-rate-label { background: #1d231b; border-color: #3e4a36; color: #d7dfd1; border-radius: 7px; }
.swap-row button { background: #1b2118; border-color: #4c5844; color: #edf2e9; box-shadow: inset 0 1px 0 #ffffff10; }
.calculator .calc-meta > span:last-child { background: #252b22; color: #d2d8cc; }
.calculator :is(.currency-options-note, .calc-disclosure, .local-note) { color: #aeb7a6; }
.calculator .primary-button:not(:disabled):not([aria-disabled="true"]) {
  background: linear-gradient(120deg, #bce98a, #aadf73);
  color: #14200e;
  box-shadow: inset 0 1px 0 #e7ffd330, 0 6px 20px #0003;
}
.calculator .primary-button:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
  background: linear-gradient(120deg, #cef3a6, #bae988);
  color: #14200e;
  box-shadow: inset 0 1px 0 #f0ffe148, 0 8px 22px #0004;
}
.primary-button {
  background: linear-gradient(135deg, #c7f39c, var(--valut-accent) 65%, #9ed866);
  color: #12200b;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff52, 0 5px 20px #8ac74b16;
}
.primary-button:hover:not(:disabled):not([aria-disabled="true"]),
.primary-button:focus-visible:not(:disabled):not([aria-disabled="true"]) {
  background: linear-gradient(135deg, #d5ffb0, #c5f394);
  color: #12200b;
  box-shadow: inset 0 1px 0 #ffffff65, 0 7px 24px #8ac74b26;
}
.secondary-button, .owner-button {
  background: linear-gradient(145deg, #20281a, #151a12);
  border-color: #4d5e40;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #ffffff0a;
}
body:not([data-admin-page]) .ticker-shell {
  background: linear-gradient(90deg, #151d10, #111710 60%, #111);
  border-block-color: #3c4c30;
}
.rate-table { border-radius: 13px; overflow: hidden; }
.rate-table thead { background: #1c2417; }
.rate-table tbody tr:focus-within { background: #1c2915; }
body:not([data-admin-page]) .how-section {
  background: radial-gradient(ellipse at 0 0, #92d75712, transparent 60%), #11170e;
  border-color: #3e5131;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 #d9ffc00a;
}
.step-number { color: #aedb8b; }
.flow-badge { background: #24341b; border-color: #506a3e; border-radius: 8px; }
.faq-list details { background: #11160ed9; border: 1px solid #35412c; border-radius: 12px; margin-bottom: 10px; }
.faq-list summary { padding: 17px 18px; font-size: 13px; }
.faq-list details p { margin: 0 18px 20px; font-size: 12px; }
.faq-list details[open] { background: #172012; border-color: #637c4d; }
.faq-list details:focus-within { border-color: #9bcb70; }
.faq-list summary > span { color: #b8ee80; }
dialog {
  background: radial-gradient(ellipse at 100% 0, #9bdf6809, transparent 55%), #12160f;
  border-color: #536348;
  border-radius: 19px;
  box-shadow: inset 0 1px 0 #ffffff0d, 0 30px 100px #000b;
}
.close-dialog { border-radius: 50%; }
dialog form input:not([type="checkbox"]):not([type="radio"]), dialog form textarea, dialog form select {
  border-color: #4d5a43;
  border-radius: 9px;
  background-color: #0d120a;
}
dialog :is(input, textarea, select):not(:disabled):focus-visible { border-color: var(--valut-accent); }
body:not([data-admin-page]) #my-request-list > .request-item {
  background: linear-gradient(145deg, #1a2115, #111510 60%);
  border-color: #45523b;
  box-shadow: inset 0 1px 0 #e0ffd00a, 0 12px 28px #0003;
}
.transaction-details > summary, .owner-advanced-filters > summary, .owner-process-help > summary { border-radius: 7px; }
.transaction-details > summary:focus-visible, .owner-advanced-filters > summary:focus-visible,
.owner-process-help > summary:focus-visible { color: #d8f6bf; background: #22301b; }

/* A hovering pointer never makes a busy or unavailable action look enabled. */
.primary-button:is(:disabled, [aria-disabled="true"]), .primary-button[aria-disabled="true"]:hover {
  background: #30362b;
  color: #aeb9a5;
  box-shadow: none;
}
.secondary-button:is(:disabled, [aria-disabled="true"]), .owner-button:is(:disabled, [aria-disabled="true"]),
.secondary-button[aria-disabled="true"]:hover, .owner-button[aria-disabled="true"]:hover {
  background: #1a1e17;
  border-color: #3c4436;
  color: #9ca793;
  box-shadow: none;
}
:is(.secondary-button, .owner-button):not(:disabled):not([aria-disabled="true"]):focus-visible {
  background: #293a20;
  border-color: #9dcd72;
  color: #e0f5cf;
}

@media (hover: hover) and (pointer: fine) {
  :is(.secondary-button, .owner-button):not(:disabled):not([aria-disabled="true"]):hover,
  :is(.secondary-button, .owner-button):not(:disabled):not([aria-disabled="true"]):focus-visible {
    background: #293a20;
    border-color: #9dcd72;
    color: #e0f5cf;
    box-shadow: inset 0 1px 0 #ffffff10, 0 6px 18px #0004;
  }
  :is(.text-link, .refresh-button, .table-action, .policy-link, .account-link):not(:disabled):not([aria-disabled="true"]):hover {
    color: #cbf4a5;
    text-decoration-color: #92bc70;
  }
  body:not([data-admin-page]) .site-header nav > :is(a, button):not(:disabled):not([aria-disabled="true"]):hover { color: #c9f4a6; }
  .currency-field:hover { border-color: #75975a; }
  .currency-field:focus-within:hover { border-color: var(--valut-accent); }
  .rate-table tbody tr:hover { background: #182312; }
  .faq-list summary:hover, .transaction-details > summary:hover,
  .owner-advanced-filters > summary:hover, .owner-process-help > summary:hover { background: #24331c; color: #d9f3c6; }
  .close-dialog:hover { background: #2b3923; color: #e8f8db; }
  dialog :is(input, textarea, select):not(:disabled):not([readonly]):hover { border-color: #7c9c60; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.primary-button, .secondary-button, .owner-button, .text-link, .table-action, .refresh-button,
      .account-link, .close-dialog, .currency-field, .faq-list details, .transaction-details > summary,
      .owner-advanced-filters > summary, .owner-process-help > summary) {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
      box-shadow 180ms ease, translate 180ms var(--valut-ease), scale 180ms var(--valut-ease);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.primary-button, .secondary-button, .owner-button):not(:disabled):not([aria-disabled="true"]):hover { translate: 0 -2px; }
  .primary-button:not(:disabled):not([aria-disabled="true"]):hover { scale: 1.012; }
  :is(.primary-button, .secondary-button, .owner-button):not(:disabled):not([aria-disabled="true"]):active { translate: 0 0; scale: .99; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.primary-button, .secondary-button, .owner-button, .text-link, .table-action, .refresh-button,
      .account-link, .close-dialog, .currency-field, .faq-list details, .transaction-details > summary,
      .owner-advanced-filters > summary, .owner-process-help > summary, .select-wrap, .select-wrap select option) { transition: none; }
}
