.hidden { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 72% 15%, var(--brand-softer), transparent 28rem), #f8f8fb; }
.auth-card { width: min(430px, 100%); padding: 34px; border: 1px solid #e8e6ef; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(42,30,90,.12); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }.auth-brand span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-size: 19px; font-weight: 800; }.auth-brand strong { font-size: 24px; letter-spacing: -.07em; }
.auth-card h1 { margin: 9px 0 8px; font-size: 27px; letter-spacing: -.04em; }.auth-card > p { margin: 0 0 24px; color: #7f7d88; font-size: 12px; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: #f3f2f6; }.auth-tabs button { min-height: 35px; border: 0; border-radius: 8px; background: transparent; color: #85828d; font-size: 10px; font-weight: 700; }.auth-tabs button.selected { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(36,29,65,.08); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }.auth-form label { display: flex; flex-direction: column; gap: 7px; color: #74727d; font-size: 10px; font-weight: 700; }.auth-form input { width: 100%; padding: 13px; border: 1px solid #e5e3eb; border-radius: 11px; background: #fafafd; outline: 0; }.auth-form input:focus { border-color: var(--brand); }
.auth-form > small { display: block; color: #918e99; font-size: 9px; line-height: 1.5; text-align: center; }.auth-form > small strong { color: #625f69; }.fresh-account-note { color: #6c8a7d !important; }
.form-error { margin: -3px 0 0; padding: 9px 11px; border-radius: 9px; background: #fff0ef; color: #c64f49; font-size: 10px; }
.logout-button { border: 0; cursor: pointer; }
.user-identity { display: flex; align-items: center; gap: 9px; }.user-identity > span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f6c76; font-size: 9px; font-weight: 700; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; padding: 12px 16px; border-radius: 11px; background: #25222f; color: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 11px; }
.entry-row.loading-row { color: #9996a1; }
.theme-swatches button:not(.selected) i { display: none; }
.period-navigation { display: grid; grid-template-columns: minmax(0,1fr) 118px; align-items: center; gap: 12px; margin: -10px 0 22px; padding-bottom: 18px; border-bottom: 2px solid var(--brand-soft); }.months-strip { min-width: 0; display: grid; grid-template-columns: repeat(12,minmax(50px,1fr)); gap: 5px; padding: 5px; overflow-x: auto; border: 1px solid #e8e6ee; border-radius: 13px; background: #fff; scrollbar-width: thin; scrollbar-color: var(--brand-soft) transparent; }.months-strip button { min-width: 50px; height: 34px; padding: 0 7px; border: 0; border-radius: 9px; background: transparent; color: #85828e; font-size: 9px; font-weight: 750; text-transform: uppercase; }.months-strip button:hover { background: var(--brand-softer); color: var(--brand); }.months-strip button.selected { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(var(--brand-rgb),.22); }.year-select { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #e8e6ee; border-radius: 13px; background: #fff; }.year-select span { color: #9a97a1; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.year-select select { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #302e38; font-size: 11px; font-weight: 800; }
.balance-main #planned-balance { display: inline-flex; margin-top: 11px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.08); color: #eeeafd; font-size: 9px; font-weight: 700; }
.balance-adjust { display: inline-flex; margin-top: 11px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 9px; font-weight: 750; }.balance-adjust:hover { background: rgba(255,255,255,.2); }.balance-main #planned-balance { margin-left: 6px; }.balance-flow { grid-template-columns: 1fr 1fr; gap: 17px 22px; }.balance-flow > div { min-width: 0; }.balance-flow p { min-width: 0; }.balance-flow strong { overflow: hidden; text-overflow: ellipsis; }
.money-panel.income .entry-row { grid-template-columns: 25px minmax(0,1fr) auto 64px; }.money-panel.income .payment-toggle.selected { background: #e7f8f2; border-color: #9cdec9; color: #15966e; }
.pwa-install-button { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(var(--brand-rgb),.2); border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; font-weight: 750; white-space: nowrap; }.pwa-install-button span { font-size: 16px; line-height: 1; }.pwa-install-button:hover { border-color: var(--brand); transform: translateY(-1px); }
@media (max-width: 620px) { .pwa-install-button { width: 39px; padding: 0; justify-content: center; }.pwa-install-button b { display: none; } }
@media (max-width: 780px) { .period-navigation { grid-template-columns: minmax(0,1fr) 96px; margin-top: -10px; }.months-strip { display: flex; }.year-select { padding: 0 8px; } }
@media (max-width: 500px) { .money-panel.income .entry-actions button:first-child { display: none; }.money-panel.income .entry-row { grid-template-columns: 25px minmax(0,1fr) auto 29px; gap: 7px; }.balance-main #planned-balance { margin-left: 0; }.balance-adjust { margin-right: 5px; } }
@media (max-width: 500px) { .auth-card { padding: 25px; }.auth-card h1 { font-size: 24px; }.user-identity > span { display: none; }.user-identity .personal-avatar { display: grid; } }
