:root{color-scheme:light;--ink:#172d47;--muted:#66768a;--blue:#285f9c;--teal:#13818a;--line:#e3e9f0;--canvas:#f4f6fa;--soft:#edf2f8;--focus:#2665a5}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,input,select{border-radius:7px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #78b3e4;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.7px;line-height:1.2}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:16px;letter-spacing:-.15px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.5px;margin-bottom:5px}.dashboard{max-width:1480px;margin:auto;padding:0 38px 40px}.masthead{display:flex;justify-content:space-between;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.brand,.account,.freshness{display:flex;align-items:center;gap:17px}.brand img{object-fit:contain}.brand-divider{height:40px;width:1px;background:#d7dfe8}.account{gap:14px}.account>span{font-weight:600}.quiet{background:transparent;color:#3c5b7c;border:1px solid #d7e0ea;padding:8px 12px}.quiet:hover{background:#eaf0f7}.intro{display:flex;justify-content:space-between;align-items:center;margin:30px 0 22px;gap:16px}.intro .muted{margin-top:3px}.freshness{gap:9px}.freshness strong{font-weight:600;font-size:12px;display:block}.freshness #refresh-time{display:block;color:var(--muted);font-size:11px;margin-top:2px}.freshness button{margin-left:8px}.dot{width:8px;height:8px;flex:none;border-radius:50%;background:#aab7c5}.dot.live{background:#178278}.dot.stale{background:#b97c20}.filter-panel{background:white;padding:18px 20px;border:1px solid var(--line);border-radius:10px}.quick-ranges{display:flex;gap:6px;margin-bottom:18px}.preset{border:0;background:transparent;color:#62758b;padding:6px 11px;font-size:12px;font-weight:600}.preset.selected{background:#e8f0f9;color:#245b91}.preset:hover{background:var(--soft)}.filter-fields{display:flex;gap:14px;align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:650;color:#617388}input,select{height:40px;background:#fff;border:1px solid #d6e0eb;color:var(--ink);padding:8px 10px;min-width:150px}select{width:100%;max-width:100%}.filter-fields .wide{flex:1;min-width:180px}.primary{border:1px solid #24588e;color:white;background:#245b93;padding:9px 20px;font-weight:600;height:40px}.primary:hover{background:#1d4c7e}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.metrics article{background:white;border:1px solid var(--line);border-radius:9px;padding:20px 22px}.metrics article p{font-size:12px;font-weight:600;color:#526780;display:flex;align-items:center;gap:7px}.metrics article strong{display:block;font-size:35px;letter-spacing:-1.2px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.4;margin-top:3px}.metrics article strong.time{font-size:31px}.metrics article>span{display:block;font-size:11px;color:var(--muted);margin-top:2px}.legend{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}.inbound{background:var(--teal)}.outbound{background:var(--blue)}#metric-inbound{color:var(--teal)}#metric-outbound{color:var(--blue)}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:10px}.panel-head p{margin-top:3px}.chart-legend{display:flex;gap:12px;color:var(--muted);font-size:11px}.chart-legend span{display:flex;align-items:center;gap:5px}.bars{padding:0 22px 20px}.bar-row{display:grid;grid-template-columns:minmax(110px,1fr) 1.3fr 34px;align-items:center;gap:13px;margin:0 0 14px;width:100%;background:transparent;border:0;text-align:left;color:var(--ink);padding:3px 0}.bar-row:hover .bar-name{text-decoration:underline}.bar-name{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.bar-track{height:9px;background:#f1f4f8;border-radius:3px;overflow:hidden;display:flex}.bar-track span{height:100%;display:block}.bar-number{font-size:12px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums}.details-panel,.calls-panel{margin-top:20px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{padding:11px 22px;background:#f9fafc;color:#64768c;font-size:11px;font-weight:600;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}th button{padding:0;color:inherit;background:transparent;border:0;font-weight:600;white-space:nowrap}th button span{font-size:10px}td{padding:13px 22px;border-bottom:1px solid #edf1f6;vertical-align:top}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}tbody tr:last-child td{border-bottom:0}.drill-row{cursor:pointer}.drill-row:hover{background:#f2f7fc}.drill-row:focus-visible{outline:3px solid #78b3e4;outline-offset:-3px}tfoot td{font-weight:700;background:#f3f6fa;border-top:1px solid var(--line)}.call-direction{display:inline-block;border-radius:4px;padding:2px 7px;font-size:10px;font-weight:600;background:#e8f4f3;color:#117a80}.call-direction.out{background:#ebf1f9;color:#295f96}.calls-panel td{padding-top:11px;padding-bottom:11px}.pager{display:flex;gap:10px;align-items:center}.pager .quiet{padding:5px 9px}.empty{padding:26px 20px;color:var(--muted);text-align:center;font-size:13px}.report-message{background:#edf3fa;color:#42617e;border:1px solid #dce7f4;border-radius:7px;padding:12px 16px;margin-top:18px}.report-message.warning{background:#fff7e9;color:#876018;border-color:#f1dfb9}.report-footer{color:#758398;font-size:11px;margin:22px 3px;max-width:1050px}.report-footer p+p{margin-top:5px}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:30px}.auth-card{width:100%;max-width:420px;background:white;border:1px solid var(--line);border-radius:13px;padding:34px}.auth-logo{display:block;object-fit:contain;margin:0 auto 26px}.auth-card h1{font-size:27px;margin-bottom:10px}.auth-card .muted{margin-bottom:20px}.auth-card form{display:grid;gap:15px}.auth-card input{width:100%}.auth-card .full{width:100%;margin-top:7px}.auth-card>.small{margin:21px 0 0;text-align:center}.error{color:#b13a37;font-size:12px;min-height:18px}[hidden]{display:none!important}
/* CSS media preferences update live with the OS/browser setting, without JS or a saved override. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e5edf6; --muted: #a4b4c8; --blue: #84b3f4; --teal: #58c7c7;
    --line: #2a3b51; --canvas: #0d1521; --soft: #213149; --focus: #90c6ff;
    --surface: #152133; --control: #101b2b;
  }
  .filter-panel, .metrics article, .panel, .auth-card { background: var(--surface); }
  input, select { background: var(--control); border-color: #3a506b; }
  label, .metrics article p, .preset, .report-footer { color: var(--muted); }
  .quiet { color: #c1d7ef; border-color: #3a506b; }
  .quiet:hover { background: var(--soft); }
  .preset.selected { background: #253e5c; color: #c4ddff; }
  .brand-divider { background: var(--line); }
  .bar-track { background: #293a50; }
  th { background: #111c2d; color: #b3c4d8; }
  td { border-bottom-color: #25364c; }
  .drill-row:hover { background: #21344b; }
  tfoot td { background: #1c2c41; }
  .call-direction { background: #183c40; color: #8adee1; }
  .call-direction.out { background: #203b60; color: #b4d0ff; }
  .dot.live { background: #58c7b3; }
  .dot.stale { background: #e4b65f; }
  .report-message { background: #1d304b; color: #c4dafa; border-color: #365176; }
  .report-message.warning { background: #392d1c; color: #f1cd87; border-color: #715632; }
  .error { color: #ffaaaa; }
  button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible,
  .drill-row:focus-visible { outline-color: var(--focus); }
  /* Preserve the original CPL logo's colors and legibility on navy surfaces. */
  .brand img, .auth-logo { background: #fff; border-radius: 6px; padding: 4px; }
}
@media(min-width:1650px){.dashboard{padding-top:12px}}@media(max-width:1000px){.dashboard{padding:0 22px 25px}.filter-fields .wide{min-width:160px}.summary-grid{gap:14px}.metrics{gap:12px}.metrics article{padding:16px}.metrics article strong{font-size:30px}.metrics article strong.time{font-size:27px}.bar-row{grid-template-columns:1.1fr 1fr 25px}td,th{padding-left:16px;padding-right:16px}}@media(max-width:700px){.dashboard{padding:0 16px 22px}.masthead{padding:16px 0}.brand{gap:10px}.brand img{width:77px;height:43px}.brand-divider{height:32px}h1{font-size:21px}.brand .eyebrow{font-size:8px;letter-spacing:1px}.account{gap:7px;font-size:12px}.account .quiet{padding:6px 8px;font-size:11px}.intro{align-items:start;flex-direction:column;margin:23px 0 18px}.intro h2{font-size:23px}.freshness{width:100%}.freshness button{margin-left:auto}.filter-panel{padding:15px}.quick-ranges{gap:3px;flex-wrap:wrap}.preset{font-size:11px;padding:6px 9px}.filter-fields{gap:12px}.filter-fields label{width:calc(50% - 6px);min-width:0}.filter-fields .wide{min-width:0;width:calc(50% - 6px)}input{min-width:0;width:100%;max-width:100%}.apply{width:100%}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin:17px 0}.metrics article{padding:15px}.metrics article strong{font-size:30px}.metrics article>span{font-size:10px}.summary-grid{grid-template-columns:1fr}.panel-head{padding:17px}.bars{padding:0 17px 12px}.bar-row{grid-template-columns:minmax(120px,1.2fr) 1fr 28px}.details-panel,.calls-panel{margin-top:15px}.panel-head>.quiet{font-size:11px;padding:6px 9px}.table-scroll table{min-width:650px}.calls-panel .table-scroll table{min-width:950px}.auth-card{padding:25px}.report-footer{font-size:10px}.calls-panel .panel-head{align-items:start}.panel-head h3{font-size:15px}}
