.tracker-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.tracker-page-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.tracker-page-title { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.25; }

.tracker-page-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-light);
  margin: 4px 0 0;
  max-width: 74ch;
}

.tracker-refresh { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.tracker-refresh-stamp { font-size: 12px; line-height: 16px; color: var(--text-light); text-align: right; }
.tracker-refresh-stamp b { display: block; color: var(--text-main); font-weight: 600; }

.tracker-refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: var(--surface-card);
  color: var(--text-main);
  border: 1px solid var(--border-neutral);
  box-shadow: var(--shadow-card);
}

.tracker-refresh-button:hover { border-color: var(--accent); color: var(--accent); }
.tracker-refresh-button .material-icons { font-size: 16px; }

.tracker-block { display: flex; flex-direction: column; gap: 12px; }

.tracker-block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tracker-block-title { font-size: 15px; font-weight: 650; margin: 0; }
.tracker-block-desc { font-size: 12px; line-height: 18px; color: var(--text-light); margin: 0; }
.tracker-block-desc b { color: var(--text-main); font-weight: 600; }

.tracker-board-head { align-items: flex-end; }
.tracker-board-head > div:first-child { min-width: 0; }

.cycle-block { display: flex; flex-direction: column; gap: 12px; }

.cycle-body { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }

.cycle-gauges {
  flex: 1 1 480px;
  background: var(--surface-card);
  border: 1px solid var(--border-neutral);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cycle-gauge-row { display: flex; align-items: flex-end; gap: 10px; }
.cycle-gauge { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cycle-gauge-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

.cycle-gauge-name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cycle-gauge-value {
  margin-left: auto;
  font-size: 15px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cycle-gauge-track {
  height: 14px;
  border-radius: 7px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  box-sizing: border-box;
  overflow: hidden;
}

.cycle-gauge-fill { height: 100%; border-radius: 7px; }

.cycle-gauge--dev .cycle-gauge-value { color: var(--accent); }
.cycle-gauge--dev .cycle-gauge-fill { background: var(--accent); }
.cycle-gauge--cooldown .cycle-gauge-value { color: var(--warning); }
.cycle-gauge--cooldown .cycle-gauge-fill { background: var(--warning); }

.cycle-gauge-note { font-size: 11.5px; line-height: 17px; color: var(--text-light); margin: 0; }

.cycle-flow {
  flex: 0 1 340px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-card);
  border: 1px solid var(--border-neutral);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cycle-flow-cell {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border-neutral);
}

.cycle-flow-cell:last-child { border-right: none; }
.cycle-flow-cell--net { background: var(--surface-sunken); }

.cycle-flow-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cycle-flow-value { font-size: 24px; line-height: 1.1; font-weight: 680; font-variant-numeric: tabular-nums; }
.cycle-flow-value--down { color: var(--success); }
.cycle-flow-value--up { color: var(--danger); }

.tracker-controls { display: flex; flex-direction: column; gap: 12px; }

.tracker-scope-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.scope-tab {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  color: var(--text-light);
  background: var(--surface-card);
  border: 1px solid var(--border-neutral);
  text-decoration: none;
}

.scope-tab:hover { border-color: var(--accent); color: var(--accent); }

.scope-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}

.tracker-filter-bar {
  background: var(--surface-card);
  border: 1px solid var(--border-neutral);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-neutral);
  color: var(--text-light);
  flex: 1 1 220px;
  min-width: 180px;
}

.filter-search .material-icons { font-size: 17px; }

.filter-search-input {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  padding: 4px 0;
  width: 100%;
  outline: none;
}

.filter-search-input::placeholder { color: var(--text-faint); }

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-main);
  line-height: 20px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-neutral);
  border-radius: 8px;
  padding: 6px 28px 6px 11px;
  cursor: pointer;
  max-width: 100%;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23607d8b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.filter-select:hover { border-color: var(--accent); }

.tracker-filter-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.filter-reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.filter-reset:hover { background: var(--accent-quiet); }

.view-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.view-switch-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.view-switch-options {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-neutral);
}

.view-switch-option {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-light);
  text-decoration: none;
}

.view-switch-option.is-active {
  background: var(--surface-card);
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  font-weight: 600;
}

.metric-card-target {
  font-size: 11px;
  line-height: 16px;
  font-weight: 550;
  color: var(--text-light);
  background: var(--surface-sunken);
  border: 1px solid var(--border-neutral);
  border-radius: 6px;
  padding: 2px 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.metric-card-target .material-icons { font-size: 13px; }

.metric-card:hover .metric-card-target {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-quiet);
}

.bug-card-origin {
  font-size: 10px;
  line-height: 15px;
  font-weight: 650;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 0 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.bug-card-origin--channel { color: var(--accent-strong); background: var(--accent-quiet); }

.bug-card-origin--qc {
  color: var(--text-light);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-neutral);
}

.bug-card-age {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.bug-card-age--stale { color: var(--danger); }

.bug-card-feature {
  margin-left: auto;
  font-size: 11px;
  font-weight: 550;
  color: var(--text-light);
  background: var(--surface-sunken);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.bug-card-dates {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 15px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.bug-card-avatar--none { background: var(--surface-sunken); color: var(--text-faint); }

.bug-card { position: relative; }

.bug-card-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.bug-card.is-open {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-quiet);
}

.kanban-column-rank {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  border: 1px solid var(--border-neutral);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 15px;
}

.kanban-column-empty {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-faint);
  text-align: center;
  padding: 18px 8px;
  margin: 0;
}

.tracker-empty {
  border: 1px dashed var(--border-neutral);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.tracker-empty-icon { font-size: 28px; color: var(--text-faint); }
.tracker-empty-title { font-size: 14px; font-weight: 600; margin: 0; color: var(--text-main); }
.tracker-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.tracker-empty-primary {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tracker-empty-secondary {
  font-size: 13px;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-neutral);
  color: var(--text-light);
  text-decoration: none;
}

.tracker-empty-primary:hover { background: var(--accent-quiet); }
.tracker-empty-secondary:hover { border-color: var(--accent); color: var(--accent); }

.bug-list-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-neutral);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.bug-list { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13px; }

.bug-list thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-neutral);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.bug-list tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.bug-list tbody tr:last-child td { border-bottom: none; }
.bug-list-row:hover td { background: var(--surface-sunken); }
.bug-list-row.is-open td { background: var(--accent-quiet); }

.bug-list-ref { font-size: 12px; font-weight: 600; color: var(--text-faint); white-space: nowrap; }
.bug-list-title-cell { min-width: 280px; }
.bug-list-title { font-weight: 550; color: var(--text-main); text-decoration: none; display: block; }
.bug-list-title:hover { color: var(--accent); text-decoration: underline; }
.bug-list-reported { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.bug-list-muted { color: var(--text-light); }
.bug-list-age { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--text-light); }

.bug-list-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-light);
  white-space: nowrap;
}

.bug-card:not([draggable="true"]) { cursor: pointer; }

.bug-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
