/* Quanta app. Same type and palette as the homepage: ease (sans), reckless (serif), Geist Mono. */
@font-face { font-family: ease; src: url(/_next/static/i/media/ease_standard_regular-s.p.0ba1_8dt5_40n.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: reckless; src: url(/_next/static/i/media/reckless_standard_regular-s.p.397mtn8fd2-62.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: gmono; src: url(/_next/static/i/media/797e433ab948586e-s.p.1v5bejj26fx9h.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #141414; --ink-2: #5c5c5c; --mute: #8f8f8f; --line: #e4e4e1; --line-2: #d6d6d2;
  --bg: #f4f4f2; --panel: #fff; --accent: #140d9e; --accent-2: #2016c4; --ok: #15803d; --bad: #b42318;
  --sans: ease, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: reckless, Georgia, serif;
  --mono: gmono, ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
dl, dd { margin: 0; }

/* header: matches the homepage nav */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 clamp(16px, 3vw, 28px); background: #161616; color: #fff; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.02em; }
.brand i { width: 22px; height: 22px; border-radius: 5px; background: url(/qt/mark-tile.png) center / cover; }
.links { display: flex; gap: 2px; }
.links a { padding: 6px 10px; border-radius: 6px; font-size: 14px; color: #cfcfcf; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.net { font-size: 13px; color: #9a9a9a; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--accent-2); }
.btn:disabled { background: #c9c9c6; cursor: not-allowed; }
.btn.wide { width: 100%; height: 44px; font-size: 15px; }
.btn.plain { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.plain:hover { background: var(--bg); }
.btn.connected { background: #2a2a2a; font-family: var(--mono); font-size: 13px; }
.btn.connected:hover { background: #333; }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.link:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 16px 64px; flex: 1; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
h1 { font: 400 44px/1 var(--serif); letter-spacing: -.02em; margin: 0; }
.stats { display: flex; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.stats div { padding: 10px 18px; border-left: 1px solid var(--line); min-width: 110px; }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 12px; color: var(--mute); }
.stats dd { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }

.tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 14px 0 12px; cursor: pointer; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.pane { padding: 20px; display: flex; flex-direction: column; gap: 18px; }

.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field label span { color: var(--mute); font-family: var(--mono); font-size: 12px; }
.in { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.in:focus { border-color: var(--ink); }
.in.mono { font-family: var(--mono); font-size: 13px; }
.in-wrap { position: relative; }
.in.num { height: 48px; font-size: 20px; padding-right: 52px; font-variant-numeric: tabular-nums; }
.in.num::-webkit-inner-spin-button { -webkit-appearance: none; }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--mute); }
select.in { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238f8f8f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 14px; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { border: 1px solid var(--line); background: none; border-radius: 4px; padding: 2px 9px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.quick button:hover { border-color: var(--line-2); color: var(--ink); }

/* scheme picker: a plain radio list */
.schemes { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.schemes button { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; font-size: 14px; }
.schemes button:first-child { border-top: 0; }
.schemes button:hover { background: #fafaf8; }
.schemes button .r { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.schemes button.on .r { border: 4px solid var(--accent); }
.schemes button.on { background: #f7f7fc; }
.schemes button small { font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.schemes button small.lvl { min-width: 54px; text-align: right; }

.rows { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; font-size: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; }
.rows dt { color: var(--ink-2); }
.rows dd { font-variant-numeric: tabular-nums; text-align: right; }
.note { margin: 0; font-size: 12.5px; color: var(--mute); }

/* vault list */
.list-h { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list-h h2 { margin: 0; font-size: 15px; font-weight: 400; }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); font-size: 14px; }
.vault { padding: 14px 20px; border-top: 1px solid var(--line); }
.vault:first-child { border-top: 0; }
.vault .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vault .amt { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vault .usd { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.vault .l2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.vault .l2 .id { font-family: var(--mono); color: var(--mute); }
.vault .st { color: var(--ok); }
.vault.closed .amt, .vault.closed .st { color: var(--mute); }
.vault .act { display: flex; gap: 16px; margin-top: 8px; }
.vault .act button { border: 0; background: none; padding: 0; font-size: 13px; color: var(--accent); cursor: pointer; }
.vault .act button:hover { text-decoration: underline; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 20, .4); }
.sheet { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-h h3 { margin: 0; font-size: 15px; font-weight: 400; }
.x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; }
.x:hover { background: var(--bg); color: var(--ink); }
.wallets button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.wallets button:first-child { border-top: 0; }
.wallets button:hover { background: #fafaf8; }
.wallets em { font-style: normal; font-size: 12.5px; color: var(--mute); }

.steps { list-style: none; margin: 0; padding: 8px 18px; }
.steps li { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--mute); }
.steps li i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2); }
.steps li.run { color: var(--ink); }
.steps li.run i { border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.steps li.ok { color: var(--ink); }
.steps li.ok i { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center; }
.steps small { display: block; margin-top: 2px; font: 12px var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.done { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.done h4 { margin: 0 0 4px; font: 400 24px/1.15 var(--serif); }
.done p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.kv { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.kv div:first-child { border-top: 0; }
.kv b { font: 12.5px var(--mono); color: var(--ink); cursor: pointer; }
.kv b:hover { color: var(--accent); }
.done .btns { display: flex; gap: 8px; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); opacity: 0; padding: 9px 14px; border-radius: 6px; background: #161616; color: #fff; font-size: 13.5px; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px clamp(16px, 3vw, 28px); border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.fl { display: flex; gap: 18px; } .fl a:hover { color: var(--ink); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .links, .net { display: none; }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 10px 12px; }
}
@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .stats { flex-wrap: wrap; }
  .stats div { flex: 1 1 50%; border-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .schemes button { grid-template-columns: 14px 1fr auto; }
  .schemes button small.sig { display: none; }
}
