.health-panel { --health-border: var(--border, #343732); --health-muted: var(--muted, #a7aaa2); color: var(--text, #f3f4ed); font-size: 15px; line-height: 1.5; }
.health-panel *, .health-panel *::before, .health-panel *::after { box-sizing: border-box; }
.health-panel h2, .health-panel h3, .health-panel h4, .health-panel p { margin: 0; }
.health-heading { margin-bottom: 20px; }
.health-heading h2 { font-size: clamp(24px, 6vw, 32px); letter-spacing: -.035em; line-height: 1.12; margin: 7px 0 10px; }
.health-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.health-heading > p:last-child, .health-capability p, .health-import > p, .health-explainer p { color: var(--health-muted); }
.health-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.health-capability { border: 1px solid var(--health-border); border-radius: 14px; padding: 15px; min-width: 0; }
.health-capability h3 { font-size: 15px; line-height: 1.3; margin-bottom: 8px; }
.health-capability p { font-size: 13px; margin-top: 10px; }
.health-status { display: inline-block; border: 1px solid var(--health-border); border-radius: 20px; padding: 3px 8px; font-size: 10px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.health-status.is-available { background: #e9f0dc; color: #314421; border-color: #bac9a6; }
.health-import { padding: 20px; border: 1px solid var(--health-border); border-radius: 18px; background: var(--panel, #1b1d1b); }
.health-import h3, .health-history > h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 8px; }
.health-import > p { font-size: 14px; }
.health-file-label { display: block; font-weight: 700; margin-top: 18px; }
.health-file { display: block; width: 100%; max-width: 100%; font: inherit; font-size: 13px; margin-top: 7px; min-height: 48px; color: var(--health-muted); }
.health-file::file-selector-button { min-height: 44px; padding: 9px 12px; margin-right: 10px; border: 1px solid var(--health-border); border-radius: 10px; background: var(--panel2, #222521); color: var(--text, #f3f4ed); font: inherit; font-weight: 700; cursor: pointer; }
.health-hint, .health-import > .health-hint { font-size: 12px; color: var(--health-muted); line-height: 1.5; margin-top: 10px; overflow-wrap: anywhere; }
.health-preview-card { border-top: 1px solid var(--health-border); margin-top: 20px; padding-top: 18px; }
.health-preview-card h4 { font-size: 17px; margin-bottom: 14px; }
.health-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; margin: 16px 0; }
.health-facts > div { min-width: 0; }
.health-facts dt { color: var(--health-muted); font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.health-facts dd { font-size: 17px; font-weight: 750; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.health-facts dd small { font-size: 11px; color: var(--health-muted); font-weight: 500; }
.health-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 13px 0; font-size: 13px; cursor: pointer; }
.health-consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: #3d5129; }
.health-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.health-button, .health-text-button { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 10px 14px; border: 1px solid var(--health-border); border-radius: 10px; cursor: pointer; }
.health-button.is-primary { color: #151b0e; background: var(--lime, #d1ec99); border-color: var(--lime, #d1ec99); }
.health-button.is-quiet { color: var(--text, #f3f4ed); background: var(--panel2, #222521); }
.health-button.is-danger { color: #ffb4aa; background: #301d1c; border-color: #734c46; }
.health-text-button { padding: 8px 0; color: #ffb4aa; background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.health-panel button:disabled, .health-file:disabled { opacity: .5; cursor: not-allowed; }
.health-panel :is(button, input, summary):focus-visible { outline: 3px solid #698536; outline-offset: 3px; }
.health-message { font-size: 14px; color: var(--lime, #d1ec99); margin: 14px 0 20px !important; overflow-wrap: anywhere; }
.health-message:empty { margin: 16px 0 !important; }
.health-message.is-error { color: #ffb4aa; }
.health-record { border: 1px solid var(--health-border); border-radius: 16px; margin-top: 12px; padding: 17px; min-width: 0; }
.health-record-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.health-record-top > div { min-width: 0; }
.health-record h4 { font-size: 16px; overflow-wrap: anywhere; }
.health-record-top p { font-size: 12px; color: var(--health-muted); margin-top: 3px; }
.health-panel details { margin-top: 16px; }
.health-panel summary { min-height: 44px; cursor: pointer; font-weight: 650; padding: 11px 0; font-size: 13px; }
.health-phases { list-style: none; padding: 0; margin: 3px 0; }
.health-phases li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--health-border); font-size: 13px; }
.health-phases li span:first-child { overflow-wrap: anywhere; }
.health-phases li span:last-child { white-space: nowrap; }
.health-delete { margin-top: 10px; }
.health-delete p { font-size: 13px; margin: 12px 0 8px; }
.health-delete .health-button { margin: 4px 6px 0 0; }
.health-empty { padding: 20px; border: 1px dashed var(--health-border); border-radius: 14px; margin-top: 12px; }
.health-empty p, .health-muted { color: var(--health-muted); font-size: 13px; margin-top: 6px; }
.health-explainer { border-top: 1px solid var(--health-border); padding-top: 8px; margin-top: 24px !important; }
.health-explainer p { font-size: 13px; margin-bottom: 12px; }
@media (max-width: 480px) {
  .health-capabilities { grid-template-columns: 1fr; }
  .health-capability > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .health-capability h3 { margin: 2px 0 0; }
  .health-capability p { margin-top: 8px; }
  .health-import { padding: 16px; }
  .health-record { padding: 15px; }
  .health-actions .is-primary { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .health-panel * { scroll-behavior: auto; } }
