.kh-brooding-checklist {
  max-width: 760px;
  margin: 24px auto;
  padding: 0;
  background: transparent;
  font-family: inherit;
}

.kh-bc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.kh-bc-title {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
}

.kh-bc-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.kh-bc-reset {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.kh-bc-reset:hover,
.kh-bc-reset:focus,
.kh-bc-reset:active {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  text-decoration: none !important;
}

.kh-bc-progress-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.kh-bc-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 13px;
  color: #475569;
}

.kh-bc-count {
  color: #0f172a;
  font-size: 13px;
}

.kh-bc-progress-bg {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.kh-bc-progress-fill {
  height: 100%;
  width: 0;
  background: #1D9E75;
  border-radius: 999px;
  transition: width 0.28s ease;
}

.kh-bc-percent {
  margin-top: 5px;
  text-align: right;
  font-size: 12px;
  color: #64748b;
}

.kh-bc-section {
  margin: 18px 0 9px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
  text-transform: uppercase;
}

.kh-bc-item {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.kh-bc-item:hover,
.kh-bc-item:focus,
.kh-bc-item:active {
  color: inherit !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
}

.kh-bc-item:active {
  transform: scale(0.995);
}

.kh-bc-item:focus-visible,
.kh-bc-reset:focus-visible {
  outline: 2px solid #1D9E75;
  outline-offset: 3px;
}

.kh-bc-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.7px solid #cbd5e1;
  background: #ffffff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.kh-bc-text {
  min-width: 0;
  display: block;
}

.kh-bc-item-title {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.kh-bc-note {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748b;
}

.kh-bc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  margin-top: 2px;
}

.kh-bc-critical {
  color: #a32d2d;
  background: #fcebeb;
  border: 1px solid #f7c1c1;
}

.kh-bc-time {
  color: #854f0b;
  background: #faeeda;
  border: 1px solid #fac775;
}

.kh-bc-item.is-done {
  background: #e1f5ee !important;
  border-color: #9fe1cb !important;
}

.kh-bc-item.is-done:hover,
.kh-bc-item.is-done:focus,
.kh-bc-item.is-done:active {
  background: #e1f5ee !important;
  border-color: #5dcaa5 !important;
}

.kh-bc-item.is-done .kh-bc-check {
  background: #1D9E75;
  border-color: #1D9E75;
  color: #ffffff;
}

.kh-bc-item.is-done .kh-bc-item-title {
  color: #0f6e56;
  text-decoration: line-through;
  text-decoration-color: #5dcaa5;
  text-decoration-thickness: 1.5px;
}

.kh-bc-complete {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e1f5ee;
  border: 1px solid #5dcaa5;
  color: #0f6e56;
}

.kh-bc-complete strong,
.kh-bc-complete span {
  display: block;
}

.kh-bc-complete strong {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 3px;
}

.kh-bc-complete span {
  font-size: 13px;
  line-height: 1.5;
}

.kh-bc-save {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 600px) {
  .kh-brooding-checklist {
    margin: 22px auto;
  }

  .kh-bc-head {
    display: block;
    padding: 16px 14px;
  }

  .kh-bc-title {
    font-size: 18px;
  }

  .kh-bc-subtitle {
    font-size: 12.5px;
  }

  .kh-bc-reset {
    margin-top: 11px;
    padding: 7px 12px;
  }

  .kh-bc-progress-wrap {
    margin-top: 13px;
  }

  .kh-bc-item {
    grid-template-columns: 24px 1fr;
    gap: 11px;
    padding: 13px 12px;
  }

  .kh-bc-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .kh-bc-item-title {
    font-size: 14.5px;
  }

  .kh-bc-note {
    font-size: 12.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-bc-progress-fill,
  .kh-bc-item,
  .kh-bc-check {
    transition: none;
  }
}

/* Shared interactive tool badge + tools CTA */
.kh-tool-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #0f6e56;
  background: #e1f5ee;
  border: 1px solid #9fe1cb;
}

.kh-tool-more {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.kh-tool-more a {
  font-weight: 800;
  color: #0f6e56;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Soft outer frame for interactive tool */
.kh-brooding-checklist {
  box-sizing: border-box;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  border: 1px solid #d6f1e7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

@media (max-width: 600px) {
  .kh-brooding-checklist {
    padding: 12px;
    border-radius: 18px;
  }
}

/* Fix theme button override on 24h checklist items */
.kh-brooding-checklist .kh-bc-item {
  background: #ffffff !important;
  background-image: none !important;
  color: inherit !important;
  border-color: #e5e7eb !important;
}

.kh-brooding-checklist .kh-bc-item:hover,
.kh-brooding-checklist .kh-bc-item:focus,
.kh-brooding-checklist .kh-bc-item:active {
  background: #f8fafc !important;
  background-image: none !important;
  color: inherit !important;
  border-color: #cbd5e1 !important;
}

.kh-brooding-checklist .kh-bc-item.is-done {
  background: #e1f5ee !important;
  background-image: none !important;
  border-color: #9fe1cb !important;
}

.kh-brooding-checklist .kh-bc-item.is-done:hover,
.kh-brooding-checklist .kh-bc-item.is-done:focus,
.kh-brooding-checklist .kh-bc-item.is-done:active {
  background: #e1f5ee !important;
  background-image: none !important;
  border-color: #5dcaa5 !important;
}
