:root { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #1c2c39; background: #f4f7f7; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid #e2e9e8; }
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #183445; font-size: 17px; font-weight: 750; text-decoration: none; }
.brand small { display: block; margin-top: 3px; color: #7f9197; font-size: 11px; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #16775e; color: white; font-size: 19px; }
.session-actions { display: flex; gap: 18px; align-items: center; color: #6c7b80; font-size: 13px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.text-button { padding: 0; border: 0; background: transparent; color: #146b56; }
main { padding: 42px 0 70px; }
.loading { padding: 45px 0; color: #6c7b80; }
.notice { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #efd4a6; border-radius: 10px; background: #fff8ea; color: #795221; overflow-wrap: anywhere; }
.login-wrap { display: grid; grid-template-columns: 1fr 390px; gap: 70px; align-items: center; padding: 60px 0; }
.intro h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.04em; }
.intro p { color: #667a7d; line-height: 1.7; }
.eyebrow { color: #478571; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1, h2, p { margin: 0; }
h1 { margin: 10px 0 12px; color: #153346; font-size: 30px; line-height: 1.2; }
h2 { margin: 8px 0 0; color: #173547; font-size: 19px; }
.muted { color: #718183; }
.small { font-size: 13px; line-height: 1.6; }
.card { min-width: 0; padding: 25px; border: 1px solid #e2eae8; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(38, 76, 65, .045); }
.login-card { padding: 31px; }
.login-card h2 { margin: 0 0 9px; }
.login-card p { margin-bottom: 22px; font-size: 13px; }
label { display: block; margin: 17px 0 8px; color: #43595d; font-size: 13px; font-weight: 650; }
input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cfddda; border-radius: 8px; background: white; color: #203a42; }
input:focus, button:focus-visible { outline: 3px solid #a9d9c9; outline-offset: 2px; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 17px; border-radius: 8px; font-weight: 700; }
.primary { border: 1px solid #16775e; background: #16775e; color: #fff; }
.primary:hover { background: #105e4b; }
.secondary { border: 1px solid #cfddda; background: #fff; color: #30594f; white-space: nowrap; }
.secondary:hover { background: #f1f8f5; }
.full { width: 100%; margin-top: 22px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .muted { font-size: 13px; overflow-wrap: anywhere; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 20px; background: #edf2f1; color: #657775; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.confirmed { background: #e5f4ec; color: #197150; }
.status.warning { background: #fff3de; color: #99651e; }
.status.failed { background: #fbecea; color: #a4433d; }
.main-balance { display: grid; gap: 9px; margin-top: 34px; }
.main-balance span, .metrics span { color: #778988; font-size: 13px; }
.main-balance strong { color: #153b34; font-size: clamp(30px, 4vw, 42px); overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 29px; padding: 21px 0; border-top: 1px solid #edf1f0; border-bottom: 1px solid #edf1f0; }
.metrics div { display: grid; gap: 8px; min-width: 0; }
.metrics strong { color: #304d48; font-size: 16px; overflow-wrap: anywhere; }
.card-note { margin-top: 17px; color: #697c7a; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.time { margin-top: 12px; color: #95a3a0; font-size: 12px; overflow-wrap: anywhere; }
.recent-list { margin-top: 14px; }
.recent-list > p { font-size: 13px; line-height: 1.6; }
.activity-note { margin-top: 9px; }
.ledger-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.ledger-item { padding: 15px 0; border-top: 1px solid #edf1f0; }
.ledger-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ledger-title { color: #284b43; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ledger-amount { color: #915c25; font-size: 16px; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.ledger-amount.in { color: #197150; }
.ledger-meta { margin-top: 8px; color: #81918e; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.details { margin: 18px 0 0; }
.details div { display: grid; grid-template-columns: 115px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid #edf1f0; font-size: 13px; }
.details dt { color: #7d8c89; }
.details dd { margin: 0; color: #27443e; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 540px); }
  .topbar-inner { min-height: 66px; }
  .session-actions { gap: 10px; font-size: 11px; }
  main { padding-top: 28px; }
  .login-wrap { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
  .intro h1 { font-size: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: start; }
  .card { padding: 22px; }
  .details div { grid-template-columns: 95px 1fr; }
}
@media (max-width: 380px) { .page-heading { flex-direction: column; } .page-heading .secondary { align-self: stretch; } }
