/* Dashboard page. Values copied from the decoded export (~L1344-1478). */

.dash-col { display: flex; flex-direction: column; gap: 18px; }

.dash-updates-list { display: flex; flex-direction: column; }
.dash-update-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.dash-update-row:first-child { border-top: none; }
.dash-update-date {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-3); font-family: var(--font-display); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.04em; color: #4b6076;
}
.dash-update-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }

.dash-update-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--ink); outline: none;
}
.dash-update-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(44,110,209,0.15); }

.dash-range-select {
  height: 34px; padding: 0 30px 0 11px; border: 1px solid var(--smoke); border-radius: 9px;
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.dash-range-date {
  height: 34px; padding: 0 9px; border: 1px solid var(--smoke); border-radius: 9px;
  background: var(--surface); font-size: 12.5px; color: var(--ink); outline: none;
}
.dash-range-date:focus, .dash-range-select:focus { border-color: var(--blue-500); }
.dash-refresh-btn {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--smoke); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.dash-refresh-btn:hover { background: var(--surface-2); color: var(--blue-500); }
.dash-refresh-btn svg { transition: transform 520ms var(--ease-out); }
.dash-refresh-btn.is-spinning svg { transform: rotate(360deg); }

.dash-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.dash-stat-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.dash-stat-card--accent { border-top: 3px solid var(--blue-500); padding: 14px 18px 16px; }
.dash-stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-stat-value--accent { color: var(--blue-500); }
.dash-stat-sub { font-size: 12px; color: var(--ink-4); }

.dash-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }

.dash-task-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px;
  border: none; border-top: 1px solid var(--line-soft); border-radius: 8px;
  background: none; cursor: pointer; text-align: left;
}
.dash-task-row:first-child { border-top: none; }
.dash-task-row:hover { background: var(--hover); }
.dash-task-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; }
.dash-task-label { flex: 1; min-width: 0; font-size: 13px; }
.dash-task-count {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 800;
}

.dbs-select {
  flex: none; width: 148px; height: 32px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--ink); cursor: pointer;
}
.dbs-row { display: flex; flex-direction: column; gap: 5px; }
.dbs-row__head { display: flex; align-items: baseline; gap: 8px; }
.dbs-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dbs-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dbs-count { flex: none; font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.dbs-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.dbs-fill { height: 100%; border-radius: 999px; transition: width var(--dur-base) var(--ease-out); }
.dbs-detail { font-size: 11.5px; color: var(--ink-4); }

.lb-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 62px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.lb-row:first-child { border-top: none; }
.lb-rank { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--ink-4); }
.lb-name-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-name { min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hired { justify-self: end; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
