#account-panel {
  min-width: 0;
  padding: 12px 0 32px;
  color: var(--text, #efe8ff);
}
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.account-heading h1 { margin: 0; font-size: 29px; line-height: 1.3; font-weight: 650; letter-spacing: .02em; }
.account-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line, #342547); border-radius: 10px; color: var(--text, #efe8ff); background: var(--surface-raised, #251b35); font-size: 13px; font-weight: 500; line-height: 1.4; }
.account-button:hover { background: var(--surface-hover, #342448); border-color: var(--accent, #b28aff); color: var(--text, #efe8ff); }
.account-button:focus-visible, .account-field input:focus-visible, .account-shortcut:focus-visible { outline: 2px solid var(--accent, #b28aff); outline-offset: 3px; }
.account-primary { color: #25103b; background: linear-gradient(120deg, #d0a6ff, #ab79f2); border-color: #bf94fb; box-shadow: 0 4px 18px #9c62ed20; }
.account-primary:hover { color: #25103b; background: #d5b0ff; }
.account-quiet { background: transparent; border-color: transparent; color: var(--muted, #a196b5); padding-left: 8px; padding-right: 8px; }
.account-quiet .account-icon { width: 16px; height: 16px; flex-basis: 16px; }
.account-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 27px; }
.account-overline { display: block; margin-bottom: 9px; color: var(--muted, #a196b5); font-size: 13px; }
.account-balance strong { display: flex; align-items: baseline; gap: 9px; font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.account-balance strong small { color: var(--muted, #a196b5); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.account-checkin { padding: 24px; border: 1px solid var(--line, #342547); border-radius: 16px; background: var(--surface, #1b1428); }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.account-section-heading h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.account-section-heading > span { color: var(--muted, #a196b5); font-size: 12px; text-align: right; }
.account-section-heading b { color: var(--accent, #b28aff); font-weight: 600; }
.account-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 0 0 23px; list-style: none; }
.account-days li { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 12px; padding: 13px 3px 11px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-raised, #251b35); }
.account-days li > span { font-size: 11px; color: var(--muted, #a196b5); white-space: nowrap; }
.account-days li > b { display: grid; place-items: center; height: 22px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-days li > small { font-size: 10px; color: var(--muted, #a196b5); }
.account-days li.is-complete { background: var(--accent-soft, #a46df016); color: var(--accent, #b28aff); }
.account-days li.is-current { border-color: var(--accent, #b28aff); box-shadow: inset 0 0 20px #af7bf509; }
.account-checkin-button { width: 100%; }
.account-checkin-button:disabled { opacity: .65; }
.account-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.account-shortcut { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 17px 15px; text-align: left; border: 1px solid var(--line, #342547); border-radius: 12px; background: var(--surface, #1b1428); }
.account-shortcut:hover { background: var(--surface-hover, #342448); }
.account-shortcut-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: var(--accent, #b28aff); background: var(--accent-soft, #a46df016); }
.account-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.account-shortcut b, .account-shortcut small { display: block; }
.account-shortcut b { font-size: 13px; font-weight: 550; }
.account-shortcut small { color: var(--muted, #a196b5); font-size: 11px; margin-top: 6px; line-height: 1.4; }
.account-shortcut > .account-icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--muted, #a196b5); }
.account-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-stat { padding: 23px; min-width: 0; background: var(--surface, #1b1428); border: 1px solid var(--line, #342547); border-radius: 13px; }
.account-stat-main { grid-column: 1 / -1; background: linear-gradient(115deg, var(--accent-soft, #a46df016), transparent), var(--surface, #1b1428); }
.account-stat > span { display: block; font-size: 12px; color: var(--muted, #a196b5); margin-bottom: 14px; }
.account-stat strong { display: flex; align-items: baseline; gap: 6px; font-size: 32px; line-height: 1.4; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-stat-main strong { display: block; font-size: clamp(22px, 3vw, 32px); }
.account-stat small { font-size: 12px; font-weight: 400; color: var(--muted, #a196b5); }
.account-section { margin-top: 31px; }
.account-author { display: flex; align-items: center; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line, #342547); }
.account-author:last-child { border-bottom: 0; }
.account-author-rank { width: 22px; text-align: center; color: var(--accent, #b28aff); font-size: 17px; font-variant-numeric: tabular-nums; }
.account-author > div { flex: 1; min-width: 0; }
.account-author-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.account-author-line b { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.account-author-line span { font-size: 11px; color: var(--muted, #a196b5); white-space: nowrap; }
.account-author small { display: block; color: var(--muted, #a196b5); font-size: 10px; margin-top: 5px; }
.account-author-meter { height: 3px; background: var(--surface-raised, #251b35); border-radius: 5px; overflow: hidden; margin-top: 12px; }
.account-author-meter span { height: 100%; display: block; background: var(--accent, #b28aff); border-radius: inherit; }
.account-invite { padding: 24px; border: 1px solid var(--line, #342547); border-radius: 15px; background: linear-gradient(135deg, var(--accent-soft, #a46df016), transparent 65%), var(--surface, #1b1428); }
.account-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(24px, 3.5vw, 33px); font-weight: 550; letter-spacing: .07em; padding: 15px 0 32px; overflow-wrap: anywhere; }
.account-invite-footer, .account-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-invite-footer > span, .account-form-footer > span { color: var(--muted, #a196b5); font-size: 12px; }
.account-invite-footer b { color: var(--text, #efe8ff); font-weight: 550; }
.account-field { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--muted, #a196b5); }
.account-field input { width: 100%; min-width: 0; padding: 13px 15px; color: var(--text, #efe8ff); background: var(--surface, #1b1428); border: 1px solid var(--line, #342547); border-radius: 10px; font-size: 15px; line-height: 1.5; }
.account-field input::placeholder { color: var(--muted, #a196b5); }
.account-form-footer { margin-top: 14px; }
.account-inline-status { display: flex; align-items: center; gap: 10px; color: var(--accent, #b28aff); font-size: 13px; padding: 13px 0; }
.account-ledger-summary { display: flex; align-items: baseline; gap: 14px; margin-bottom: 25px; }
.account-ledger-summary span { font-size: 13px; color: var(--muted, #a196b5); }
.account-ledger-summary strong { font-size: 28px; font-weight: 550; font-variant-numeric: tabular-nums; }
.account-ledger-row { display: flex; align-items: center; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line, #342547); }
.account-ledger-icon { display: grid; place-items: center; background: var(--accent-soft, #a46df016); width: 40px; height: 40px; border-radius: 12px; color: var(--accent, #b28aff); flex-shrink: 0; }
.account-ledger-row > div { flex: 1; min-width: 0; }
.account-ledger-row b { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.account-ledger-row time { display: block; margin-top: 7px; font-size: 11px; color: var(--muted, #a196b5); }
.account-ledger-row > strong { font-size: 18px; font-weight: 550; font-variant-numeric: tabular-nums; }
.account-ledger-row > .is-positive { color: var(--accent, #b28aff); }
.account-settings { border-top: 1px solid var(--line, #342547); }
.account-setting { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line, #342547); }
.account-setting h2 { font-size: 15px; font-weight: 550; }
.account-setting p { font-size: 12px; color: var(--muted, #a196b5); margin-top: 7px; }
.account-segments { display: flex; padding: 4px; background: var(--surface, #1b1428); border: 1px solid var(--line, #342547); border-radius: 11px; }
.account-segments .account-button { min-height: 38px; border-color: transparent; background: transparent; color: var(--muted, #a196b5); font-size: 12px; padding: 8px 14px; border-radius: 7px; }
.account-segments .is-selected { color: var(--text, #efe8ff); background: var(--surface-hover, #342448); box-shadow: 0 2px 7px #0002; }
.account-switch { padding: 3px; width: 48px; min-height: 29px; height: 29px; border-radius: 20px; position: relative; background: var(--surface-raised, #251b35); }
.account-switch::before { content: ''; position: absolute; inset: -8px -4px; }
.account-switch > span { width: 21px; height: 21px; border-radius: 50%; background: var(--muted, #a196b5); position: absolute; left: 3px; top: 3px; transition: transform .18s; }
.account-switch.is-selected { background: var(--accent, #b28aff); border-color: var(--accent, #b28aff); }
.account-switch.is-selected > span { transform: translateX(19px); background: #fff; }
.account-loading, .account-empty { padding: 46px 15px; text-align: center; color: var(--muted, #a196b5); font-size: 13px; line-height: 1.7; }
.account-empty > .account-icon { margin-bottom: 13px; width: 28px; height: 28px; opacity: .75; }
.account-retry { display: flex; margin: 0 auto; }
.account-dialog { width: min(460px, calc(100vw - 30px)); padding: 24px; color: var(--text, #efe8ff); background: var(--surface, #1b1428); border-color: var(--line, #342547); }
.account-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.account-dialog-heading h2 { font-size: 20px; font-weight: 600; }
.account-dialog .account-field input { font-size: 13px; }
@media (max-width: 760px) {
  #account-panel { padding-top: 14px; }
  .account-heading { margin-bottom: 25px; }
  .account-heading h1 { font-size: 27px; }
  .account-balance { padding-bottom: 25px; }
  .account-balance strong { font-size: 43px; }
  .account-checkin { padding: 20px 14px 15px; }
  .account-section-heading { gap: 10px; margin-bottom: 18px; }
  .account-days { gap: 5px; margin-bottom: 18px; }
  .account-days li { padding: 12px 1px 10px; gap: 11px; border-radius: 8px; }
  .account-days li > span { font-size: 9px; }
  .account-days li > b { font-size: 15px; }
  .account-days li > small { font-size: 9px; }
  .account-shortcuts { gap: 12px; }
  .account-shortcut { flex-wrap: wrap; padding: 15px; gap: 12px; }
  .account-shortcut > span:nth-child(2) { flex: 1 0 calc(100% - 32px); order: 2; }
  .account-shortcut > .account-icon { margin-left: auto; }
  .account-stat { padding: 20px 18px; }
  .account-stat strong { font-size: 29px; }
  .account-stat-main strong { font-size: 25px; }
  .account-invite { padding: 21px 18px; }
  .account-code { padding: 16px 0 29px; font-size: 26px; letter-spacing: .04em; }
  .account-invite-footer { gap: 12px; }
  .account-invite-footer > .account-button { padding: 10px 12px; font-size: 12px; }
  .account-invite-footer > span { font-size: 11px; }
  .account-setting { flex-wrap: wrap; gap: 18px; padding: 24px 0; }
  .account-setting:has(.account-segments) > div:first-child { flex: 1 0 100%; }
  .account-segments { width: 100%; }
  .account-segments .account-button { flex: 1; min-height: 41px; }
  .account-setting h2 { font-size: 14px; }
  .account-dialog { padding: 20px; }
}
