:root {
  --hc-bg: #f7f8f6;
  --hc-surface: #ffffff;
  --hc-surface-soft: #f3f5f2;
  --hc-text: #243127;
  --hc-text-soft: #617067;
  --hc-border: #dfe6df;
  --hc-accent: #6f8f76;
  --hc-accent-soft: #e8efe9;
  --hc-radius: 20px;
  --hc-radius-sm: 12px;
  --hc-shadow: 0 10px 30px rgba(28, 44, 32, 0.06);
  --hc-gap: 24px;
  --hc-gap-sm: 14px;
  --hc-gap-lg: 36px;
  --hc-pad: 24px;
  --hc-max-width: 1200px;
  --hc-font-size-base: 16px;
  --hc-line-height: 1.55;
}

.herclarity-dashboard,
.herclarity-section,
.herclarity-module {
  box-sizing: border-box;
  font-size: var(--hc-font-size-base);
  line-height: var(--hc-line-height);
  color: var(--hc-text);
}

.herclarity-dashboard * ,
.herclarity-section * ,
.herclarity-module * {
  box-sizing: border-box;
}

.herclarity-dashboard {
  width: 100%;
  max-width: var(--hc-max-width);
  margin: 0 auto;
}

.herclarity-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--hc-gap);
}

.herclarity-span-12 { grid-column: span 12; }

@media (min-width: 992px) {
  .herclarity-span-lg-4 { grid-column: span 4; }
  .herclarity-span-lg-5 { grid-column: span 5; }
  .herclarity-span-lg-6 { grid-column: span 6; }
  .herclarity-span-lg-7 { grid-column: span 7; }
  .herclarity-span-lg-8 { grid-column: span 8; }
}

.herclarity-module {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  box-shadow: var(--hc-shadow);
  padding: var(--hc-pad);
  box-sizing: border-box !important;
  min-width: 0;
}

.herclarity-style--plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.herclarity-style--soft {
  background: var(--hc-surface-soft);
}

.herclarity-module__header,
.herclarity-section__header {
  margin-bottom: 18px;
}

.herclarity-module__title,
.herclarity-section__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--hc-text);
}

.herclarity-module__subtitle,
.herclarity-section__subtitle {
  margin: 0;
  color: var(--hc-text-soft);
  font-size: 0.96rem;
}

.herclarity-section {
  max-width: var(--hc-max-width);
  margin: 0 auto 36px;
}

.herclarity-section__body {
  display: block;
}

.herclarity-stack {
  display: flex;
  flex-direction: column;
  gap: var(--hc-gap-sm);
}

.herclarity-list-card,
.herclarity-insight {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--hc-surface-soft);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  padding: 16px 18px;
  overflow: hidden;
  min-width: 0;
}

.herclarity-list-card h3,
.herclarity-insight p,
.herclarity-summary__text,
.herclarity-card-stat p,
.herclarity-empty-state p {
  margin: 0;
}

.herclarity-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hc-text-soft);
  margin-bottom: 10px;
}

.herclarity-big-number {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 12px;
}

.herclarity-muted {
  color: var(--hc-text-soft);
  font-size: 0.95rem;
}

.herclarity-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--hc-accent);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
}

.herclarity-badge--soft {
  background: var(--hc-accent-soft);
  color: var(--hc-text);
}

.herclarity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-text);
  color: #fff;
  padding: 12px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

.herclarity-button:hover {
  opacity: 0.92;
}

.herclarity-summary__meta {
  margin-top: 16px;
}

.herclarity-confidence__score {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.herclarity-progress {
  width: 100%;
  height: 10px;
  background: var(--hc-accent-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.herclarity-progress span {
  display: block;
  height: 100%;
  background: var(--hc-accent);
  border-radius: 999px;
}

.herclarity-chart-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.herclarity-chart-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 110px;
  margin-bottom: 16px;
}

.herclarity-chart-bars span {
  display: block;
  flex: 1;
  border-radius: 12px 12px 0 0;
  background: var(--hc-accent-soft);
}

.herclarity-chart-bars span:nth-child(1) { height: 38%; }
.herclarity-chart-bars span:nth-child(2) { height: 72%; }
.herclarity-chart-bars span:nth-child(3) { height: 55%; }
.herclarity-chart-bars span:nth-child(4) { height: 88%; }
.herclarity-chart-bars span:nth-child(5) { height: 64%; }

.herclarity-empty-state {
  padding: 6px 0;
}

.herclarity-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.herclarity-loading__line {
  height: 12px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #eef2ee 0%,
    #f7f9f7 50%,
    #eef2ee 100%
  );
  background-size: 200% 100%;
  animation: herclarity-shimmer 1.5s infinite linear;
}

.herclarity-loading__line--lg { width: 76%; }
.herclarity-loading__line--sm { width: 52%; }

@keyframes herclarity-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 991px) {
  .herclarity-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .herclarity-span-12,
  .herclarity-span-lg-4,
  .herclarity-span-lg-5,
  .herclarity-span-lg-6,
  .herclarity-span-lg-7,
  .herclarity-span-lg-8 {
    grid-column: auto;
  }

  .herclarity-module,
  .herclarity-style--plain {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .herclarity-module,
  .herclarity-style--plain {
    padding: 16px 12px;
  }
}
.herclarity-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  color: var(--hc-text-soft);
  font-size: 0.95rem;
}

.herclarity-error-state {
  border-left: 4px solid #c97c5d;
  padding-left: 12px;
}
/* ── Experiment Detail Page ─────────────────────────── */

.hc-experiment-detail {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.hc-detail-header {
    margin-bottom: 24px;
}

.hc-detail-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2a2420;
    margin-bottom: 6px;
}

.hc-detail-meta {
    font-size: 13px;
    color: #9a9088;
    margin-bottom: 12px;
}

.hc-hypothesis {
    font-style: italic;
    color: #6b5e50;
    border-left: 3px solid #ddb071;
    padding-left: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.hc-result-hero {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 16px;
    box-shadow: 0 2px 12px rgba(60, 45, 30, 0.08);
    border-left: 4px solid #ddb071;
}

.hc-result-label {
    font-size: 17px;
    font-weight: 600;
    color: #2a2420;
    margin-bottom: 8px;
}

.hc-result-stats {
    font-size: 13px;
    color: #6b5e50;
}

.hc-stat-improved { color: #4a7c59; font-weight: 500; }
.hc-stat-worsened { color: #9c3d3d; font-weight: 500; }
.hc-stat-unchanged { color: #7a7068; }
.hc-stat-divider { margin: 0 6px; color: #e8e0d5; }

.hc-detail-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(60, 45, 30, 0.06);
}

.hc-detail-section h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #6b5e50;
    margin-bottom: 16px;
}

.hc-detail-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4038;
}

.hc-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0ece6;
}

.hc-metric-row:last-child {
    border-bottom: none;
}

.hc-metric-name {
    font-size: 14px;
    color: #2a2420;
}

.hc-metric-result {
    font-size: 13px;
    font-weight: 500;
}

.hc-result-improved { color: #4a7c59; }
.hc-result-worsened { color: #9c3d3d; }
.hc-result-unchanged { color: #7a7068; }

.hc-confidence-bar {
    background: #f0ece6;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.hc-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ddb071, #e8c88a);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.hc-confidence-label {
    font-size: 13px;
    color: #9a9088;
}

.hc-detail-footer {
    margin-top: 32px;
    text-align: center;
}

.hc-btn-share {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ddb071, #e8c88a);
    color: #2a2420;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-btn-share:hover {
    background: linear-gradient(135deg, #e8c88a, #ddb071);
    color: #1a1410;
}

.hc-btn-secondary {
    font-size: 13px;
    color: #6b5e50;
    text-decoration: none;
    border: 1px solid #e8e0d5;
    padding: 10px 24px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.2s ease;
}

.hc-btn-secondary:hover {
    background: #faf8f5;
    color: #2a2420;
}

.hc-privacy-bottom {
    font-size: 12px;
    color: #b0a898;
    margin-top: 20px;
}
.herclarity-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.herclarity-card-link:hover .herclarity-list-card {
    box-shadow: 0 4px 16px rgba(60, 45, 30, 0.12);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}



/* ============================================================
   Getting Started Form — scoped to body .hc-gs-wrap
   Prefixed with `body` throughout to outrank Salient/WPBakery
   theme stylesheets which load after this file.
   ============================================================ */

/* ── Wrapper & shell ────────────────────────────────────────── */

body .hc-gs-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  font-size: 1rem;
  line-height: var(--hc-line-height, 1.55);
  color: var(--hc-text, #243127);
  box-sizing: border-box;
}

body .hc-gs-wrap * {
  box-sizing: border-box;
}

/* ── Progress bar ───────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-progress-label {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  margin-bottom: 8px;
}

body .hc-gs-wrap .hc-gs-progress-track {
  width: 100%;
  height: 14px;
  background: var(--hc-border, #dfe6df);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 36px;
}

body .hc-gs-wrap .hc-gs-progress-fill {
  height: 100%;
  background: var(--hc-text-soft, #617067);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  transition: width 0.3s ease;
}

body .hc-gs-wrap .hc-gs-progress-pct {
  font-size: 0.6875rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
}

/* ── Step headings ──────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin: 0 0 10px;
  line-height: 1.25;
}

body .hc-gs-wrap .hc-gs-subheading {
  font-size: 1rem;
  color: var(--hc-text-soft, #617067);
  margin: 0 0 28px;
  line-height: 1.55;
}

/* ── Fields ─────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-field {
  margin-bottom: 22px;
}

body .hc-gs-wrap .hc-gs-field--error .hc-gs-input,
body .hc-gs-wrap .hc-gs-field--error .hc-gs-select,
body .hc-gs-wrap .hc-gs-field--error .hc-gs-textarea {
  border-bottom-color: #c0392b;
}

body .hc-gs-wrap .hc-gs-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 540px) {
  body .hc-gs-wrap .hc-gs-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Labels ─────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 6px;
}

body .hc-gs-wrap .hc-gs-optional {
  font-weight: 400;
  color: #767676;
  font-size: 0.875rem;
}

body .hc-gs-wrap .hc-gs-required {
  color: #c0392b;
  font-weight: 600;
}

/* ── Inputs ─────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-input {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 10px 12px;
  background: #f4f4f4;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
  color: var(--hc-text, #243127);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 2px;
}

body .hc-gs-wrap .hc-gs-input:focus {
  border-bottom-color: var(--hc-text-soft, #617067);
}

body .hc-gs-wrap .hc-gs-input--pw-top {
  margin-bottom: 8px;
}

body .hc-gs-wrap .hc-gs-textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 10px 12px;
  background: #f4f4f4;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
  color: var(--hc-text, #243127);
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.15s;
  font-family: inherit;
}

body .hc-gs-wrap .hc-gs-textarea:focus {
  border-bottom-color: var(--hc-text-soft, #617067);
}

/* ── Select ─────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-select-wrap {
  position: relative;
}

body .hc-gs-wrap .hc-gs-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--hc-text-soft, #617067);
  font-size: 1rem;
}

body .hc-gs-wrap .hc-gs-select {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 10px 36px 10px 12px;
  background: #f4f4f4;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
  color: var(--hc-text, #243127);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

body .hc-gs-wrap .hc-gs-select:focus {
  border-bottom-color: var(--hc-text-soft, #617067);
}

/* ── Radio group ────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

body .hc-gs-wrap .hc-gs-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--hc-text, #243127);
  cursor: pointer;
}

/* ── Checkbox grid ──────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 540px) {
  body .hc-gs-wrap .hc-gs-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body .hc-gs-wrap .hc-gs-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--hc-text, #243127);
  cursor: pointer;
  line-height: 1.4;
}

/* ── Custom fields panel ────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-custom-fields {
  margin-top: 16px;
}

body .hc-gs-wrap .hc-gs-custom-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hc-text-soft, #617067);
  margin-bottom: 4px;
}

/* ── Helper & error text ────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-helper {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  margin-top: 6px;
  line-height: 1.5;
}

body .hc-gs-wrap .hc-gs-field-note {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  margin: 0 0 10px;
  line-height: 1.5;
}

body .hc-gs-wrap .hc-gs-bio-note {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  margin: 0 0 10px;
}

body .hc-gs-wrap .hc-gs-error {
  font-size: 0.875rem;
  color: #c0392b;
  margin-top: 6px;
}

/* ── Divider ────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-divider {
  border: none;
  border-top: 1px solid var(--hc-border, #dfe6df);
  margin: 28px 0;
}

/* ── Nav row ────────────────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hc-border, #dfe6df);
}

/* Back button */
body .hc-gs-wrap .hc-gs-btn-back {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: transparent;
  color: var(--hc-text, #243127);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

body .hc-gs-wrap .hc-gs-btn-back:hover {
  border-color: var(--hc-text-soft, #617067);
  background: #f4f4f4;
}

/* Next button — terracotta */
body .hc-gs-wrap .hc-gs-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 999px;
  border: none;
  background: #b85c38;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  text-decoration: none;
}

body .hc-gs-wrap .hc-gs-btn-next:hover {
  background: #a04e2f;
}

body .hc-gs-wrap .hc-gs-btn-next:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Skip link */
body .hc-gs-wrap .hc-gs-btn-skip {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  color: var(--hc-text-soft, #617067);
  text-decoration: underline;
  cursor: pointer;
}

body .hc-gs-wrap .hc-gs-btn-skip:hover {
  color: var(--hc-text, #243127);
}

/* ── Step 5: Metric blocks ──────────────────────────────────── */

body .hc-gs-wrap .hc-gs-metric-block {
  margin-bottom: 36px;
}

body .hc-gs-wrap .hc-gs-metric-block:last-child {
  margin-bottom: 0;
}

body .hc-gs-wrap .hc-gs-metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Row: 😔 [buttons] 😊 */
body .hc-gs-wrap .hc-gs-metric-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}

body .hc-gs-wrap .hc-gs-scale-anchor {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Button row — flex-shrink:0 keeps right emoji snug against button 10 */
body .hc-gs-wrap .hc-gs-num-btn-row {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

/* Tappable circle buttons — 38px.
   !important on shape properties beats Salient's button resets. */
body .hc-gs-wrap .hc-gs-num-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--hc-border, #dfe6df) !important;
  background: #f4f4f4 !important;
  color: var(--hc-text-soft, #617067);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  overflow: hidden;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body .hc-gs-wrap .hc-gs-num-btn:hover {
  border-color: var(--hc-text-soft, #617067) !important;
  background: #ebebeb !important;
  color: var(--hc-text, #243127);
}

body .hc-gs-wrap .hc-gs-num-btn--active {
  background: #b85c38 !important;
  border-color: #b85c38 !important;
  color: #ffffff !important;
}

body .hc-gs-wrap .hc-gs-num-btn--active:hover {
  background: #a04e2f !important;
  border-color: #a04e2f !important;
}

@media (max-width: 400px) {
  body .hc-gs-wrap .hc-gs-num-btn-row {
    gap: 4px;
  }
  body .hc-gs-wrap .hc-gs-num-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    font-size: 0.75rem;
  }
  body .hc-gs-wrap .hc-gs-scale-anchor {
    font-size: 1rem;
  }
}

/* ── Step 6: Disclaimer ─────────────────────────────────────── */

body .hc-gs-wrap .hc-gs-disclaimer {
  background: var(--hc-surface-soft, #f3f5f2);
  border-left: 3px solid var(--hc-text-soft, #617067);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
}

body .hc-gs-wrap .hc-gs-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hc-text-soft, #617067);
  line-height: 1.55;
}

/* ── Step 6: Consent checkboxes ─────────────────────────────── */

body .hc-gs-wrap .hc-gs-checkbox-label--consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

body .hc-gs-wrap .hc-gs-checkbox-label--consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #b85c38;
}

/* ── Step 6: Submission error block ─────────────────────────── */

body .hc-gs-wrap .hc-gs-submit-error {
  margin-top: 20px;
  background: #fff5f3;
  border: 1.5px solid #f0b8a8;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
}

body .hc-gs-wrap .hc-gs-submit-error p {
  margin: 0 0 14px;
  color: var(--hc-text, #243127);
  font-size: 0.95rem;
  line-height: 1.5;
}

body .hc-gs-wrap .hc-gs-submit-error .hc-gs-btn-next {
  margin: 0 auto;
}

/* ── Step 1: Email already exists inline message ────────────── */

body .hc-gs-wrap .hc-gs-email-exists {
  margin-top: 8px;
  padding: 10px 14px;
  background: #fff8f0;
  border-left: 3px solid #b85c38;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: var(--hc-text, #243127);
  line-height: 1.5;
}

body .hc-gs-wrap .hc-gs-email-exists__link {
  color: #b85c38;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

body .hc-gs-wrap .hc-gs-email-exists__link:hover {
  color: #a04e2f;
}

/* ============================================================
   HerClarity Login Page — scoped to body .hc-login-wrap
   ============================================================ */

body .hc-login-wrap {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
}

body .hc-login-brand {
  text-align: center;
  margin-bottom: 32px;
}

body .hc-login-brand__tagline {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  letter-spacing: 0.04em;
  margin: 0;
  font-style: italic;
}

body .hc-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--hc-border, #dfe6df);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(28, 44, 32, 0.07);
}

body .hc-login-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin: 0 0 6px;
  line-height: 1.2;
}

body .hc-login-subheading {
  font-size: 1rem;
  color: var(--hc-text-soft, #617067);
  margin: 0 0 28px;
}

body .hc-login-error {
  background: #fff5f3;
  border: 1.5px solid #f0b8a8;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #b85c38;
  margin-bottom: 20px;
  line-height: 1.5;
}

body .hc-login-field {
  margin-bottom: 20px;
}

body .hc-login-field--inline {
  margin-bottom: 24px;
}

body .hc-login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

body .hc-login-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 6px;
}

body .hc-login-label-row .hc-login-label {
  margin-bottom: 0;
}

body .hc-login-forgot {
  font-size: 0.8125rem;
  color: var(--hc-text-soft, #617067);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body .hc-login-forgot:hover {
  color: var(--hc-text, #243127);
}

body .hc-login-input {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 11px 14px;
  background: #f4f4f4;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
  color: var(--hc-text, #243127);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

body .hc-login-input:focus {
  border-bottom-color: var(--hc-text-soft, #617067);
}

body .hc-login-pw-wrap {
  position: relative;
}

body .hc-login-pw-wrap .hc-login-input {
  padding-right: 44px;
}

body .hc-login-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--hc-text-soft, #617067);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

body .hc-login-pw-toggle:hover,
body .hc-login-pw-toggle--active {
  color: var(--hc-text, #243127);
}

body .hc-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--hc-text, #243127);
  cursor: pointer;
}

body .hc-login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #b85c38;
  cursor: pointer;
  flex-shrink: 0;
}

body .hc-login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #b85c38;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 20px;
  font-family: inherit;
}

body .hc-login-btn:hover {
  background: #a04e2f;
}

body .hc-login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body .hc-login-new-user {
  text-align: center;
  font-size: 0.9rem;
  color: var(--hc-text-soft, #617067);
  margin: 0;
}

body .hc-login-new-user__link {
  color: #b85c38;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body .hc-login-new-user__link:hover {
  color: #a04e2f;
}

@media (max-width: 480px) {
  body .hc-login-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
}

/* ============================================================
   Email verification modal overlay
   Blocks dashboard until user verifies email.
   Only rendered when HC_EMAIL_VERIFICATION_ENABLED = true
   and user has not yet verified their email.
   ============================================================ */

.hc-verify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 39, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.hc-verify-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(28, 44, 32, 0.18);
}

.hc-verify-modal__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1;
}

.hc-verify-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin: 0 0 12px;
  line-height: 1.2;
}

.hc-verify-modal__text {
  font-size: 1rem;
  color: var(--hc-text-soft, #617067);
  line-height: 1.6;
  margin: 0 0 28px;
}

.hc-verify-modal__btn {
  display: block;
  width: 100%;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  background: #b85c38;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  margin-bottom: 16px;
}

.hc-verify-modal__btn:hover {
  background: #a04e2f;
}

.hc-verify-modal__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hc-verify-modal__hint {
  font-size: 0.875rem;
  color: var(--hc-text-soft, #617067);
  margin: 0;
}

.hc-verify-modal__hint a {
  color: #b85c38;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .hc-verify-modal {
    padding: 36px 24px 28px;
  }
}
/* ============================================================
   Wellness Log Form (checkin-form.js)
   Scoped to .hc-cl-* classes.
   Append this block to the bottom of dashboard.css.
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────── */

.hc-cl-wrap {
  max-width: 680px;
  padding: 0;
}

/* ── Header block ───────────────────────────────────────────── */

.hc-cl-header {
  margin-bottom: 12px;
}

.hc-cl-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 4px;
  line-height: 1.25;
}

.hc-cl-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.hc-cl-meta {
  font-size: 15px;
  color: var(--hc-text-soft, #617067);
  line-height: 1.5;
}

.hc-cl-date-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--hc-text, #243127);
}

.hc-cl-back {
  font-size: 13px;
  color: var(--hc-text-soft, #617067);
  text-decoration: none;
  display: block;
  margin-top: 6px;
  margin-bottom: 16px;
}

.hc-cl-back:hover {
  color: var(--hc-text, #243127);
}

.hc-cl-change-date-btn {
  font-size: 13px;
  color: var(--hc-text-soft, #617067);
  background: var(--hc-surface-soft, #f3f5f2);
  border: 1px solid var(--hc-border, #dfe6df);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
}

.hc-cl-date-picker {
  margin-top: 8px;
  margin-bottom: 4px;
}

.hc-cl-backdate-note {
  font-size: 15px;
  color: #4a6b50;
  margin: 4px 0 0;
}

/* ── Prefill note ───────────────────────────────────────────── */

.hc-cl-prefill-note {
  font-size: 15px;
  color: var(--hc-text-soft, #617067);
  background: var(--hc-surface-soft, #f3f5f2);
  border-left: 2px solid #4a6b50;
  border-radius: 0 6px 6px 0;
  padding: 7px 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ── Divider ────────────────────────────────────────────────── */

.hc-cl-divider {
  border: none;
  border-top: 1px solid var(--hc-border, #dfe6df);
  margin: 0 0 12px;
}

/* ── Section block ──────────────────────────────────────────── */

.hc-cl-section {
  margin-bottom: 12px;
}

.hc-cl-section-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin: 0 0 8px;
  line-height: 1.4;
  padding: 0;
}

.hc-cl-helper {
  font-size: 15px;
  color: var(--hc-text-soft, #617067);
  margin: 0 0 8px;
  line-height: 1.5;
  padding: 0;
}

/* ── Field block ────────────────────────────────────────────── */

.hc-cl-field {
  margin-bottom: 12px;
}

.hc-cl-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 6px;
}

/* ── Typography helpers ─────────────────────────────────────── */

.hc-cl-required {
  color: #c0392b;
  font-size: 16px;
  font-weight: 600;
}

.hc-cl-optional {
  font-size: 15px;
  font-weight: 400;
  color: var(--hc-text-soft, #617067);
}

.hc-cl-error {
  font-size: 14px;
  color: #c0392b;
  margin: 4px 0 0;
}

/* ── Scale metric block ─────────────────────────────────────── */

.hc-cl-metric {
  margin-bottom: 12px;
}

.hc-cl-metric-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-text, #243127);
  margin-bottom: 6px;
  line-height: 1.4;
}

.hc-cl-scale-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.hc-cl-scale-anchor {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.hc-cl-scale-btns {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  gap: 4px;
}

.hc-cl-scale-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--hc-border, #dfe6df) !important;
  background: #f4f4f4 !important;
  color: var(--hc-text-soft, #617067);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.hc-cl-scale-btn:hover {
  border-color: var(--hc-text-soft, #617067) !important;
  background: #ebebeb !important;
  color: var(--hc-text, #243127);
}

.hc-cl-scale-btn--active {
  background: #4a7c59 !important;
  border-color: #4a7c59 !important;
  color: #ffffff !important;
}

.hc-cl-scale-btn--active:hover {
  background: #3a6349 !important;
  border-color: #3a6349 !important;
}

/* ── Scale button grid + anchors ────────────────────────────── */

.hc-cl-scale-wrap {
  display: block;
  width: 100%;
  max-width: 600px;
}

.hc-cl-scale-btns-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
}

.hc-cl-scale-btns-grid .hc-cl-scale-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1 !important;
}

.hc-cl-scale-anchors {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.hc-cl-scale-anchors span {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.hc-cl-adh-field .hc-cl-adh-row {
  max-width: 600px;
}

@media (max-width: 400px) {
  .hc-cl-scale-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 11px;
  }
  .hc-cl-scale-btns {
    gap: 3px;
  }
}

/* ── Adherence buttons ──────────────────────────────────────── */

.hc-cl-adh-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hc-cl-adh-btn {
  flex: 1;
  padding: 9px;
  border-radius: 999px;
  border: 1.5px solid var(--hc-border, #dfe6df);
  background: transparent;
  color: var(--hc-text, #243127);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.hc-cl-adh-btn:hover {
  border-color: var(--hc-text-soft, #617067);
  background: var(--hc-surface-soft, #f3f5f2);
}

.hc-cl-adh-btn--active {
  background: #b85c38;
  border-color: #b85c38;
  color: #ffffff;
  font-weight: 600;
}

.hc-cl-adh-btn--active:hover {
  background: #a04e2f;
  border-color: #a04e2f;
}

/* ── Textarea ───────────────────────────────────────────────── */

.hc-cl-textarea {
  display: block;
  width: 100%;
  max-width: 600px;
  font-size: 15px;
  padding: 10px 12px;
  background: #f4f4f4;
  border: none;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 4px 4px 0 0;
  color: var(--hc-text, #243127);
  outline: none;
  resize: vertical;
  height: 64px;
  min-height: 0;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.hc-cl-textarea:focus {
  border-bottom-color: var(--hc-text-soft, #617067);
}

/* ── Save button ────────────────────────────────────────────── */

.hc-cl-save-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  background: #2c4a35;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  font-family: inherit;
  margin-top: 8px;
}

.hc-cl-save-btn:hover {
  background: #1e3325;
}

.hc-cl-save-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Skip link ──────────────────────────────────────────────── */

.hc-cl-skip-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--hc-text-soft, #617067);
  text-decoration: underline;
  cursor: pointer;
}

.hc-cl-skip-link:hover {
  color: var(--hc-text, #243127);
}
/* ============================================================
   HerClarity AI — dashboard.css Refactor 2 additions
   Append this entire block to the bottom of dashboard.css
   ============================================================ */

/* ── Header layout ──────────────────────────────────────────── */

.herclarity-dashboard-header,
.herclarity-header,
.entry-header,
.page-header {
  position: relative;
}

.herclarity-header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.herclarity-welcome {
  font-size: 0.95rem;
  color: var(--hc-text-soft);
  margin: 0 0 20px;
}

.herclarity-logout-link {
  font-size: 0.85rem;
  color: var(--hc-text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.herclarity-logout-link:hover {
  color: var(--hc-text);
}

/* ── Button variants ─────────────────────────────────────────── */

.herclarity-button--primary {
  background: var(--hc-text);
  color: #fff;
  margin-top: 0;
}

.herclarity-button--secondary {
  background: transparent;
  color: var(--hc-text);
  border: 1px solid var(--hc-border);
  margin-top: 0;
}

.herclarity-button--secondary:hover {
  background: var(--hc-surface-soft);
  opacity: 1;
}

.herclarity-button--sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  margin-top: 0;
}

.herclarity-new-experiment-btn {
  margin-top: 0;
  font-size: 0.875rem;
  padding: 8px 18px;
  text-decoration: none;
}

/* ── Badge variants ──────────────────────────────────────────── */

.herclarity-badge--success {
  background: #e8efe9;
  color: #3b6b42;
}

.herclarity-badge--active {
  background: #e8efe9;
  color: #3b6b42;
}

/* ── Category chip ───────────────────────────────────────────── */

.herclarity-chip {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--hc-surface-soft);
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--hc-text-soft);
  white-space: nowrap;
}

/* ── TODAY card — per-experiment blocks ──────────────────────── */

.herclarity-today-experiments {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.herclarity-today-experiment {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hc-border);
}

.herclarity-today-experiment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.herclarity-today-experiment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.herclarity-today-experiment__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hc-text);
  text-transform: capitalize;
  flex: 1;
  min-width: 0;
}

/* ── Milestone tracker ───────────────────────────────────────── */

.herclarity-milestone-tracker {
  display: flex;
  align-items: center;
  gap: 0;
}

.herclarity-milestone {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.herclarity-milestone__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--hc-border);
  background: var(--hc-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  color: transparent;
}

.herclarity-milestone--reached .herclarity-milestone__dot {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
  font-size: 10px;
  color: #fff;
}

.herclarity-milestone__connector {
  flex: 1;
  height: 1px;
  background: var(--hc-border);
  margin: 0 4px;
  min-width: 12px;
  max-width: 24px;
}

.herclarity-milestone__label {
  font-size: 0.75rem;
  color: var(--hc-text-soft);
  white-space: nowrap;
}

.herclarity-milestone--reached .herclarity-milestone__label {
  color: var(--hc-text);
}

.herclarity-milestone__hint {
  font-size: 0.72rem;
  color: var(--hc-text-soft);
  opacity: 0.75;
}

/* ── Log all shortcut ────────────────────────────────────────── */

.herclarity-log-all {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hc-border);
}

.herclarity-log-all a {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.herclarity-log-all a:hover {
  color: var(--hc-text);
}

/* ── Experiments card — list card updates ────────────────────── */

.herclarity-list-card__body {
  flex: 1;
  min-width: 0;
}

.herclarity-list-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.herclarity-list-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hc-text);
  margin: 0;
  line-height: 1.3;
}

.herclarity-experiment-progress,
.herclarity-experiment-days {
  font-size: 0.8rem;
  color: var(--hc-text-soft);
}

/* ── Empty state prompt ──────────────────────────────────────── */

.herclarity-empty-prompt {
  font-size: 1rem;
  color: var(--hc-text);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── HerClarity Score card ───────────────────────────────────── */

.herclarity-score-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 12px;
}

.herclarity-score-number {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  color: var(--hc-text);
}

.herclarity-score-denom {
  font-size: 1.2rem;
  color: var(--hc-text-soft);
  font-weight: 400;
}

.herclarity-score-date {
  margin: 0 0 14px;
  font-size: 0.875rem;
}

/* ── Data Strength card ──────────────────────────────────────── */

.herclarity-data-strength__hint {
  font-size: 1rem;
  color: var(--hc-accent);
  font-weight: 500;
  margin: 0 0 8px;
}

/* ── Data sharing toggle ─────────────────────────────────────── */

.herclarity-data-sharing-toggle {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hc-border);
}

.herclarity-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.herclarity-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.herclarity-toggle-track {
  width: 38px;
  height: 22px;
  background: var(--hc-border);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.herclarity-toggle-input:checked + .herclarity-toggle-track {
  background: var(--hc-accent);
}

.herclarity-toggle-track::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.herclarity-toggle-input:checked + .herclarity-toggle-track::after {
  transform: translateX(16px);
}

.herclarity-toggle-text {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  line-height: 1.4;
}

/* ── Delete account link ─────────────────────────────────────── */

.herclarity-delete-account {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--hc-text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
}

.herclarity-delete-account:hover {
  opacity: 1;
  color: var(--hc-text);
}

/* ── Share button ────────────────────────────────────────────── */

.herclarity-share-btn {
  margin-top: 0;
}

/* ── Responsive adjustments ──────────────────────────────────── */

@media (max-width: 991px) {
  .herclarity-header-actions {
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .herclarity-milestone__label {
    display: none;
  }

  .herclarity-milestone__hint {
    display: none;
  }

  .herclarity-score-number {
    font-size: 2.4rem;
  }
}
.herclarity-all-logged {
  font-size: 1rem;
  color: var(--hc-accent);
  font-weight: 500;
  margin: 0;
}

.herclarity-milestone-progress {
  display: block;
  font-size: 0.78rem;
  color: var(--hc-text-soft);
  margin-top: 6px;
}

.herclarity-milestone-progress--complete {
  color: var(--hc-accent);
}
.herclarity-list-card--experiment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  overflow: hidden;
}

.herclarity-list-card__link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 16px 18px;
}

.herclarity-list-card__link:hover .herclarity-list-card__title {
  color: var(--hc-accent);
}

.herclarity-list-card__action {
  padding: 16px 18px 16px 0;
  flex-shrink: 0;
}

.herclarity-save-log-btn {
  white-space: nowrap;
}
.herclarity-toggle-input {
  position: static;
  opacity: 1;
  width: auto;
  height: auto;
  margin-right: 8px;
}

.herclarity-toggle-track {
  display: none;
}
/* ─────────────────────────────────────────────────────────────────────────────
   HERCLARITY SCORE CARD
   Full-width card at top of dashboard — two states: empty and scored.
───────────────────────────────────────────────────────────────────────────── */

.herclarity-score-card {
  padding: 0;
}

.herclarity-score-card__kicker {
  font-size: 0.89rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-text-soft);
  margin-bottom: 0.5rem;
}

.herclarity-score-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hc-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ── Score header row (number + button) ─────────────────────────────────── */

.herclarity-score-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.herclarity-score-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.herclarity-score-number {
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--hc-text);
  line-height: 1;
}

.herclarity-score-number--empty {
  color: var(--hc-text-soft);
}

.herclarity-score-denom {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--hc-text-soft);
}

.herclarity-score-sublabel {
  font-size: 0.81rem;
  color: var(--hc-text-soft);
  font-style: italic;
  align-self: center;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */

.herclarity-score-progress-track {
  height: 5px;
  background: var(--hc-border);
  border-radius: 99px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.herclarity-score-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--hc-border);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.herclarity-score-progress-fill--scored {
  background: linear-gradient(to right, #4a6b50, #c4a558);
}

/* ── Share banner ───────────────────────────────────────────────────────── */

.herclarity-score-share-banner {
  background: #c4a558;
  border-radius: var(--hc-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.herclarity-score-share-banner__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.herclarity-score-share-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.herclarity-score-share-banner__label {
  font-size: 0.81rem;
  font-weight: 500;
  color: #2a1e06;
  margin-bottom: 2px;
}

.herclarity-score-share-banner__sub {
  font-size: 0.72rem;
  color: rgba(40, 28, 8, 0.55);
  line-height: 1.4;
}

/* ── Share button — locked (empty state) ────────────────────────────────── */

.herclarity-score-share-btn {
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  cursor: default;
}

.herclarity-score-share-btn--locked {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(40, 28, 8, 0.4);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

/* ── Share button — active (scored state) ───────────────────────────────── */

.herclarity-score-share-btn--active {
  background: #2a1e06;
  color: #c4a558;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.herclarity-score-share-btn--active:hover {
  opacity: 0.88;
}

/* ── View full analysis link ────────────────────────────────────────────── */

.herclarity-score-view-link {
  font-size: 0.81rem;
  color: var(--hc-text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hc-border);
  padding-bottom: 1px;
  display: inline-block;
}

.herclarity-score-view-link:hover {
  color: var(--hc-text);
  border-color: var(--hc-text-soft);
}

/* ── Two-column layout (empty state info) ───────────────────────────────── */

.herclarity-score-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .herclarity-score-two-col {
    grid-template-columns: 1fr;
  }
}

.herclarity-score-col-label {
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-text-soft);
  margin-bottom: 0.4rem;
}

.herclarity-score-col-body {
  font-size: 0.81rem;
  color: var(--hc-text-soft);
  line-height: 1.6;
  margin: 0 0 0.3rem 0;
}

.herclarity-score-inline-list {
  font-size: 0.75rem;
  color: var(--hc-text-soft);
  line-height: 1.7;
  margin: 0;
}

/* ── Scored state: 2/3 + 1/3 layout ────────────────────────────────────── */

.herclarity-score-scored-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.herclarity-score-scored-right {
  border-left: 1px solid var(--hc-border);
  padding-left: 1.5rem;
}

@media (max-width: 640px) {
  .herclarity-score-scored-layout {
    grid-template-columns: 1fr;
  }
  .herclarity-score-scored-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--hc-border);
    padding-top: 1.25rem;
  }
}

/* ── Metrics snapshot (scored state right column) ───────────────────────── */

.herclarity-score-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hc-border);
  gap: 0.5rem;
}

.herclarity-score-metric-row:last-child {
  border-bottom: none;
}

.herclarity-score-metric-name {
  font-size: 0.81rem;
  color: var(--hc-text);
}

.herclarity-score-metric-value {
  font-size: 0.75rem;
  color: var(--hc-text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.herclarity-score-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.herclarity-score-dot--green { background: #4a6b50; }
.herclarity-score-dot--amber { background: #b8a048; }

.herclarity-score-trend-up {
  font-size: 0.75rem;
  color: #4a6b50;
}

.herclarity-score-trend-down {
  font-size: 0.75rem;
  color: #b45309;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EXPERIMENT CARD — MILESTONE PROGRESS BAR
   Two-phase bar: 0-3 entries = first half, 3-7 entries = second half.
   Midpoint marker shows the first insight milestone at 50%.
───────────────────────────────────────────────────────────────────────────── */

.herclarity-milestone-bar-wrap {
  margin-top: 8px;
}

.herclarity-milestone-bar {
  position: relative;
  height: 4px;
  background: var(--hc-border);
  border-radius: 99px;
  margin-bottom: 5px;
  overflow: visible;
}

.herclarity-milestone-bar__fill {
  height: 100%;
  background: var(--hc-accent);
  border-radius: 99px;
  transition: width 0.4s ease;
  min-width: 0;
}

.herclarity-milestone-bar__fill--complete {
  background: var(--hc-accent);
}

.herclarity-milestone-bar__midpoint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hc-surface);
  border: 1.5px solid var(--hc-border);
  z-index: 1;
}

.herclarity-milestone-bar__label {
  display: block;
  font-size: 0.72rem;
  color: var(--hc-text-soft);
  line-height: 1.4;
}

.herclarity-milestone-bar__label--complete {
  color: var(--hc-accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DASHBOARD FOOTER
───────────────────────────────────────────────────────────────────────────── */

.herclarity-dashboard-footer {
  margin-top: var(--hc-gap);
  padding: var(--hc-gap-sm) 0;
  text-align: center;
  border-top: 1px solid var(--hc-border);
}

.herclarity-muted-link {
  font-size: 0.78rem;
  color: var(--hc-text-soft);
  text-decoration: none;
  opacity: 0.7;
}

.herclarity-muted-link:hover {
  opacity: 1;
  color: var(--hc-text);
}
/* ─────────────────────────────────────────────────────────────────────────────
   EXPERIMENT DETAIL PAGE — Refactor 2
   Classes prefixed hc-ed- to avoid collision with existing hc- detail classes.
   Uses dashboard CSS variables and herclarity-* base classes throughout.
───────────────────────────────────────────────────────────────────────────── */

.hc-ed-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ── Header bar: chip left, Log button right ────────────────────────────── */

.hc-ed-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hc-ed-log-btn {
  margin-top: 0;
  font-size: 0.875rem;
  padding: 10px 18px;
  text-decoration: none;
}

/* ── Title — serif to match Wellness Lab heading ────────────────────────── */

.hc-ed-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--hc-text);
  margin: 0 0 8px;
  line-height: 1.25;
}

/* ── Meta line ──────────────────────────────────────────────────────────── */

.hc-ed-meta {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ── Status badge ───────────────────────────────────────────────────────── */

.hc-ed-status-badge {
  font-size: 0.75rem;
}

.hc-ed-status-paused {
  background: #fef3c7;
  color: #92400e;
}

.hc-ed-status-completed {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

/* ── Hypothesis block ───────────────────────────────────────────────────── */

.hc-ed-hypothesis {
  border-left: 2px solid var(--hc-accent);
  padding-left: 14px;
  margin-bottom: 20px;
}

.hc-ed-hypothesis-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hc-text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hc-ed-hypothesis-text {
  font-style: italic;
  color: var(--hc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Share button — gold gradient, full width, Refactor 2 spec ──────────── */

.hc-ed-share-btn {
  width: 100%;
  margin-bottom: 16px;
  margin-top: 0;
}

/* ── Module sections ────────────────────────────────────────────────────── */

.hc-ed-section {
  margin-bottom: var(--hc-gap-sm);
}

/* ── Status result label + stats ────────────────────────────────────────── */

.hc-ed-result-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hc-text);
  margin: 0 0 6px;
}

.hc-ed-result-stats {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin: 0;
}

/* worsened: muted amber per Refactor 2 spec — not red */
.hc-ed-stat-worsened {
  color: #B45309;
  font-weight: 500;
}

/* ── Metrics list ───────────────────────────────────────────────────────── */

.hc-ed-metrics-list {
  display: flex;
  flex-direction: column;
}

/* ── Data Strength ──────────────────────────────────────────────────────── */

.hc-ed-confidence-label {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin: 0 0 4px;
}

.hc-ed-confidence-sublabel {
  font-size: 0.8125rem;
  margin: 0;
}

/* ── AI summary ─────────────────────────────────────────────────────────── */

.hc-ed-ai-summary {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--hc-text);
  margin: 0 0 12px;
}

.hc-ed-privacy-note {
  font-size: 0.75rem;
  margin: 0;
}

/* ── Past entries prompt ────────────────────────────────────────────────── */

.hc-ed-past-prompt {
  font-size: 0.8125rem;
  margin-bottom: var(--hc-gap-sm);
}

.hc-ed-past-prompt a {
  color: var(--hc-accent);
  text-decoration: none;
}

.hc-ed-past-prompt a:hover {
  text-decoration: underline;
}

/* ── Log history ────────────────────────────────────────────────────────── */

.hc-ed-log-history {
  margin-bottom: var(--hc-gap-sm);
}

.hc-ed-log-entry {
  background: var(--hc-surface-soft);
  border-radius: var(--hc-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.hc-ed-log-entry:last-child {
  margin-bottom: 0;
}

.hc-ed-log-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hc-ed-log-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hc-text);
}

.hc-ed-log-metrics {
  font-size: 0.8125rem;
  color: var(--hc-text-soft);
  margin: 0 0 2px;
}

.hc-ed-log-notes {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--hc-text-soft);
  margin: 4px 0 0;
}

.hc-ed-baseline-tag {
  font-size: 0.6875rem;
}

/* ── Adherence badges ───────────────────────────────────────────────────── */

.hc-ed-adherence--yes {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

.hc-ed-adherence--partial {
  background: #fef3c7;
  color: #92400e;
}

.hc-ed-adherence--no {
  background: var(--hc-surface-soft);
  color: var(--hc-text-soft);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.hc-ed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hc-border);
}

.hc-ed-footer-actions {
  display: flex;
  gap: 8px;
}

/* ── Ghost buttons (Pause / Delete / modal actions) ─────────────────────── */

.hc-ed-btn-ghost {
  font-size: 0.8125rem;
  color: var(--hc-text-soft);
  background: transparent;
  border: 1px solid var(--hc-border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hc-ed-btn-ghost:hover {
  background: var(--hc-surface-soft);
  color: var(--hc-text);
}

.hc-ed-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hc-ed-btn-ghost--delete {
  color: #9c3d3d;
  border-color: #f0d0d0;
}

.hc-ed-btn-ghost--delete:hover {
  background: #fdf2f2;
  color: #7a2d2d;
}

/* ── Delete confirmation modal ──────────────────────────────────────────── */

.hc-ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.hc-ed-modal-box {
  max-width: 400px;
  width: 100%;
}

.hc-ed-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hc-ed-wrap {
    padding: 24px 0 48px;
  }

  .hc-ed-title {
    font-size: 1.4rem;
  }

  .hc-ed-footer {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}
/* ─────────────────────────────────────────────────────────────────────────────
   EXPERIMENT DETAIL PAGE — Refactor 2
   Append to bottom of dashboard.css.
   Prefix: hc-ed- to avoid collision with existing hc- classes.
   Uses --hc-* CSS variables and herclarity-* base classes throughout.
   No inline CSS in JS — all visual rules live here.
───────────────────────────────────────────────────────────────────────────── */

.hc-ed-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: var(--hc-gap-sm);
}

/* ── Hero card ──────────────────────────────────────────────────────────── */

.hc-ed-hero-card {
  margin-bottom: 0;
}

/* ── Header bar: chip left, Log button right ────────────────────────────── */

.hc-ed-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.hc-ed-log-btn {
  margin-top: 0;
  font-size: 0.875rem;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Title — serif to match Wellness Lab heading ────────────────────────── */

.hc-ed-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--hc-text);
  margin: 0 0 8px;
  line-height: 1.25;
}

/* ── Meta line ──────────────────────────────────────────────────────────── */

.hc-ed-meta {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ── Status badge variants ──────────────────────────────────────────────── */

.hc-ed-status-badge {
  font-size: 0.75rem;
}

.hc-ed-status-paused {
  background: #fef3c7;
  color: #92400e;
}

.hc-ed-status-completed {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

/* ── Hypothesis block ───────────────────────────────────────────────────── */

.hc-ed-hypothesis {
  border-left: 2px solid var(--hc-accent);
  padding-left: 14px;
  margin-bottom: 16px;
}

.hc-ed-hypothesis-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hc-text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hc-ed-hypothesis-text {
  font-style: italic;
  color: var(--hc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Share button — gold gradient, full width ───────────────────────────── */

.hc-ed-share-btn {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 999px;
}

/* Desktop copied confirmation state */
.hc-ed-share-btn--copied {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

/* ── Module sections ────────────────────────────────────────────────────── */

.hc-ed-section {
  margin-bottom: 0;
}

/* ── Divider between Status and Tracking sections within Card 2 ─────────── */

.hc-ed-card-divider {
  height: 1px;
  background: var(--hc-border);
  margin: 16px 0;
}

/* ── Status result label + stats ────────────────────────────────────────── */

.hc-ed-result-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hc-text);
  margin: 0 0 6px;
}

.hc-ed-result-stats {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin: 0;
}

/* worsened: muted amber per Refactor 2 spec — not red */
.hc-ed-stat-worsened {
  color: #B45309;
  font-weight: 500;
}

/* ── Metrics list — flat, no subheadings ────────────────────────────────── */

.hc-ed-metrics-list {
  display: flex;
  flex-direction: column;
}

/* ── Data Strength ──────────────────────────────────────────────────────── */

.hc-ed-confidence-label {
  font-size: 0.875rem;
  color: var(--hc-text-soft);
  margin: 0 0 4px;
}

.hc-ed-confidence-sublabel {
  font-size: 0.8125rem;
  margin: 0;
}

/* ── AI summary ─────────────────────────────────────────────────────────── */

.hc-ed-ai-summary {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--hc-text);
  margin: 0 0 12px;
}

.hc-ed-privacy-note {
  font-size: 0.75rem;
  margin: 0;
}

/* ── Log history ────────────────────────────────────────────────────────── */

.hc-ed-log-entry {
  background: var(--hc-surface-soft);
  border-radius: var(--hc-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.hc-ed-log-entry:last-of-type {
  margin-bottom: 0;
}

.hc-ed-log-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hc-ed-log-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hc-text);
}

.hc-ed-log-metrics {
  font-size: 0.8125rem;
  color: var(--hc-text-soft);
  margin: 0 0 2px;
}

.hc-ed-log-notes {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--hc-text-soft);
  margin: 4px 0 0;
}

.hc-ed-log-empty {
  margin: 8px 0 0;
  font-size: 0.875rem;
}

.hc-ed-baseline-tag {
  font-size: 0.6875rem;
}

/* ── Adherence badge variants ───────────────────────────────────────────── */

.hc-ed-adherence--yes {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

.hc-ed-adherence--partial {
  background: #fef3c7;
  color: #92400e;
}

.hc-ed-adherence--no {
  background: var(--hc-surface-soft);
  color: var(--hc-text-soft);
}

/* ── Past entries prompt — inside Log History card ──────────────────────── */

.hc-ed-past-prompt {
  font-size: 0.8125rem;
  color: var(--hc-text-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hc-border);
}

.hc-ed-past-prompt a {
  color: var(--hc-accent);
  text-decoration: none;
}

.hc-ed-past-prompt a:hover {
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.hc-ed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hc-border);
}

.hc-ed-footer-actions {
  display: flex;
  gap: 8px;
}

/* ── Ghost buttons (Pause / Delete / modal) ─────────────────────────────── */

.hc-ed-btn-ghost {
  font-size: 0.8125rem;
  color: var(--hc-text-soft);
  background: transparent;
  border: 1px solid var(--hc-border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hc-ed-btn-ghost:hover {
  background: var(--hc-surface-soft);
  color: var(--hc-text);
}

.hc-ed-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hc-ed-btn-ghost--delete {
  color: #9c3d3d;
  border-color: #f0d0d0;
}

.hc-ed-btn-ghost--delete:hover {
  background: #fdf2f2;
  color: #7a2d2d;
}

/* ── Delete confirmation modal ──────────────────────────────────────────── */

.hc-ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.hc-ed-modal-box {
  max-width: 400px;
  width: 100%;
}

.hc-ed-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hc-ed-wrap {
    padding: 24px 0 48px;
  }

  .hc-ed-title {
    font-size: 1.4rem;
  }

  .hc-ed-footer {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .hc-ed-header-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ── Change 2: Prominent experiment title in AI summary module ───────────── */

.herclarity-summary__experiment--prominent {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ── Change 3: Experiment history module spans full grid width ───────────── */

[data-herclarity-module="experiment-history"] {
  grid-column: 1 / -1;
}

/* ── herclarity-link color ───────────────────────────────────────────────── */

.herclarity-link {
  color: var(--hc-accent);
  text-decoration: none;
}

.herclarity-link:hover {
  text-decoration: underline;
}

/* ── Mobile: Data Strength above Past Experiments; Past Experiments full width */

@media (max-width: 991px) {
  [data-herclarity-module="confidence-score"] {
    order: 5;
  }
  [data-herclarity-module="experiment-history"] {
    order: 6;
    grid-column: 1 / -1 !important;
  }
}
