/* HeatTrack — light theme overrides + small custom utilities */
:root {
  --ht-blue: #1d4ed8;
  --ht-amber: #d97706;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Tables: tighter rows than Tailwind defaults */
table th, table td { line-height: 1.3; }

/* Code styling */
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; }

/* Clickable rows */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover { background: #eff6ff; }

/* Subtle focus rings */
input:focus, select:focus, textarea:focus, button:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }

/* Tailwind v2 doesn't ship break-all by default in some builds — alias */
.break-all { word-break: break-all; }


/* CP5: Burner activity ribbon */
.ht-burner-ribbon {
  display: flex;
  gap: 4px;
  margin: 6px 0 4px 0;
  align-items: center;
}
.ht-rib-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.ht-rib-cell.on { color: #fff; background: #ea580c; border-color: #c2410c; }
.ht-rib-heat.on { background: #dc2626; border-color: #991b1b; }

/* CP5: Audit pack form styles */
.ht-fieldset { border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px 16px; margin: 12px 0; background: #fafafa; }
.ht-fieldset legend { font-weight: 600; padding: 0 6px; color: #1f2937; }
.ht-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ht-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ht-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 6px; margin-top: 8px; }
.ht-checkbox-list label { display: block; padding: 4px 0; }
.ht-radio-row { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.ht-quick-range { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ht-chip { padding: 4px 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 999px; font-size: 12px; cursor: pointer; }
.ht-chip:hover { background: #f3f4f6; }
.ht-furn-checkbox { display: inline-flex; gap: 4px; align-items: center; padding: 3px 6px; }
.ht-furn-group { color: #9ca3af; font-size: 11px; }
.ht-actions { margin: 12px 0; display: flex; gap: 8px; }
.ht-hint { color: #6b7280; font-size: 12px; margin-top: 8px; }
.ht-error-detail { color: #991b1b; font-size: 11px; margin-top: 2px; }
.ht-tiny { font-size: 11px; }
.ht-pulse { animation: ht-pulse 1.6s infinite; }
@keyframes ht-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.ht-alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 10px 14px; border-radius: 6px; margin: 10px 0; }
.ht-alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin: 10px 0; }
.ht-badge-blue { background: #dbeafe; color: #1e40af; }
.ht-badge-grey { background: #f3f4f6; color: #374151; }
.ht-badge-amber { background: #fef3c7; color: #92400e; }
