/*
 * shell.css: the chrome js/shell.js injects on every page: route progress bar,
 * announcement bar, sticky blurred header, nav drawer, basket drawer, wallet
 * modal and footer (reference/spec/chrome.md 3.2 to 3.9).
 */

/* route progress bar */
.route-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: var(--z-progress);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.route-progress > div { height: 100%; width: 0%; background: var(--fg-85); transition: width 160ms var(--ease-drawer); }

/* sticky block: bar + header */
.shell-top { position: sticky; top: 0; z-index: var(--z-header); }

/* announcement bar */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-bottom: 1px solid var(--border); background: var(--secondary);
  padding: 6px 16px; font-size: 12px; line-height: 16px; color: var(--muted);
}
.announce > svg { width: 12px; height: 12px; flex-shrink: 0; }
.announce-text { min-width: 0; overflow-wrap: anywhere; }
.announce-link {
  font-weight: 500; text-decoration: underline; text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease);
}
.announce-link:hover { opacity: 0.8; }
/* 24 px hit area (WCAG 2.5.8) around traded's 16 px chip; the negative margins keep the 29 px bar */
.announce-x {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; margin: -4px -4px -4px 4px; border-radius: var(--radius-control);
}
.announce-x-chip { display: inline-flex; padding: 2px; border-radius: var(--radius-control); transition: background-color var(--dur-fast) var(--ease); }
.announce-x:hover .announce-x-chip { background: var(--fg-20); }
.announce-x svg { width: 12px; height: 12px; }

/* header */
.site-header {
  display: flex; align-items: center; height: 56px; min-width: 0;
  border-bottom: 1px solid var(--border); background: var(--bg-95); padding: 0 12px;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg-60); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (min-width: 360px) { .site-header { padding: 0 16px; } }
@media (min-width: 640px) { .site-header { padding: 0 24px; } }
@media (min-width: 1024px) { .site-header { padding: 0 32px; } }
.hdr-menu { margin-left: -4px; margin-right: 4px; }
@media (min-width: 360px) { .hdr-menu { margin-right: 8px; } }
@media (min-width: 1280px) { .hdr-menu { display: none; } }

.logo { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 24px; flex-shrink: 1; }
.logo img { width: auto; flex-shrink: 1; min-width: 0; max-width: 100%; object-fit: contain; }
.logo .logo-mark { height: 20px; flex-shrink: 0; }
.logo .logo-word { height: 17px; }
.logo-fade { -webkit-mask-image: linear-gradient(#fff 45%, rgba(255, 255, 255, 0.7) 100%); mask-image: linear-gradient(#fff 45%, rgba(255, 255, 255, 0.7) 100%); }
@media (max-width: 359.98px) { .logo .logo-word { height: 14px; } }

.nav { display: none; align-items: center; gap: 4px; margin-left: 24px; }
@media (min-width: 1280px) { .nav { display: flex; } }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--fg); }
.nav-link[aria-current="page"] { background: var(--accent-nav); color: var(--fg); }
.live-dot { position: relative; display: inline-flex; flex-shrink: 0; width: 6px; height: 6px; }
.live-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent-bright); opacity: 0.75; animation: ping 1s var(--ease-out) infinite;
}
.live-dot::after { content: ""; position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding-left: 8px; }
@media (min-width: 360px) { .hdr-right { gap: 12px; } }
.token-cluster { display: none; align-items: center; gap: 8px; }
@media (min-width: 1280px) { .token-cluster { display: flex; } }
.token-btn { height: 36px; padding: 0 12px; font-size: 13px; }

.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 16px; min-width: 16px; padding: 0 4px; border-radius: var(--radius-pill);
  background: var(--fg); color: var(--bg);
  font-size: 10px; line-height: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  animation: cart-bounce var(--dur-badge) var(--ease-spring);
}

