/* 대시보드. 색과 간격은 theme.css의 토큰만 쓴다. */
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font: var(--font);
}

body {
  overflow-y: auto;
}

main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
}

canvas {
  image-rendering: pixelated;
  flex: none;
}

h1 {
  margin: 0 0 4px;
  font-size: 16px;
}

p {
  margin: 0;
}

.dim {
  color: var(--text-dim);
  font-size: 12px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.today {
  display: flex;
  gap: 12px;
}

.stat {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 22px;
  line-height: 1;
}

.goal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.count {
  font-weight: 700;
}

/* 목표 대비 진행 막대 */
.track {
  height: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: var(--ham-body);
  transition: width 0.4s ease;
}

.fill.met {
  background: var(--accent);
}

.goal-note {
  margin-top: 6px;
}

/* 요일별 막대. 픽셀 느낌을 위해 모서리를 거의 주지 않는다. */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
}

.day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.day .col {
  width: 100%;
  background: var(--ham-body);
  border: 1px solid var(--surface-border);
  border-radius: 3px;
  min-height: 3px;
  /* 지난 날은 한 톤 물러나 있게 해서 오늘이 눈에 먼저 들어오게 한다. */
  opacity: 0.55;
}

.day.today .col {
  background: var(--accent);
  opacity: 1;
}

.day.today span {
  color: var(--text);
  font-weight: 700;
}

.day span {
  font-size: 11px;
  color: var(--text-dim);
}

.empty {
  text-align: center;
  padding: 8px 0;
}
