/* Evenkeel UI v2. Tokens and component look from /workspace/hype-vault-uiux/v2 (spec section 2).
   Component patterns follow the free, MIT licensed BoardUI base set (button, tabs, segmented-control,
   checkbox, chip, status-dot, notification, toast, modal, meter, progress, skeleton, table, tooltip,
   theme-toggle), rebuilt in plain CSS because this app ships without React. No BoardUI Pro code. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F3F4F4; --s1: #FFFFFF; --s2: #F7F8F8; --s3: #EDEFEF;
  --line: rgba(12,24,20,.08); --line-2: rgba(12,24,20,.13); --b-strong: #7E8683;
  --text: #0D0F0E; --text-2: #535B58; --text-3: #646C69;
  --accent: #0B7A62; --accent-line: #0E9E7E; --accent-soft: rgba(11,122,98,.09);
  --pos: #3B7510; --pos-soft: rgba(59,117,16,.10); --neg: #C2342E; --neg-soft: rgba(194,52,46,.09);
  --warn: #8A5600; --warn-soft: rgba(186,120,0,.11); --info: #2457C5; --info-soft: rgba(36,87,197,.09);
  --hold: #6B7370; --grid: rgba(12,24,20,.07); --btn-ring: #3CC9A4; --tab-bg: rgba(255,255,255,.94);
  --shadow-card: 0 1px 2px rgba(12,24,20,.06), 0 1px 1px rgba(12,24,20,.03);
  --shadow-float: 0 24px 48px -16px rgba(12,24,20,.18), 0 0 0 1px rgba(12,24,20,.08);
  --grad: linear-gradient(180deg, #9AF6DB, #6BE8C4); --on-grad: #04130F;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px;
  /* old names, mapped so every existing class picks up v2 */
  --color-bg: var(--bg); --color-surface: var(--s1); --color-surface-2: var(--s2);
  --color-border: var(--line); --color-border-strong: var(--b-strong);
  --color-text: var(--text); --color-text-muted: var(--text-2);
  --color-primary: var(--text); --color-on-primary: var(--s1);
  --color-accent: var(--accent); --color-accent-tint: var(--accent-soft);
  --color-positive: var(--pos); --color-positive-bg: var(--pos-soft);
  --color-negative: var(--neg); --color-negative-bg: var(--neg-soft);
  --color-warning: var(--warn); --color-warning-bg: var(--warn-soft);
  --color-info: var(--info); --color-info-bg: var(--info-soft);
  --color-chart-hold: var(--hold);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-xl);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0B0B; --s1: #131514; --s2: #1A1D1C; --s3: #222625;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.11); --b-strong: #646C69;
  --text: #F2F4F3; --text-2: #A7AFAC; --text-3: #7F8784;
  --accent: #7EF0CF; --accent-line: #7EF0CF; --accent-soft: rgba(126,240,207,.12);
  --pos: #A6E85B; --pos-soft: rgba(166,232,91,.12); --neg: #FF7B7B; --neg-soft: rgba(255,123,123,.12);
  --warn: #F5BA4B; --warn-soft: rgba(245,186,75,.12); --info: #82AAFF; --info-soft: rgba(130,170,255,.12);
  --hold: #8E9693; --grid: rgba(255,255,255,.06); --btn-ring: rgba(79,216,180,.6); --tab-bg: rgba(19,21,20,.94);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.5);
  --shadow-float: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  color-scheme: dark;
}
body { font: 400 15px/24px var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; background: var(--bg); }
.num, .stat-value, td, .kv dd, .amount-input, .num-xl, .num-lg, .v-xl { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.eyebrow { font-family: var(--mono); font-weight: 450; letter-spacing: .08em; color: var(--text-2); }
.display { font-weight: 560; letter-spacing: -.035em; }
@media (min-width: 1024px) { .display { font-size: 76px; line-height: 78px; } }
.h1 { font-weight: 560; letter-spacing: -.025em; }
@media (min-width: 768px) { .h1 { font-size: 40px; line-height: 46px; } }
.h2 { font-size: 28px; line-height: 34px; font-weight: 560; letter-spacing: -.02em; }
.h3 { font-size: 18px; line-height: 24px; font-weight: 560; letter-spacing: -.01em; }
.lead { font-size: 19px; line-height: 30px; color: var(--text-2); }
.num-xl { font-size: 44px; line-height: 48px; font-weight: 560; letter-spacing: -.035em; }
@media (min-width: 768px) { .num-xl { font-size: 64px; line-height: 68px; } }
.num-lg { font-size: 32px; line-height: 38px; font-weight: 560; letter-spacing: -.03em; }
@media (min-width: 768px) { .num-lg { font-size: 40px; line-height: 44px; } }
.stat-value { font-weight: 560; letter-spacing: -.02em; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.container { max-width: calc(1360px + 2 * var(--gutter)); }
@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width: 767px) { :root { --gutter: 16px; } }
.grid { gap: 16px; } @media (min-width: 768px) { .grid { gap: 16px; } }
.split { gap: 16px; }

/* nav: logo, centred pill nav, network chip, theme toggle, wallet */
.nav { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 64px; gap: 16px; }
@media (min-width: 1024px) { .nav-inner { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; } }
.brand { font-weight: 560; font-size: 16px; letter-spacing: -.01em; gap: 10px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: transparent; border: 1.5px dashed var(--text-3); }
.brand-mark::after { display: none; }
.brand img { height: 26px; width: auto; }
.brand .lk-d { display: none; } :root[data-theme="dark"] .brand .lk-l { display: none; } :root[data-theme="dark"] .brand .lk-d { display: block; }
.nav-links { background: var(--s1); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-card); border: 1px solid var(--line); gap: 2px; justify-self: center; }
.nav-links a { border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 450; color: var(--text-2); }
.nav-links a:hover { background: var(--s2); }
.nav-links a[aria-current="page"] { background: var(--s3); color: var(--text); box-shadow: none; border-radius: 999px; font-weight: 520; }
.nav-right { justify-self: end; gap: 8px; }
.net-chip { height: 36px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow-card); font-size: 13px; color: var(--text-2); }
.net-chip .dot { background: var(--pos); }
.net-chip.wrong { color: var(--warn); } .net-chip.wrong .dot { background: var(--warn); }
.theme-btn { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); color: var(--text); box-shadow: var(--shadow-card); cursor: pointer; }
.theme-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none !important; }
.wallet-btn.btn-primary { background: var(--s3); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); background-image: none; }
.wallet-btn.btn-primary:hover { background: var(--s2); }
.wallet-btn.connect { background-image: var(--grad); color: var(--on-grad); border-color: transparent; }
@media (max-width: 1023px) { .nav-right .theme-btn { display: inline-grid; } .net-chip { display: none; } }
/* bottom tab bar on small screens */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--tab-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-3); text-decoration: none; border-radius: 12px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a[aria-current="page"] { color: var(--text); background: var(--s3); }
  body { padding-bottom: 72px; }
}

