.wearables { color: var(--cp-text); }
.wearable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wearable-card, .wearable-metric, .wearable-history, .wearable-guidance {
  min-width: 0; padding: 20px; border: 1px solid var(--cp-border); border-radius: 16px;
  background: var(--cp-surface); overflow-wrap: anywhere;
}
.wearable-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wearable-heading h2 { flex: 1 1 120px; margin: 0; }
.wearable-card .badge { white-space: normal; }
.wearable-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.wearable-actions button { min-height: 44px; white-space: normal; }
.wearable-card details { width: 100%; }
.wearables summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.wearable-consent { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cp-border); }
.wearable-consent .check { align-items: start; line-height: 1.5; }
.wearable-consent input { flex-shrink: 0; margin-top: 4px; }
.wearable-latest, .wearable-history, .wearable-guidance { margin-top: 24px; }
.wearable-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.wearable-metric h3 { margin: 0; }
.wearable-metric .wearable-value { font-size: 1.75rem; font-weight: 600; margin: 12px 0 0; }
.wearable-metric p:not(.wearable-value), .wearable-metric time { color: var(--cp-text-muted); font-size: .875rem; }
.wearable-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.wearable-filters label { display: grid; gap: 8px; flex: 1 1 200px; min-width: 0; }
.wearable-filters select { width: 100%; min-height: 44px; }
.wearable-chart { margin: 24px 0; color: var(--cp-accent); }
.wearable-chart svg { display: block; width: 100%; max-height: 200px; border-bottom: 1px solid var(--cp-border); }
.wearable-chart figcaption { color: var(--cp-text-muted); font-size: .875rem; margin-top: 8px; }
.wearable-history caption { text-align: start; font-weight: 600; padding: 12px 0; }
.wearable-history td, .wearable-history th { white-space: normal; overflow-wrap: anywhere; }
.wearable-history code { font-size: .75rem; }
.wearable-guidance { background: var(--cp-accent-soft); }
.wearables [role="alert"] { border-left: 3px solid var(--cp-danger); padding: 12px; }
.wearables [data-wearable-status]:empty { display: none; }
@media (max-width: 1050px) { .wearable-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .wearable-card, .wearable-metric, .wearable-history, .wearable-guidance { padding: 16px; }
  .wearable-metrics { grid-template-columns: 1fr; }
  .wearable-history .table-wrap { margin: 0; }
}
