/* This file deliberately targets only checklist widgets and their editor source. */
.sv-reader-checklist,
.sv-reader-checklist-source {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--ink, #152238);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  text-align: start;
  overflow-wrap: anywhere;
}
.sv-reader-checklist .sv-rc-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0 0 12px;
  padding: 0;
}
.sv-reader-checklist .sv-rc-title {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.sv-reader-checklist .sv-rc-count {
  flex-shrink: 0;
  color: var(--muted, #657083);
  font-size: 12px;
  line-height: 1.5;
}
.sv-reader-checklist .sv-rc-progress {
  height: 6px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line, #e4e8ee);
}
.sv-reader-checklist .sv-rc-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue, #0868f7);
  transition: width .18s ease;
}
.sv-reader-checklist .sv-rc-items {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.sv-reader-checklist .sv-rc-item {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.sv-reader-checklist .sv-rc-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: static;
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--muted, #7b8794);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: pointer;
}
.sv-reader-checklist .sv-rc-item input[type="checkbox"]:checked {
  border-color: var(--blue, #0868f7);
  background-color: var(--blue, #0868f7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}
.sv-reader-checklist .sv-rc-item input::before,
.sv-reader-checklist .sv-rc-item input::after { content: none; }
.sv-reader-checklist .sv-rc-text { flex: 1 1 auto; min-width: 0; }
.sv-reader-checklist .sv-rc-item.is-checked .sv-rc-text { opacity: .68; text-decoration: line-through; }
.sv-reader-checklist .sv-rc-footer { display: flex; justify-content: flex-end; margin-top: 10px; }
.sv-reader-checklist .sv-rc-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: 100%;
  width: auto;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #152238);
  box-shadow: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
.sv-reader-checklist .sv-rc-reset:hover { border-color: var(--blue, #0868f7); color: var(--blue, #0868f7); }
.sv-reader-checklist input:focus-visible,
.sv-reader-checklist button:focus-visible { outline: 2px solid var(--blue, #0868f7); outline-offset: 3px; }
.sv-reader-checklist .sv-rc-storage-note { margin: 10px 0 0; padding: 0; color: var(--muted, #657083); font-size: 11px; }
.sv-reader-checklist .sv-rc-storage-note[hidden] { display: none !important; }
.sv-reader-checklist-source > p { margin: 0 0 10px; }
.sv-reader-checklist-source > ul { margin: 0; padding-inline-start: 24px; }
.sv-reader-checklist-source > ul > li { margin: 5px 0; }
.sv-reader-checklist-source > p:last-child { margin: 12px 0 0; text-align: end; font-size: 12px; }
@media (max-width: 600px) {
  .sv-reader-checklist, .sv-reader-checklist-source { padding: 13px; border-radius: 13px; }
  .sv-reader-checklist .sv-rc-item { min-height: 44px; padding: 9px 0; }
  .sv-reader-checklist .sv-rc-reset { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sv-reader-checklist .sv-rc-fill { transition: none; } }
@media print {
  .sv-reader-checklist .sv-rc-footer { display: none; }
  .sv-reader-checklist { break-inside: avoid; background: #fff; color: #000; border-color: #aaa; }
}
