/* Rules every dashboard page had copied word for word (audit 2026-11-17, item 15; 2026-11-18): the
   reset, header bar, cards, tiles and controls. Loaded just before each page's own <style>, so a page can
   still override any of it. Colours come from each page's :root variables, which still differ by page
   (planner and visits add series colours), so they stay in the pages. financials.html has its own design
   and doesn't load this. */
*{box-sizing:border-box} html,body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Poppins,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.hidden{display:none!important}
header.top{position:sticky;top:0;z-index:5;background:var(--dark);color:#fff;border-bottom:4px solid var(--lime);box-shadow:0 2px 6px rgba(0,0,0,.18)}
.topbar{display:flex;align-items:center;gap:14px;padding:10px 20px;flex-wrap:wrap}
.spacer{flex:1}
.sub{color:var(--muted);margin:0 0 14px}
.tile{background:var(--surface);border:1px solid var(--grid);border-radius:var(--radius);padding:12px 14px;box-shadow:var(--shadow)}
.tile .l{font-size:12px;color:var(--muted)} .tile .v{font-size:22px;font-weight:650;margin-top:2px;font-variant-numeric:tabular-nums} .tile .d{font-size:12px;color:var(--ink2);margin-top:2px}
.card{background:var(--surface);border:1px solid var(--grid);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}
.ctl{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0 12px}
.ctl label{font-size:12px;color:var(--ink2)}
.btn:disabled{opacity:.5;cursor:default}
.loading{color:var(--muted);padding:30px;text-align:center}
.brand img{filter:invert(1)}
