.checklists-page {
  display: grid;
  gap: 18px;
}

.checklist-notice {
  align-items: center;
  background: #fff8f7;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.checklist-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checklist-kpis article,
.checklist-detail-summary article {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8e5;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.checklist-kpis article > svg,
.checklist-detail-summary article > svg {
  background: #edf8f1;
  border-radius: 9px;
  color: #087a38;
  height: 36px;
  padding: 8px;
  width: 36px;
}

.checklist-kpis article div,
.checklist-detail-summary article div {
  display: grid;
  gap: 3px;
}

.checklist-kpis span,
.checklist-detail-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.checklist-kpis strong,
.checklist-detail-summary strong {
  color: #172033;
  font-size: 22px;
}

.checklist-kpis small,
.checklist-detail-summary small {
  color: #64748b;
}

.checklist-tabs {
  border-bottom: 1px solid #dfe7e2;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.checklist-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  gap: 7px;
  padding: 11px 14px;
  white-space: nowrap;
}

.checklist-tabs button.active {
  border-bottom-color: #087a38;
  color: #087a38;
}

.checklist-tabs button span {
  background: #eef2f0;
  border-radius: 999px;
  color: inherit;
  font-size: 11px;
  padding: 2px 7px;
}

.checklist-workspace-card {
  background: #fff;
  border: 1px solid #e0e7e3;
  border-radius: 12px;
  min-height: 280px;
  overflow: hidden;
  padding: 18px;
}

.checklist-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-run-card {
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.checklist-run-card h3,
.checklist-run-card p {
  margin: 0;
}

.checklist-run-card > p {
  align-items: center;
  color: #64748b;
  display: flex;
  gap: 6px;
}

.checklist-run-card > p svg {
  height: 15px;
  width: 15px;
}

.checklist-card-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.checklist-card-heading > svg {
  color: #087a38;
}

.checklist-run-card dl {
  background: #f7faf8;
  border-radius: 9px;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
}

.checklist-run-card dl div {
  display: flex;
  justify-content: space-between;
}

.checklist-run-card dt {
  color: #64748b;
}

.checklist-run-card dd {
  font-weight: 700;
  margin: 0;
}

.checklist-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}

.checklist-status.success {
  background: #e8f7ed;
  color: #087a38;
}

.checklist-status.warning {
  background: #fff3d7;
  color: #9a5a00;
}

.checklist-status.danger {
  background: #feeceb;
  color: #b42318;
}

.checklist-status.neutral {
  background: #edf2f5;
  color: #475569;
}

.checklist-lock {
  align-items: center;
  color: #9a5a00;
  display: flex;
  gap: 5px;
}

.checklist-lock svg {
  height: 14px;
  width: 14px;
}

.checklist-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 30px;
  text-align: center;
}

.checklist-empty > svg {
  background: #edf8f1;
  border-radius: 50%;
  color: #087a38;
  height: 52px;
  margin-bottom: 12px;
  padding: 13px;
  width: 52px;
}

.checklist-empty strong {
  color: #172033;
  font-size: 17px;
}

.checklist-empty p {
  margin: 6px 0 0;
}

.checklist-empty-action {
  display: flex;
  justify-content: flex-end;
}

.checklist-toolbar,
.checklist-manage-header,
.checklist-analytics-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checklist-toolbar {
  flex-wrap: wrap;
}

.checklist-toolbar select,
.checklist-toolbar input {
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  min-height: 38px;
  padding: 7px 10px;
}

.checklist-search {
  align-items: center;
  display: flex;
  flex: 1;
  max-width: 330px;
  position: relative;
}

.checklist-search svg {
  color: #64748b;
  height: 16px;
  left: 10px;
  position: absolute;
  width: 16px;
}

.checklist-search input {
  padding-left: 34px;
  width: 100%;
}

.checklist-table-wrap {
  overflow-x: auto;
}

.checklist-table,
.checklist-analytics-grid table {
  border-collapse: collapse;
  width: 100%;
}

.checklist-table th,
.checklist-table td,
.checklist-analytics-grid th,
.checklist-analytics-grid td {
  border-bottom: 1px solid #e6ece8;
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

.checklist-table th,
.checklist-analytics-grid th {
  color: #64748b;
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.checklist-table td:first-child {
  display: grid;
  gap: 3px;
}

.checklist-table td small {
  color: #64748b;
}

.checklist-pagination {
  align-items: center;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
}

.checklist-pagination > div {
  display: flex;
  gap: 6px;
}

.checklist-template-list {
  display: grid;
  gap: 10px;
}

.checklist-template-list > article {
  align-items: center;
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.checklist-template-list h3,
.checklist-template-list p {
  margin: 6px 0 0;
}

.checklist-template-list p,
.checklist-template-list small {
  color: #64748b;
}

.checklist-template-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.checklist-analytics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.checklist-analytics-grid > article {
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  overflow: auto;
  padding: 14px;
}

.checklist-analytics-grid > article.wide {
  grid-column: 1 / -1;
}

.checklist-analytics-grid h4 {
  margin: 0 0 12px;
}

.checklist-trend-bars {
  align-items: end;
  display: flex;
  gap: 6px;
  height: 170px;
}

.checklist-trend-bars > div {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  justify-content: end;
}

.checklist-trend-bars span {
  background: #169b50;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  width: 80%;
}

.checklist-trend-bars small {
  color: #64748b;
  font-size: 9px;
  margin-top: 5px;
}

.checklist-skeleton-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.checklist-skeleton {
  animation: checklistPulse 1.2s ease-in-out infinite alternate;
  background: #edf2ef;
  border-radius: 12px;
  height: 110px;
}

@keyframes checklistPulse {
  to { opacity: .42; }
}

.checklist-builder-backdrop,
.checklist-completion-backdrop,
.checklist-detail-backdrop {
  z-index: 1400;
}

.checklist-builder,
.checklist-completion,
.checklist-detail {
  display: flex;
  flex-direction: column;
  height: min(92vh, 920px);
  max-width: 1180px;
  overflow: hidden;
  width: min(96vw, 1180px);
}

.checklist-builder > header,
.checklist-completion > header,
.checklist-detail > header {
  align-items: flex-start;
  border-bottom: 1px solid #e1e8e4;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.checklist-builder > header h2,
.checklist-builder > header p,
.checklist-completion > header h2,
.checklist-completion > header p,
.checklist-detail > header h2,
.checklist-detail > header p {
  margin: 2px 0;
}

.checklist-builder-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
}

.checklist-builder-layout > aside {
  background: #f7faf8;
  border-right: 1px solid #e1e8e4;
  overflow-y: auto;
  padding: 16px;
}

.checklist-builder-layout > main {
  overflow-y: auto;
  padding: 18px;
}

.checklist-page-list {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.checklist-page-list button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: 9px;
  text-align: left;
}

.checklist-page-list button.active {
  background: #e9f7ee;
  border-color: #a9d9b9;
  color: #087a38;
}

.checklist-page-list svg {
  height: 15px;
  width: 15px;
}

.checklist-builder-settings,
.checklist-page-title {
  align-items: end;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.checklist-builder-settings.compact-grid {
  align-items: end;
  background: #f7faf8;
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.checklist-draft-recovery {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #edcf82;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.checklist-draft-recovery p {
  color: #72551b;
  margin: 3px 0 0;
}

.checklist-config-label,
.checklist-config-check {
  align-items: center;
  display: flex;
  gap: 6px;
}

.checklist-config-check {
  align-self: center;
  min-height: 40px;
}

.checklist-config-help {
  display: inline-flex;
  position: relative;
  text-transform: none;
}

.checklist-config-help-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  cursor: help;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.checklist-config-help-button svg {
  height: 15px;
  width: 15px;
}

.checklist-config-help-button:hover,
.checklist-config-help-button:focus-visible {
  background: #e6f4eb;
  color: #17743b;
  outline: 2px solid transparent;
}

.checklist-config-tooltip {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.checklist-config-tooltip-layer {
  position: fixed;
  z-index: 2147483000;
  width: min(320px, calc(100vw - 24px));
  max-height: min(260px, calc(100vh - 24px));
  overflow: auto;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: #17352a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .28);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  visibility: hidden;
}

.checklist-config-tooltip-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.checklist-builder-targeting {
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px;
}

.checklist-weekdays {
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.checklist-weekdays legend {
  font-weight: 800;
  padding: 0 4px;
}

.checklist-builder-targeting summary,
.checklist-question-rules summary {
  cursor: pointer;
  font-weight: 800;
}

.checklist-target-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.checklist-target-grid fieldset {
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 9px;
}

.checklist-target-grid legend {
  font-weight: 800;
  padding: 0 4px;
}

.checklist-question-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checklist-question-editor {
  align-items: start;
  border: 1px solid #dce5df;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  padding: 12px;
}

.checklist-question-drag {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checklist-question-drag button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1px;
}

.checklist-question-drag button svg {
  height: 14px;
  width: 14px;
}

.checklist-question-fields {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(240px, 5fr) minmax(165px, 3fr) minmax(200px, 4fr);
}

.checklist-question-fields .field {
  min-width: 0;
}

.checklist-question-label,
.checklist-question-type,
.checklist-question-help {
  width: 100%;
}

.checklist-question-fields .full,
.checklist-question-rules {
  grid-column: 1 / -1;
}

.checklist-question-required {
  min-height: 40px;
}

.checklist-question-rules {
  background: #f8faf9;
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  padding: 10px;
}

.checklist-question-rules > div {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 9px;
}

.checklist-logic-guide {
  background: #edf7f0;
  border-left: 3px solid #299556;
  color: #40584c;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  padding: 8px 10px;
}

.checklist-action-choices {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 9px;
}

.checklist-action-choices legend {
  align-items: center;
  display: flex;
  gap: 5px;
  font-weight: 800;
  padding: 0 4px;
}

.checklist-action-choices .checklist-config-check {
  min-height: 28px;
}

.checklist-rule-wide {
  grid-column: 1 / -1;
}

.checklist-question-rules :is(input, select):disabled {
  background: #eef2f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.checklist-builder > footer,
.checklist-completion > footer {
  align-items: center;
  border-top: 1px solid #e1e8e4;
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
}

.checklist-builder > footer > div,
.checklist-completion > footer > div {
  display: flex;
  gap: 8px;
}

.checklist-progress {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 10px 20px;
}

.checklist-progress > div {
  background: #e9efeb;
  border-radius: 999px;
  flex: 1;
  height: 7px;
  overflow: hidden;
}

.checklist-progress > div span {
  background: #169b50;
  display: block;
  height: 100%;
  transition: width .2s ease;
}

.checklist-completion > main {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

.checklist-completion-page {
  margin: 0 auto;
  max-width: 780px;
}

.checklist-response-field {
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
}

.checklist-response-field legend {
  color: #172033;
  font-weight: 800;
  padding: 0 5px;
}

.checklist-response-field > p {
  color: #64748b;
  margin: 0;
}

.checklist-response-field > input,
.checklist-response-field > textarea {
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  font: inherit;
  padding: 10px;
}

.checklist-choice-row,
.checklist-choice-list,
.checklist-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checklist-choice-list {
  flex-direction: column;
}

.checklist-choice-row label,
.checklist-choice-list label,
.checklist-rating label {
  cursor: pointer;
}

.checklist-choice-row input,
.checklist-choice-list input,
.checklist-rating input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.checklist-choice-row span,
.checklist-choice-list span,
.checklist-rating span {
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  display: block;
  padding: 9px 13px;
}

.checklist-choice-row input:focus + span,
.checklist-choice-list input:focus + span,
.checklist-rating input:focus + span {
  box-shadow: 0 0 0 3px rgba(8, 122, 56, .18);
}

.checklist-choice-row input:checked + span,
.checklist-choice-list input:checked + span,
.checklist-rating input:checked + span {
  background: #e9f7ee;
  border-color: #169b50;
  color: #087a38;
  font-weight: 800;
}

.checklist-rating span {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.checklist-upload {
  align-items: center;
  border: 1px dashed #93b9a1;
  border-radius: 9px;
  color: #087a38;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px;
}

.checklist-upload input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.checklist-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.checklist-photo-strip button {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #dfe7e2;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 5px;
  max-width: 220px;
  padding: 7px;
}

.checklist-photo-strip button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-explanation {
  margin-top: 4px;
}

.checklist-overall-photos {
  border-top: 1px solid #e1e8e4;
  margin: 20px auto 0;
  max-width: 780px;
  padding-top: 16px;
}

.checklist-detail {
  max-width: 1240px;
  width: min(96vw, 1240px);
}

.checklist-detail-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 20px;
}

.checklist-detail > main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 0;
}

.checklist-detail-pages,
.checklist-detail > main > aside {
  overflow-y: auto;
  padding: 18px;
}

.checklist-detail > main > aside {
  background: #f7faf8;
  border-left: 1px solid #e1e8e4;
}

.checklist-detail-pages > section {
  margin-bottom: 20px;
}

.checklist-detail-pages article {
  border-bottom: 1px solid #e6ece8;
  display: grid;
  gap: 5px;
  padding: 12px 0;
}

.checklist-detail-pages article.flagged {
  background: #fff8f2;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin: 7px 0;
  padding: 11px;
}

.checklist-detail-pages article > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.checklist-detail-pages article p,
.checklist-detail-pages article small {
  margin: 0;
}

.checklist-detail > main > aside section,
.checklist-detail > main > aside details {
  border-bottom: 1px solid #dde6e0;
  padding: 0 0 16px;
}

.checklist-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.checklist-comments article {
  background: #fff;
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  margin: 7px 0;
  padding: 9px;
}

.checklist-comments time {
  color: #64748b;
  display: block;
  font-size: 11px;
}

.checklist-audit {
  padding-left: 20px;
}

.checklist-audit li {
  margin: 8px 0;
}

.checklist-audit time {
  color: #64748b;
  display: block;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .checklist-kpis,
  .checklist-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-builder-settings.compact-grid,
  .checklist-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .checklist-kpis,
  .checklist-card-grid,
  .checklist-analytics-grid,
  .checklist-detail-summary {
    grid-template-columns: 1fr;
  }

  .checklist-toolbar,
  .checklist-manage-header,
  .checklist-template-list > article {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-toolbar > *,
  .checklist-search {
    max-width: none;
    width: 100%;
  }

  .checklist-builder,
  .checklist-completion,
  .checklist-detail {
    height: 100dvh;
    max-height: 100dvh;
    width: 100vw;
  }

  .checklist-builder-layout {
    grid-template-columns: 1fr;
  }

  .checklist-builder-layout > aside {
    border-bottom: 1px solid #e1e8e4;
    border-right: 0;
    max-height: 150px;
  }

  .checklist-page-list {
    display: flex;
    overflow-x: auto;
  }

  .checklist-builder-settings,
  .checklist-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-builder-settings.compact-grid,
  .checklist-target-grid,
  .checklist-question-fields,
  .checklist-question-rules > div,
  .checklist-action-choices {
    grid-template-columns: 1fr;
  }

  .checklist-question-editor {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .checklist-question-editor > .icon-button {
    grid-column: 2;
    justify-self: end;
  }

  .checklist-builder > footer,
  .checklist-completion > footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .checklist-builder > footer > div,
  .checklist-completion > footer > div {
    flex-wrap: wrap;
  }

  .checklist-detail > main {
    display: block;
    overflow-y: auto;
  }

  .checklist-detail-pages,
  .checklist-detail > main > aside {
    overflow: visible;
  }

  .checklist-detail > main > aside {
    border-left: 0;
    border-top: 1px solid #e1e8e4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checklist-skeleton {
    animation: none;
  }

  .checklist-progress > div span {
    transition: none;
  }
}

/* Polished Checklists workspace — follows the established Tasks, Logs, and Schedule language. */
body.is-authenticated[data-active-view="checklists"] {
  --checklist-green: #07812f;
  --checklist-green-dark: #065f2b;
  --checklist-green-soft: #edf8f1;
  --checklist-text: #172033;
  --checklist-muted: #68758b;
  --checklist-border: #dfe7e2;
  --checklist-canvas: #f8faf9;
  --checklist-shadow: 0 8px 28px rgba(18, 39, 27, .055);
}

body.is-authenticated[data-active-view="checklists"] .main {
  background: var(--checklist-canvas);
}

html[data-sidebar-state] body.is-authenticated[data-active-view="checklists"] #checklistsView.active {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 30px 36px 44px;
}

.checklists-page {
  gap: 20px;
}

.checklist-kpis {
  gap: 16px;
}

.checklist-kpis article,
.checklist-detail-summary article {
  position: relative;
  min-height: 112px;
  padding: 18px 20px 18px 24px;
  align-items: center;
  border-color: var(--checklist-border);
  border-radius: 12px;
  box-shadow: var(--checklist-shadow);
  overflow: hidden;
}

.checklist-kpis article::before,
.checklist-detail-summary article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--tone-color, var(--checklist-green));
}

.checklist-kpis article.tone-blue { --tone-color: #2874ea; --tone-soft: #edf4ff; }
.checklist-kpis article.tone-violet { --tone-color: #7656c7; --tone-soft: #f2effc; }
.checklist-kpis article.tone-orange { --tone-color: #df7108; --tone-soft: #fff4e8; }

.checklist-kpis article > svg,
.checklist-detail-summary article > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 11px;
  color: var(--tone-color, var(--checklist-green));
  background: var(--tone-soft, var(--checklist-green-soft));
}

.checklist-kpis span,
.checklist-detail-summary span {
  color: #536178;
  font-size: 11px;
  letter-spacing: .035em;
}

.checklist-kpis strong,
.checklist-detail-summary strong {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.checklist-kpis small,
.checklist-detail-summary small {
  font-size: 10px;
  font-weight: 600;
}

.checklist-content-shell {
  overflow: hidden;
  border: 1px solid var(--checklist-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--checklist-shadow);
}

.checklist-tabs {
  min-height: 66px;
  padding: 0 20px;
  gap: 26px;
  border-bottom: 1px solid #e7ede9;
  background: #fff;
}

.checklist-tabs button {
  min-height: 66px;
  padding: 0 2px;
  gap: 8px;
  color: #65738a;
  font-size: 12px;
  font-weight: 750;
}

.checklist-tabs button > svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.checklist-tabs button.active {
  color: var(--checklist-green-dark);
  border-bottom-color: var(--checklist-green);
}

.checklist-tabs button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 6px;
  background: #f0f3f1;
}

.checklist-tabs button.active span {
  background: var(--checklist-green-soft);
}

.checklist-workspace-card {
  min-height: 360px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.checklist-section-heading {
  display: grid;
  min-width: 0;
  margin: 0 0 22px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.checklist-section-heading > .checklist-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--checklist-green);
  background: var(--checklist-green-soft);
}

.checklist-section-heading svg {
  width: 21px;
  height: 21px;
}

.checklist-section-heading > div:nth-child(2) {
  min-width: 0;
}

.checklist-section-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--checklist-green-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.checklist-section-heading h3,
.checklist-section-heading p {
  margin: 0;
}

.checklist-section-heading h3 {
  color: var(--checklist-text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.checklist-section-heading p {
  margin-top: 3px;
  color: var(--checklist-muted);
  font-size: 11px;
}

.checklist-section-heading > strong {
  padding: 6px 9px;
  border-radius: 6px;
  color: #536178;
  background: #f1f4f2;
  font-size: 10px;
  white-space: nowrap;
}

.checklist-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}

.checklist-run-card {
  --card-accent: var(--checklist-green);
  position: relative;
  min-height: 305px;
  padding: 18px 18px 16px 22px;
  grid-template-rows: auto minmax(75px, auto) 1fr auto auto;
  align-content: stretch;
  border-color: var(--checklist-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .05);
  overflow: hidden;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.checklist-run-card::before,
.checklist-template-list > article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--card-accent);
}

.checklist-run-card.tone-warning,
.checklist-template-list > article.tone-warning { --card-accent: #df7108; }
.checklist-run-card.tone-danger,
.checklist-template-list > article.tone-danger { --card-accent: #d92d20; }
.checklist-run-card.tone-neutral,
.checklist-template-list > article.tone-neutral { --card-accent: #7b8799; }

.checklist-run-card:hover {
  transform: translateY(-1px);
  border-color: #bdd5c5;
  box-shadow: 0 9px 24px rgba(18, 39, 27, .09);
}

.checklist-card-heading {
  min-height: 38px;
}

.checklist-run-icon,
.checklist-template-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 9%, white);
}

.checklist-run-icon svg,
.checklist-template-icon svg {
  width: 19px;
  height: 19px;
}

.checklist-run-copy {
  min-width: 0;
}

.checklist-run-copy h3 {
  margin: 7px 0 0;
  color: var(--checklist-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.checklist-run-copy > p {
  margin: 6px 0 0;
  color: var(--checklist-muted);
  font-size: 11px;
  line-height: 1.45;
}

.checklist-run-location {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #627188;
  font-size: 10px;
  font-weight: 700;
}

.checklist-run-location svg {
  width: 13px;
  height: 13px;
}

.checklist-run-card dl {
  padding: 12px 0;
  gap: 9px;
  align-self: end;
  border-top: 1px solid #e9eeeb;
  border-bottom: 1px solid #e9eeeb;
  border-radius: 0;
  background: transparent;
}

.checklist-run-card dl div {
  gap: 12px;
}

.checklist-run-card dt {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #69778c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.checklist-run-card dt svg {
  width: 12px;
  height: 12px;
}

.checklist-run-card dd {
  color: #2e3a4d;
  font-size: 10px;
  text-align: right;
}

.checklist-card-action {
  display: flex;
  justify-content: flex-end;
}

.checklist-card-action .button {
  min-height: 37px;
  padding-inline: 13px;
  border-radius: 7px;
  font-size: 10px;
}

.checklist-card-action .button svg {
  width: 14px;
  height: 14px;
}

.checklist-status {
  min-height: 24px;
  padding: 4px 9px;
  align-items: center;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: .02em;
}

.checklist-toolbar {
  min-height: 74px;
  margin: 0 -24px 18px;
  padding: 14px 24px;
  border-top: 1px solid #e7ede9;
  border-bottom: 1px solid #e7ede9;
  background: #fbfcfb;
}

.checklist-toolbar select,
.checklist-toolbar input {
  min-height: 40px;
  border-color: var(--checklist-border);
  border-radius: 7px;
  color: #344054;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}

.checklist-search {
  max-width: 300px;
}

.checklist-table-wrap {
  margin: 0 -24px;
}

.checklist-table th {
  height: 46px;
  padding: 0 16px;
  color: #5d6d85;
  background: #f8faf9;
  font-size: 9px;
  font-weight: 800;
}

.checklist-table td {
  height: 72px;
  padding: 11px 16px;
  color: #26364d;
  font-size: 11px;
}

.checklist-table tbody tr:hover td {
  background: #f7fbf8;
}

.checklist-pagination {
  min-height: 62px;
  margin: 0 -24px -24px;
  padding: 12px 24px;
  border-top: 1px solid #e7ede9;
  background: #fff;
  font-size: 10px;
}

.checklist-manage-header,
.checklist-analytics-header {
  margin-bottom: 22px;
}

.checklist-manage-header > .checklist-section-heading,
.checklist-analytics-header > .checklist-section-heading {
  flex: 1;
  margin: 0;
}

.checklist-template-list {
  gap: 12px;
}

.checklist-template-list > article {
  --card-accent: var(--checklist-green);
  position: relative;
  min-height: 112px;
  padding: 17px 18px 17px 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  border-color: var(--checklist-border);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .045);
  overflow: hidden;
}

.checklist-template-copy {
  min-width: 0;
}

.checklist-template-copy > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.checklist-template-copy h3 {
  margin-top: 7px;
  font-size: 16px;
  font-weight: 800;
}

.checklist-template-copy p {
  margin-top: 4px;
  font-size: 11px;
}

.checklist-analytics-grid {
  gap: 16px;
}

.checklist-analytics-grid > article {
  min-height: 260px;
  padding: 18px;
  border-color: var(--checklist-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .045);
}

.checklist-analytics-grid h4 {
  color: var(--checklist-text);
  font-size: 14px;
}

/* Builder, completion, and submission detail */
.checklist-builder,
.checklist-completion,
.checklist-detail {
  border: 1px solid #dce5df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 30, 22, .2);
}

.checklist-builder > header,
.checklist-completion > header,
.checklist-detail > header {
  min-height: 102px;
  padding: 20px 24px;
  align-items: center;
  border-bottom-color: #e6ece8;
  background: linear-gradient(105deg, #fbfdfc, #fff);
}

.checklist-modal-title {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
}

.checklist-modal-title > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--checklist-green);
  background: var(--checklist-green-soft);
}

.checklist-modal-title > span svg {
  width: 23px;
  height: 23px;
}

.checklist-modal-title > div {
  min-width: 0;
}

.checklist-modal-title .kicker {
  color: var(--checklist-green-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.checklist-modal-title h2 {
  color: var(--checklist-text);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.checklist-modal-title p:last-child {
  color: var(--checklist-muted);
  font-size: 11px;
}

.checklist-builder-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  background: #f8faf9;
}

.checklist-builder-layout > aside {
  padding: 20px 16px;
  background: #f4f7f5;
}

.checklist-builder-layout > aside h3 {
  margin: 0 6px 14px;
  color: #4e5c71;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.checklist-page-list {
  gap: 7px;
}

.checklist-page-list button {
  min-height: 44px;
  padding: 10px;
  border-radius: 7px;
  color: #4e5c71;
  font-size: 11px;
  font-weight: 700;
}

.checklist-page-list button.active {
  border-color: #b9dac4;
  color: var(--checklist-green-dark);
  background: #fff;
  box-shadow: 0 3px 10px rgba(18, 39, 27, .06);
}

.checklist-builder-layout > main {
  min-width: 0;
  padding: 22px 24px 32px;
  background: #fbfcfb;
  overflow-x: hidden;
}

.checklist-builder-settings:not(.compact-grid) {
  padding: 16px;
  align-items: end;
  border: 1px solid var(--checklist-border);
  border-radius: 10px;
  background: #fff;
}

.checklist-builder-section-heading {
  display: flex;
  margin: 22px 0 12px;
  gap: 10px;
  align-items: center;
}

.checklist-builder-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--checklist-green);
  background: var(--checklist-green-soft);
}

.checklist-builder-section-heading svg {
  width: 17px;
  height: 17px;
}

.checklist-builder-section-heading h3,
.checklist-builder-section-heading p {
  margin: 0;
}

.checklist-builder-section-heading h3 {
  color: var(--checklist-text);
  font-size: 14px;
  font-weight: 800;
}

.checklist-builder-section-heading p {
  margin-top: 2px;
  color: var(--checklist-muted);
  font-size: 10px;
}

.checklist-builder-settings.compact-grid {
  min-width: 0;
  padding: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
  border-color: var(--checklist-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .035);
}

.checklist-builder :is(.field, .field input, .field select, .field textarea) {
  min-width: 0;
  max-width: 100%;
}

.checklist-builder .field > span,
.checklist-builder .field > .checklist-config-label,
.checklist-builder .check {
  color: #56647a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .025em;
}

.checklist-builder .field :is(input, select, textarea) {
  min-height: 40px;
  border-color: #d9e3dd;
  border-radius: 7px;
  color: #253349;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}

.checklist-builder-targeting {
  padding: 0;
  border-color: var(--checklist-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.checklist-builder-targeting > summary {
  display: flex;
  min-height: 60px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  list-style-position: inside;
}

.checklist-builder-targeting[open] > summary {
  border-bottom-color: #e7ede9;
}

.checklist-builder-targeting summary span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--checklist-text);
}

.checklist-builder-targeting summary svg {
  width: 17px;
  height: 17px;
  color: var(--checklist-green);
}

.checklist-builder-targeting summary small {
  color: var(--checklist-muted);
  font-size: 9px;
  font-weight: 600;
}

.checklist-target-grid {
  min-width: 0;
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.checklist-target-grid fieldset {
  min-width: 0;
  border-color: #e2e9e5;
  background: #fbfcfb;
}

.checklist-page-editor {
  min-width: 0;
  margin-top: 20px;
  padding: 0 16px 16px;
  border: 1px solid var(--checklist-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .035);
}

.checklist-page-editor > .checklist-builder-section-heading {
  margin-top: 16px;
}

.checklist-page-title {
  padding-bottom: 15px;
  border-bottom: 1px solid #e8eeea;
}

.checklist-question-list {
  gap: 12px;
}

.checklist-question-editor {
  position: relative;
  padding: 15px 14px 15px 12px;
  border-color: var(--checklist-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 39, 27, .035);
}

.checklist-question-editor::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 9px 0 0 9px;
  content: "";
  background: #a7cfb4;
}

.checklist-question-drag {
  color: #8591a3;
}

.checklist-question-rules {
  border-color: #e0e8e3;
  background: #f7faf8;
}

.checklist-question-rules summary {
  color: #455369;
  font-size: 10px;
}

.checklist-builder > footer,
.checklist-completion > footer {
  min-height: 66px;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 -6px 18px rgba(18, 39, 27, .035);
}

.checklist-progress {
  padding: 13px 24px;
  border-bottom: 1px solid #e7ede9;
  background: #fbfcfb;
}

.checklist-progress > div {
  height: 6px;
}

.checklist-completion > main {
  padding: 24px;
  background: #f8faf9;
}

.checklist-completion-page,
.checklist-overall-photos {
  max-width: 820px;
}

.checklist-completion-page-header {
  margin-bottom: 18px;
}

.checklist-completion-page-header > span {
  color: var(--checklist-green-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.checklist-completion-page-header h3 {
  margin: 4px 0 0;
  color: var(--checklist-text);
  font-size: 22px;
  letter-spacing: -.02em;
}

.checklist-completion-page-header p {
  margin: 4px 0 0;
  color: var(--checklist-muted);
  font-size: 11px;
}

.checklist-response-field {
  margin: 12px 0;
  padding: 17px;
  border-color: var(--checklist-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .04);
}

.checklist-response-field legend {
  color: var(--checklist-text);
  font-size: 13px;
}

.checklist-choice-row span,
.checklist-choice-list span,
.checklist-rating span {
  border-color: #d8e2dc;
  border-radius: 7px;
  background: #fbfcfb;
  font-size: 11px;
  font-weight: 650;
}

.checklist-detail-summary {
  padding: 16px 20px;
  background: #f8faf9;
}

.checklist-detail-summary article {
  min-height: 84px;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .04);
}

.checklist-detail-summary strong {
  font-size: 18px;
}

.checklist-detail-pages {
  padding: 22px 24px;
  background: #fff;
}

.checklist-detail-pages > section > h3 {
  color: var(--checklist-text);
  font-size: 18px;
  letter-spacing: -.02em;
}

.checklist-detail-pages article {
  padding: 15px;
  border: 1px solid #e5ebe7;
  border-radius: 8px;
  background: #fbfcfb;
  margin-bottom: 9px;
}

.checklist-detail > main > aside {
  padding: 20px;
  background: #f4f7f5;
}

.checklist-detail > main > aside section,
.checklist-detail > main > aside details {
  padding: 15px;
  border: 1px solid var(--checklist-border);
  border-radius: 9px;
  background: #fff;
  margin-bottom: 12px;
}

@media (max-width: 1280px) {
  html[data-sidebar-state] body.is-authenticated[data-active-view="checklists"] #checklistsView.active {
    padding: 24px 24px 36px;
  }

  .checklist-builder-settings.compact-grid,
  .checklist-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-question-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-question-label {
    grid-column: 1 / -1;
  }
}

.checklist-anytime-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid #bfe6ce;
  border-radius: 9px;
  background: linear-gradient(135deg, #f0faf4 0%, #f8fcfa 100%);
  color: var(--checklist-text);
}

.checklist-anytime-note > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: #dcf5e5;
  color: #087733;
}

.checklist-anytime-note > span svg {
  width: 21px;
  height: 21px;
}

.checklist-anytime-note strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 14px;
}

.checklist-anytime-note p {
  margin: 0;
  color: var(--checklist-muted);
  font-size: 12px;
  line-height: 1.5;
}

.checklist-anytime-note > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.checklist-anytime-note small {
  padding: 3px 8px;
  border: 1px solid #caead6;
  border-radius: 999px;
  background: #fff;
  color: #25613c;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 840px) {
  html[data-sidebar-state] body.is-authenticated[data-active-view="checklists"] #checklistsView.active {
    padding: 18px 16px 92px;
  }

  .checklist-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-tabs {
    padding: 0 14px;
    gap: 18px;
  }

  .checklist-workspace-card {
    padding: 18px 14px;
  }

  .checklist-toolbar,
  .checklist-table-wrap,
  .checklist-pagination {
    margin-inline: -14px;
  }

  .checklist-toolbar,
  .checklist-pagination {
    padding-inline: 14px;
  }
}

@media (max-width: 720px) {
  .checklist-kpis {
    grid-template-columns: 1fr;
  }

  .checklist-question-label {
    grid-column: auto;
  }

  .checklist-kpis article {
    min-height: 92px;
  }

  .checklist-section-heading {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .checklist-section-heading > strong {
    grid-column: 2;
    justify-self: start;
  }

  .checklist-run-card {
    min-height: 285px;
  }

  .checklist-template-list > article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .checklist-template-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .checklist-builder-targeting summary small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checklist-run-card {
    transition: none;
  }
}
