/* SHEKAR base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "ss01";
  overscroll-behavior-y: none;
}
.lat { font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--text); }
img, svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 800; letter-spacing: -.2px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#shell { position: relative; min-height: 100vh; }
#view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--safe-t) + 8px) var(--s4) calc(var(--nav-h) + var(--safe-b) + 96px);
  min-height: 100vh;
}
.screen { animation: screenIn var(--t-slow) var(--ease) both; }
.screen.back { animation-name: screenInBack; }
@keyframes screenIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes screenInBack { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* utility */
.row { display: flex; align-items: center; gap: var(--s2); }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: var(--s2); }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 600px) { .grid-auto { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s4); } }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.big { font-size: 20px; }
.bold { font-weight: 700; }
.xbold { font-weight: 800; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt1 { margin-top: var(--s1); } .mt2 { margin-top: var(--s2); } .mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); } .mt6 { margin-top: var(--s6); }
.mb2 { margin-bottom: var(--s2); } .mb3 { margin-bottom: var(--s3); } .mb4 { margin-bottom: var(--s4); }
.pos { color: var(--emerald-2); } .neg { color: var(--danger); } .gold-t { color: var(--gold); } .lime-t { color: var(--lime); } .warn-t { color: var(--warn); }
.hr { height: 1px; background: var(--border); margin: var(--s3) 0; border: 0; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
