.wallet-view {
  --blue:#243ec9;
  --ink:#202234;
  --line:#dedfe8;
  color:var(--ink);
  max-width:1080px;
  margin:0 auto;
  padding:8px 0 32px;
}
.wallet-view h1 {
  font-size:clamp(25px,3vw,36px);
  margin:0 0 20px;
  letter-spacing:-.04em;
}
.wallet-overview {
  display:grid;
  grid-template-columns:1.12fr 1fr 1fr;
  background:white;
  border:2px solid var(--ink);
  box-shadow:3px 4px var(--ink);
  border-radius:19px;
  overflow:hidden;
  align-items:start;
}
.wallet-overview>div,.wallet-hold {
  padding:22px 26px;
}
.wallet-cash {
  align-self:stretch;
  color:white;
  background:var(--blue) radial-gradient(#ffffff23 1px,transparent 1px) 0 0/10px 10px;
}
.wallet-overview strong {
  display:block;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
  font-size:32px;
  margin:7px 0;
}
.wallet-overview strong small {
  font-size:15px;
}
.wallet-cash strong {
  font-size:56px;
}
.wallet-earned small,.wallet-hint,.wallet-detail {
  color:#555968;
  font-size:13px;
}
.wallet-hold summary {
  cursor:pointer;
  list-style:none;
}
.wallet-hold summary::-webkit-details-marker,.wallet-entry summary::-webkit-details-marker {
  display:none;
}
.wallet-hold summary:hover .wallet-hint {
  text-decoration:underline;
}
.wallet-hint {
  color:var(--blue);
}
.wallet-held-list>div {
  border-top:1px solid var(--line);
  padding:9px 0;
}
.wallet-held-list span {
  display:block;
  font-size:12px;
}
.wallet-link.btn {
  border:0;
  background:transparent;
  color:var(--blue);
  padding:3px 0;
  text-align:left;
  box-shadow:none;
  white-space:normal;
  text-decoration:underline;
}
.wallet-exchange {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#f0f1ff;
  border-radius:12px;
  padding:14px 19px;
  margin:20px 0 32px;
}
.wallet-exchange b {
  margin-right:11px;
}
.wallet-exchange span {
  font-size:14px;
}
.wallet-exchange a,.wallet-exchange button.im-link {
  border:0;
  background:#ebf94d;
  color:#181b27;
  border-radius:18px;
  font-weight:700;
  padding:8px 15px;
  white-space:nowrap;
}
.wallet-book {
  background:#fff;
  border-radius:16px;
  padding:22px 26px;
  border:1px solid var(--line);
}
.wallet-book header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.wallet-book h2 {
  font-size:22px;
  margin:0;
}
.wallet-book nav {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
.wallet-book nav a {
  padding:6px 12px;
  color:#414556;
  border-radius:16px;
  text-decoration:none;
  font-size:14px;
}
.wallet-book nav a[aria-current] {
  background:var(--blue);
  color:white;
}
.wallet-day h3 {
  font-size:13px;
  color:#626777;
  margin:20px 0 4px;
  padding:0 0 6px;
  border-bottom:1px solid var(--line);
  font-variant-numeric:tabular-nums;
}
.wallet-entry summary {
  display:grid;
  grid-template-columns:86px minmax(0,1fr) auto 12px;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:6px 0;
  cursor:pointer;
  list-style:none;
}
.wallet-entry summary:after {
  content:'›';
  color:#626775;
}
.wallet-entry[open] summary:after {
  transform:rotate(90deg);
}
.wallet-tag {
  justify-self:start;
  padding:4px 9px;
  border-radius:12px;
  background:#f0f1f5;
  font-size:12px;
  font-weight:600;
}
.wallet-tag.credit {
  background:#edf0ff;
}
.wallet-tag.locked {
  background:#fff0d5;
}
.wallet-view .credit {
  color:#243ec9;
}
.wallet-view .locked {
  color:#80500d;
}
.wallet-subject {
  font-weight:550;
  overflow-wrap:anywhere;
}
.wallet-amount {
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.wallet-detail {
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:8px 20px;
  padding:9px 12px;
  background:#f7f7fa;
  border-radius:9px;
}
.wallet-empty {
  padding:25px 0;
  color:#626775;
}
.wallet-view :is(a,button,summary):focus-visible {
  outline:3px solid #526afa;
  outline-offset:2px;
}
@media(max-width:760px) {
  .wallet-overview {
    grid-template-columns:1fr 1fr;
  }
  .wallet-cash {
    grid-column:1/-1;
  }
  .wallet-overview>div,.wallet-hold {
    padding:15px;
  }
  .wallet-cash strong {
    font-size:44px;
  }
  .wallet-exchange {
    flex-wrap:wrap;
    margin-bottom:18px;
  }
  .wallet-book {
    padding:15px;
  }
  .wallet-book header {
    align-items:flex-start;
  }
  .wallet-entry summary {
    grid-template-columns:minmax(0,1fr) auto 10px;
    gap:4px 8px;
    padding:10px 0;
  }
  .wallet-tag {
    grid-column:1;
  }
  .wallet-subject {
    grid-column:1;
    grid-row:2;
  }
  .wallet-amount {
    grid-column:2;
    grid-row:1/3;
  }
  .wallet-entry summary:after {
    grid-column:3;
    grid-row:1/3;
  }
  .wallet-book nav a {
    padding:5px 8px;
  }
  .wallet-held-list .btn {
    font-size:13px;
  }
}
