/* Lem - one clean card on a warm lemon glow. */

:root {
  --bg: #fffbef;
  --card: #fffefb;
  --surface: #ffffff;
  --line: #efece2;
  --line-2: #e6e2d4;
  --ink: #0e1120;
  --muted: #6b7093;
  --lemon: #f9df7b;
  --lemon-hover: #f6d65c;
  --lemon-soft: #fff4d6;
  --lemon-deep: #eac65a;
  --amber: #f5a623;
  --ok: #3f9b62;
  --danger: #c0532f;

  --r-ctl: 14px;
  --r-card: 22px;
  --r-app: 30px;
  --sh-card: 0 1px 2px rgba(14, 17, 32, 0.03), 0 8px 24px rgba(14, 17, 32, 0.04);
  --sh-app: 0 30px 80px rgba(234, 198, 90, 0.18), 0 2px 6px rgba(14, 17, 32, 0.03);
  --sh-over: 0 24px 60px rgba(14, 17, 32, 0.14);

  --f-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --f-num: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  font: 500 15px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(255, 226, 120, 0.35), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(255, 226, 120, 0.3), transparent 70%),
    radial-gradient(40% 40% at 95% 5%, rgba(255, 236, 170, 0.35), transparent 70%),
    var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-num); font-weight: 400; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ shell */
