:root{--bg:#f3f6f8;--panel:#fff;--ink:#14202b;--muted:#64727f;--line:#d9e1e6;--brand:#134b67;--brand2:#1693a5;--accent:#e9f5f7;--warn:#fff7df}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}header{background:#0f2735;color:#fff;padding:8px 18px 7px;box-shadow:0 1px 7px #0002}.header-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:52px}.identity{min-width:280px;flex:1}.brandline{display:flex;align-items:center;gap:10px;line-height:1}.brand{font-size:13px;font-weight:800;letter-spacing:.35px}.area{background:#ffffff16;border:1px solid #ffffff2b;border-radius:999px;padding:4px 8px;font-size:10px;white-space:nowrap}.titleline{display:flex;align-items:baseline;gap:12px;margin-top:7px;min-width:0}.titleline h1{font-size:20px;line-height:1.05;margin:0;white-space:nowrap}.desc{color:#cbd9df;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:700px}.controls{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.controls-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.status{font-size:10.5px;color:#cfe5ee;min-height:13px}.refresh-indicator{display:none;background:#eaf5f7;border-bottom:1px solid #c8e0e5;padding:7px 18px 6px;color:#184456;font-size:11px;box-shadow:0 1px 3px #18384712}.refresh-indicator.active{display:block}.refresh-line{display:flex;align-items:center;gap:8px;min-height:17px}.refresh-spinner{width:14px;height:14px;border:2px solid #9ccbd3;border-top-color:var(--brand);border-radius:50%;animation:refreshSpin .8s linear infinite;flex:0 0 auto}.refresh-percent{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;color:#345e6c}.refresh-track{height:3px;background:#cfe5e9;border-radius:999px;overflow:hidden;margin-top:5px}.refresh-progress{height:100%;width:0;background:linear-gradient(90deg,var(--brand2),var(--brand));border-radius:999px;transition:width .18s ease}.data-refreshing #grid{position:relative}.data-refreshing .card{opacity:.58;filter:saturate(.75);transition:opacity .15s ease,filter .15s ease}.data-refreshing .card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.65) 50%,transparent 62%);transform:translateX(-120%);animation:refreshSweep 1.35s ease-in-out infinite}.data-refreshing .card{position:relative}.data-refreshing .filters{opacity:.72}.data-refreshing #refreshDataBtn{cursor:wait}.data-refreshing #templateSelect{cursor:wait}@keyframes refreshSpin{to{transform:rotate(360deg)}}@keyframes refreshSweep{to{transform:translateX(120%)}}.template-select,.connection-select{border-radius:7px;border:1px solid #ffffff35;padding:6px 8px;background:#fff;color:#14202b;font-size:11px;height:31px}.template-select{min-width:240px;max-width:330px}.connection-select{min-width:165px;max-width:230px}button,select{font:inherit}button{border:1px solid #ffffff38;background:#fff;color:#143244;border-radius:7px;padding:6px 9px;cursor:pointer;font-weight:650;font-size:11px;height:31px}button.secondary{background:transparent;color:#fff}.notice{margin:5px 18px 0;background:var(--warn);border:1px solid #ecd999;border-radius:7px;padding:6px 9px;font-size:10.5px;line-height:1.25}.filters{display:flex;gap:8px;flex-wrap:wrap;padding:7px 18px 1px}.filter{display:flex;flex-direction:column;gap:3px;font-size:10.5px;color:var(--muted)}.filter select,.filter input{min-width:155px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 8px;height:32px;font-size:11px}.date-pair{display:flex;gap:5px}.date-pair input{min-width:138px}.filter-context{font-size:10px;color:var(--muted);align-self:end;padding:0 2px 7px}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:8px 18px 20px}.card{grid-column:span 6;background:var(--panel);border:1px solid var(--line);border-radius:10px;min-height:300px;box-shadow:0 1px 5px #1b334408;overflow:hidden}.card.kpi{grid-column:span 3;min-height:125px}.card-head{padding:6px 10px 5px;border-bottom:1px solid #eef2f4;min-height:30px}.card h2{font-size:12.5px;margin:0}.card-subtitle{font-size:9.5px;color:var(--muted);font-weight:400;margin-left:7px}.single-result{height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.single-result .big{font-size:30px;font-weight:750}.single-result .small{font-size:11px;color:var(--muted);margin-top:5px}.presentation .consultant-only{display:none!important}.presentation header{padding-right:18px}.presentation footer{display:block;text-align:right;color:var(--muted);font-size:12px;padding:8px 20px 16px;border-top:1px solid var(--border);margin-top:6px}.kpi-delta{font-size:10px;margin-top:3px;color:var(--muted)}.kpi-delta strong{color:#205f4b}.viz{padding:7px 10px;height:calc(100% - 30px)}.kpi .viz{display:flex;flex-direction:column;justify-content:center}.kpi-value{font-size:28px;font-weight:750;letter-spacing:-.5px}.kpi-note{font-size:10px;color:var(--muted);margin-top:4px}.empty{height:220px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px;text-align:center;padding:18px}svg{width:100%;height:240px;overflow:visible}.bar{fill:var(--brand2);opacity:.88}.line1{stroke:var(--brand);stroke-width:3;fill:none}.line2{stroke:#c66a1b;stroke-width:3;fill:none}.dot1{fill:var(--brand)}.dot2{fill:#c66a1b}.chart-with-legend svg{height:216px}.chart-legend{display:flex;justify-content:center;align-items:center;gap:18px;min-height:24px;margin-top:1px;color:var(--muted);font-size:10.5px;line-height:1.2}.legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.legend-swatch{display:inline-block;width:18px;height:4px;border-radius:2px}.legend-swatch.line-primary{background:var(--brand)}.legend-swatch.bar-primary{background:var(--brand2)}.legend-swatch.secondary-series{background:#c66a1b}.axis{stroke:#c7d0d6;stroke-width:1}.svg-label{font-size:10px;fill:#677783}.svg-value{font-size:10px;fill:#263744}.table-wrap{height:245px;overflow:auto;border:1px solid #edf1f3;border-radius:7px}table{border-collapse:collapse;width:100%;font-size:10.5px}th{position:sticky;top:0;background:#eef4f6;text-align:left;padding:7px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:6px 7px;border-bottom:1px solid #eef2f4;white-space:nowrap}tbody tr:nth-child(even){background:#fafcfd}footer{padding:0 20px 20px;color:var(--muted);font-size:10px}@media(max-width:1180px){.header-row{align-items:flex-start;flex-direction:column}.controls{align-items:flex-start;width:100%}.controls-row{justify-content:flex-start}.desc{max-width:700px}.titleline h1{white-space:normal}}@media(max-width:1050px){.card,.card.kpi{grid-column:span 12}.grid{padding-left:12px;padding-right:12px}.notice{margin-left:12px;margin-right:12px}.filters{padding-left:12px;padding-right:12px}.titleline{align-items:flex-start;flex-direction:column;gap:4px}.desc{white-space:normal}.controls-row{width:100%}.template-select,.connection-select{max-width:100%;min-width:150px}}
.hosted-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px}.update-available{border:0;background:transparent;color:var(--brand2);height:auto;padding:0;font-size:12px;text-decoration:underline}.update-available[hidden]{display:none!important}


.hosted-footer a{color:inherit;text-decoration:none}.hosted-footer a:hover{text-decoration:underline}

/* v1.0.3: mutually exclusive period controls */
.period-filter select{min-width:210px}.period-summary{font-size:10px;color:var(--muted);padding:1px 2px 0;white-space:nowrap}.custom-date-filter{display:none}.custom-date-filter .date-pair input{min-width:138px}
