:root{--surface:#fff;--surface-alt:#f5f1f3;--primary:var(--brand-primary,#b81750);--background:var(--brand-background,#fcf8f6)}
:root[data-theme="dark"]{color-scheme:dark;--primary:#ff82ae;--accent:#ff96ba;--gold:#dbc183;--background:#151a22;--surface:#202630;--surface-alt:#29313d;--ink:#f0eef3;--muted:#b4b9c5;--line:#3b4350;--pink:#382936}
[data-theme="dark"] body{background:var(--background);color:var(--ink)}
[data-theme="dark"] :is(.sidebar,.card,.stat,.finance-filters,.finance-metric,.finance-report-card,.report-preview,.reservation-modal,button,input,select,textarea,.skip:focus){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .nav button{background:transparent}[data-theme="dark"] .nav button.active,[data-theme="dark"] button:hover{background:var(--pink);color:var(--primary)}
[data-theme="dark"] button.primary,[data-theme="dark"] .finance-download{background:#ab2357;border-color:#c63e72;color:#fff}
[data-theme="dark"] .brand{background:#fff;padding:6px}[data-theme="dark"] :is(.hero,.login-story){background:linear-gradient(125deg,#392a38,#2d3033);border-color:var(--line)}
[data-theme="dark"] :is(.tag,.bubble.mine){background:var(--pink);color:#ffb2ce}[data-theme="dark"] .tag.gold,[data-theme="dark"] .notice{background:#393325;color:#e6cd96;border-color:#665631}
[data-theme="dark"] :is(.finance-heading p,.finance-metric>span,.finance-metric>small,.finance-filters label,.finance-page td small,.ledger-filter,.channel-legend>span){color:var(--muted)}
[data-theme="dark"] :is(.finance-metric>strong,.ledger-amount){color:var(--ink)}[data-theme="dark"] .ledger-amount.positive{color:#88d9b8}
[data-theme="dark"] :is(.finance-page th,.bubble,.date-icon){background:var(--surface-alt);color:var(--muted)}[data-theme="dark"] :is(.finance-page td,.finance-page th,.reservation-fact,.reservation-modal-head,.reservation-modal-footer,.reservation-date){border-color:var(--line)}
[data-theme="dark"] :is(.finance-review,.finance-unavailable){background:#393325;border-color:#665631;color:#ebd5a9}
[data-theme="dark"] .finance-status{background:#354050;color:#d9e1ee}[data-theme="dark"] .finance-status.confirmed{background:#233e35;color:#9ee7c2}[data-theme="dark"] .finance-status.pending{background:#453b25;color:#f4d992}[data-theme="dark"] .finance-status.review,[data-theme="dark"] .error{background:#442a30;border-color:#74424f;color:#ffb9bd}
[data-theme="dark"] .metric-icon{background:#254436;color:#a0ddba}[data-theme="dark"] .forecast .metric-icon{background:#293d58;color:#b0d2ff}[data-theme="dark"] .expense .metric-icon{background:#4e293b;color:#ffb2d2}[data-theme="dark"] .pending .metric-icon{background:#453a24;color:#edce8b}
[data-theme="dark"] .owner-property-art{background:linear-gradient(135deg,#493941,#343d4c)}[data-theme="dark"] .owner-property-art.art-1{background:linear-gradient(135deg,#2b463c,#36443c)}[data-theme="dark"] .owner-property-art.art-2{background:linear-gradient(135deg,#303f57,#46394d)}[data-theme="dark"] .property-line-art{color:#d7c6cd}
[data-theme="dark"] :is(.official-report,.reservation-status){color:#ffadd0}[data-theme="dark"] :is(.reservation-date strong,.calendar-page){color:var(--ink)}[data-theme="dark"] :is(.reservation-date span,.reservation-date small,.reservation-fact dt){color:var(--muted)}
[data-theme="dark"] :is(.schedule-scroll,.schedule-head,.property-head,.property-group,.property-cell,.schedule-group,.date-cell){background:var(--surface);color:var(--ink);border-color:var(--line)}[data-theme="dark"] :is(.property-head,.property-group,.property-cell){border-right-color:var(--background)}
[data-theme="dark"] :is(.track-day.weekend,.date-cell.weekend){background:#303745}[data-theme="dark"] .track-day{border-color:var(--line)}[data-theme="dark"] :is(.date-cell.selected-day,.track-day.selected-day){background:#49323c;border-color:#ed93a9}[data-theme="dark"] .date-cell span{color:var(--muted)}[data-theme="dark"] .date-cell.weekend span{color:#ffb4a3}[data-theme="dark"] .property-photo.placeholder{background:var(--surface-alt);color:var(--muted);border-color:var(--line)}
[data-theme="dark"] .notification-prompt{background:var(--surface);border-color:var(--line)}[data-theme="dark"] .channel-legend img[alt="Booking.com"],[data-theme="dark"] .upcoming-channel img[alt="Booking.com"]{filter:brightness(0) invert(1)}
[data-theme="dark"] :focus-visible{outline-color:#ffd38b}[data-theme="dark"] #toast{background:#f0eef3;color:#202630}
[data-theme="dark"] .nav button{border-color:transparent}[data-theme="dark"] .notification-prompt button.primary{background:#ab2357;color:white;border-color:#c63e72}[data-theme="dark"] .tag.gold{color:#efdaa7}
[data-theme="dark"] :is(.upcoming-channel,.channel-legend,.reservation-partner) img:is([alt="Airbnb"],[alt="Expedia"],[alt="Booking.com"]){filter:brightness(0) invert(1)}
[data-theme="dark"] .brand{content:url('/logo-dark.png');background:transparent;padding:0;border-radius:0}[data-theme="dark"] .payout-card{background:linear-gradient(135deg,#2b4953,#1c303b);border-color:#516770}[data-theme="dark"] .payout-card button{background:#ffffff0b;color:white;border-color:#ffffff36}[data-theme="dark"] .finance-track{background:#37414c}
