:root {
  color-scheme:dark;
  --bg:#111113;
  --surface:#1c1c20;
  --raised:#26262b;
  --line:#34343b;
  --ink:#faf9f9;
  --sub:#b8b6bf;
  --red:#ff4438;
  --redButton:#c82e25;
  --green:#c5fb87;
  --card:linear-gradient(139deg,#fb4c3e 0%,#c5222c 62%,#961a2f 100%);
  font-family:Inter,system-ui,sans-serif;
}
[data-theme=light] {
  color-scheme:light;
  --bg:#f6f5f5;
  --surface:#fff;
  --raised:#eeebed;
  --line:#dfdbde;
  --ink:#19171a;
  --sub:#625d66;
  --red:#b92820;
  --redButton:#bf3025;
  --green:#216638;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  min-width:300px;
}
button,input,select {
  font:inherit;
}
button {
  cursor:pointer;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--red);
  outline-offset:3px;
}
a {
  color:inherit;
}
button:disabled {
  opacity:.45;
  cursor:default;
}
.shell {
  max-width:470px;
  margin:auto;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  padding:0 20px;
}
.shell.admin {
  max-width:640px;
}
header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:68px;
}
.brand {
  font-weight:850;
  letter-spacing:-.8px;
  font-size:21px;
  display:flex;
  gap:9px;
  align-items:center;
}
.logo {
  background:var(--redButton);
  color:#fff;
  padding:4px 8px;
  border-radius:9px;
  font-size:19px;
  font-weight:900;
}
.chip,.status {
  font-size:11px;
  letter-spacing:.08em;
  font-weight:800;
  border:1px solid var(--line);
  padding:7px 10px;
  border-radius:99px;
}
.status {
  letter-spacing:0;
  color:var(--sub);
}
.banner {
  padding:10px 12px;
  background:#3b1c22;
  color:#ffe9e8;
  border:1px solid #653139;
  border-radius:12px;
  font-size:11.5px;
  line-height:1.45;
}
.banner strong {
  display:block;
  letter-spacing:.08em;
  font-size:10px;
  color:#ffa099;
}
main {
  flex:1;
  padding:22px 0 18px;
}
h1,h2,p {
  margin:0;
}
h1 {
  font-size:clamp(29px,8vw,40px);
  line-height:1.03;
  letter-spacing:-.055em;
  margin:0 0 8px;
}
h2 {
  font-size:17px;
  letter-spacing:-.02em;
}
.sub,.note {
  color:var(--sub);
  line-height:1.45;
  font-size:14px;
}
.note {
  font-size:12px;
}
.stack {
  display:grid;
  gap:12px;
  margin-top:18px;
}
.panel,.item {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px;
}
.panel>*+* {
  margin-top:9px;
}
.item {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  color:var(--ink);
  width:100%;
}
.item+.item {
  margin-top:8px;
}
.item strong {
  display:block;
  font-size:14px;
}
.item .note {
  display:block;
  margin-top:2px;
}
.item .value {
  margin-left:auto;
  font-weight:780;
  white-space:nowrap;
}
.pos {
  color:var(--green);
}
.icon {
  border-radius:12px;
  background:var(--raised);
  min-width:38px;
  height:38px;
  display:grid;
  place-items:center;
  font-size:17px;
  color:var(--red);
  font-weight:800;
}
.spaced {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.btn {
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--raised);
  color:var(--ink);
  min-height:46px;
  padding:10px 13px;
  font-size:14px;
  font-weight:780;
  width:100%;
}
.btn.primary {
  background:var(--redButton);
  border-color:transparent;
  color:#fff;
}
.btn.ghost {
  background:transparent;
}
.section {
  margin-top:19px;
  margin-bottom:9px;
}
.label {
  display:grid;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:var(--sub);
}
input,select {
  width:100%;
  min-height:46px;
  border-radius:11px;
  border:1px solid var(--line);
  background:var(--raised);
  color:var(--ink);
  padding:10px;
}
.error {
  color:var(--red);
  font-size:13px;
  min-height:0;
}
.card {
  position:relative;
  overflow:hidden;
  background:var(--card);
  color:white;
  border-radius:23px;
  min-height:174px;
  padding:17px 19px;
  box-shadow:0 14px 35px #8c202030;
}
.card:before,.card:after {
  content:"";
  position:absolute;
  pointer-events:none;
  border:1px solid #ffffff36;
  width:230px;
  height:230px;
  right:-74px;
  top:-103px;
  border-radius:37%;
  transform:rotate(32deg);
}
.card:after {
  right:-55px;
  top:-76px;
  border-color:#ffffff25;
}
.card>* {
  position:relative;
  z-index:1;
}
.card-top {
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}
.card-top .chip {
  border-color:#ffffff60;
}
.balance {
  font-size:43px;
  font-weight:850;
  letter-spacing:-.065em;
  margin:9px 0 8px;
  line-height:1.1;
}
.card-bottom {
  display:flex;
  align-items:end;
  justify-content:space-between;
  font-size:12px;
  line-height:1.4;
}
.card-bottom b {
  font:700 15px ui-monospace,monospace;
  letter-spacing:.13em;
}
.nav {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:5px;
  margin-bottom:10px;
  position:sticky;
  bottom:6px;
  z-index:2;
}
.nav a {
  text-decoration:none;
  text-align:center;
  font-size:10px;
  color:var(--sub);
  padding:7px 2px;
  border-radius:12px;
}
.nav a span {
  display:block;
  font-size:17px;
  line-height:1.2;
  margin-bottom:3px;
}
.nav a[aria-current=page] {
  background:var(--raised);
  color:var(--red);
  font-weight:800;
}
.foot {
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  padding:8px 0 14px;
  color:var(--sub);
  font-size:11px;
}
.foot a {
  min-height:28px;
  display:flex;
  align-items:center;
}
.event {
  border-left:3px solid var(--green);
}
.big {
  font-size:40px;
  letter-spacing:-.06em;
  font-weight:850;
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
}
@media(min-width:700px) {
  body {
    background:radial-gradient(ellipse at 50% 0,#42222736,transparent 50%),var(--bg);
  }
  .shell {
    margin:20px auto;
    border:1px solid var(--line);
    border-radius:26px;
    min-height:calc(100dvh - 40px);
    background:var(--bg);
  }
}
:root {
  font-synthesis: none;
}
a.brand, a.item {
  text-decoration: none;
}
a.btn {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
}
.theme {
  color: var(--ink);
  background: var(--surface);
  min-width: 42px;
  min-height: 42px;
}
.flash {
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.hero .balance {
  font-size: 82px;
  margin: 6px 0 0;
}
.foot form {
  margin: 0;
}
.item > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
h1 {
  overflow-wrap: anywhere;
}
.showcase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-top: 12px;
  color: var(--sub);
}
.showcase form { margin: 0; }
.showcase button { min-height: 36px; font-size: 12px; }
