:root {
  /* Westcool Customer Portal look */
  --bg: #f4f6f8; --panel: #ffffff; --fg: #111111; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2f6fed; --accent-dark: #2559c9; --wa: #00AEEF; --brand: #009DD9;
  --ok: #1b7f45; --bad: #a1260a; --warn: #b45309;
  --grid: #eef0f3; --axis: #c3c8cf; --ref: #9aa1ab;
  --c1: #009DD9; --c2: #1f3b57; --c3: #2e9e6b; --c4: #e07a1f;
  --radius: 10px; --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: var(--font);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; display: grid; gap: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brandbar { display: flex; align-items: center; gap: 12px; }
.brandbar img { width: 46px; height: 46px; }
.brandname { font-size: 18px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.brandname .wa { color: var(--wa); }
.brandsub { font-size: 11px; letter-spacing: .14em; color: #8a8f98; text-transform: uppercase; margin-top: 2px; }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.who form { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); font-weight: 600; }
h2.title { font-weight: 700; font-size: 22px; margin: 0; }
.take { margin: 0; }
.take b { font-variant-numeric: tabular-nums; }
.note { margin: 0; color: var(--muted); font-size: 13px; }
.alert { background: var(--panel); border: 1px solid var(--bad); color: var(--bad); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.tile, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.tile { display: grid; gap: 4px; align-content: start; }
.tile h3, .card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cap { margin: 0; color: var(--muted); font-size: 13px; }
.big { margin: 0; font-weight: 700; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sub { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sub b { color: var(--fg); }
.up { color: var(--ok); } .down { color: var(--bad); } .over { color: var(--warn); } .neg { color: var(--bad); }
.spark { min-height: 40px; }
.card { display: grid; gap: 10px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toggle button { font: inherit; font-size: 13px; padding: 5px 12px; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--bg); color: var(--fg); font-weight: 600; }
.chart { position: relative; min-height: 300px; }
.bars { position: relative; min-height: 200px; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 6px 10px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip-date { color: var(--muted); margin-bottom: 2px; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
input[type=search], input[type=email], input[type=text] { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.tablebox { max-height: 34rem; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; border-bottom: 1px solid var(--line); padding: 0; }
th.num, td.num { text-align: right; }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 6px 8px; cursor: pointer; width: 100%; text-align: inherit; }
th.plain { padding: 6px 8px; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.track { position: relative; width: 5rem; height: 6px; background: var(--grid); border-radius: 3px; flex: none; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.mark { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ref); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin: 0; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link[hidden] { display: none; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; margin: 0; }
.figs dt { color: var(--muted); font-size: 13px; }
.figs dd { margin: 0; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); }
.signin { max-width: 400px; margin: 64px auto 24px; background: var(--panel); border-radius: var(--radius); padding: 36px; display: grid; gap: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.signin .brand { text-align: center; margin-bottom: 12px; }
.signin .brand img { width: 72px; height: 72px; display: block; margin: 0 auto 12px; }
.signin .brand .brandname { font-size: 20px; }
.signin h2 { font-size: 16px; margin: 0; }
.signin input { width: 100%; padding: 10px 12px; font-size: 15px; border-radius: 6px; border-color: #ccc; background: #fff; }
.signin .btn { width: 100%; padding: 11px; font-size: 15px; font-weight: 600; border-radius: 6px; }
.signin form { display: grid; gap: 10px; }
.btn { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn.plain { background: transparent; color: var(--fg); border-color: var(--line); font-size: 13px; padding: 4px 10px; }
.error { color: var(--bad); margin: 0; font-size: 14px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.months { display: grid; gap: 14px; }
.foot { text-align: center; padding-top: 18px; border-top: 1px solid var(--line); color: #aaa; }
.foot .built { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.foot img { height: 22px; opacity: .75; }
.foot .ver { font-size: 11px; margin-top: 6px; }
@media (max-width: 640px) { .narrow-hide { display: none; } .big { font-size: 28px; } }
