@font-face {
  font-family: Rubik;
  src: url("assets/rubik-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/rubik-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Black";
  src: url("assets/roboto-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #181717;
  --panel: #211e1d;
  --ink: #f6f1ea;
  --muted: #bfb4af;
  --line: #463c39;
  --accent: #ff7568;
  --display: "Roboto Black", Rubik, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color: var(--ink);
  background: var(--bg);
  font-family: Rubik, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { padding: 0; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(button, select, a, summary):focus-visible { outline: 2px solid #ff978a; outline-offset: 4px; }
::selection { color: #fff3e9; background: #882d2a; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(91%, 1304px); margin-inline: auto; }
.site-header { background: var(--bg); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: clamp(24px, 5vw, 75px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { width: 29px; height: 29px; flex-shrink: 0; }
.brand span { font-size: 1.22rem; font-weight: 700; letter-spacing: -.055em; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 26px; }
.main-nav :is(a, button) { padding: 10px 0; color: var(--muted); background: transparent; font-size: .875rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .075em; }
.main-nav .nav-current { color: var(--ink); }
.main-nav :is(a,button):hover, footer :is(a, button):hover { color: var(--accent); }
.header-actions { gap: 15px; margin-left: auto; }
.orders-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 0 5px 15px; border-left: 1px solid var(--line); color: var(--ink); background: transparent; font-size: .875rem; }
.orders-button:hover { color: var(--accent); }
.orders-button svg { width: 17px; height: 17px; }
#order-count { min-width: 1.35rem; padding: 3px; border: 1px solid var(--line); color: var(--muted); font: .75rem/1 var(--mono); text-align: center; }
/* Catalog */
.catalog-page {
  --bg: #171818;
  --ink: #f0f0ee;
  --muted: #b3b4b1;
  --line: #383a39;
  color: var(--ink);
  background: var(--bg);
}
.catalog-page .wrap { max-width: 1088px; }
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 20px 46px;
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.catalog-intro h1 {
  font: 700 clamp(2.15rem, 3.65vw, 3.1rem)/1.08 Rubik, sans-serif;
  letter-spacing: -.05em;
}
.catalog-intro h1 span { color: var(--accent); }
.catalog-intro p { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.catalog-terms { display: grid; gap: 7px; margin: 0; font-size: .9rem; line-height: 1.45; }
.catalog-terms > div { display: flex; justify-content: space-between; gap: 26px; }
.catalog-terms dt { color: var(--muted); }
.catalog-terms dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.catalog { padding-bottom: clamp(32px, 5vw, 64px); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: clamp(16px, 2.8vw, 32px); }
.filters button {
  position: relative;
  padding: 13px 0;
  color: var(--muted);
  background: transparent;
  font-size: .94rem;
  line-height: 1.2;
}
.filters button:is(:hover, :focus-visible) { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--accent); }
.filters button::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  border-bottom: 2px solid currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.catalog-count, .catalog-columns { font-size: .8125rem; color: var(--muted); }
.catalog-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-columns, .asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(100px, auto);
  align-items: center;
  column-gap: 20px;
  padding-inline: clamp(10px, 1.8vw, 22px);
}
.catalog-columns { padding-block: 18px 10px; }
.asset-row {
  width: 100%;
  min-height: 77px;
  padding-block: 13px;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.asset-row:is(:hover, :focus-visible) { background: #261e1e; }
.asset-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.asset-identity { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 16px); min-width: 0; }
.asset-name { font: 700 1rem/1.35 Rubik, sans-serif; }
.network-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #252727;
  color: var(--network-ink, #d6d7d4);
}
.network-glyph svg { display: block; width: 21px; height: 21px; }
.theme-gaming { --network-ink: #c1afd7; }
.theme-tron { --network-ink: #e48684; }
.theme-ethereum { --network-ink: #a4b4de; }
.theme-bnb { --network-ink: #dec17b; }
.asset-protocol { color: var(--muted); font-size: .92rem; }
.asset-action {
  justify-self: end;
  padding: 7px 13px;
  border: 1px solid #505351;
  border-radius: 5px;
  background: #262827;
  font-size: .875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.asset-row:is(:hover,:focus-visible) .asset-action { color: #ffb1a7; border-color: #a36158; background: #392725; }
@media (max-width: 650px) {
  .catalog-intro { grid-template-columns: 1fr; gap: 20px; }
  .catalog-terms { width: min(100%, 20rem); }
  .catalog-columns { display: none; }
  .asset-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding-inline: 5px; }
  .asset-identity { grid-column: 1; grid-row: 1; }
  .asset-protocol { grid-column: 1; grid-row: 2; padding-left: 44px; font-size: .8125rem; }
  .asset-action { grid-column: 2; grid-row: 1 / 3; }
}
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 67px; }
.footer-note { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.footer-note .icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
footer button { background: transparent; color: var(--muted); font-size: .875rem; padding: 10px 0; }

body:has(dialog[open]) { overflow: hidden; }
dialog {
  width: min(490px,calc(100% - 24px)); max-height: 90dvh; padding: clamp(22px,3vw,38px);
  border: 1px solid #63504a; border-top: 3px solid #eb6658; border-radius: 3px;
  color: var(--ink); background: #221e1d; box-shadow: 0 24px 80px #08050480;
}
dialog::backdrop { background: #100d0cd4; backdrop-filter: blur(4px); }
#close-dialog { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
#close-dialog .icon { width: 16px; height: 16px; }
#close-dialog:hover { background: #46312d; }
.modal-title { margin: 0 0 10px; font: 900 clamp(1.7rem,2.7vw,2.5rem)/1.08 var(--display); letter-spacing: -.04em; }
.modal-title:focus { outline: none; }
.modal-copy, .modal-steps { font-size: 1rem; line-height: 1.53; color: var(--muted); }
.modal-summary, .order-list { padding: 0; margin: 20px 0; border-block: 1px solid #654a43; }
.order-list { list-style: none; }
.summary-row, .order-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: .94rem; }
.summary-row + .summary-row, .order-row + .order-row { border-top: 1px solid var(--line); }
.summary-row dt { color: var(--muted); }
.summary-row dd { margin: 0; text-align: right; font-weight: 700; }
.order-row > *, .summary-row > * { min-width: 0; overflow-wrap: anywhere; }
.order-row > :last-child { text-align: right; }
.order-detail { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; font-size: .875rem; }
.modal-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.modal-primary, .modal-secondary, .quote-submit { padding: 12px 17px; border: 1px solid transparent; border-radius: 2px; font: 700 .94rem/1.25 Rubik, sans-serif; }
.modal-primary, .quote-submit { background: #ef7869; color: #211310; }
.modal-primary:hover, .quote-submit:hover:enabled { background: #ff9a88; }
.modal-secondary { color: #e8dbd4; background: transparent; border-color: #69564e; }
.modal-secondary:hover { background: #342926; }
.modal-steps { padding-left: 23px; }
.modal-steps li { padding-left: 4px; margin-top: 9px; }
.modal-steps li::marker { color: var(--accent); font-weight: 700; }
.quote-form, .quote-controls, .quote-summary { min-width: 0; display: grid; align-content: start; }
.quote-form { gap: 18px; margin-top: 22px; }
.quote-controls { gap: 17px; container: quote-fields / inline-size; }
.quote-field, .quote-terms { min-width: 0; }
.quote-field > label, .quote-terms legend { display: block; max-width: 100%; margin-bottom: .5rem; color: var(--ink); font-size: .94rem; font-weight: 700; }
.quote-amount-wrap { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: 0 .85rem; }
.quote-amount-wrap, .wallet-input { background: #191616; border: 1px solid #67554f; border-radius: 2px; }
.quote-amount-wrap:focus-within, .wallet-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote-amount-wrap:has(input[aria-invalid="true"]), .wallet-input[aria-invalid="true"] { border-color: #ff937c; }
.quote-amount { flex: 1 1 0; min-width: 0; width: 100%; padding: .67rem 0; border: 0; outline: 0; background: transparent; color: var(--ink); caret-color: var(--accent); font: 700 1.45rem/1.2 Rubik,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.quote-unit { font: .875rem/1.2 var(--mono); color: #d9b8ad; }
.quote-hint, .quote-error, .quote-note { color: var(--muted); font-size: .875rem; line-height: 1.44; overflow-wrap: break-word; }
.quote-hint, .quote-error { margin-top: .42rem; }
.quote-error { color: #ffa08f; }
.quote-terms { margin: 0; padding: 0; border: 0; }
.quote-terms legend { padding: 0; }
.quote-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.quote-option { position: relative; display: flex; min-width: 0; cursor: pointer; }
.quote-option input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.quote-option-body { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; align-content: center; gap: .3rem; width: 100%; min-width: 0; padding: .75rem .58rem; border: 1px solid #56453e; border-radius: 2px; background: #292321; }
.quote-option-body::after { content: ""; grid-column: 2; grid-row: 1; width: .68rem; height: .68rem; border: 1px solid #9a8175; border-radius: 50%; }
.quote-option-body strong { grid-column: 1; grid-row: 1; font-size: 1rem; }
.quote-option-body small { grid-column: 1/-1; color: var(--muted); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.quote-option:hover .quote-option-body { border-color: #997162; }
.quote-option input:checked + .quote-option-body { background: #3e2824; border-color: #d98170; }
.quote-option input:checked + .quote-option-body::after { background: #ff9783; border: 2px solid #4d2723; outline: 1px solid #f1977f; }
.quote-option input:focus-visible + .quote-option-body { outline: 2px solid #ffad99; outline-offset: 2px; }
.quote-summary { padding: clamp(16px,2vw,24px); border: 1px solid #62463e; border-top: 2px solid #bb6053; background: linear-gradient(135deg,#352825,#292321); }
.quote-summary-label { color: #e1cfc7; font-size: .94rem; }
.quote-total { display: block; margin-top: .4rem; overflow-wrap: anywhere; color: #fff4ea; font: 900 clamp(2.2rem,4vw,3rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.quote-details { display: grid; gap: .4rem; margin: 1.1rem 0 .8rem; }
.quote-detail { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .75rem; font-size: .875rem; line-height: 1.4; }
.quote-detail dt { color: var(--muted); }
.quote-detail dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.quote-note { padding-top: .74rem; border-top: 1px solid #614a42; }
.payment-select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: .55rem 2rem .55rem .7rem;
  appearance: none;
  border: 1px solid #76635d;
  border-radius: 3px;
  background-color: #211d1c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d2c8c0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right .7rem center;
  background-size: 11px 8px;
  background-repeat: no-repeat;
  color: var(--ink);
  font-size: 1rem;
}
.payment-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The payment sheet is the light surface within the dark storefront. */
dialog:has(.invoice-panel) {
  color-scheme: light;
  --ink: #202734;
  --muted: #546071;
  --line: #dce1ea;
  --accent: #444db0;
  width: min(600px, calc(100% - 32px));
  max-height: min(92dvh, calc(100dvh - 24px));
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid #e6e9ef;
  border-radius: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px #080c1e55, 0 3px 14px #080c1e26;
  font-family: system-ui, sans-serif;
}
dialog:has(.invoice-panel)::backdrop { background: #10131bd1; backdrop-filter: blur(5px); }
dialog:has(.invoice-panel) .modal-title {
  margin: 14px 0 6px;
  color: var(--ink);
  font: 650 clamp(1.65rem, 3vw, 2rem)/1.12 system-ui, sans-serif;
  letter-spacing: -.035em;
}
dialog:has(.invoice-panel) #close-dialog {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-color: var(--line);
  background: #f5f6f9;
  color: #414957;
}
dialog:has(.invoice-panel) #close-dialog:hover { background: #e8ebf3; }
dialog:has(.invoice-panel) :is(button,input):focus-visible {
  outline: 2px solid #3c459f;
  outline-offset: 3px;
}
.invoice-panel { min-width: 0; }
.invoice-note { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.invoice-payment {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.75vw, 28px);
  margin-top: 20px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #e1e4ee;
  border-radius: 17px;
  background: #f6f7fb;
}
.invoice-qr {
  display: block;
  width: 185px;
  height: 185px;
  border-radius: 11px;
  background: white;
  box-shadow: 0 0 0 1px #dce0e9, 0 2px 6px #222a4210;
  image-rendering: pixelated;
}
.invoice-instructions { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.invoice-instructions label, .invoice-amount { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.invoice-instructions label { margin-top: .2rem; }
.invoice-total {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.12 system-ui, sans-serif;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.invoice-rate { display: block; font-size: .8125rem; }
.invoice-network { color: #41499f; font-size: .94rem; font-weight: 600; }
.payment-destination {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: .55rem .65rem;
  border: 1px solid #abb4c4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: .875rem/1.4 var(--mono);
  user-select: all;
}
.payment-copy {
  justify-self: start;
  min-height: 34px;
  padding: .32rem .8rem;
  border: 1px solid #b6bfd5;
  border-radius: 999px;
  background: #fff;
  color: #343e77;
  font-size: .875rem;
  font-weight: 600;
}
.payment-copy:hover { background: #eaedfb; }
.payment-copy-status { color: #41499f; font-size: .8125rem; line-height: 1.4; }
.payment-copy-status:empty { display: none; }
.invoice-details { display: grid; margin: 16px 0 0; }
.invoice-details > .summary-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 16px;
  padding-block: 8px;
  border: 0;
  line-height: 1.4;
}
.invoice-details > .summary-row + .summary-row { border-top: 1px solid #edf0f4; }
.invoice-details dt { color: var(--muted); font-size: .875rem; }
.invoice-details dd { min-width: 0; margin: 0; color: var(--ink); font-size: .94rem; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.invoice-details :is(.invoice-reference,.invoice-recipient) { color: #374251; font: .84rem/1.45 var(--mono); }
.invoice-status { margin-top: 14px; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.invoice-panel.is-pending .invoice-status {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  color: #35417e;
  background: #edf0fc;
}
.invoice-status strong, .invoice-status .message { display: block; }
.invoice-status .message { margin-top: 2px; color: #4a5578; }
.invoice-panel.is-pending .invoice-status::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 15px;
  height: 15px;
  border: 2px solid #b2b9dc;
  border-top-color: #444da5;
  border-radius: 50%;
}
.invoice-panel.is-confirmed .invoice-status {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  color: #245c3b;
  background: #eaf7ef;
}
.invoice-panel.is-confirmed .invoice-status::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: #2f7d4f;
  font-size: .72rem;
  line-height: 1;
}
.invoice-panel.is-confirmed .invoice-status .message { color: #3d6a50; }
.invoice-panel.is-confirmed .invoice-payment { border-color: #cde7d7; background: #f3faf5; }
.invoice-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.invoice-actions button { min-height: 44px; padding: 10px 19px; border-radius: 999px; font: 600 .94rem/1.3 system-ui, sans-serif; }
.invoice-actions .modal-primary { background: #464fae; color: #fff; }
.invoice-actions .modal-primary:hover:enabled { background: #38408d; }
.invoice-actions .modal-secondary { border-color: #b6bfd0; background: #fff; color: #313b4b; }
.invoice-actions .modal-secondary:hover { background: #f0f2f7; }
.invoice-actions button:disabled { background: #e4e6f1; color: #525972; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .invoice-panel.is-pending .invoice-status::before { animation: invoice-check 1.25s linear infinite; }
  @keyframes invoice-check { to { transform: rotate(1turn); } }
}
@media (max-width: 580px) {
  dialog:has(.invoice-panel) { padding: 20px 16px; border-radius: 18px; }
  #close-dialog, dialog:has(.invoice-panel) #close-dialog { width: 44px; height: 44px; top: 8px; right: 8px; }
  .invoice-payment {
    grid-template-columns: minmax(0, 1fr) 148px;
    grid-template-areas: "amount qr" "network qr" "label label" "address address" "copy copy" "feedback feedback";
    align-items: start;
    gap: 6px 12px;
    padding: 14px;
  }
  .invoice-instructions { display: contents; }
  .invoice-qr { grid-area: qr; width: 148px; height: 148px; }
  .invoice-amount { grid-area: amount; align-self: end; }
  .invoice-network { grid-area: network; }
  .invoice-instructions label { grid-area: label; }
  .payment-destination { grid-area: address; font-size: 1rem; }
  .payment-copy { grid-area: copy; min-height: 44px; }
  .payment-copy-status { grid-area: feedback; }
  .invoice-actions button { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .invoice-payment { grid-template-columns: minmax(0, 1fr); grid-template-areas: "amount" "network" "qr" "label" "address" "copy" "feedback"; }
  .invoice-qr { margin: 5px 0; justify-self: center; }
  .invoice-details > .summary-row:has(.invoice-recipient) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .invoice-details .invoice-recipient { text-align: left; }
}
@media (max-width: 370px) {
  dialog:has(.invoice-panel) { width: calc(100% - 24px); }
}
@media (forced-colors: active) {
  .invoice-panel.is-pending .invoice-status::before { border-color: GrayText; border-top-color: Highlight; }
}
@media (forced-colors: active) {
  .payment-select { appearance: auto; background-image: none; }
}
.quote-submit { width: 100%; margin-top: 1rem; }
.quote-submit:disabled { background: #443936; color: #c4b8b2; cursor: not-allowed; }
.wallet-input { width: 100%; min-width: 0; padding: .72rem .8rem; color: var(--ink); font: 1rem/1.35 var(--mono); caret-color: var(--accent); }
.wallet-input::placeholder { color: #b4a49c; }
.recipient-row { display: grid; grid-template-columns: minmax(0,1fr); gap: .4rem; }
.recipient-row dd { text-align: left; }
.recipient-address { display: block; max-width: 100%; overflow-wrap: anywhere; user-select: text; font: .875rem/1.45 var(--mono); color: #f2c3b4; }
.order-recipient { margin-top: .45rem; }
.order-recipient .recipient-address { margin-top: .15rem; }
@container quote-fields (max-width: 20rem) {
  .quote-options { grid-template-columns: minmax(0,1fr); }
  .quote-option-body { grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; min-height: 44px; padding: .6rem .75rem; }
  .quote-option-body::after { grid-column: 1; }
  .quote-option-body strong { grid-column: 2; }
  .quote-option-body small { grid-column: 3; grid-row: 1; text-align: end; }
}
@media (min-width: 48rem) {
  dialog:has(#checkout-quote) { width: min(820px,calc(100% - 48px)); }
  .quote-checkout { grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); align-items: start; gap: clamp(18px,2.8vw,36px); }
}
@media (max-width: 900px) {
  .header-inner, .main-nav { gap: 18px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 80px; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-top: 9px; }
  .main-nav { order: 2; width: 100%; gap: 22px; }
  .main-nav :is(a,button) { padding-block: 9px; }
  .main-nav :is(a,button), .orders-button { font-size: .8125rem; }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { gap: 0 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand span { font-size: 1.09rem; }
  .orders-button { min-width: 44px; min-height: 44px; justify-content: center; padding-left: 9px; gap: 5px; }
  .orders-button > span:not(#order-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .footer-inner { min-height: 62px; flex-wrap: wrap; gap: 4px 12px; padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  :root { --settle: cubic-bezier(.2,.72,.24,1); }

  .filters button::after { transition: transform 170ms var(--settle); }
  .asset-row {
    --entry-shift: 4px;
    animation: store-appear 200ms var(--settle) backwards;
    transition: background-color 150ms ease-out;
  }
  .asset-row:nth-child(2) { animation-delay: 20ms; }
  .asset-row:nth-child(3) { animation-delay: 40ms; }
  .asset-row:nth-child(4) { animation-delay: 60ms; }
  .asset-action { transition: color 150ms, border-color 150ms, background-color 150ms; }

  .store-intro > * {
    animation: store-appear 420ms var(--settle) backwards;
  }
  .store-intro > h1 { animation-delay: 45ms; }
  .store-intro > p { animation-delay: 85ms; }
  .store-intro > .store-actions { animation-delay: 125ms; }

  .quote-option-body, .wallet-input {
    transition: background-color 160ms, border-color 160ms;
  }

  .main-nav > :is(a, button) { position: relative; transition: color 160ms; }
  .main-nav > :is(a, button)::after {
    content: "";
    position: absolute;
    inset: auto 0 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 210ms var(--settle);
  }
  .main-nav > :is(:hover, :focus-visible)::after { transform: scaleX(1); }
  :is(.shop-cta, .orders-button, .filters button, .quote-submit, .modal-primary, .modal-secondary) {
    transition: scale 145ms var(--settle), color 160ms, background-color 160ms, border-color 160ms, box-shadow 190ms;
  }
  :is(.shop-cta, .orders-button, .filters button, .quote-submit:enabled, .modal-primary, .modal-secondary):active {
    scale: .98;
  }

  .guide-questions summary::after { transition: transform 200ms var(--settle); }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .guide-questions details { interpolate-size: allow-keywords; }
    .guide-questions details::details-content {
      block-size: 0;
      opacity: 0;
      overflow: clip;
      transition: block-size 240ms var(--settle), opacity 180ms ease-out, content-visibility 240ms allow-discrete;
    }
    .guide-questions details[open]::details-content { block-size: auto; opacity: 1; }
  }

  dialog[open] { animation: dialog-arrive 210ms var(--settle); }
  dialog[open]::backdrop { animation: backdrop-arrive 180ms ease-out; }
  #dialog-content > :is(.modal-title, .modal-summary, .order-list) {
    --entry-shift: 4px;
    animation: store-appear 200ms var(--settle);
  }
  @keyframes store-appear {
    from { opacity: .46; translate: 0 var(--entry-shift, 10px); }
    to { opacity: 1; translate: none; }
  }
  @keyframes dialog-arrive {
    from { opacity: .7; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: none; }
  }
  @keyframes backdrop-arrive {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
