:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.income-shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: #3159a6; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: 1.25rem; }
.subtitle, .muted, .privacy-note { color: #667085; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
button, .actions a, .login-required a { border: 0; border-radius: 10px; padding: 11px 15px; background: #174ea6; color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.actions a { background: white; color: #24314d; border: 1px solid #d8dfeb; }
.status { border-radius: 999px; padding: 8px 12px; background: #eef2f7; color: #566177; font-size: .86rem; font-weight: 800; }
.status[data-tone="success"] { color: #087443; background: #e8f7ef; }
.status[data-tone="warning"] { color: #9a5311; background: #fff3dd; }
.status[data-tone="error"] { color: #a52b2b; background: #ffeded; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-grid article, .panel, .login-required { border: 1px solid #dfe5ee; border-radius: 16px; background: white; box-shadow: 0 8px 28px rgba(32, 50, 86, .06); }
.metric-grid article { padding: 20px; min-height: 132px; }
.metric-grid span, .metric-grid small { display: block; color: #69758a; }
.metric-grid strong { display: block; margin: 12px 0 6px; font-size: clamp(1.35rem, 2vw, 2rem); }
.metric-grid small { font-size: .78rem; }
.panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid #e2e7ef; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 1390px; }
th, td { padding: 15px 14px; border-bottom: 1px solid #e6eaf0; text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
th { color: #667085; background: #f8fafc; font-size: .78rem; letter-spacing: .035em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.provider { display: flex; flex-direction: column; gap: 3px; }
.provider small { color: #778299; }
.last-fetch { color: #667085; font-size: .84rem; }
.provider-status { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 9px; background: #eef2f7; color: #566177; font-size: .8rem; font-weight: 800; }
.provider-status[data-tone="success"] { color: #087443; background: #e8f7ef; }
.provider-status[data-tone="warning"] { color: #9a5311; background: #fff3dd; }
.provider-status[data-tone="error"] { color: #a52b2b; background: #ffeded; }
.connection-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.connection-detail { max-width: 270px; color: #778299; font-size: .76rem; line-height: 1.35; white-space: normal; }
.row-action { padding: 8px 11px; border-radius: 8px; font-size: .78rem; white-space: nowrap; }
.row-action:disabled { cursor: wait; opacity: .62; }
.manual-label { color: #667085; font-size: .78rem; white-space: normal; }
.privacy-note { margin: 16px 2px 0; font-size: .84rem; line-height: 1.55; }
.login-required { max-width: 620px; padding: 30px; margin: 12vh auto; text-align: center; }
.login-required strong { font-size: 1.5rem; }
.login-required p { margin-bottom: 24px; color: #667085; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .income-shell { width: min(100% - 20px, 1480px); padding-top: 18px; } .topbar, .panel-heading { flex-direction: column; align-items: stretch; } .actions { justify-content: flex-start; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .panel { padding: 14px; } }
@media (max-width: 440px) { .metric-grid { grid-template-columns: 1fr; } }
