:root { color-scheme: light; --blue: #1a73e8; --ink: #202124; --muted: #5f6368; --line: #dadce0; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 14px/1.45 Arial, Helvetica, sans-serif; }
.topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 18px; font-weight: 600; }
h1 { margin: 0; font-size: 20px; font-weight: 500; }
.toolbar { display: flex; align-items: center; gap: 12px; }
.toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
select { min-width: 160px; padding: 9px 32px 9px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font: inherit; }
select:focus { border-color: var(--blue); outline: 1px solid var(--blue); }
main { width: min(1400px, 100%); margin: 0 auto; padding: 28px; }
.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { min-width: 0; padding: 8px 24px 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; overflow: hidden; margin-top: 7px; font-size: clamp(22px, 3vw, 32px); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.updated { margin: 10px 0 30px; color: var(--muted); font-size: 12px; text-align: right; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 44px; }
.panel { min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 16px; font-weight: 500; }
.panel header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.chart-range { min-width: 112px; padding-block: 7px; font-size: 12px; }
.chart-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.chart-zoom { display: inline-flex; }
.chart-zoom button { appearance: none; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid #cfc8c0; background: #fff; color: var(--ink); font: 20px/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.chart-zoom button:first-child { border-radius: .3125rem 0 0 .3125rem; }
.chart-zoom button:last-child { margin-left: -1px; border-radius: 0 .3125rem .3125rem 0; }
.chart-zoom button:hover:not(:disabled) { position: relative; border-color: #9aa0a6; background: #f8f9fa; }
.chart-zoom button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--blue); outline-offset: 1px; }
.chart-zoom button:disabled { color: #bdc1c6; background: #f8f9fa; cursor: default; }
.chart-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.canvas-wrap { position: relative; height: 300px; }
.canvas-wrap.tall { height: 420px; }
.activity { min-width: 320px; }
.activity svg { display: block; width: auto; max-width: none; height: auto; }
.activity-cell { cursor: pointer; }
.activity-cell:focus { outline: none; stroke: var(--blue); stroke-width: 3px; }
.activity-cell.is-selected { fill: #d93025 !important; stroke: #b3261e; stroke-width: 2px; }
.activity-resolution { min-width: 3.5rem; color: var(--muted); font-size: 12px; text-align: right; }
.activity-detail { display: block; min-height: 20px; margin-top: 8px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: pre-line; }
.activity-detail[hidden] { display: none; }
.chart-download { appearance: none; flex: 0 0 auto; width: 2.2rem; height: 2.2rem; padding: .25rem; border: 1px solid #cfc8c0; border-radius: .3125rem; background: white url("assets/images/download-button.svg") center / 1.35rem no-repeat; color: transparent; cursor: pointer; }
.chart-download:hover { border-color: #9aa0a6; background-color: #f8f9fa; }
.chart-download:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart-download-menu { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 6; display: grid; min-width: 6.5rem; overflow: hidden; border: 1px solid #cfc8c0; border-radius: .3125rem; background: #fff; box-shadow: 0 4px 12px rgb(60 64 67 / 18%); }
.chart-download-menu[hidden] { display: none; }
.chart-download-menu button { appearance: none; padding: .55rem .8rem; border: 0; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.chart-download-menu button:hover, .chart-download-menu button:focus-visible { background: #f1f3f4; outline: 0; }
.error { padding: 12px 16px; border-left: 4px solid #d93025; color: #b3261e; background: #fce8e6; }
footer { padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 800px) {
  .topbar { align-items: stretch; flex-direction: column; padding: 14px 18px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar label { justify-content: space-between; }
  main { padding: 22px 18px; }
  .overview { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
}
@media (max-width: 450px) {
  .overview { grid-template-columns: 1fr; }
  .panel header { align-items: start; flex-direction: column; gap: 4px; }
  select { min-width: 190px; }
}
