:root {
    color-scheme: light;
    --ink: #282126;
    --muted: #665c62;
    --brand: #732b49;
    --line: #e5d9d7;
    --surface: #fffdf9;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f0ea; color: var(--ink); font: 16px/1.5 'Segoe UI', Arial, sans-serif; }
a { color: var(--brand); font-weight: 650; }
a:focus-visible, input:focus-visible { outline: 3px solid #ad6586; outline-offset: 3px; }
h1, h2, p { margin: 0 0 12px; }
h1 { line-height: 1.16; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
h2 { font-size: 19px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; margin: 0; }
.franchise-logo { flex: 0 0 52px; width: 52px; height: 46px; border-radius: 9px; object-fit: cover; }
.franchise-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 420px); padding: clamp(20px, 5vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.login-card .brand { margin-bottom: 24px; }
.login-card > p:not(.brand), .dashboard > p { color: var(--muted); }
.login-card label { display: block; font-weight: 650; margin-top: 10px; }
.login-card input:not([type='submit']) { display: block; width: 100%; min-height: 42px; margin: 4px 0 15px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.franchise-button { padding: 9px 14px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: white; font: 650 15px 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.franchise-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px clamp(16px, 5vw, 54px); background: #34212b; color: white; }
.dashboard { max-width: 1120px; margin: auto; padding: 24px clamp(14px, 4vw, 34px); }
.summary-card, .history-card { margin-top: 18px; padding: clamp(14px, 3vw, 23px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-card { background: #f1dfe4; }
.summary-card strong { font-size: clamp(24px, 5vw, 38px); line-height: 1.15; color: var(--brand); }
.table-scroll { overflow: auto; }
.income-table { width: 100%; border-collapse: collapse; }
.income-table th, .income-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.income-table th { background: #f5ecef; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 14px; }
.pager:empty, p[role='status']:empty { display: none; }
