/* Dripline — Home Overview module styles
 * Component CSS for the dashboard: shell, sidebar, page header, metrics,
 * room cards, alerts, panels (tasks / harvest), mobile bottom nav.
 *
 * Tokens, reset, fonts, and shared utilities come from /assets/css/design-system.css.
 * Lifted from the Claude Design "Dripline OS" export, dashboard view only.
 */

/* ─── Dashboard shell ───────────────────────────────────────────────────── */
.dash-shell {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: var(--dark-bg);
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-top {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--dark-border);
}
.sidebar-brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 5px;
  color: var(--yellow);
  line-height: 1;
}
.sidebar-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--dark-secondary);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.sidebar-section { padding: 18px 10px 6px; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dark-muted);
  letter-spacing: 0.5px;
  padding: 0 8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
  margin-bottom: 1px;
}
.nav-item:hover { background: var(--dark-raised); color: var(--dark-text); }
.nav-item.active { background: rgba(107, 63, 166, 0.16); color: #d4b8f5; }
.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(184, 79, 10, 0.18);
  color: var(--s-action);
}
.nav-count.soft { background: rgba(107, 63, 166, 0.16); color: #c4a0f0; }
.nav-soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dark-secondary);
  border: 1px solid var(--dark-border);
}
.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid var(--dark-border);
}
.sys-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--dark-raised);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s-nominal);
  flex-shrink: 0;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--s-nominal);
  opacity: 0.3;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  60%      { transform: scale(1.9); opacity: 0; }
}
.sys-text strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark-text);
  display: block;
}
.sys-text span { font-size: 11px; color: var(--dark-secondary); }

/* ─── Main column ───────────────────────────────────────────────────────── */
.dash-main { flex: 1; min-width: 0; }

/* Page header */
.page-header {
  padding: 24px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--dark-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.page-h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.page-date {
  font-size: 12px;
  color: var(--dark-secondary);
  margin-top: 5px;
  font-weight: 400;
}
.header-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
/* Global facility status pill — aggregates worst severity across all rooms.
 * Label format: "Nominal — all systems" (no rooms above nominal)
 *               "Action — Room 05"      (exactly 1 room at worst severity)
 *               "Action — 2 rooms"      (2+ rooms at worst severity)
 * Aggregation will be computed at runtime once gviz data lands; for now the
 * markup hard-codes the current fixture state.
 */
.sys-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.sys-chip.nominal  { background: var(--s-nominal-bg);  border-color: var(--s-nominal-bd);  color: var(--s-nominal); }
.sys-chip.watch    { background: var(--s-watch-bg);    border-color: var(--s-watch-bd);    color: var(--s-watch); }
.sys-chip.action   { background: var(--s-action-bg);   border-color: var(--s-action-bd);   color: var(--s-action); }
.sys-chip.critical { background: var(--s-critical-bg); border-color: var(--s-critical-bd); color: var(--s-critical); }
.dark-btn {
  padding: 7px 14px;
  background: var(--dark-raised);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  transition: all 0.12s;
}
.dark-btn:hover { border-color: rgba(255, 255, 255, 0.15); }
.log-btn {
  background: var(--purple);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.log-btn:hover { background: var(--purple-light); border-color: transparent; }
.log-plus { font-size: 18px; font-weight: 300; line-height: 1; margin-top: -1px; }

/* Content well */
.dash-content { padding: 24px 28px; }

/* ─── Section header ────────────────────────────────────────────────────── */
.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4cfc2;
  margin-bottom: 16px;
}
.sec-hd-title { font-size: 15px; font-weight: 800; color: var(--dark-text); letter-spacing: -0.1px; }
.sec-hd-meta  { font-size: 11px; color: var(--dark-secondary); font-weight: 400; }
.dash-divider { margin-bottom: 32px; }

/* ─── Room cards — unified Flower Room Status ───────────────────────────── */
/* Phase strings (P1 Acclimation/Stretch through P5 Ripen/Flush) are mocked
 * in markup for now. When gviz data lands and the Rules Engine wires up,
 * compute phase from day-of-cycle:
 *   P1 Acclimation/Stretch: Days 1-10
 *   P2 Build/Stack:         Days 11-21
 *   P3 Transition:          Days 22-28
 *   P4 Bulk:                Days 29-42
 *   P5 Ripen/Flush:         Days 43-56
 * Similarly, severity (.nominal/.watch/.action/.critical) and tasks-today
 * counts will be computed from rules + task-board state.
 */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.room-card {
  display: block;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.room-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
/* Severity edge stripe — mirrors .alert-item left-border pattern */
.room-card.nominal  { border-left: 3px solid var(--s-nominal); }
.room-card.watch    { border-left: 3px solid var(--s-watch); }
.room-card.action   { border-left: 3px solid var(--s-action); }
.room-card.critical { border-left: 3px solid var(--s-critical); }

.room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ink-hairline);
}
.room-id {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
}
.room-card-body { padding: 14px 16px 16px; }

