/* T06: Dashboard. Shared tokens/components come from styles.css. */

.dash-head { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 0; }
.dash-date { font-size: 12px; }

.dash-card { padding: 14px; gap: 10px; }

/* big mono numbers */
.dash-big { font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-huge { font-size: 32px; }
.dash-of { color: var(--muted); font-size: .64em; font-weight: 400; }
.dash-big.is-ok { color: var(--ok); }
.dash-big.is-warn { color: var(--warn); }
.dash-ok { color: var(--ok); }

/* thin bars */
.dash-bar { position: relative; flex: 1; min-width: 0; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.dash-fill { height: 6px; border-radius: 3px; background: var(--ok); }

/* 1. cycle */
.dash-cycle { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 4px; }
.dash-sep { color: var(--muted); font-size: 18px; }
.dash-seg { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dash-seg-k { font-size: 13px; color: var(--muted); }
.dash-sub { font-size: 14px; color: var(--text-2); }
.dash-cbar { margin-top: 4px; }
.dash-cbar .dash-fill { position: relative; background: var(--accent); }
.dash-cbar-deload { position: absolute; top: 0; bottom: 0; right: 0; background: #3A4048; }
.dash-ends { display: flex; justify-content: space-between; font-size: 12px; margin-top: -4px; }

/* 2. today */
.dash-today { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dash-min { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; }
.dash-min.is-ok { color: var(--ok-text); }
.dash-min.is-no { color: var(--muted); }
.dash-mark { font-size: 14px; font-weight: 500; }
.dash-mark.is-ok { color: var(--ok); }
.dash-mark.is-no { color: var(--danger); }
.dash-mark.is-unset { color: var(--muted); }
.dash-link {
  align-self: flex-start; display: inline-flex; align-items: center;
  min-height: var(--tap); margin: -8px 0 -10px; font-size: 14px; font-weight: 500; text-decoration: none;
}

/* 3. this week (same layout as Retro) */
.dash-stat { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 13px; }
.dash-stat-k { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-stat-v { text-align: right; color: var(--text); }
.dash-foot { font-size: 12px; }

/* 4. last 4 weeks: vertical CSS bars */
.dash-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dash-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dash-col-v { font-size: 18px; font-weight: 500; color: var(--text); }
.dash-vbar {
  position: relative; width: 14px; height: 96px; border-radius: 7px;
  background: var(--border); overflow: hidden;
}
.dash-vfill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 7px; background: var(--ok); }
.dash-col-k { font-size: 13px; color: var(--text-2); }
.dash-col-n { font-size: 11px; color: var(--muted); min-height: 14px; }
.dash-col.is-now .dash-col-k { color: var(--text); font-weight: 500; }

/* 5–7. tiles */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dash-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dash-cell > .h2 { margin-top: 14px; padding: 0 4px; }
.dash-tile { flex: 1; gap: 4px; }
.dash-tile-sub { font-size: 13px; color: var(--text-2); }
.dash-tile-sub.is-warn { color: var(--warn); }
.dash-tile-meta { font-size: 12px; }
.dash-wg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.dash-wg-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dash-cg {
  display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--divider);
  font-size: 13px; color: var(--text-2);
}
.dash-cg-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 768px) {
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 8. counters */
.dash-counters { gap: 0; padding-top: 8px; padding-bottom: 8px; }
.dash-crow {
  display: grid; grid-template-columns: minmax(0, 1fr) 84px 72px; align-items: center;
  min-height: 34px; font-size: 14px;
}
.dash-crow > :not(:first-child) { text-align: right; font-size: 16px; }
.dash-crow-k { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-chead { min-height: 26px; }
.dash-chead > span:not(:first-child) {
  font-family: var(--font); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dash-cgap { border-top: 1px solid var(--divider); }
.dash-crow.dash-cgap { margin-top: 4px; padding-top: 4px; }

/* 9. mind */
.dash-book { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.dash-book-a { font-size: 14px; color: var(--line); overflow-wrap: anywhere; }
.dash-landed { flex-wrap: wrap; }
.dash-landed .chip { margin-left: auto; white-space: normal; }
