/* C9 — "Life" home screen, weekly overview, milestones, family overview (public/life.js). */

.life-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.life-row a.button { min-height: 40px; padding: 4px 12px; }
.life-done { color: var(--accent); font-weight: 700; }

.life-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 6px 0;
}
.life-progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.life-progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.life-progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

.life-today { display: grid; gap: 16px; }
.life-goal small { display: block; }
.life-goal .link { padding: 0; }
.life-goal-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 6px; }
.life-streak { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.life-streak small { display: block; }
.life-streak-num {
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--accent);
  color: var(--accent-text);
}

.life-toast { border-color: var(--accent); border-width: 2px; }

.life h3 { font-size: 1rem; margin: 18px 0 4px; color: var(--muted); }
.life-places { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.life-place {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.life-place-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 56px;
  color: var(--text);
  text-decoration: none;
}
.life-place .title { display: block; font-weight: 600; }
.life-place small { display: block; }
.life-place.locked { color: var(--muted); border-style: dashed; }
.status-tag.learning { color: #b26a00; }
.status-tag.locked { font-style: italic; }
.life-place-scenes { list-style: none; margin: 0; padding: 0 16px 10px; }
.life-place-scenes a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.life-chart { width: 100%; height: auto; display: block; margin: 8px 0; }
.life-chart .bar { fill: var(--accent); opacity: 0.6; }
.life-chart .bar.goal { opacity: 1; }
.life-chart .bar.empty { fill: var(--border); opacity: 1; }
.life-chart .axis { fill: var(--muted); font-size: 11px; }
.life-chart .grid { stroke: var(--border); stroke-width: 1; }
.life-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.life-chart .dot { fill: var(--accent); }

.life-badges { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.life-badges.card { padding: 12px 16px; }
.life-badge { padding: 8px 0; border-bottom: 1px solid var(--border); }
.life-badge:last-child { border-bottom: 0; }
.life-badge .title { display: block; font-weight: 600; color: var(--muted); }
.life-badge.got .title { color: var(--accent); }
.life-badge small { display: block; }

.life-family .facts { margin: 8px 0; }

@media (prefers-color-scheme: dark) {
  .status-tag.learning { color: #f0b35a; }
}
.life .list a { display: block; color: var(--text); text-decoration: none; }
