:root { --ink: #172a3a; --muted: #587080; --paper: #f6f1e8; --surface: #fffdf8; --accent: #087e8b; --line: #d4dcd7; --warning: #b54708; --good: #1a7a46; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(130deg, #d9e9e2 0%, var(--paper) 48%, #f0ddc8 100%); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; }
button, input { font: inherit; }
.page-shell { width: min(1600px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0; }
.login-wall { display: grid; min-height: 100vh; place-items: center; padding: 32px; background: linear-gradient(135deg, #123a42 0%, #087e8b 48%, #d88b4e 100%); }
.panel, .dashboard { background: color-mix(in srgb, var(--surface) 94%, white); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(23, 42, 58, .12); }
.login-panel { width: min(460px, 100%); margin: 0; padding: 48px; box-shadow: 0 28px 70px rgba(0, 0, 0, .25); }
.login-intro { margin: -18px 0 28px; color: var(--muted); font: 14px/1.5 Verdana, sans-serif; }
.eyebrow { margin: 0; color: var(--accent); font: 700 12px/1.2 Verdana, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
h1 { margin: 8px 0 32px; font-size: 42px; font-weight: 600; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font: 700 13px/1.2 Verdana, sans-serif; }
input { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; color: var(--ink); background: white; }
button { border: 0; border-radius: 3px; padding: 12px 17px; color: white; background: var(--accent); cursor: pointer; font: 700 14px/1 Verdana, sans-serif; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.compact-action { margin: 0 4px 0 0; padding: 7px 9px; font-size: 11px; }
.error { min-height: 18px; margin: 0; color: var(--warning); font: 13px/1.3 Verdana, sans-serif; }
.dashboard { display: flex; flex-direction: column; padding: 40px; }
.dashboard-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.dashboard-header h1 { margin-bottom: 24px; }
.user-email { margin: 18px 0 28px; color: var(--muted); font: 13px Verdana, sans-serif; }
.dashboard-tabs { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.dashboard-tab { color: var(--muted); background: transparent; border-radius: 0; padding: 12px 16px; }
.dashboard-tab.is-active { color: var(--ink); background: #eef5f2; box-shadow: inset 0 -3px 0 var(--accent); }
.dashboard-view[hidden] { display: none; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.summary-grid article { min-height: 130px; padding: 20px; background: #eef5f2; border-left: 4px solid var(--accent); }
.summary-grid p { margin: 0; color: var(--muted); font: 12px/1.3 Verdana, sans-serif; }
.summary-grid strong { display: block; margin-top: 22px; font-size: 34px; font-weight: 500; }
.performance-section { margin-top: 28px; padding: 28px; background: #fffdf8; border: 1px solid var(--line); }
.performance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.performance-grid article { padding: 18px; background: #eef5f2; border-top: 3px solid var(--accent); }
.performance-grid p, .performance-grid small { display: block; margin: 0; color: var(--muted); font: 12px/1.35 Verdana, sans-serif; }
.performance-grid strong { display: block; margin: 14px 0 6px; font-size: 29px; font-weight: 500; }
.chart-wrap { margin-top: 14px; padding: 14px; border: 1px solid var(--line); overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; min-width: 720px; height: auto; }
.chart-series { display: flex; flex-wrap: wrap; gap: 14px; }
.chart-series label { display: flex; width: auto; align-items: center; gap: 6px; }
.chart-series input { width: auto; }
.empty-state { margin-top: 28px; padding: 28px; background: #faf0e5; border: 1px solid #ecd7c0; }
.empty-state h2 { margin: 0 0 9px; font-size: 22px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { margin-top: 20px; }
.source-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.source-status div { min-height: 110px; padding: 20px; background: var(--surface); }
.source-status p, .source-status small { display: block; margin: 0; color: var(--muted); font: 12px/1.4 Verdana, sans-serif; }
.source-status strong { display: block; margin: 13px 0 6px; font: 600 18px Georgia, 'Times New Roman', serif; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.connection-status { min-height: 18px; margin-top: 14px !important; font: 13px/1.3 Verdana, sans-serif; }
.quickbooks-section { margin-top: 28px; padding: 28px; background: #f1f5eb; border: 1px solid #d7dfcb; }
.quickbooks-workspace { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(500px, 1.4fr); gap: 20px; align-items: start; }
.quickbooks-workspace .quickbooks-detail, .quickbooks-workspace .quickbooks-analysis, .quickbooks-workspace .quickbooks-import, .quickbooks-workspace .quickbooks-map { margin-top: 0; }
.quickbooks-detail { grid-column: 1; grid-row: 1; }
.quickbooks-analysis { grid-column: 2; grid-row: 1 / span 2; }
.quickbooks-import { grid-column: 1; grid-row: 2; }
.quickbooks-map { grid-column: 1 / -1; }
.import-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.import-form input[type="file"] { max-width: 360px; padding: 8px; font: 13px Verdana, sans-serif; }
.mapping-section { margin-top: 28px; padding: 28px; border: 1px solid #d7d6c5; background: #f8f7ef; }
.mapping-table { max-height: 440px; overflow-y: auto; }
.mapping-table td:last-child { width: 280px; }
.mapping-table select { width: 100%; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); padding: 6px; }
.advanced-map summary { cursor: pointer; color: var(--accent); font: 700 14px Verdana, sans-serif; }
.advanced-map > p { max-width: 760px; color: var(--muted); font: 13px/1.45 Verdana, sans-serif; }
.interactive-row { cursor: pointer; }
.interactive-row:hover td { background: #eef5f2; }
.transaction-detail-row td { padding: 12px 16px; background: #fbfaf4; }
.mover-bad { color: var(--warning); font-weight: 700; }
.mover-good { color: var(--good); font-weight: 700; }
.inline-checkbox { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0; color: var(--muted); font: 13px Verdana, sans-serif; }
.inline-checkbox input { width: auto; }
.stale-row td { color: var(--muted); }
.nested-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nested-table th { text-align: left; padding: 4px 8px; }
.nested-table td { padding: 4px 8px; border-top: 1px solid var(--line); }
.analysis-controls { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.analysis-controls label { width: min(220px, 100%); }
.analysis-controls select { width: 100%; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); padding: 8px; }
.rates-section { margin-top: 28px; padding: 28px; border: 1px solid #d7dfcb; background: #f8f5ee; }
.rate-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px; }
.rate-form button { width: max-content; }
.detail-actions { margin-top: 14px; }
.forecast-section { margin-top: 28px; padding: 28px; border: 1px solid #cbdde0; background: #eef6f6; }
.waterfall-section { margin-top: 28px; padding: 28px; border: 1px solid #d9c8b8; background: #f6eee6; }
.waterfall-period { margin: -4px 0 16px; color: var(--muted); font: 13px/1.3 Verdana, sans-serif; }
.waterfall-note { max-width: 850px; margin: 16px 0 0; color: var(--muted); font: 13px/1.45 Verdana, sans-serif; }
.period-picker { padding: 16px 18px; margin: 4px 0 20px; background: #fffaf4; border: 1px solid #e6d5c2; }
.period-picker .rate-form { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.period-picker .waterfall-period { margin: 12px 0 0; }
.waterfall-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.waterfall-summary article { padding: 16px; background: #fffaf4; border-top: 3px solid var(--warning); }
.waterfall-summary p, .waterfall-summary small { display: block; margin: 0; color: var(--muted); font: 12px/1.4 Verdana, sans-serif; }
.waterfall-summary strong { display: block; margin: 12px 0 5px; font-size: 25px; font-weight: 500; }
.waterfall-summary .allocation-total { background: #f0e1d2; }
.waterfall-summary .cash-after-capex { background: #e4eff0; border-top-color: #365b86; }
.owner-allocation-grid { display: grid; grid-template-columns: 79fr 21fr; gap: 14px; margin-top: 16px; }
.owner-allocation { padding: 24px; color: #fff; background: #087e8b; }
.owner-allocation.owner-two { background: #365b86; }
.owner-allocation p, .owner-allocation span, .owner-allocation dt { margin: 0; opacity: .82; font: 12px/1.4 Verdana, sans-serif; }
.owner-allocation strong { display: block; margin: 14px 0 3px; font-size: 36px; font-weight: 500; }
.owner-allocation dl { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .3); }
.owner-allocation dl div { display: flex; justify-content: space-between; gap: 16px; }
.owner-allocation dd { margin: 0; font: 700 15px Verdana, sans-serif; }
.tax-reserve-panel { margin-top: 20px; padding: 22px 24px; background: #fbe9d9; border: 1px solid #e6c39a; border-left: 4px solid var(--warning); }
.tax-reserve-panel .section-heading h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tax-reserve-panel .section-heading p { color: var(--warning); }
.tax-reserve-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tax-reserve-grid article { padding: 14px 16px; background: #fffaf4; border-top: 3px solid var(--warning); }
.tax-reserve-grid p { margin: 0; color: var(--muted); font: 12px/1.4 Verdana, sans-serif; }
.tax-reserve-grid strong { display: block; margin-top: 10px; font-size: 22px; font-weight: 500; }
.tax-reserve-grid .owner-one { border-top-color: #087e8b; }
.tax-reserve-grid .owner-two { border-top-color: #365b86; }
.empty-analysis-note { margin: 0; padding: 20px; color: var(--muted); background: #f1eee2; border: 1px dashed var(--line); }
.recurring-overdue { background: #fbe9d9; }
.recurring-overdue td { color: var(--warning); }
.security-note { margin-top: 20px; max-width: 720px; padding: 18px; border-left: 3px solid var(--warning); background: #fffaf4; }
.security-note h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.security-note p { margin: 0; color: var(--muted); font: 13px/1.45 Verdana, sans-serif; }
.room-forecast-details { margin-top: 18px; }
.room-forecast-details summary { cursor: pointer; color: var(--accent); font: 700 13px Verdana, sans-serif; }
.room-forecast-details h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 500; }
.transaction-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 22px; font-weight: 500; }
.section-heading p { margin: 0; color: var(--muted); font: 12px Verdana, sans-serif; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font: 13px/1.4 Verdana, sans-serif; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); background: #eef5f2; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th { background: #eef5f2; border-top: 2px solid var(--line); }
.amount { text-align: right; font-variant-numeric: tabular-nums; }
.report-highlight td { font-weight: 700; background: color-mix(in srgb, var(--accent) 6%, transparent); }
@media print {
    body * { visibility: hidden; }
    #monthly-report-section, #monthly-report-section * { visibility: visible; }
    #monthly-report-section { position: absolute; inset: 0; padding: 32px; }
    #monthly-report-section button, #monthly-report-section .no-print { display: none; }
}
@media (max-width: 1100px) { .quickbooks-workspace { grid-template-columns: 1fr; } .quickbooks-detail, .quickbooks-analysis, .quickbooks-import, .quickbooks-map { grid-column: auto; grid-row: auto; } }
@media (max-width: 960px) { .page-shell { width: min(100% - 32px, 960px); padding: 32px 0; } .login-panel, .dashboard { padding: 28px; } .performance-grid, .rate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .waterfall-summary, .tax-reserve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .page-shell { width: calc(100% - 24px); padding-top: 20px; } .login-wall { padding: 20px; } .login-panel, .dashboard { padding: 20px; } .summary-grid, .performance-grid, .rate-form, .waterfall-summary, .owner-allocation-grid, .source-status, .tax-reserve-grid { grid-template-columns: 1fr; } .dashboard-header { align-items: center; } .dashboard-tabs { overflow-x: auto; } h1 { font-size: 34px; } }