.account-page { width: 100%; max-width: 1160px; min-width: 0; padding-bottom: 22px; }
.auth-page { max-width: 720px; }
.auth-page .lookup-header { padding: 28px 30px 24px !important; }
.auth-card { width: min(calc(100% - 40px), 560px); margin: 20px auto 2px; padding: 22px 24px 24px; border: 1px solid rgba(216, 173, 87, .32); border-radius: 14px; background: rgba(24, 30, 36, .92); box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.account-form { display: grid; gap: 16px; }
.lookup-field { min-width: 0; }
.lookup-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-form .search-button { width: 100%; justify-self: stretch; margin-top: 2px; min-height: 46px; }
.account-loading { display: flex; align-items: center; gap: 8px; }
.account-loading .loader { width: 15px; height: 15px; border-width: 2px; }
.account-status { min-height: 20px; margin: 16px 0 0; color: var(--muted); line-height: 1.45; }
.account-status.is-loading { display: flex; align-items: center; gap: 8px; }
.account-status .loader { width: 15px; height: 15px; border-width: 2px; }
.account-status.ok { color: #b9f0df; }
.account-status.bad { color: #ffc6c6; }
.auth-switch { margin: 18px 0 0; color: var(--muted); line-height: 1.5; }
.auth-switch button, .favorite-item button { border: 0 !important; background: transparent !important; color: #f3c969 !important; cursor: pointer; font-weight: 800; box-shadow: none !important; }
.auth-switch button:hover, .favorite-item button:hover { color: #fff1c8 !important; text-decoration: underline; }
.account-header { position: relative; padding: 26px 28px 22px !important; }
.account-header .small-action { position: absolute; top: 22px; right: 24px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 20px 0; }
.account-panel { min-width: 0; padding: 18px; border-radius: 14px; background: rgba(24, 30, 36, .82); }
.account-page > .account-panel { margin: 20px 20px 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: #f3c969 !important; font-size: 18px !important; line-height: 1.2; }
.section-heading .text-note { margin: 6px 0 0; }
.compact-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.compact-form .search-button { grid-column: 1 / -1; }
.account-list { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid rgba(82, 91, 101, .55); }
.favorite-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 0; border-bottom: 1px solid rgba(82, 91, 101, .55); }
.favorite-item > div { min-width: 0; }
.favorite-item strong, .favorite-item span { display: block; overflow-wrap: anywhere; }
.favorite-item span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.account-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-metric { min-width: 0; padding: 13px; border: 1px solid rgba(82, 91, 101, .65); border-radius: 10px; background: rgba(16, 22, 26, .55); }
.account-metric span, .account-metric strong { display: block; }
.account-metric span { color: #91c9bc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.account-metric strong { margin-top: 5px; color: #f7d98d; font-size: 18px; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid rgba(82, 91, 101, .65); border-radius: 10px; background: rgba(12, 17, 21, .38); }
.account-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.account-table th, .account-table td { padding: 11px 12px; border-bottom: 1px solid rgba(82, 91, 101, .55); text-align: left; vertical-align: middle; line-height: 1.35; }
.account-table th { color: #91c9bc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.account-table th:not(:first-child), .account-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.account-table tbody tr:last-child td { border-bottom: 0; }
.empty-cell { color: var(--muted); text-align: center !important; }
.review-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.review-status.pending { border: 1px solid rgba(215, 170, 82, .45); color: #ffe6ad; }
.review-status.approved { border: 1px solid rgba(90, 140, 127, .5); color: #d8f1ea; }
.review-status.rejected { border: 1px solid rgba(220, 105, 105, .5); color: #ffc6c6; }
.monthly-heading { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(82, 91, 101, .45); }
@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; margin: 16px 14px 0; }
  .account-page > .account-panel { margin: 16px 14px 0; }
  .compact-form { grid-template-columns: 1fr; }
  .compact-form .search-button { grid-column: auto; }
  .auth-page .lookup-header, .account-header { padding: 22px 18px 20px !important; }
  .auth-card { width: calc(100% - 28px); margin-top: 14px; padding: 18px; }
  .account-panel { padding: 16px; }
  .account-header .small-action { position: static; margin-top: 12px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading > .tag, .section-heading > .small-action { align-self: flex-start; }
  .account-table { min-width: 680px; }
}