.signin-btn { background: transparent; }
.signin-btn:hover { background: var(--secondary); }
.signin-btn .signin-label { display: none; }
@media (max-width: 639.98px) { .signin-btn { width: 40px; padding: 0; } }
@media (min-width: 640px) { .signin-btn .signin-label { display: inline; } }
.auth-ph { width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--secondary); animation: pulse 2s var(--ease-pulse) infinite; }
@media (min-width: 640px) { .auth-ph { width: 112px; } }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; }
.acct-dot.is-warn { background: #fbbf24; }
.acct-btn .acct-label { display: none; }
@media (max-width: 639.98px) { .acct-btn { width: 40px; padding: 0; gap: 0; } .acct-btn > svg { display: none; } }
@media (min-width: 640px) { .acct-btn .acct-label { display: inline; } }

/* mobile nav drawer (below 1280) */
.nav-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.nav-drawer[data-state="closed"] { pointer-events: none; }
@media (min-width: 1280px) { .nav-drawer { display: none; } }
.nav-drawer-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--black-50); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 1; visibility: visible; transition: opacity var(--dur-overlay) ease-out, visibility 0s;
}
.nav-drawer[data-state="closed"] .nav-drawer-overlay { opacity: 0; visibility: hidden; transition: opacity var(--dur-overlay) ease-out, visibility 0s linear var(--dur-overlay); }
.nav-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; background: var(--bg);
  transform: translate3d(0, 0, 0); visibility: visible;
  transition: transform var(--dur-nav) var(--ease-drawer), visibility 0s;
}
.nav-drawer[data-state="closed"] .nav-panel { transform: translate3d(-100%, 0, 0); visibility: hidden; transition: transform var(--dur-nav) var(--ease-drawer), visibility 0s linear var(--dur-nav); }
.nav-panel-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0;
  height: 56px; border-bottom: 1px solid var(--border); padding: 0 16px;
}
.nav-panel-auth { flex-shrink: 0; border-bottom: 1px solid var(--border); padding: 16px; }
.nav-panel-auth .btn { width: 100%; height: 44px; border-radius: var(--radius-lg); }
.nav-panel-auth .btn > svg { width: 18px; height: 18px; }
.nav-rows { display: flex; flex-direction: column; padding: 8px 0; flex-shrink: 0; }
.nav-row {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  margin: 0 8px; padding: 0 12px; height: 44px; border-radius: var(--radius-lg);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-row > svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-row:hover { background: var(--secondary); color: var(--fg); }
.nav-row[aria-current="page"] { background: var(--accent-nav); color: var(--fg); }
.nav-row.is-danger { color: var(--red-400); }
.nav-row.is-danger:hover { background: var(--destructive-10); }
.nav-token { margin-top: auto; flex-shrink: 0; border-top: 1px solid var(--border); padding: 16px; }
.nav-token-label { font-size: 11px; line-height: 16.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.token-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-width: 0; }
.token-reason { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.token-reason > svg { width: 12px; height: 12px; flex-shrink: 0; }
.token-ca { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }

/* basket drawer ("Checkout") */
.basket-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.basket-tile {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: var(--radius-lg); background: var(--fg-10); color: var(--fg);
}
.basket-tile > svg { width: 16px; height: 16px; }
.basket-title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--fg); }
.basket-sub { font-size: 11px; line-height: 16.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-head-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.basket-clear {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-md);
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.basket-clear:hover { background: var(--destructive-10); color: var(--destructive); }
.basket-clear > svg { width: 14px; height: 14px; }

.basket-list { display: flex; flex-direction: column; gap: 12px; }
.basket-row {
  position: relative; display: flex; align-items: stretch; gap: 12px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card);
  flex-wrap: wrap; align-items: flex-start; padding: 10px; animation: cart-item-in 0.22s var(--ease-spring);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.basket-row.is-selected { border-color: var(--fg-40); box-shadow: 0 0 0 1px #fff; }
.basket-row-main { display: flex; flex: 1 1 0; align-items: stretch; gap: 12px; min-width: 0; text-align: left; color: inherit; border-radius: var(--radius-lg); }
.basket-row-main:disabled { cursor: default; }
.basket-row-main:focus-visible { outline-offset: 4px; }
.basket-row-tx { flex-basis: 100%; margin: -6px 0 0 60px; font-size: 10px; line-height: 15px; }
.basket-row-tx a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.basket-row.is-processing { border-color: var(--fg-50); }
.basket-row.is-failed { border-color: var(--destructive-50); }
.basket-row.is-gone { opacity: 0.5; }
.basket-thumb { position: relative; display: block; flex-shrink: 0; width: 48px; height: 64px; overflow: hidden; border-radius: var(--radius-md); background: var(--secondary); }
.basket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.basket-thumb .thumb-fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(161, 161, 161, 0.4); }
.basket-thumb .thumb-fail > svg { width: 16px; height: 16px; }
.basket-info { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; min-height: 64px; }
.basket-name { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12px; line-height: 16px; }
.basket-price { flex-shrink: 0; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.basket-usd, .basket-grade { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-usd { font-variant-numeric: tabular-nums; }
.basket-status { display: block; margin-top: 4px; font-size: 10px; line-height: 15px; color: var(--muted); overflow-wrap: anywhere; }
.basket-row-actions { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 4px; margin: -2px -2px 0 0; }
.basket-select {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); color: transparent;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.basket-select:hover { border-color: rgba(255, 255, 255, 0.6); }
.basket-select > svg { width: 12px; height: 12px; }
.basket-row.is-selected .basket-select { border-color: #fff; background: #fff; color: #000; }
.basket-remove {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-md); color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.basket-remove:hover { background: var(--destructive-10); color: var(--destructive); }
.basket-remove > svg { width: 12px; height: 12px; }

.basket-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pay-row {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  border: 1px solid var(--fg-40); border-radius: var(--radius-xl); background: var(--secondary-40); padding: 10px 12px;
}
.pay-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-lg); background: var(--fg-10); color: var(--fg); }
.pay-tile > svg { width: 16px; height: 16px; }
.pay-text { flex: 1; min-width: 0; }
.pay-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-sub { font-size: 11px; line-height: 16.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-chip {
  flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 8px;
  font-size: 11px; line-height: 16px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums;
}

.basket-totals { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); padding: 10px 14px; font-size: 12px; line-height: 16px; }
.basket-totals-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; min-width: 0; }
.basket-count { color: var(--muted); }
.basket-total-wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; column-gap: 6px; min-width: 0; margin-left: auto; }
.basket-total-usd { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.basket-total { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.basket-fee { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; margin-top: 4px; font-size: 10px; line-height: 13px; color: var(--muted); }

.basket-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0;
  border: 1px solid transparent; border-radius: var(--radius-xl); padding: 12px 14px; text-align: left;
  transition: all var(--dur-fast) var(--ease);
}
.basket-cta-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--bg-15); color: var(--bg); }
.basket-cta-icon > svg { width: 16px; height: 16px; }
.basket-cta-label { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--bg); overflow-wrap: anywhere; }
.basket-cta-arrow { width: 16px; height: 16px; flex-shrink: 0; color: var(--bg); transition: transform var(--dur-fast) var(--ease); }
.basket-cta:hover .basket-cta-arrow { transform: translateX(2px); }
.basket-cta[aria-disabled="true"] { border-color: var(--border); background: var(--card); background-image: none; box-shadow: none; opacity: 0.5; cursor: not-allowed; transform: none; }
.basket-cta[aria-disabled="true"] .basket-cta-icon { background: var(--fg-10); color: var(--fg); }
.basket-cta[aria-disabled="true"] .basket-cta-label, .basket-cta[aria-disabled="true"] .basket-cta-arrow { color: var(--fg); }
.basket-cta[aria-disabled="true"]:hover .basket-cta-arrow { transform: none; }
.basket-reason { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 16px; color: var(--muted); }
.basket-reason > svg { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
.basket-note { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 15px; color: var(--muted); }
.basket-note > svg { width: 12px; height: 12px; margin-top: 1.5px; flex-shrink: 0; }
.basket-note.is-lock { margin-top: 12px; align-items: center; gap: 6px; }
.basket-note.is-lock > svg { margin-top: 0; }

/* wallet connect modal */
.wm-panel { padding: 0 24px 16px; }
.wm-top { height: 56px; }
.wm-brand { display: flex; justify-content: center; }
.wm-brand img { width: 180px; max-width: 100%; height: auto; }
.wm-title { margin-top: 16px; text-align: center; font-size: 20px; line-height: 32px; font-weight: 500; color: #f8f8f8; }
.wm-lede { margin-top: 4px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.wm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.wm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 56px;
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 11px 12px;
  font-size: 14px; line-height: 20px; color: #f8f8f8; text-align: left;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
button.wm-row:hover { border-color: var(--fg-30); background: var(--secondary-40); }
.wm-row[aria-disabled="true"] { cursor: not-allowed; }
.wm-row[aria-disabled="true"] .wm-name { color: var(--muted); }
.wm-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-lg); background: var(--secondary); color: var(--fg); overflow: hidden; }
.wm-icon img { width: 32px; height: 32px; object-fit: contain; }
.wm-icon > svg { width: 16px; height: 16px; }
.wm-text { flex: 1; min-width: 0; }
.wm-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-hint { display: block; font-size: 11px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.wm-row .spinner { color: var(--muted); }
.wm-error { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--red-400); text-align: center; overflow-wrap: anywhere; }
.wm-foot { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; line-height: 16px; color: var(--muted); text-align: center; }
.wm-foot > svg { width: 12px; height: 12px; flex-shrink: 0; }

/* account panel (traded account-panel: 420 px right panel from 640 px, bottom sheet max 88dvh below) */
.acct-root .drawer-panel { max-height: 88dvh; }
@media (min-width: 640px) {
  .acct-root .drawer-panel { left: auto; top: 0; right: 0; bottom: 0; height: 100%; max-height: none; width: 420px; border-radius: 16px 0 0 16px; }
  .acct-root[data-state="closed"] .drawer-panel { transform: translate3d(100%, 0, 0); }
}
.acct-caption { font-size: 11px; line-height: 16.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.acct-address { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--fg); overflow-wrap: anywhere; }
.acct-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.acct-links { margin: 20px -8px 0; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; }

/* account panel chain section (js/account.js): credits + Withdraw, handle + Set handle, points */
.acct-stats { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acct-stat { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--secondary-40); padding: 12px 14px; }
.acct-stat-row { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; row-gap: 8px; min-width: 0; }
.acct-value-wrap { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; }
.acct-value { min-width: 0; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.acct-handle { font-family: var(--font-mono); font-size: 15px; }
.acct-handle.is-empty { font-family: inherit; font-size: 14px; font-weight: 500; color: var(--muted); }
.acct-sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.acct-note { margin-top: 6px; font-size: 11px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.acct-sk { display: block; width: 96px; height: 16px; margin: 6px 0; }
.acct-stats .btn > [data-ico], .acct-stats .btn > [data-spin], .hd-submit > [data-spin] { display: inline-flex; flex-shrink: 0; overflow: visible; }
.acct-alert {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 10px 12px;
  font-size: 12px; line-height: 16px; color: var(--muted);
}
.acct-alert > svg { width: 16px; height: 16px; flex-shrink: 0; }
.acct-alert-text { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }

/* Set handle dialog (js/account.js) */
.hd-panel { width: 400px; padding: 0 24px 20px; }
.hd-top { height: 48px; }
.hd-icon { margin: 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-2xl); background: var(--fg-6); color: var(--accent-bright); }
.hd-icon > svg { width: 24px; height: 24px; }
.hd-title { margin-top: 12px; text-align: center; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.hd-lede { margin-top: 6px; text-align: center; font-size: 13px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.hd-form { margin-top: 20px; min-width: 0; }
.hd-input { height: 44px; font-size: 15px; }
.hd-rule { margin-top: 8px; font-size: 11px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.hd-status { margin-top: 6px; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.hd-status.is-ok { color: var(--accent-bright); }
.hd-status.is-error { color: var(--red-400); }
.hd-submit { margin-top: 16px; height: 44px; }
.hd-foot { margin-top: 12px; display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-size: 11px; line-height: 16px; color: var(--muted); text-align: center; }
.hd-foot > svg { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { padding-block: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand { grid-column: span 2; min-width: 0; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.footer-logo img { width: auto; min-width: 0; max-width: 100%; object-fit: contain; }
.footer-logo .logo-mark { height: 24px; flex-shrink: 0; }
.footer-logo .logo-word { height: 17px; }
.footer-blurb { margin-top: 16px; max-width: 320px; font-size: 14px; line-height: 22.75px; color: var(--muted); }
.footer-socials { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.social-btn:hover { border-color: var(--fg-30); background: var(--secondary); color: var(--fg); }
.social-btn > svg { width: 15px; height: 15px; }
.footer-token { margin-top: 20px; }
.footer-col { min-width: 0; }
.footer-col h3 { font-size: 11px; line-height: 16.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-80); }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-col li { line-height: 24px; min-width: 0; }
/* vertical-align top keeps each li at its 24 px line (rows every 36 px, chrome.md 3.9); baseline alignment grew it to 25 */
.footer-col a { display: inline-flex; align-items: center; vertical-align: top; min-height: 24px; min-width: 24px; font-size: 14px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: space-between; gap: 16px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-copy { font-size: 12px; line-height: 16px; color: var(--muted-80); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted-80); }
/* 24 px tap height on touch widths (WCAG 2.5.8); from 768 traded's 16 px row (bottom row 41 px) with 16 px spacing */
.footer-legal a { display: inline-flex; align-items: center; min-height: 24px; transition: color var(--dur-fast) var(--ease); }
@media (min-width: 768px) { .footer-legal a { min-height: 16px; } }
.footer-legal a:hover { color: var(--fg); }
.footer-sep { display: none; width: 1px; height: 12px; background: var(--border); }
@media (min-width: 640px) { .footer-sep { display: block; } }
.footer-built { display: flex; align-items: center; gap: 6px; }
.footer-built > svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-bright); }
