/* health-sync.css — "Health Sync" card. Dark theme, brand red #e10600. */

/* The card reuses .featB-card from feat-b.css for its shell. */
#hs-card .section-title { margin-top: 0; }

.hs-sub {
  color: var(--muted, #9a9a9a);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.45;
}

.hs-provider {
  border: 1px solid var(--border, #262626);
  border-radius: 12px;
  padding: 14px 12px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.015);
}

.hs-provider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hs-provider-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555;
  flex: none;
}
.hs-dot-on { background: #2ecc71; box-shadow: 0 0 6px rgba(46, 204, 113, 0.7); }

.hs-note {
  color: var(--muted, #9a9a9a);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 6px 0;
}

.hs-last {
  color: var(--muted, #9a9a9a);
  font-size: 12px;
  margin: 8px 0 0;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border, #3a3a3a);
  color: var(--text, #f2f2f2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost:active { transform: scale(0.98); }
.btn-ghost:disabled { opacity: 0.5; cursor: default; }

.btn-danger-ghost {
  background: transparent;
  border: 1px solid #5a1a1a;
  color: #ff7a7a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger-ghost:active { transform: scale(0.98); }

.hs-setup {
  border: 1px dashed #7a2a1a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #ffb3a6;
  line-height: 1.5;
}

/* Apple CSV preview */
#hs-apple-preview { margin-top: 10px; }

.hs-preview-sum {
  font-size: 13px;
  margin: 0 0 8px;
}

.hs-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.hs-preview-table th,
.hs-preview-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #262626);
}
.hs-preview-table th {
  color: var(--muted, #9a9a9a);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hs-preview-more {
  color: var(--muted, #9a9a9a);
  font-size: 12px;
  margin: 6px 0 0;
}

/* Manual quick-log */
.hs-manual-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.hs-manual-row input[type="date"],
.hs-manual-row input[type="number"] {
  background: #0e0e0e;
  border: 1px solid var(--border, #3a3a3a);
  color: var(--text, #f2f2f2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  min-width: 0;
}
.hs-manual-row input[type="date"] { flex: 1 1 40%; }
.hs-manual-row input[type="number"] { flex: 1 1 35%; }
.hs-manual-row .btn-red { flex: 1 1 auto; white-space: nowrap; }

.hs-manual-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb3a6;
  border: 1px solid #7a2a1a;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Status message line */
#hs-msg {
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
  min-height: 0;
}
#hs-msg.hs-ok { color: #7de2a8; }
#hs-msg.hs-err { color: #ff8a8a; }
