html, body { height: 100%; }

/* ---------- 启动遮罩（不依赖 Vuetify） ---------- */
#boot { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: #f7f8fc; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.boot-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: 0 8px 30px rgba(20,24,50,.10); text-align: center; color: #1c1e28; }
.boot-spin { width: 30px; height: 30px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid #dfe2f5; border-top-color: #5865d8; animation: boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg) } }
#boot-title { font-size: 16px; font-weight: 700; }
#boot-sub { font-size: 13px; opacity: .6; margin-top: 8px; }
#boot .boot-error { text-align: left; }
#boot .boot-error h2 { font-size: 18px; margin: 0 0 8px; }
#boot .boot-error p { font-size: 13px; opacity: .68; margin: 0 0 14px; }
#boot .boot-error ol { margin: 0; padding-left: 20px; }
#boot .boot-error li { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
#boot .boot-error b { color: #5865d8; }
.boot-retry { display: block; width: 100%; margin-top: 16px; padding: 11px; border: 0; border-radius: 10px; background: #5865d8; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { #boot { background: #13141a } .boot-card { background: #1e2028; color: #eceef7 } }

/* ---------- 登录 / 注册 / 找回 ---------- */
.auth-bg { background: linear-gradient(145deg, #eef0fc 0%, #f7f8fc 45%, #eef4fb 100%) !important; }
.v-theme--dark .auth-bg { background: linear-gradient(145deg, #191b26 0%, #13141a 60%, #171c26 100%) !important; }
.auth-wrap { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 430px; padding: 26px 24px 28px !important; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--v-theme-primary)); color: rgb(var(--v-theme-on-primary)); flex: none; }
.auth-title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.auth-sub { font-size: 12px; opacity: .62; margin-top: 3px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(125,125,125,.09); margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; color: inherit; padding: 9px 4px; border-radius: 9px; font-size: 13px; font-weight: 600; opacity: .6; cursor: pointer; transition: .18s; }
.auth-tabs button.active { background: rgb(var(--v-theme-surface)); color: rgb(var(--v-theme-primary)); opacity: 1; box-shadow: 0 1px 5px rgba(20,24,50,.10); }
.auth-form .v-input { margin-bottom: 4px; }
.code-row { display: flex; gap: 10px; align-items: flex-start; }
.code-row .v-input { flex: 1; min-width: 0; }
.code-row .v-btn { height: 48px; flex: none; white-space: nowrap; padding: 0 12px; }
.auth-form > .v-btn { margin-top: 12px; }
.auth-link { text-align: center; font-size: 12.5px; opacity: .7; margin-top: 16px; }
.auth-link a { color: rgb(var(--v-theme-primary)); font-weight: 600; text-decoration: none; }
.dev-code { font-size: 17px; letter-spacing: 3px; }
.auth-foot { font-size: 11px; opacity: .6; text-align: center; margin-top: 18px; line-height: 1.7; max-width: 430px; }

/* ---------- 主应用 ---------- */
.page-bg { min-height: 100%; }
.main-container { padding-bottom: 104px !important; }
.brand { padding: 22px 18px 18px; display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: 12px; opacity: .62; margin-top: 3px; }
.drawer-stats { padding: 14px 18px; }
.drawer-stat-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.drawer-foot { padding: 14px 18px 18px; font-size: 11px; opacity: .55; line-height: 1.6; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-title { font-size: 21px; font-weight: 700; line-height: 1.3; }
.page-sub { font-size: 13px; opacity: .62; margin-top: 4px; }
.summary-card { height: 100%; }
.summary-label { font-size: 12px; opacity: .6; margin-bottom: 6px; }
.summary-value { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; }
.summary-sub { font-size: 11px; opacity: .55; margin-top: 5px; }
.toolbar-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 10px; }
.toolbar-row .v-input { min-width: 220px; max-width: 340px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.debt-card { height: 100%; display: flex; flex-direction: column; }
.debt-card.is-done { opacity: .78; }
.amount-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.caption { font-size: 11px; opacity: .6; margin-bottom: 3px; }
.big-amount { font-size: 25px; font-weight: 800; letter-spacing: -.6px; color: rgb(var(--v-theme-primary)); line-height: 1.2; white-space: nowrap; }
.sub-amount { font-size: 15px; font-weight: 600; }
.progress-line { margin: 18px 0 14px; }
.meta-row { padding-top: 4px; }
.meta-row > div > div:last-child { font-size: 13px; font-weight: 600; }
.note-line { margin-top: 12px; font-size: 12px; opacity: .65; }
.plan-wrap { padding: 4px 16px 16px; max-height: 320px; overflow: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.plan-table th, .plan-table td { padding: 7px 8px; border-bottom: 1px solid rgba(128,128,128,.18); text-align: left; white-space: nowrap; }
.plan-table th { opacity: .6; font-weight: 600; position: sticky; top: 0; background: rgb(var(--v-theme-surface)); z-index: 1; }
.plan-table tr.row-paid { opacity: .5; }
.plan-table tr.row-current { background: rgba(var(--v-theme-primary), .09); }
.empty-card { padding: 46px 20px; text-align: center; }
.fab-new { position: fixed; right: 24px; bottom: 24px; z-index: 900; }

@media (max-width: 600px) {
  .fab-new { right: 16px; bottom: 16px; }
  .page-title { font-size: 19px; }
  .summary-value { font-size: 17px; }
  .toolbar-row .v-input { max-width: none; width: 100%; }
  .auth-wrap { padding: 20px 12px; justify-content: flex-start; }
  .auth-card { padding: 22px 18px 24px !important; }
  .code-row .v-btn { padding: 0 8px; font-size: 12px; }
}
