*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--c-bg); color: var(--c-text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
html[lang="bn"] body, html[lang="bn"] input, html[lang="bn"] button, html[lang="bn"] textarea, html[lang="bn"] select {
  font-family: var(--font-bn); line-height: 1.55;
}
html[lang="bn"] .display, html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { font-family: var(--font-bn); line-height: 1.4; letter-spacing: 0; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.03em; font-weight: 700; line-height: 1.15; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 0; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 6px; }
[data-theme="dark"] :focus-visible { outline-color: var(--c-accent); }
::selection { background: var(--c-accent); color: var(--c-on-accent); }

.num, .amount { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.amount { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; font-size: .92em; }
.muted { color: var(--c-muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
html[lang="bn"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-select, .topbar, .bottomnav, .sidebar, .btn, .segmented { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.col { display: flex; flex-direction: column; gap: var(--sp-3); }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.scroll-lock, html.scroll-lock body { overflow: hidden; }