.work { height: 100dvh; overflow-y: auto; padding: 44px 44px 56px; }
.app-card {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-app);
  box-shadow: var(--sh-app);
  min-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 94px;
  padding: 0 30px;
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-app) var(--r-app) 0 0;
}
.top-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.top-logo img { width: 118px; }
.topnav { flex: 1; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list > li { flex: none; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-list a svg { width: 20px; height: 20px; flex: none; }
.nav-list a:hover { color: var(--ink); background: rgba(255, 244, 214, 0.6); }
.nav-list a[aria-current='page'] { color: var(--ink); font-weight: 700; background: var(--lemon-soft); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 155, 98, 0.18); }
.top-wallet { display: flex; align-items: center; flex: none; margin-left: auto; }

.page { padding: 56px 56px 40px; outline: none; flex: 1; }

/* ------------------------------------------------------------------ buttons + pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-ctl);
  border: 0;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(234, 198, 90, 0.25);
}
.btn:hover { background: var(--lemon-hover); }
.btn[disabled], .btn.is-disabled { background: #f1efe7; color: #a3a6ba; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--lemon-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 64px; font-size: 19px; border-radius: 18px; }
.btn-block { width: 100%; }
.top-wallet .btn { min-height: 56px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.top-wallet .btn-ghost { font-family: var(--f-num); font-weight: 500; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #b8bbcc; }
.pill.ok .dot { background: var(--ok); }
.pill.warn .dot { background: var(--amber); }
.pill.bad .dot { background: var(--danger); }
.planned { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lemon-soft); font-size: 12px; font-weight: 700; color: #8a6a14; white-space: nowrap; }

/* ------------------------------------------------------------------ page scaffolding */
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.eyebrow .pill { letter-spacing: 0; text-transform: none; }
h1 { font-size: 64px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; }
.lede { margin: 14px 0 0; font-size: 22px; line-height: 1.45; color: var(--muted); font-weight: 500; max-width: 46ch; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 44px; }
.head-art { width: 150px; }

.section { margin-top: 44px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .aside { margin-left: auto; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.note { font-size: 14px; color: var(--muted); }

.info-line { display: flex; align-items: center; gap: 16px; margin-top: 52px; font-size: 16px; color: var(--muted); }
.info-line svg { width: 26px; height: 26px; flex: none; }
.info-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.empty { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.empty img { width: 84px; }
.empty p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.empty-plain { grid-template-columns: 1fr; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.fact { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.fact dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.fact dd { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.fact dd.unset { font-size: 15px; font-weight: 600; color: #a3a6ba; }

.formula { font: 400 14px/1.8 var(--f-num); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; overflow-x: auto; white-space: pre; }

/* ledger: rows on thin rules, inside one soft card */
.ledger { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); }
.ledger th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 16px 20px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger td.r, .ledger th.r { text-align: right; }
.ledger tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ token marks */
.tok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tok svg { width: 50px; height: 50px; }
.tok.mon { background: #f1ecff; }
.tok.usdc { background: #e8f1fc; }
.tok.other { background: var(--lemon-soft); font-weight: 800; font-size: 13px; }
.tok-sm { width: 40px; height: 40px; }
.tok-sm svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ Boardroom */
.br { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.br-main { min-width: 0; padding-right: 48px; border-right: 1px solid var(--line); }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.vault {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vault:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14, 17, 32, 0.07); }
.vault-top { display: flex; gap: 18px; align-items: flex-start; }
.vault h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; margin: 8px 0 6px; }
.vault p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.vault .mine { font-size: 14px; color: var(--ink); font-weight: 700; }
.vault .mine span { color: var(--muted); font-weight: 500; }
.vault-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.boost { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--lemon-soft); font-size: 17px; font-weight: 700; }
.boost svg { width: 20px; height: 20px; color: var(--amber); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #fdf0e6; color: #a2531f; font-size: 12.5px; font-weight: 700; }
.go { margin-left: auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--lemon-soft); display: grid; place-items: center; cursor: pointer; }
.go:hover { background: var(--lemon); }
.go svg { width: 22px; height: 22px; }

.gcard { position: sticky; top: 118px; padding: 36px 30px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-card); }
.gcard h2 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 18px; }
.gcard dl { margin: 0 0 22px; }
.grow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.grow:last-child { border-bottom: 0; }
.gicon { width: 92px; height: 92px; border-radius: 50%; background: var(--lemon-soft); display: grid; place-items: center; }
.gicon svg { width: 40px; height: 40px; color: var(--amber); }
.grow dt { font-size: 19px; color: var(--muted); font-weight: 500; }
.grow dd { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.grow dd small { font-size: 15px; color: var(--muted); font-weight: 600; }
.gcard .note { margin: 14px 0 0; text-align: center; }

.window { margin: -18px 0 40px; max-width: 640px; }
.window-bar { height: 10px; border-radius: 999px; background: #f3efe2; overflow: hidden; }
.window-fill { height: 100%; background: linear-gradient(90deg, var(--lemon), var(--amber)); border-radius: 999px; }
.window-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }

/* ------------------------------------------------------------------ sheets */
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(14, 17, 32, 0.25); }
.sheet { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); background: var(--card); border-radius: 26px; box-shadow: var(--sh-over); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 22px; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-body { padding: 20px 22px; overflow-y: auto; }
.sheet-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f6f3ea; border-radius: 16px; margin-bottom: 18px; }
.tabs button { min-height: 42px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-card); }
.tabs button[disabled] { opacity: 0.45; cursor: not-allowed; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.amount { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 0 10px 0 16px; }
.amount:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.amount input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: 700 26px/1 var(--f-ui); padding: 16px 0; color: var(--ink); }
.amount .sym { font-weight: 700; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lemon-deep); text-underline-offset: 3px; cursor: pointer; }
.kv { display: grid; margin: 0 0 16px; background: #fbf9f3; border-radius: 16px; padding: 4px 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.ack { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: #fdf0e6; color: #6d3a16; font-size: 14px; margin: 10px 0 4px; }
.ack input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.callout { padding: 12px 14px; border-radius: 14px; background: #f7f5ee; font-size: 14px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps li.active { color: var(--ink); font-weight: 700; }
.steps li.done { color: var(--ok); }
.steps .s-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 10px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; text-align: left; }
.wallet-list button:hover { background: var(--lemon-soft); }
.wallet-list img { width: 28px; height: 28px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 14px; box-shadow: var(--sh-over); }
.toast a { color: var(--lemon); }

/* ------------------------------------------------------------------ other pages */
.stage { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 32px; align-items: start; }
.locked-form { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-card); }
.locked-form .amount { background: #faf8f2; }
.locked-form .swap-mid { display: grid; place-items: center; margin: -4px 0 10px; }
.locked-form .swap-mid span { width: 38px; height: 38px; border-radius: 12px; background: var(--lemon-soft); display: grid; place-items: center; }
.ribbon { height: 48px; border-radius: 16px; background: #f6f3ea; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 4px; padding: 4px; }
.ribbon span { border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 12px; color: #a3a6ba; }
.jar-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; }
.jar-wrap img { width: 150px; }

.doc { max-width: 78ch; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #3c4058; font-weight: 500; }
.doc table { border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 8px 18px 8px 0; text-align: left; }
.doc pre { font: 400 13px/1.6 var(--f-num); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; overflow-x: auto; }
.doc code { font-family: var(--f-num); font-size: 0.9em; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.doc-toc a { font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface); }
.doc-toc a:hover { background: var(--lemon-soft); }

/* drawer phases */
.phase-list { list-style: none; margin: 0; padding: 0; display: grid; }
.phase-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; position: relative; padding-bottom: 12px; font-size: 14px; color: var(--muted); }
.phase-list li::after { content: ''; position: absolute; left: 10.5px; top: 23px; bottom: 0; width: 1px; background: var(--line); }
.phase-list li:last-child::after { display: none; }
.phase-list li.now { color: var(--ink); font-weight: 700; }
.phase-list small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.phase-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c9ccd9; background: var(--surface); display: grid; place-items: center; font: 500 9px/1 var(--f-num); }
.now > .phase-dot { background: var(--lemon); border-color: var(--lemon-deep); }
.done > .phase-dot { background: #e7f3ea; border-color: var(--ok); }

.dock, .drawer { display: none; }

/* ------------------------------------------------------------------ breakpoints */
@media (max-width: 1360px) {
  .nav-list a { padding: 0 13px; font-size: 15px; }
  .br { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .br-main { padding-right: 36px; }
  .gcard h2 { font-size: 34px; }
  .gicon { width: 72px; height: 72px; }
  .gicon svg { width: 32px; height: 32px; }
  .grow { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 1180px) {
  .work { padding: 24px 24px 40px; }
  .nav-list a svg { display: none; }
  .nav-list a { padding: 0 11px; }
  .page { padding: 44px 36px 32px; }
  h1 { font-size: 52px; }
  .br { grid-template-columns: minmax(0, 1fr); }
  .br-main { padding-right: 0; border-right: 0; }
  .gcard { position: static; }
  .stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .work { padding: 12px 12px 92px; }
  .app-card { border-radius: 24px; min-height: calc(100dvh - 104px); }
  .topbar { height: 72px; padding: 0 16px; border-radius: 24px 24px 0 0; }
  .top-logo img { width: 92px; }
  .topnav { display: none; }
  .top-wallet .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .page { padding: 30px 20px 28px; }
  h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  .lede { font-size: 18px; }
  .page-head { grid-template-columns: 1fr; margin-bottom: 30px; }
  .head-art { display: none; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .ledger td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
  .ledger td.first::before { display: none; }
  .ledger td.first { justify-content: flex-start; text-align: left; padding-bottom: 8px; }
  .toasts { bottom: 84px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(68px + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom); align-items: center; gap: 12px; background: rgba(255, 254, 251, 0.96); border-top: 1px solid var(--line); }
  .dock-here { font-size: 17px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock-btn { min-height: 46px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--lemon); font-weight: 700; cursor: pointer; }
  .drawer:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; }
  .drawer-scrim { position: absolute; inset: 0; background: rgba(14, 17, 32, 0.25); }
  .drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; }
  .drawer-head img { width: 84px; }
  .drawer .nav-list { display: grid; }
  .drawer .nav-list a { min-height: 50px; font-size: 16px; }
  .drawer .nav-list a svg { display: block; }
  .sheet { inset: auto 0 0 0; width: 100%; max-height: 92dvh; top: auto; border-radius: 24px 24px 0 0; }
}
@media (max-width: 520px) {
  h1 { font-size: 34px; }
  .vault-grid { grid-template-columns: minmax(0, 1fr); }
  .tok { width: 60px; height: 60px; }
  .tok svg { width: 40px; height: 40px; }
  .vault h3 { font-size: 21px; }
  .gcard { padding: 26px 20px 22px; }
  .gcard h2 { font-size: 30px; }
  .gicon { width: 60px; height: 60px; }
  .gicon svg { width: 26px; height: 26px; }
  .grow { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .grow dt { font-size: 15px; }
  .grow dd { font-size: 21px; }
  .empty { grid-template-columns: 1fr; }
  .jar-wrap { grid-template-columns: 1fr; }
  .jar-wrap img { width: 110px; }
  .info-line { font-size: 14px; }
}
