/* lhState — unified error / empty / recovery states (UI redesign N3).
   Reference: docs/specs/ui-redesign/mockups/m3_error_recovery.html
   Tokens only — no raw colors outside rgba() tints of token hues. */

.lhs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  margin: var(--space-3) 0;
  text-align: left;
}
.lhs-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lhs-icon svg { width: 18px; height: 18px; }
.lhs-icon.lhs-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.lhs-icon.lhs-warn   { background: rgba(232, 168, 48, 0.15); color: var(--accent); }
.lhs-body { flex: 1; min-width: 0; }
.lhs-title {
  font-family: 'Garet', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
}
.lhs-detail {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 14px;
}
.lhs-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lhs-btn {
  padding: 6px 13px;
  border-radius: var(--radius-md);
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  transition: border-color var(--duration-normal) var(--ease-out), background var(--duration-normal) var(--ease-out);
}
.lhs-btn:hover { border-color: var(--text-muted); }
.lhs-btn.lhs-gold { background: var(--accent); color: var(--bg-primary); border-color: transparent; font-weight: 600; }
.lhs-btn.lhs-gold:hover { filter: brightness(1.06); }
.lhs-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Auto-retry progress */
.lhs-progress {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  overflow: hidden;
  margin-top: 12px;
}
.lhs-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
  width: 0%;
  transition: width 0.25s linear;
}

/* First-run empty state */
.lhs-empty {
  border-style: dashed;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-7) var(--space-6);
}
.lhs-empty .lhs-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); margin-bottom: 4px; }
.lhs-empty .lhs-icon svg { width: 20px; height: 20px; }
.lhs-empty .lhs-detail { max-width: 380px; margin: 6px auto 14px; }

/* Recovery toast */
.lhs-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10010;
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  max-width: 420px;
}
.lhs-toast svg { width: 16px; height: 16px; color: var(--accent-green); flex-shrink: 0; }
.lhs-toast .lhs-toast-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 12px; font-family: inherit;
  padding: 2px 4px;
}
.lhs-toast .lhs-toast-dismiss:hover { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  .lhs-progress-fill { transition: none; }
}