/* Phase pill + day count row */
.phase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.phase-pill {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.day-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Week progress bar (full-width within card body) */
.week-bar { margin-bottom: 14px; }
.week-track {
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.week-fill { height: 100%; border-radius: 2px; background: var(--purple); }
.week-lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: right;
}

/* Strain identity */
.strain-block { margin-bottom: 12px; }
.strain-block .strain-name { font-size: 16px; line-height: 1.2; margin-bottom: 2px; }
.strain-block .genetics    { font-size: 12px; line-height: 1.3; }

/* Next critical event + tasks today */
.next-event {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.next-event.urgent  { color: var(--s-action); }
.next-event.warning { color: var(--s-watch); }
.tasks-today {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* Divider before environmental + irrigation data */
.card-divider {
  height: 1px;
  background: var(--ink-hairline);
  margin: 0 0 12px;
}

/* Compact env + irrigation strips — mono, tabular */
.env-strip,
.irr-strip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
}
.irr-strip { margin-top: 2px; }
.env-strip .warn,
.irr-strip .warn { color: var(--s-action); font-weight: 700; }

/* "View room →" affordance */
.view-room {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-align: right;
  margin-top: 14px;
  letter-spacing: -0.1px;
}
.room-card:hover .view-room { color: var(--purple-light); }

/* Grade chip — severity */
.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.g-chip.nominal  { background: var(--s-nominal-bg);  color: var(--s-nominal);  border: 1px solid var(--s-nominal-bd); }
.g-chip.watch    { background: var(--s-watch-bg);    color: var(--s-watch);    border: 1px solid var(--s-watch-bd); }
.g-chip.action   { background: var(--s-action-bg);   color: var(--s-action);   border: 1px solid var(--s-action-bd); }
.g-chip.critical { background: var(--s-critical-bg); color: var(--s-critical); border: 1px solid var(--s-critical-bd); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert-item {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  border-left: 3px solid;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: box-shadow 0.15s;
}
.alert-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08); }
.alert-item.watch    { border-left-color: var(--s-watch); }
.alert-item.action   { border-left-color: var(--s-action); }
.alert-item.critical { border-left-color: var(--s-critical); }
.a-grade {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
}
.alert-item.watch    .a-grade { background: var(--s-watch-bg);    color: var(--s-watch);    border: 1px solid var(--s-watch-bd); }
.alert-item.action   .a-grade { background: var(--s-action-bg);   color: var(--s-action);   border: 1px solid var(--s-action-bd); }
.alert-item.critical .a-grade { background: var(--s-critical-bg); color: var(--s-critical); border: 1px solid var(--s-critical-bd); }
.a-body   { flex: 1; min-width: 0; }
.a-title  { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.a-detail { font-size: 12px; color: var(--ink-secondary); line-height: 1.6; }
.a-meta   { font-size: 11px; color: var(--ink-muted); margin-top: 5px; }
.a-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--card-border-mid);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.12s;
}
.a-btn:hover { color: var(--ink); border-color: rgba(0, 0, 0, 0.2); }

/* ─── Bottom panels (tasks + harvest) ───────────────────────────────────── */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-hairline);
}
.panel-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.panel-meta  { font-size: 11px; color: var(--ink-muted); }
.panel-body  { padding: 8px 20px 16px; }

/* Tasks */
.task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-hairline);
}
.task:last-child { border-bottom: none; }
.task-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.task-check.done { background: var(--s-nominal-bg); border-color: var(--s-nominal); }
.task-check.done::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--s-nominal);
  border-bottom: 1.5px solid var(--s-nominal);
  transform: rotate(-45deg) translateY(-1px);
}
.task-body { flex: 1; }
.task-text { font-size: 13px; color: var(--ink); line-height: 1.4; }
.task-text.done { color: var(--ink-muted); text-decoration: line-through; }
.task-tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.task-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}
.task-pri { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.task-pri.high     { background: var(--s-action-bg);  color: var(--s-action);  border: 1px solid var(--s-action-bd); }
.task-pri.med      { background: var(--s-watch-bg);   color: var(--s-watch);   border: 1px solid var(--s-watch-bd); }
.task-pri.done-tag { background: var(--s-nominal-bg); color: var(--s-nominal); border: 1px solid var(--s-nominal-bd); }
.task-pri.low      { background: rgba(0, 0, 0, 0.05); color: var(--ink-muted); }

/* Harvest countdown */
.harvest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-hairline);
}
.harvest-row:last-child { border-bottom: none; }
.h-days {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0px;
  line-height: 1;
  color: var(--ink);
  min-width: 44px;
  text-align: right;
}
.h-days.near     { color: var(--s-watch); }
.h-days.imminent { color: var(--s-action); }
.h-info { flex: 1; }
.h-strain { font-size: 13px; font-weight: 700; color: var(--ink); }
.h-room   { font-size: 11px; color: var(--ink-muted); margin-top: 1px; }
.h-date   { font-size: 11px; color: var(--ink-muted); text-align: right; white-space: nowrap; }
.h-tag    { font-size: 10px; font-weight: 700; margin-top: 2px; display: block; }
.h-tag.near     { color: var(--s-watch); }
.h-tag.imminent { color: var(--s-action); }

