
    :root {
      color-scheme: dark;
      --page: #0d1117;
      --panel: #11161d;
      --line: #292f37;
      --text: #d5dbe3;
      --muted: #8b949e;
      --accent: #f06a12;
      --cell: 11px;
      --gap: 3px;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--page);
      color: var(--text);
      font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .page { max-width: 1560px; margin: 0 auto; padding: 26px 34px 48px; }
    header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
    .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .08em; }
    h1 { margin: 3px 0 0; font-size: 24px; font-weight: 650; }
    .subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
    .toolbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    #status { color: var(--muted); font-size: 12px; text-align: right; }
    .sort-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
    select {
      min-height: 36px; padding: 0 28px 0 10px; border: 1px solid #343b44; border-radius: 5px;
      background: #151b22; color: var(--text); font: inherit; cursor: pointer;
    }
    button:focus-visible, select:focus-visible { outline: 2px solid #f0a66f; outline-offset: 2px; }
    button {
      border: 1px solid #e85d04; border-radius: 4px; padding: 8px 14px;
      background: var(--accent); color: #fff; font: inherit; cursor: pointer;
    }
    button:disabled { opacity: .6; cursor: progress; }
    .notice { margin: 14px 0; color: var(--muted); font-size: 12px; }
    .team-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin: 16px 0 18px; }
    .summary-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
    .summary-label { color: var(--muted); font-size: 11px; }
    .summary-value { margin-top: 2px; color: #e6edf3; font-size: 17px; font-weight: 650; line-height: 1.35; }
    .summary-detail { overflow: hidden; margin-top: 2px; color: #78828e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
    .legend-cell, .day { width: var(--cell); height: var(--cell); border-radius: 2px; }
    .legend-cell { border: 1px solid #ffffff12; }
    .level-less { background: #252a23; }
    .level-little { background: #365019; }
    .level-some { background: #4c7826; }
    .level-many { background: #68a83c; }
    .level-much { background: #88c977; }
    .member-list { margin-top: 10px; }
    .member-row {
      display: grid;
      grid-template-columns: 225px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
      min-height: 132px;
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
    }
    .identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .avatar, .avatar-fallback { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; background: #252b33; }
    .avatar-fallback { display: grid; place-items: center; color: #9acb83; font-size: 18px; }
    .person { min-width: 0; }
    .person a { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
    .person a:hover { color: #f7a76d; }
    .handle { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .chart-area { min-width: 0; }
    .calendar-scroll { overflow-x: auto; overflow-y: visible; padding: 16px 2px 2px; scrollbar-color: #404852 transparent; }
    .calendar { width: max-content; }
    .month-row {
      display: grid;
      grid-auto-columns: calc(var(--cell) + var(--gap));
      grid-auto-flow: column;
      height: 16px;
      color: #aeb7c2;
      font-size: 10px;
      line-height: 14px;
    }
    .month-row span { white-space: nowrap; }
    .heatmap-line { display: flex; align-items: flex-start; gap: 8px; }
    .weekdays {
      display: grid;
      grid-template-rows: repeat(7, var(--cell));
      gap: var(--gap);
      width: 28px;
      flex: 0 0 28px;
      color: #98a1ab;
      font-size: 10px;
      line-height: var(--cell);
      text-align: right;
    }
    .days {
      display: grid;
      grid-template-rows: repeat(7, var(--cell));
      grid-auto-flow: column;
      grid-auto-columns: calc(var(--cell) + var(--gap));
      gap: var(--gap);
      width: max-content;
    }
    .day { border: 1px solid #ffffff0d; outline: none; }
    .day:hover { border-color: #f0f6fc; box-shadow: 0 0 0 1px #f0f6fc; }
    .day-empty { background: transparent; border-color: transparent; }
    .stats { margin-top: 8px; color: #b2bac4; font-size: 11px; }
    .stats span + span::before { content: "·"; padding: 0 8px; color: #66707b; }
    .member-metrics { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: #96a0ac; font-size: 10px; }
    .member-metrics span { white-space: nowrap; }
    .member-metrics strong { color: #c9d1d9; font-weight: 550; }
    .day-tooltip {
      position: fixed; z-index: 1000; top: 0; left: 0; max-width: min(280px, calc(100vw - 16px));
      padding: 7px 10px; border: 1px solid #414954; border-radius: 5px; background: #20262e;
      color: #f0f3f6; font-size: 12px; line-height: 1.4; white-space: nowrap;
      box-shadow: 0 5px 18px #0008; pointer-events: none; transform: translate3d(-9999px, -9999px, 0);
    }
    .day:focus-visible { outline: 2px solid #f0a66f; outline-offset: 1px; }
    .member-error { padding: 18px 12px; border: 1px solid #603b2c; border-radius: 4px; color: #f0b293; font-size: 12px; }
    .loading { padding: 36px 0; color: var(--muted); text-align: center; }
    footer { padding-top: 18px; color: #78828e; font-size: 11px; }
    @media (max-width: 760px) {
      .page { padding: 18px 16px 34px; }
      header { align-items: flex-start; flex-direction: column; gap: 14px; }
      .toolbar { width: 100%; justify-content: space-between; }
      #status { text-align: left; }
      .sort-control { flex: 1; justify-content: flex-end; }
      select { max-width: 190px; }
      .team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .member-row { grid-template-columns: 160px minmax(0, 1fr); gap: 14px; min-height: 126px; }
      .avatar, .avatar-fallback { width: 40px; height: 40px; flex-basis: 40px; }
      .identity { gap: 9px; }
    }
  /* Reports share the existing dark palette and orange primary action. */
[hidden] { display: none !important; }
.page { max-width: 1500px; padding-top: 28px; }
h1 { font-size: 27px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 0; font-weight: 600; }
h3 { margin: 0; font-size: 14px; }
input { min-height: 36px; border: 1px solid #343b44; border-radius: 5px; padding: 6px 9px; background: #151b22; color: var(--text); font: inherit; }
input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #f0a66f; outline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 0 12px; }
.filters label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.preset-group { display: flex; gap: 5px; margin-right: 6px; }
.quiet { background: #151b22; border-color: #343b44; color: var(--text); font-size: 12px; }
.quiet:hover { background: #222c37; }
.quiet.selected { background: #34261e; border-color: #a75525; color: #ffc39a; }
.filter-hint { font-size: 11px; color: var(--muted); }
.scope { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; color: #9ca8b5; margin-bottom: 20px; }
#coverage { color: #9acb83; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 2px; color: #9ba6b4; white-space: nowrap; }
.tabs button[aria-selected=true] { color: #ffb37f; border-bottom-color: var(--accent); }
.report-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.report-cards .summary-card { padding: 18px 20px; background: linear-gradient(125deg,#171e27,#11161d); }
.report-cards .summary-value { font-size: 29px; margin: 7px 0; font-variant-numeric: tabular-nums; }
.report-cards .summary-label { font-size: 12px; }
.report-cards .summary-detail { white-space: normal; font-size: 11px; color: #9ba6b4; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); margin-bottom: 20px; min-width: 0; }
.card-note, .section-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.two-columns .card { margin: 0; }
.chart-scroll { overflow-x: auto; scrollbar-color: #404852 transparent; }
.report-chart { display: block; width: 100%; min-width: 600px; height: auto; overflow: visible; }
.report-chart text { fill: #aeb9c6; font-family: inherit; font-size: 11px; }
.report-chart .chart-grid { stroke: #2a333e; stroke-dasharray: 3 5; }
.report-chart [data-tooltip] { cursor: crosshair; }
.chart-key { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: #b6c0cb; padding: 5px 0 10px; }
.key-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-color: #404852 transparent; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th,td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #26303b; white-space: nowrap; }
th { font-weight: 500; color: #92a0af; }
th:first-child,td:first-child { text-align: left; }
tbody tr:hover { background: #1c2530; }
th button { padding: 0; border: none; background: transparent; color: inherit; font: inherit; }
.member-pick { color: #dbe4ed; background: transparent; border: none; padding: 0; font: inherit; }
.member-pick:hover { color: #ffb37f; }
.mini-line { display: inline-block; width: 90px; height: 25px; vertical-align: middle; }
.positive { color: #8dcea9; }.negative { color: #edaa83; }.muted { color: var(--muted); }
.error-text { color: #ffc097; font-size: 12px; }
.empty-state { padding: 32px 14px; text-align: center; color: #a7b2bf; }
.details { margin-top: 12px; color: #8f9baa; font-size: 12px; }
.details summary { cursor: pointer; padding: 5px 0; }
.matrix td { padding: 4px; }
.matrix td:first-child,.matrix th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 80px; }
.matrix-cell { width: 100%; min-width: 78px; border: 1px solid #ffffff14; color: #e4f2df; border-radius: 4px; font-size: 12px; padding: 8px; }
.matrix-cell:hover { outline: 1px solid #e2eddc; }
.share-row { display: grid; grid-template-columns: 72px minmax(0,1fr) 120px; align-items: center; gap: 14px; padding: 9px 0; font-size: 12px; }
.share-track { background: #222c37; border-radius: 4px; height: 10px; }
.share-bar { height: 100%; background: #83bc97; border-radius: 4px; }
.share-number { text-align: right; color: #aeb9c6; }
.person-control { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.person-control select { min-width: 180px; }
.day-tooltip { white-space: normal; }
footer { font-size: 12px; line-height: 1.9; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
@media(max-width:900px) { .report-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }.two-columns { grid-template-columns: 1fr; } }
@media(max-width:600px) {
  .page { padding: 20px 14px 32px; } h1 { font-size: 24px; }
  .toolbar { flex-wrap: wrap; } .filters { gap: 10px; } .filters label { flex: 1 1 160px; white-space: nowrap; }
  .filters input { width: 100%; min-width: 0; } .preset-group { width: 100%; }
  .tabs { gap: 22px; margin-bottom: 18px; }.card { padding: 16px 12px; }
  .report-cards { gap: 9px; }.report-cards .summary-card { padding: 14px 12px; }.report-cards .summary-value { font-size: 25px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .member-row { grid-template-columns: minmax(0,1fr); }.calendar-scroll { width: 100%; }
  .share-row { grid-template-columns: 65px minmax(0,1fr) 100px; gap: 8px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }