:root {
  --zc-health-accent: #0d9488;
  --zc-health-accent-soft: rgba(13, 148, 136, 0.12);
  --zc-health-text-soft: #64748b;
}

.zc-health-shell {
  background:
    radial-gradient(circle at top left, rgba(13, 148, 136, 0.22), transparent 24%),
    linear-gradient(180deg, #16346f 0%, #1b3f83 56%, #f8fbff 56%, #ffffff 100%);
}

.zc-health-shell.py-5 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.zc-health-shell .zc-sip-breadcrumb a,
.zc-health-shell .zc-sip-breadcrumb span,
.zc-health-shell .zc-sip-breadcrumb strong,
.zc-health-shell .zc-sip-title {
  color: #ffffff;
}

.zc-health-shell .zc-sip-desc {
  color: rgba(255, 255, 255, 0.88);
  max-width: 860px;
}

.zc-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.zc-health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.zc-health-panel,
.zc-health-summary,
.zc-health-content-card {
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.zc-health-summary {
  position: sticky;
  top: 92px;
  align-self: start;
}

.zc-health-topbar,
.zc-health-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.zc-health-topbar {
  margin-bottom: 16px;
}

.zc-health-section + .zc-health-section {
  margin-top: 20px;
}

.zc-health-section-head {
  margin-bottom: 14px;
}

.zc-health-section-head h2,
.zc-health-section-head h3 {
  margin: 0;
  font-size: 1.04rem;
}

.zc-health-section-head p,
.zc-health-topbar p {
  margin: 4px 0 0;
  color: var(--zc-health-text-soft);
  font-size: 0.9rem;
}

.zc-health-actions,
.zc-health-share-row,
.zc-health-pill-row,
.zc-health-goal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.zc-health-share-row .share-btn {
  border: 0;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 700;
}

.zc-health-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zc-health-field-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zc-health-field {
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.zc-health-field--full {
  grid-column: 1 / -1;
}

.zc-health-field label {
  display: block;
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.zc-health-field input,
.zc-health-field select {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
}

.zc-health-field input:focus,
.zc-health-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.zc-health-field input[type="range"] {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--zc-health-accent);
  box-shadow: none;
  margin-top: 12px;
}

.zc-health-field small,
.zc-health-muted {
  color: var(--zc-health-text-soft);
  font-size: 0.82rem;
}

.zc-health-toggle-group {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.zc-health-toggle-group button,
.zc-health-goal-tabs button {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-weight: 700;
}

.zc-health-toggle-group button.is-active,
.zc-health-goal-tabs button.is-active {
  background: var(--zc-health-accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.zc-health-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--zc-health-accent-soft);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
}

.zc-health-result-hero {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eefcf9 0%, #ffffff 100%);
  border: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.1);
}

.zc-health-result-hero span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zc-health-result-hero strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  color: #0f172a;
  line-height: 1.08;
}

.zc-health-result-hero p {
  margin: 10px 0 0;
  color: #475569;
  font-weight: 600;
}

.zc-health-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.zc-health-kpi {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.zc-health-kpi span {
  display: block;
  color: var(--zc-health-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.zc-health-kpi strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.zc-health-meter {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #fcfffe 0%, #f8fafc 100%);
}

.zc-health-meter-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #60a5fa 0%, #60a5fa 18%, #22c55e 18%, #22c55e 46%, #f59e0b 46%, #f59e0b 72%, #ef4444 72%, #ef4444 100%);
  overflow: hidden;
}

.zc-health-meter-pointer {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
}

.zc-health-meter-scale,
.zc-health-compare-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--zc-health-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.zc-health-chart-card,
.zc-health-insight,
.zc-health-disclaimer {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.zc-health-insight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.zc-health-disclaimer {
  background: #fff8db;
  border-color: #f4e2a1;
}

.zc-health-tabs-panel {
  display: none;
  margin-top: 14px;
}

.zc-health-tabs-panel.is-active {
  display: block;
}

.zc-health-macro-grid,
.zc-health-cycle-grid,
.zc-health-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zc-health-mini-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.zc-health-mini-card span {
  display: block;
  color: var(--zc-health-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.zc-health-mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: #0f172a;
}

.zc-health-bar-stack {
  display: grid;
  gap: 12px;
}

.zc-health-bar {
  display: grid;
  gap: 7px;
}

.zc-health-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}

.zc-health-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.zc-health-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill-width, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--zc-health-accent) 0%, #22c55e 100%);
}

.zc-health-water-visual {
  position: relative;
  height: 220px;
  border-radius: 28px 28px 24px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.zc-health-water-level {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--water-level, 0%);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.8) 0%, rgba(14, 165, 233, 0.92) 100%);
}

.zc-health-water-level::before,
.zc-health-water-level::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 20px;
  border-radius: 40% 60% 60% 40%;
  background: rgba(255, 255, 255, 0.35);
}