/* ─── Mobile bottom nav ─────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
}
.mobile-nav-inner {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-around;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}
.mob-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 8px;
  min-width: 52px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--dark-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.mob-btn.active { color: #c4a0f0; }
.mob-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 840px) {
  .sidebar      { display: none; }
  .mobile-nav   { display: block; }
  .dash-main    { padding-bottom: 80px; }
  .bottom-grid  { grid-template-columns: 1fr; }
  .rooms-grid   { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-content { padding: 16px; }
  .page-header  { padding: 16px; }
}

@media (max-width: 500px) {
  .rooms-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PHASE C — Lifecycle state styles (Session 6, 2026-06-17)
   Wired by modules/home/index.html via uiState() — 5 UI states derived
   from the cycle engine's 4 statuses (unknown/scheduled/in_flower/
   between_cycles). Active state reuses the existing severity stripes
   (.nominal/.watch/etc.); the four other states get their own treatments
   below.
═══════════════════════════════════════════════════════════════════════ */

/* ─── Refinement chip (per-room, per Q4 = "A: per-room only") ────────── */
.refinement-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 12px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--s-watch-bg);
  color: var(--s-watch);
  border: 1px solid var(--s-watch-bd);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: help;
}

/* ─── Refresh button (replaces session-2 Log entry) ───────────────────── */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  background: var(--dark-raised);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
}
.refresh-btn:hover { border-color: rgba(255, 255, 255, 0.18); }

/* ─── Lifecycle headline + sub (used by harvest/cleanup/dormant/scheduled cards) ─── */
.lifecycle-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 8px;
}
.lifecycle-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 4px 0 12px;
}

.strain-block.dim .strain-name {
  font-weight: 600;
  color: var(--ink-secondary);
}
.strain-name.placeholder,
.irr-strip .placeholder {
  color: var(--ink-muted);
  font-style: italic;
  font-weight: 400;
}

/* ─── State-specific room-card variants ─────────────────────────────── */

/* harvest_window — yellow stripe, slightly dimmed body (plants out of room) */
.room-card.state-harvest-window {
  border-left: 3px solid var(--s-watch);
  background: var(--card);
}
.room-card.state-harvest-window .room-card-body {
  opacity: 0.92;
}

/* cleanup — muted gray-ink stripe, body more dimmed */
.room-card.state-cleanup {
  border-left: 3px solid var(--ink-muted);
  background: var(--card);
}
.room-card.state-cleanup .room-card-body {
  opacity: 0.78;
}

/* dormant — very subdued, no stripe, "nothing happening here" */
.room-card.state-dormant {
  border-left: 3px solid transparent;
  background: var(--card-raised);
}
.room-card.state-dormant .room-card-body {
  opacity: 0.6;
}

/* scheduled — purple stripe, anticipation feel */
.room-card.state-scheduled {
  border-left: 3px solid var(--purple);
  background: var(--card);
}

/* unknown — critical stripe, demands setup */
.room-card.state-unknown {
  border-left: 3px solid var(--s-critical);
  background: var(--card);
}

/* ─── State-specific chip colors (reuse g-chip skeleton) ────────────── */
.g-chip.cleanup {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-secondary);
  border: 1px solid var(--card-border-mid);
}
.g-chip.dormant {
  background: rgba(0, 0, 0, 0.03);
  color: var(--ink-muted);
  border: 1px solid var(--card-border);
}
.g-chip.scheduled {
  background: var(--purple-tint);
  color: var(--purple);
  border: 1px solid rgba(107, 63, 166, 0.25);
}

/* ─── Sync-status states (sidebar footer) ───────────────────────────── */
.sys-status[data-state="loading"] .pulse-dot { background: var(--dark-secondary); }
.sys-status[data-state="loading"] .pulse-dot::after { animation: none; opacity: 0; }
.sys-status[data-state="fresh"]   .pulse-dot { background: var(--s-nominal); }
.sys-status[data-state="fresh"]   .pulse-dot::after { background: var(--s-nominal); }
.sys-status[data-state="stale"]   .pulse-dot { background: var(--s-watch); }
.sys-status[data-state="stale"]   .pulse-dot::after { background: var(--s-watch); }
.sys-status[data-state="offline"] .pulse-dot { background: var(--s-action); }
.sys-status[data-state="offline"] .pulse-dot::after { animation: none; opacity: 0; }

/* ─── Empty-state placeholders ──────────────────────────────────────── */
.alerts-empty,
.tasks-empty,
.harvests-empty {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  box-shadow: var(--card-shadow);
}

.render-error {
  background: var(--s-critical-bg);
  color: var(--s-critical);
  border: 1px solid var(--s-critical-bd);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.5;
}

/* ─── Mobile breakpoint adjustments for Phase C card states ─────────── */
@media (max-width: 500px) {
  .refinement-chip { font-size: 9px; padding: 3px 7px; }
  .lifecycle-headline { font-size: 12px; margin-bottom: 6px; }
  .lifecycle-sub { font-size: 11px; }
  .refresh-btn { padding: 6px 10px; font-size: 11px; }
}
