:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #182821;
  background: #f2f5f2;
  font-synthesis: none;
  line-height: 1.55;
  --muted: #51635a;
  --line: #e0e8e1;
  --green: #23734f;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.frame { max-width: 1120px; margin-inline: auto; width: calc(100% - 64px); }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; color: inherit; text-decoration: none; }
.brand-icon { display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; width: 32px; height: 32px; border-radius: 9px; background: #193a2c; }
.brand-icon i { width: 3px; height: 6px; background: #aee6be; border-radius: 2px; }
.brand-icon i:nth-child(2) { height: 11px; }
.brand-icon i:nth-child(3) { height: 16px; }
main { padding-block: 38px 50px; }
.overview { padding: 34px; border-radius: 23px; background: linear-gradient(114deg, #17382c, #204938); color: #fff; }
.overview-head, .section-head, .account-head, .window-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -.05em; }
#status { color: #c6ddce; font-size: .875rem; margin-top: 10px; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: .875rem; font-weight: 700; padding: 9px 15px; border: 1px solid #577b67; border-radius: 10px; color: #fff; background: #ffffff0c; cursor: pointer; white-space: nowrap; }
button:hover { background: #ffffff22; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #68b183; outline-offset: 4px; }
.refresh-icon { font-size: 1.15rem; line-height: 1; }
.summary { display: grid; grid-template-columns: 1fr 1fr 1.55fr; border-top: 1px solid #4a6b5a; margin-top: 27px; padding-top: 20px; }
.summary > div { padding-inline: 24px 12px; border-left: 1px solid #4a6b5a; }
.summary > div:first-child { padding-left: 0; border-left: 0; }
.summary dt { color: #c6ddce; font-size: .875rem; }
.summary dd { font-size: 2rem; line-height: 1.24; margin-top: 6px; font-weight: 720; font-variant-numeric: tabular-nums; }
.summary .summary-date { font-size: 1.25rem; padding-top: 5px; }
.accounts-section { margin-top: 32px; }
.section-head { margin-bottom: 14px; flex-wrap: wrap; gap: 4px 16px; }
.section-head h2 { font-size: 1.38rem; letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: .875rem; }
#accounts { display: grid; gap: 16px; }
.account { background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: 0 2px 9px #20382a07; }
.account-head { padding: 17px 23px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: #255e42; background: #e6f2e9; border-radius: 10px; font-size: .95rem; font-weight: 760; }
.account h3 { overflow-wrap: anywhere; font-size: 1rem; }
.account-state { flex-shrink: 0; font-size: .875rem; color: var(--muted); }
.account-data { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.account-data > section { padding: 20px 23px 23px; }
.account-data > section + section { background: #f9fbf9; border-left: 1px solid var(--line); }
.account-data h4 { font-size: .9rem; margin-bottom: 12px; }
.window + .window { margin-top: 17px; }
.window-heading { font-size: .9rem; }
.window-heading strong { color: #216142; font-variant-numeric: tabular-nums; white-space: nowrap; }
progress { display: block; height: 8px; width: 100%; margin-block: 7px 5px; appearance: none; border: 0; border-radius: 4px; background: #e6eee8; overflow: hidden; color: var(--green); }
progress::-webkit-progress-bar { background: #e6eee8; }
progress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
progress.low::-webkit-progress-value { background: #b75428; }
progress.low::-moz-progress-bar { background: #b75428; }
.detail { font-size: .875rem; color: var(--muted); margin-top: 5px; }
.card-count { display: flex; align-items: baseline; gap: 7px; }
.card-count strong { font-size: 2rem; line-height: 1.14; font-weight: 740; }
.expiries { padding-left: 1.2rem; margin-block: 4px 0; font-size: .875rem; }
.notice, .empty { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 15px 18px; color: var(--muted); }
.notice { margin-bottom: 14px; background: #fff6e9; color: #77451c; border-color: #ead7be; }
.logout-button { color: #255e42; border-color: var(--line); }
.logout-button:hover { background: #e6f2e9; }
.login-main { display: grid; min-height: 100vh; align-content: center; justify-items: center; }
.login-card { width: min(100%, 410px); padding: clamp(22px, 6vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 36px #20382a0d; }
.login-card h1 { margin-block: 26px 20px; font-size: 2rem; }
.login-card fieldset { display: grid; gap: 10px; margin: 0; padding: 0; min-width: 0; border: 0; }
.login-card label { font-size: .875rem; font-weight: 700; }
.login-card input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #819586; border-radius: 8px; font: inherit; color: inherit; }
.login-card .remember-login { display: flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 500; cursor: pointer; }
.remember-login input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.login-card button { margin-top: 6px; padding: 10px 12px; background: #23553e; border-color: #23553e; }
.login-card button:hover { background: #193a2c; }
.login-card button:disabled { cursor: default; }
@media (max-width: 640px) {
  .frame { width: calc(100% - 32px); }
  .mast-inner { min-height: 58px; }
  main { padding-top: 22px; }
  .overview { padding: 22px; border-radius: 17px; }
  .overview-head { align-items: start; }
  button { padding: 7px 9px; }
  .summary { grid-template-columns: 1fr 1fr; gap: 13px 0; margin-top: 19px; padding-top: 15px; }
  .summary > div:nth-child(3) { grid-column: 1 / -1; border: 0; padding-left: 0; }
  .summary .summary-date { margin-top: 3px; padding: 0; font-size: 1.1rem; }
  .account-data { grid-template-columns: 1fr; }
  .account-data > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .account-head, .account-data > section { padding-inline: 17px; }
}
@media (max-width: 350px) {
  .overview-head { flex-wrap: wrap; }
}