.zc-health-water-level::before {
  top: -9px;
  animation: zcWaterWave 5s linear infinite;
}

.zc-health-water-level::after {
  top: -14px;
  opacity: 0.55;
  animation: zcWaterWave 7s linear infinite reverse;
}

.zc-health-water-copy {
  position: absolute;
  inset: 20px 18px auto;
  z-index: 1;
}

.zc-health-water-copy strong {
  display: block;
  color: #0f172a;
  font-size: 1.8rem;
}

.zc-health-water-copy span {
  color: var(--zc-health-text-soft);
  font-weight: 700;
}

.zc-health-compare-grid {
  display: grid;
  gap: 12px;
}

.zc-health-compare-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}

.zc-health-compare-row label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.zc-health-compare-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.zc-health-compare-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--compare-width, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
}

.zc-health-cycle-card time {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.zc-health-link-list {
  display: grid;
  gap: 12px;
}

.zc-health-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.zc-health-link-list small {
  display: block;
  color: var(--zc-health-text-soft);
  margin-top: 2px;
  font-weight: 600;
}

.zc-health-directory-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.zc-health-directory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.zc-health-directory-card .icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bs-light);
  font-size: 22px;
}

.zc-health-directory-badge {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

.zc-health-accordion .accordion-item {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.zc-health-accordion .accordion-item + .accordion-item {
  margin-top: 12px;
}

.zc-health-accordion .accordion-button {
  font-weight: 700;
  box-shadow: none;
}

.zc-health-accordion .accordion-button:not(.collapsed) {
  background: #ecfeff;
  color: #0f172a;
}

@keyframes zcWaterWave {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}

@media (max-width: 1199.98px) {
  .zc-health-layout {
    grid-template-columns: 1fr;
  }

  .zc-health-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .zc-health-shell {
    background:
      radial-gradient(circle at top left, rgba(13, 148, 136, 0.24), transparent 24%),
      linear-gradient(180deg, #16346f 0%, #1b3f83 42%, #f8fbff 42%, #ffffff 100%);
  }

  .zc-health-shell.py-5 {
    padding-top: 1rem !important;
  }

  .zc-health-shell .zc-sip-desc,
  .zc-health-badge {
    display: none;
  }

  .zc-health-panel,
  .zc-health-summary,
  .zc-health-content-card {
    padding: 16px;
    border-radius: 20px;
  }

  .zc-health-field-grid,
  .zc-health-field-grid--3,
  .zc-health-kpi-grid,
  .zc-health-macro-grid,
  .zc-health-cycle-grid,
  .zc-health-card-grid {
    grid-template-columns: 1fr;
  }

  .zc-health-topbar,
  .zc-health-section-head {
    display: block;
  }

  .zc-health-goal-tabs,
  .zc-health-toggle-group,
  .zc-health-actions {
    width: 100%;
  }

  .zc-health-goal-tabs button,
  .zc-health-toggle-group button {
    flex: 1 1 0;
  }

  .zc-health-share-row .share-btn span {
    display: none;
  }

  .zc-health-water-visual {
    height: 180px;
  }

  .zc-health-compare-row {
    grid-template-columns: 88px minmax(0, 1fr) 56px;
    gap: 8px;
  }
}