/* buttons: one mint primary per screen, quiet secondary */
.btn { border-radius: var(--r-md); font-weight: 520; font-size: 15px; min-height: 48px; letter-spacing: -.005em; transition: background .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out; }
.btn-primary { background: var(--grad); color: var(--on-grad); border: 1px solid transparent; box-shadow: 0 0 0 1px var(--btn-ring) inset, 0 1px 2px rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.04); }
.btn-secondary { background: var(--s2); border: 1px solid var(--b-strong); color: var(--text); }
:root[data-theme="dark"] .btn-secondary { background: var(--s3); }
.btn-secondary:hover { background: var(--s3); }
.btn-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); }
.btn-sm { min-height: 40px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 1; background: var(--s2); background-image: none; color: var(--text-3); border-color: var(--line); box-shadow: none; filter: none; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--s2); color: var(--text-2); cursor: pointer; }

/* cards */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 24px; }
@media (max-width: 767px) { .card { padding: 20px; border-radius: 18px; } }
.card-muted { background: var(--s2); border-color: var(--line); box-shadow: none; }
.panel { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.card-head .h3, .card-head h2 { font-size: 18px; }
.sub-card { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; min-width: 0; }

/* chips, freshness, banners */
.chip { height: 24px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--s2); border: 1px solid var(--line); color: var(--text-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip:empty { display: none; }
.chip.live { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.chip.stale { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.plain::before, .chip .i ~ *::before { display: none; }
.delta { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 560; font-variant-numeric: tabular-nums; }
.delta.pos { background: var(--pos-soft); } .delta.neg { background: var(--neg-soft); }
.banner { border-radius: var(--r-lg); border: 1px solid transparent; padding: 14px 16px; }
.banner.info { border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 26%, transparent); }
.banner.neg { border-color: color-mix(in srgb, var(--neg) 24%, transparent); }
.banner.ok { border-color: color-mix(in srgb, var(--pos) 24%, transparent); }
.global-banner .banner { border-radius: 0; border-width: 0 0 1px; }
.preview-ribbon { background: var(--info-soft); border-bottom: 1px solid color-mix(in srgb, var(--info) 18%, transparent); }

/* forms: tabs, segmented, token boxes */
.tabs { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 16px; }
.tab { border: 0; border-radius: 10px; min-height: 40px; font-size: 14px; font-weight: 500; color: var(--text-2); margin: 0; padding: 0 12px; }
.tab[aria-selected="true"] { background: var(--s1); color: var(--text); box-shadow: var(--shadow-card), 0 0 0 1px var(--line-2); border: 0; }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--s3); }
.seg { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg label { border-radius: 9px; font-size: 14px; font-weight: 500; }
.seg label:has(input:checked) { background: var(--s1); outline: 0; box-shadow: var(--shadow-card), 0 0 0 1px var(--line-2); }
:root[data-theme="dark"] .seg label:has(input:checked) { background: var(--s3); }
.amount { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.amount:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.amount.invalid { border: 1px solid var(--neg); box-shadow: 0 0 0 1px var(--neg) inset; }
.amount-input { font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -.03em; }
@media (max-width: 767px) { .amount-input { font-size: 32px; line-height: 40px; } }
.token-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line-2); font-weight: 560; font-size: 14px; box-shadow: var(--shadow-card); white-space: nowrap; }
.token-pill .t-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #2775CA; }
.token-pill .t-ico.hype { background: #0B7A62; }
.token-pill .t-ico.sh { background: var(--s3); color: var(--text); }
.box-label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.box-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.max-btn { border: 0; background: var(--accent-soft); color: var(--accent); font: 600 12px/1 var(--font); height: 24px; padding: 0 9px; border-radius: 6px; cursor: pointer; }
.swap-arrow { display: grid; place-items: center; height: 0; position: relative; z-index: 1; }
.swap-arrow span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--s1); border: 1px solid var(--line-2); color: var(--text-2); margin: -6px 0; }
.recv { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.recv .num-lg { font-size: 34px; line-height: 44px; font-weight: 500; }
.checklist { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.check input { accent-color: var(--accent-line); }

/* stepper */
.stepper { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.stepper .stepline { flex: 1; height: 1px; background: var(--line-2); min-width: 16px; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid var(--b-strong); color: var(--text-2); font-weight: 560; }
.step.on { color: var(--text); } .step.on b { background: var(--accent); border-color: var(--accent); color: var(--s1); }
.step.done b { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
@media (max-width: 479px) { .stepper { flex-wrap: wrap; row-gap: 8px; } .stepper .stepline { display: none; } }

/* meters, ring, timeline */
.meter { height: 6px; background: var(--s3); border-radius: 999px; }
.meter i { background: var(--accent-line); border-radius: 999px; }
.meter.warn i { background: var(--warn); } .meter.neg i { background: var(--neg); } .meter.info i { background: var(--info); }
.meter-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.meter-row b { color: var(--text); font-weight: 560; font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring .ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-val b { font-size: 22px; line-height: 26px; font-weight: 560; letter-spacing: -.02em; }
.ring .ring-val span { font-size: 11px; color: var(--text-3); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.timeline .step { white-space: normal; font-size: 13px; line-height: 16px; align-items: center; }
@media (max-width: 479px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* KPI tiles */
.kpi .k-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--s3); display: grid; place-items: center; color: var(--text-2); margin-bottom: 14px; }
.kpi .k-ico svg { width: 16px; height: 16px; }
.kpi .stat-value { font-size: 28px; line-height: 34px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* roles, toasts, modal */
.can { color: var(--pos); font-weight: 600; font-size: 12px; letter-spacing: .06em; font-family: var(--mono); }
.cannot { color: var(--neg); font-weight: 600; font-size: 12px; letter-spacing: .06em; font-family: var(--mono); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
@media (max-width: 1023px) { .toasts { bottom: 88px; } }
.toast { background: var(--s1); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-float); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; animation: ek-in .25s ease-out; }
.toast .i { width: 18px; height: 18px; margin-top: 1px; }
.toast.ok .i { color: var(--pos); } .toast.neg .i { color: var(--neg); } .toast.info .i { color: var(--info); }
@keyframes ek-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dialog { border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--s1); box-shadow: var(--shadow-float); }
.dialog::backdrop { background: rgba(6, 10, 9, .5); backdrop-filter: blur(2px); }
.wallet-opt { border-color: var(--line-2); background: var(--s2); border-radius: var(--r-md); }
.table th { color: var(--text-3); font-weight: 500; }
.table td { border-bottom-color: var(--line); }
.skel { background: linear-gradient(90deg, var(--s3), var(--s2), var(--s3)); background-size: 200% 100%; animation: ek-sk 1.4s ease-in-out infinite; }
@keyframes ek-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.footer { border-top: 1px solid var(--line); background: transparent; }
.badge-est, .badge-sample { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); background: var(--warn-soft); }
.frozen-card { border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.limit-tile { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-card); }
.limit-tile b { display: block; font-size: 20px; line-height: 26px; font-weight: 560; margin-top: 4px; letter-spacing: -.01em; }
.pill-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-strip .chip { height: 30px; padding: 0 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .skel, .toast { animation: none; } }
.seg-mini .seg { padding: 2px; border-radius: 10px; background: var(--s1); }
.seg-mini .seg label { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
:root[data-theme="dark"] .seg-mini .seg { background: var(--s1); }
.amount { flex-direction: column; align-items: stretch; gap: 6px; }
.amount-row { flex-wrap: nowrap; gap: 12px; }
.amount-row .amount-input { flex: 1; min-width: 0; }
.recv .box-foot .chip { flex: none; }
.how { display: flex; gap: 12px; align-items: flex-start; }
.how .k-ico, .k-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--s3); display: grid; place-items: center; color: var(--text-2); flex: none; }
.k-ico svg { width: 16px; height: 16px; }
.center { text-align: center; }
.field-help.center:empty { display: none; }
.form-layout { gap: 16px; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: minmax(0, 560px) minmax(280px, 400px); } .page-head-center { max-width: 976px; } }
.form-card > * + * { margin-top: 16px; }
.swap-arrow + .recv, .form-card > .swap-arrow { margin-top: 0 !important; }
.form-card > .swap-arrow + * { margin-top: 0 !important; }
.req-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--s1); }
.req-card .kv { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; margin-top: 14px; }
.g12 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } .span8 { grid-column: span 8; } .span4 { grid-column: span 4; } }
.g12 > * { min-width: 0; }
.sep-top { border-top: 1px solid var(--line); padding-top: 16px; }
.ring-row { flex-wrap: nowrap; gap: 16px; align-items: center; margin-top: 4px; }
@media (max-width: 380px) { .ring-row { flex-wrap: wrap; } }
.pos-hero .num-xl { margin-top: 4px; }
.pos-sub { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .pos-sub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pos-sub .sub-card .num { font-size: 18px; line-height: 24px; font-weight: 560; margin-top: 4px; }
.page-head { margin: 32px 0 16px; }
@media (min-width: 1024px) { .page-head { margin: 40px 0 20px; } }
.page-head .h1 + p { margin-top: 6px; }
.empty-state { text-align: left; padding: 8px 0; }
.empty-state .h2 { margin-bottom: 6px; }
.spark { width: 100%; height: 180px; display: block; }
.callout { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: none; }
.callout .k-ico { background: var(--s1); color: var(--accent); }
.limits { gap: 18px 32px; }
.limit-m .meter-row b { font-size: 13px; }
.roles ul.plain { margin: 4px 0 0; padding-left: 18px; }
.roles ul.plain li { margin: 2px 0; color: var(--text-2); }
.pill-strip { margin: 0 0 4px; }
.hero { padding-top: 48px; }
@media (min-width: 1024px) { .hero { padding-top: 88px; } .split-hero { grid-template-columns: 7fr 5fr; gap: 48px; } }
.hero .display { margin-top: 14px; }
.hero .lead { margin-top: 20px; max-width: 620px; }
.section { margin-top: 72px; }
@media (min-width: 1024px) { .section { margin-top: 96px; } }
.step-chip { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; }
.net-chip .dot.warn { background: var(--warn); }
/* Waterline brand (spec section 9): tokens exactly as v2/build/styles.css */
:root { --accent: #0E6B5C; --accent-line: #12806D; --accent-soft: rgba(14,107,92,.09); --btn-ring: #4FBFA4; --glow: rgba(14,107,92,.22); --logo: #101614;
  --grad: linear-gradient(180deg, #A6EEDC 0%, #7DDFC6 100%); --on-grad: #101614; }
:root[data-theme="dark"] { --accent: #7DDFC6; --accent-line: #7DDFC6; --accent-soft: rgba(125,223,198,.12); --btn-ring: rgba(92,207,178,.6); --glow: rgba(125,223,198,.40); --logo: #F5F4EF; }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px var(--btn-ring), 0 8px 24px -10px var(--glow); }
.brand { color: var(--logo); }
.brand svg { height: 26px; width: auto; display: block; }
.footer .brand { margin-bottom: 8px; }
@media (max-width: 420px) {
  .nav-inner { gap: 8px; }
  .brand svg { height: 20px; }
  .wallet-btn { padding: 0 10px; min-height: 36px; }
  .wallet-btn .i { display: none; }
  .nav-right .btn-sm { padding: 0 10px; }
}
@media (max-width: 639px) { .table.stack-sm thead { display: block; left: 0; top: 0; } }
.pill-strip .chip { height: auto; min-height: 30px; white-space: normal; padding-top: 4px; padding-bottom: 4px; }
/* Wordmark: text only, Instrument Sans Medium, until new logo concepts land. */
@font-face { font-family: "Instrument Sans Wordmark"; src: url("/fonts/InstrumentSans-Medium-wordmark.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.brand.wordmark { font-family: "Instrument Sans Wordmark", var(--font); font-weight: 500; font-size: 22px; line-height: 26px; letter-spacing: -.02em; color: var(--logo); text-decoration: none; }
@media (max-width: 420px) { .brand.wordmark { font-size: 19px; } }
.chip > .dot { display: none; }
.stat-value.muted, .num-lg.muted, .num-lg.dim:not(:empty) { font-size: 20px; line-height: 26px; letter-spacing: -.01em; }
#s-apy7.muted, #apy-big.dim { font-size: 20px; line-height: 26px; }
:root { --on-accent: #101614; --accent-2: #0E6B5C; }
:root[data-theme="dark"] { --accent-2: #5CCFB2; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap .chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s ease-out, transform .15s ease-out; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow-float); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 140px; font-size: 14px; }
.chart-tip.on { opacity: 1; transform: none; }
.chart-tip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 8px; }
.chart-table { margin-top: 8px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--text-3); width: max-content; }
.ln-vault { animation: ek-draw 0.9s ease-out both; stroke-dasharray: 4000; }
@keyframes ek-draw { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ln-vault { animation: none; stroke-dasharray: none; } }
/* landing (ported from v2/build/gen_landing.py) */
.ek .hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.ek .hero-grid.wrap { padding-top: 96px; padding-bottom: 136px; position: relative; align-items: center; }
.ek .herobg { left: auto; right: 0; width: 820px; top: 60px; height: 520px; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.ek .hero-lead { max-width: 540px; }
.ek .hero-media { position: relative; }
.ek .hero-card { overflow: hidden; }
.ek .hero-card-head { padding: 22px 24px 0; }
.ek .hero-chart { padding: 12px 8px 16px; min-height: 250px; }
.ek .hero-chart .chart-axis { padding: 0 16px; }
.ek .hero-chart .chart-table { padding: 0 16px; }
.ek .mini { position: absolute; }
.ek .mini1 { left: -44px; bottom: -36px; width: 230px; }
.ek .mini2 { right: -16px; bottom: -28px; width: 210px; }
.ek .bar.band { height: 6px; position: relative; }
.ek .bar.band i { width: 100%; background: linear-gradient(90deg, var(--s3) 0 40%, var(--accent-soft) 40% 60%, var(--s3) 60%); }
.ek .bar.thin { height: 6px; }
.ek .bar.thin i { background: var(--accent-line); width: 0; transition: width .6s ease-out; }
.ek .stat-wrap { margin-top: -56px; position: relative; }
.ek .gstat { padding: 28px 32px; gap: 24px; }
.ek .stat-note { margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }
.ek .sec.wrap { padding-top: 120px; }
.ek .sec-last.wrap { padding-bottom: 120px; }
.ek .cta { padding: 48px; background: linear-gradient(180deg, var(--s1), var(--s2)); }
.ek .mt12 { margin-top: 12px; }
.ek .f15 { font-size: 15px; } .ek .f14 { font-size: 14px; }
.ek .split50 { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; }
.ek .split50 i { flex: 1; }
.ek .sp-h { background: #3CCFAE; } .ek .sp-u { background: #2775CA; }
:root[data-theme="dark"] .ek .sp-h { background: #7DDFC6; } :root[data-theme="dark"] .ek .sp-u { background: #4A8FE0; }
.ek .split-l { font-size: 12.5px; line-height: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ek .legend i.lg-v { background: var(--accent-line); }
.ek .legend i.lg-h { background: repeating-linear-gradient(90deg, var(--hold) 0 5px, transparent 5px 9px); }
.ek .ul { text-decoration: underline; text-underline-offset: 3px; }
.ek .narrow-p { max-width: 860px; }
.ek .chart-loading { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ek .chart-loading .skel { height: 180px; width: 100%; border-radius: 12px; }
.ek .seg-btns button { appearance: none; border: 0; background: none; font: 500 13px/1 var(--font); color: var(--text-2); padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.ek .seg-btns button.on { background: var(--s3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line-2); }
.ek .tokic.h { background: var(--accent-line); color: var(--on-accent); }
:root:not([data-theme="dark"]) .ek .tokic.s { background: var(--text); color: var(--s1); }
.ek .risk-tile .icotile { color: var(--text-2); }
/* micro-interactions */
.ek .lift, .btn { transition: transform .15s ease-out, box-shadow .15s ease-out, filter .15s ease-out, background .15s ease-out; }
.ek .lift:hover, .btn:not([disabled]):hover { transform: translateY(-1px); }
.ek .lift:active, .btn:not([disabled]):active { transform: translateY(0); }
.ek .lift-card, .card.kpi { transition: transform .25s ease-out, box-shadow .25s ease-out; }
.ek .lift-card:hover, .card.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.ek .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
.ek .reveal.in { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .ek .hero-grid.wrap { padding-top: 40px; padding-bottom: 72px; }
  .ek .stat-wrap { margin-top: -40px; }
  .ek .sec.wrap { padding-top: 72px; } .ek .sec-last.wrap { padding-bottom: 72px; }
  .ek .cta { padding: 24px; }
  .ek .hero-chart { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .ek .reveal { opacity: 1; transform: none; } .ek .lift:hover, .btn:hover, .ek .lift-card:hover { transform: none; } }
.footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-l { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.footer-in nav { display: flex; gap: 24px; font-size: 13px; }
.footer-in nav a { color: var(--text-2); text-decoration: none; transition: color .15s ease-out; }
.footer-in nav a:hover { color: var(--text); }
.pos-chart { margin: 20px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.pos-chart .ln-vault { animation: none; stroke-dasharray: none; }
/* transparency, matched to gen_trans.py: 4-up limit tiles and role cards */
.limit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.inner-tile { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease-out, transform .2s ease-out; }
.inner-tile:hover { border-color: var(--line-2); }
.lbl2 { font-size: 13px; line-height: 18px; color: var(--text-2); }
.lm-val b { font-size: 15px; line-height: 22px; font-weight: 560; font-variant-numeric: tabular-nums; }
.lm-val span { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.limit-m .meter { height: 6px; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.role-grid .sub-card { padding: 16px; }
.role-grid ul.plain { font-size: 13px; line-height: 19px; }
@media (max-width: 1100px) { .limit-grid, .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .limit-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .role-grid { grid-template-columns: 1fr; } .inner-tile { padding: 12px; } }
/* kv rows keep short values on one line on phones */
.kv dt { flex: 1 1 auto; min-width: 0; }
.kv dd { flex: 0 0 auto; max-width: 58%; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .kv dd { font-size: 14px; } .kv > div { gap: 12px; } }
/* tab bar per render: accent active tab, no pill */
@media (max-width: 767px) {
  .tabbar a[aria-current="page"] { color: var(--accent); background: none; }
  .tabbar a { padding: 8px 0 4px; }
}
/* JOINT lockup (brand/final/README.md): 26px tall, 22px under 767px */
.logo.brand { color: var(--logo); display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo.brand svg { height: 26px; width: auto; display: block; }
.logo.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 767px) { .logo.brand svg { height: 22px; } .footer-in { flex-direction: column; gap: 16px; } }
.gone { display: none !important; }
/* tx status panel (renders deposit-pending / deposit-success) */
.tx-panel { display: flex; flex-direction: column; gap: 20px; padding: 4px 0; animation: ek-in .25s ease-out both; }
.tp-head { display: flex; gap: 14px; align-items: flex-start; }
.tp-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--info-soft); color: var(--info); box-shadow: inset 0 0 0 1px var(--line); }
.tp-ico.ok { background: var(--pos-soft); color: var(--pos); }
.tp-ico svg { width: 20px; height: 20px; }
.tp-kv { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
@keyframes ek-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.connect-cta { margin-top: 4px; }
.btn-lg { height: 52px; font-size: 16px; }
/* deviation gauge inside the banner */
.dev-gauge { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.dev-track { position: relative; height: 6px; border-radius: 99px; background: var(--s3); }
.dev-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--warn); }
.dev-max { position: absolute; top: -4px; width: 2px; height: 14px; border-radius: 2px; background: var(--text-2); transform: translateX(-1px); }
.dev-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dev-cur { color: var(--warn); font-weight: 560; }
@media (prefers-reduced-motion: reduce) { .tx-panel { animation: none; } }
/* designed empty state in the position card (render: dashboard-empty) */
#position.is-empty { display: flex; flex-direction: column; }
#position.is-empty #pos-body { flex: 1; display: flex; align-items: center; }
#position.is-empty .row-between { display: none; }
.empty-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 520px; padding: 24px 8px; animation: ek-in .3s ease-out both; }
.empty-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--s3); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line); margin-bottom: 8px; }
.empty-ico svg { width: 20px; height: 20px; }
.empty-hero .h2 { font-size: 28px; line-height: 34px; letter-spacing: -.02em; font-weight: 560; }
.empty-hero .body { font-size: 15px; line-height: 24px; }
.empty-actions { margin-top: 12px; flex-wrap: wrap; }
.empty-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.empty-steps li { display: flex; align-items: center; gap: 10px; }
.stepn-s { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--b-strong, var(--line-2)); color: var(--text-2); flex: none; }
@media (max-width: 767px) { .empty-hero { padding: 8px 0; } .empty-hero .h2 { font-size: 22px; line-height: 28px; } }
/* hero legend stays on one line on phones */
@media (max-width: 767px) {
  .ek .hero-card .legend { flex-wrap: nowrap; gap: 12px; font-size: 12px; }
  .ek .hero-card .legend span { white-space: nowrap; }
  .ek .hero-card .legend i { width: 12px; margin-right: 6px; }
}
/* token boxes: the receive amount stays on one line on phones */
.form-card .num-lg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) { .form-card .num-lg, .form-card .amount-input, #dep-amount, #wd-amount { font-size: 30px; line-height: 38px; } }
/* withdraw views: emergency exit card (render: withdraw-emergency) */
.em-mode .tabs, .em-mode #wd-form .swap-arrow, .em-mode #wd-form .recv, .em-mode #wd-form .preview, .em-mode #wd-route, .em-mode #btn-withdraw, .em-mode #wd-alt, .em-mode #wd-reason, .em-mode #wd-more, .em-mode #wd-connect { display: none !important; }
.em-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.em-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(245,186,75,.3); }
.em-view { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; animation: ek-in .25s ease-out both; }
.em-view .kv dd { max-width: 60%; }
.wd-more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.link-btn { appearance: none; background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; transition: color .15s ease-out; }
.link-btn:hover { color: var(--text); }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.center-link { align-self: center; }
#wd-requests > .card, #wd-requests > section { animation: ek-in .25s ease-out both; }
/* withdraw: the request view and the emergency exit replace the form, as in the renders */
.req-mode .tabs { display: none !important; }
.req-mode #wd-requests > .req-card:first-child { border: 0; padding: 0; background: none; }
.req-mode #wd-requests > .req-card + .req-card { margin-top: 20px; }
.req-mode, .em-mode { align-self: start; }
.req-mode .req-card h2.h3 { font-size: 1.25rem; }
/* transparency: hedging explainer in three columns, risks as tiles (per the render) */
.hw-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hw-cols h3 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.hw-cols p { font-size: 13px; line-height: 19px; color: var(--text-2); margin-top: 4px; }
#risk-long { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.risk-tile { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease-out; }
.risk-tile:hover { border-color: var(--line-2, var(--line)); }
.risk-tile .k-ico { margin-bottom: 6px; }
@media (max-width: 900px) { .hw-cols { grid-template-columns: 1fr; gap: 14px; } #risk-long { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #risk-long { grid-template-columns: 1fr; } }
/* mobile detail fixes (sizes of controls come from mobile-overrides.css) */
@media (max-width: 767px) {
  .kv dt { font-size: 13px; }
  .kv dt .help { font-size: 11.5px; line-height: 15px; }
  .kv dd { font-size: 13.5px; max-width: 55%; }
  .cta-row-404 { gap: 8px; flex-wrap: wrap; }
  .footer-in nav { flex-wrap: wrap; gap: 6px 18px; }
}

/* token logos (self-hosted: /img/tokens) */
.token-pill img.t-ico { width: 26px; height: 26px; border-radius: 50%; background: none; display: block; flex: none; }
.tk { width: 16px; height: 16px; border-radius: 50%; display: block; flex: none; }
.tk-l { display: inline-flex; align-items: center; gap: 6px; }
.tk-pair { display: inline-flex; }
.tk-pair .tk + .tk { margin-left: -5px; box-shadow: 0 0 0 1.5px var(--s1); }
.seg label:has(.tk) { display: flex; align-items: center; justify-content: center; gap: 6px; }
