@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
}
:root {
  color-scheme: light dark;
  --bg: #F4F4F3; --card: #FFFFFF; --ink: #0B0B0C; --muted: #6B6B70; --line: #E7E7E4; --blue: #0A84FF;
  --warn: #B25000; --warn-bg: #FFF1E0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0C; --card: #17171A; --ink: #F4F4F3; --muted: #9A9AA0; --line: #29292D;
    --warn: #FFB366; --warn-bg: #33230F;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 500 16px/1.45 Manrope, system-ui, sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom));
}
main { max-width: 640px; margin: 0 auto; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 16px; }
.mark { display: flex; align-items: baseline; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.dota { display: inline-block; position: relative; width: .687em; height: .54em; margin-right: .06em; flex: none; }
.dota::before { content: ""; position: absolute; left: 0; bottom: -.015em; width: .57em; height: .57em; border-radius: 50%; background: var(--blue); }
.dota::after { content: ""; position: absolute; right: 0; bottom: 0; width: .137em; height: .54em; background: currentColor; }
.ghost { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 14px; }

.section { font-size: 13px; font-weight: 700; color: var(--muted); margin: 24px 4px 8px; }
.card { background: var(--card); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.big { font-size: clamp(34px, 11vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.label { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.grid .value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.grid .label { font-size: 12.5px; }
.source { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.source b { font-weight: 700; color: var(--ink); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 13.5px; }
.empty { color: var(--muted); font-size: 15px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows li:first-child { padding-top: 0; }
.rows .sub { display: block; font-size: 12.5px; color: var(--muted); }
.rows .amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows span { min-width: 0; overflow-wrap: anywhere; }

.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card);
  box-shadow: 0 6px 24px rgb(0 0 0 / .14);
}
.tabs[hidden] { display: none; }
.tabs button { min-height: 44px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.tabs button[aria-current] { background: var(--ink); color: var(--bg); }

.login { display: flex; flex-direction: column; justify-content: center; min-height: 72dvh; gap: 14px; }
.login h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.login input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; }
.primary { min-height: 52px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.primary:disabled { opacity: .55; }
.link { min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.error { color: var(--warn); font-size: 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
