/* =========================================================
   Somepato Checklists
   =========================================================
   Scope:
   - Public / recommended checklist lists
   - My checklist list
   - Read-only detail / use detail
   - Checklist create/edit form
   - Section / item / FAQ CRUD helper pages
========================================================= */


/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */

.sp-checklists,
.sp-checklists-main {
    min-width: 0;
    padding: 0 16px 32px;
    color: var(--sp-text, #111827);
}

.sp-checklists a,
.sp-checklists-main a {
    text-decoration: none;
}

.min-w-0 {
    min-width: 0;
}


/* ---------------------------------------------------------
   Shared hero
--------------------------------------------------------- */

.sp-checklists-hero,
.sp-checklist-hero,
.sp-checklist-form-head {
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklists-hero-top,
.sp-checklist-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sp-checklists-kicker,
.sp-checklist-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 9px;
    border-radius: var(--sp-radius-pill, 999px);
    background: var(--sp-brand-soft, #fff3e8);
    color: var(--sp-brand-strong, #c2410c);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.sp-checklists-title,
.sp-checklist-title,
.sp-checklist-form-head h1 {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.sp-checklist-form-head h1 {
    margin-top: 10px;
}

.sp-checklists-description,
.sp-checklist-description,
.sp-checklist-form-head p {
    max-width: 660px;
    margin: 9px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.sp-checklists-count-card,
.sp-checklist-count-card {
    flex: 0 0 auto;
    min-width: 76px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: right;
}

.sp-checklists-count-card strong,
.sp-checklist-count-card strong {
    display: block;
    color: var(--sp-text, #111827);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.1;
}

.sp-checklists-count-card span,
.sp-checklist-count-card span {
    display: block;
    margin-top: 4px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Tabs / chips / subnav
--------------------------------------------------------- */

.sp-checklists-tabs,
.sp-checklist-subnav,
.sp-checklist-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-checklists-tabs::-webkit-scrollbar,
.sp-checklist-subnav::-webkit-scrollbar,
.sp-checklist-category-tabs::-webkit-scrollbar {
    display: none;
}

.sp-checklists-tabs,
.sp-checklist-subnav {
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklist-category-tabs {
    flex-wrap: wrap;
    margin-top: 14px;
}

.sp-checklists-tab,
.sp-checklist-subnav-link,
.sp-checklist-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--sp-radius-pill, 999px);
    background: #f8fafc;
    color: var(--sp-text-subtle, #374151);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.sp-checklists-tab:hover,
.sp-checklists-tab.is-active,
.sp-checklist-subnav-link:hover,
.sp-checklist-subnav-link.is-active,
.sp-checklist-chip:hover,
.sp-checklist-chip.is-active {
    background: var(--sp-brand-soft, #fff3e8);
    color: var(--sp-brand-strong, #c2410c);
}

.sp-checklist-chip span {
    color: inherit;
    font-size: 12px;
    font-weight: 850;
}


/* ---------------------------------------------------------
   Toolbar / search
--------------------------------------------------------- */

.sp-checklist-toolbar,
.sp-checklists-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklist-toolbar-title,
.sp-checklists-section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.sp-checklist-toolbar-title strong,
.sp-checklists-section-title {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.sp-checklist-toolbar-title span,
.sp-checklists-section-count {
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.sp-checklist-toolbar-actions,
.sp-checklists-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sp-checklist-search,
.sp-checklists-search {
    display: flex;
    align-items: center;
    width: 280px;
    margin: 0;
}

.sp-checklist-search input,
.sp-checklists-search input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #f8fafc;
    color: var(--sp-text, #111827);
    font-size: 13px;
}

.sp-checklist-search input:focus,
.sp-checklists-search input:focus {
    z-index: 1;
    border-color: var(--sp-brand, #f97316);
    background: #fff;
    outline: none;
    box-shadow: var(--sp-search-focus-ring, 0 0 0 3px rgba(249, 115, 22, 0.13));
}

.sp-checklist-search button,
.sp-checklists-search button {
    width: 38px;
    height: 36px;
    flex: 0 0 38px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 0 12px 12px 0;
    background: #fff;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
}

.sp-checklist-search button:hover,
.sp-checklists-search button:hover {
    background: var(--sp-hover-bg, #f3f4f6);
    color: var(--sp-text, #111827);
}

.sp-checklist-result-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-divider-soft, #f1f3f5);
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
}

.sp-checklist-result-note a {
    color: var(--sp-brand-dark, #ea580c);
    font-weight: 800;
}


/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.sp-checklist-primary-btn,
.sp-checklist-secondary-btn,
.sp-checklist-action-btn,
.sp-checklists-dark-btn,
.sp-checklists-soft-btn,
.sp-checklists-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--sp-radius-pill, 999px);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.sp-checklist-primary-btn,
.sp-checklists-dark-btn {
    border: 0;
    background: #212529;
    color: #fff;
}

.sp-checklist-primary-btn:hover,
.sp-checklists-dark-btn:hover {
    background: #111827;
    color: #fff;
}

.sp-checklist-secondary-btn,
.sp-checklist-action-btn,
.sp-checklists-soft-btn {
    border: 1px solid var(--sp-border, #e5e7eb);
    background: #fff;
    color: var(--sp-text-subtle, #374151);
}

.sp-checklist-secondary-btn:hover,
.sp-checklist-action-btn:hover,
.sp-checklist-action-btn.is-active,
.sp-checklists-soft-btn:hover {
    background: #f8fafc;
    color: var(--sp-text, #111827);
}

.sp-checklists-danger-btn {
    border: 0;
    background: #fef2f2;
    color: #dc2626;
}

.sp-checklists-danger-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.sp-checklist-action-btn.content-save-btn.is-saved {
    border-color: #cfe2ff;
    background: #eef5ff;
}


/* ---------------------------------------------------------
   Public / recommended cards
--------------------------------------------------------- */

.sp-checklist-list,
.sp-checklists-list {
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklist-card {
    border-bottom: 1px solid var(--sp-divider-soft, #f1f3f5);
    background: #fff;
}

.sp-checklist-card:last-child {
    border-bottom: 0;
}

.sp-checklist-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: inherit;
}

.sp-checklist-card-link:hover .sp-checklist-card-title {
    color: var(--sp-brand-dark, #ea580c);
}

.sp-checklist-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-checklist-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 6px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
}

.sp-checklist-card-meta span {
    display: inline-flex;
    align-items: center;
}

.sp-checklist-card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #cbd5e1;
}

.sp-checklist-card-title,
.sp-checklists-card-title,
.sp-checklist-card-summary,
.sp-checklists-card-summary {
    display: -webkit-box;
    overflow: hidden;
    word-break: keep-all;
    -webkit-box-orient: vertical;
}

.sp-checklist-card-title {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 2;
}

.sp-checklist-card-summary {
    margin: 7px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
}

.sp-checklist-card-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 650;
}

.sp-checklist-card-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sp-checklist-card-side {
    flex: 0 0 auto;
}

.sp-checklist-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
}


/* ---------------------------------------------------------
   My checklist cards
--------------------------------------------------------- */

.sp-checklists-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--sp-divider-soft, #f1f3f5);
    color: inherit;
}

.sp-checklists-card:last-child {
    border-bottom: 0;
}

.sp-checklists-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.sp-checklists-card-title {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 2;
}

.sp-checklists-card a:hover .sp-checklists-card-title {
    color: var(--sp-brand-dark, #ea580c);
}

.sp-checklists-card-summary {
    margin: 7px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
}

.sp-checklists-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 8px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.sp-checklists-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-checklists-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: var(--sp-radius-pill, 999px);
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.sp-checklists-badge.is-public,
.sp-checklists-badge.is-free {
    background: #ecfdf5;
    color: #047857;
}

.sp-checklists-badge.is-private,
.sp-checklists-badge.is-draft {
    background: #f8fafc;
    color: #64748b;
}

.sp-checklists-badge.is-market,
.sp-checklists-badge.is-paid {
    background: var(--sp-brand-soft, #fff3e8);
    color: var(--sp-brand-strong, #c2410c);
}

.sp-checklists-card-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 88px;
    padding-top: 1px;
    text-align: right;
}


/* ---------------------------------------------------------
   Empty / locked states
--------------------------------------------------------- */

.sp-checklist-empty,
.sp-checklists-empty,
.sp-checklists-locked {
    padding: 48px 10px;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
    color: var(--sp-muted, #6b7280);
    text-align: center;
}

.sp-checklist-empty strong,
.sp-checklists-empty strong,
.sp-checklists-locked strong {
    display: block;
    margin-bottom: 8px;
    color: var(--sp-text, #111827);
    font-size: 15px;
    font-weight: 850;
}

.sp-checklist-empty p,
.sp-checklists-empty p,
.sp-checklists-locked p {
    margin: 0 0 12px;
    color: var(--sp-muted, #6b7280);
    font-size: 14px;
    line-height: 1.7;
}

.sp-checklist-empty a,
.sp-checklists-empty a {
    color: var(--sp-brand-dark, #ea580c);
    font-size: 13px;
    font-weight: 850;
}


/* ---------------------------------------------------------
   Detail page
--------------------------------------------------------- */

.sp-checklist-detail {
    padding: 18px 0 32px;
}

.sp-checklist-detail-back {
    margin-bottom: 14px;
}

.sp-checklist-detail-back a,
.sp-checklist-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sp-text-subtle, #374151);
    font-size: 13px;
    font-weight: 750;
}

.sp-checklist-detail-back a:hover,
.sp-checklist-back-link:hover {
    color: var(--sp-brand-dark, #ea580c);
}

.sp-checklist-detail-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklist-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 8px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
}

.sp-checklist-detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #cbd5e1;
}

.sp-checklist-detail-title {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 26px;
    font-weight: 850;
    line-height: 1.38;
    letter-spacing: -0.045em;
    word-break: keep-all;
}

.sp-checklist-detail-summary {
    margin: 10px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
}

.sp-checklist-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sp-checklist-intro {
    padding: 20px 0 6px;
}

.sp-checklist-note,
.sp-checklist-section,
.sp-checklist-locked,
.sp-checklist-preview,
.sp-checklist-faq,
.sp-checklist-related {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
}

.sp-checklist-note h2,
.sp-checklist-section-head h2,
.sp-checklist-locked h2,
.sp-checklist-preview h2,
.sp-checklist-faq h2,
.sp-checklist-related h2 {
    margin: 0 0 10px;
    color: var(--sp-text, #111827);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.4;
}

.sp-checklist-note-body {
    color: var(--sp-text-subtle, #374151);
    font-size: 14px;
    line-height: 1.7;
}

.sp-checklist-items {
    margin-top: 22px;
}

.sp-checklist-section-head {
    margin-bottom: 12px;
}

.sp-checklist-section-head p,
.sp-checklist-locked p {
    margin: 0;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}

.sp-checklist-section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.sp-checklist-section-title-row h3 {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 16px;
    font-weight: 850;
}

.sp-checklist-section-title-row span {
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
}

.sp-checklist-section-description {
    margin: 0 0 12px;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}

.sp-checklist-item-list {
    display: grid;
    gap: 8px;
}

.sp-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--sp-divider-soft, #f1f3f5);
    border-radius: 14px;
    background: #f8fafc;
}

.sp-checklist-items[data-can-check="true"] .sp-checklist-item {
    cursor: pointer;
}

.sp-checklist-item:hover {
    background: #f3f4f6;
}

.sp-checklist-item-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: var(--sp-brand, #f97316);
    cursor: pointer;
}

.sp-checklist-readonly-marker {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    padding-top: 2px;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
}

.sp-checklist-item-body {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}

.sp-checklist-item-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.sp-checklist-item-title-row strong {
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 850;
}

.sp-checklist-item-title-row em {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--sp-muted, #6b7280);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.sp-checklist-item-reason,
.sp-checklist-item-extra,
.sp-checklist-item-tip {
    color: var(--sp-text-subtle, #374151);
    font-size: 13px;
    line-height: 1.6;
}

.sp-checklist-item-extra b {
    margin-right: 5px;
    color: var(--sp-text, #111827);
    font-weight: 800;
}

.sp-checklist-item-tip {
    padding-top: 3px;
    color: var(--sp-muted, #6b7280);
}

.sp-checklist-preview ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-checklist-preview li {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.sp-checklist-preview strong {
    display: block;
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 850;
}

.sp-checklist-preview span {
    display: block;
    margin-top: 4px;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.55;
}

.sp-checklist-faq-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-divider-soft, #f1f3f5);
}

.sp-checklist-faq-item:last-child {
    border-bottom: 0;
}

.sp-checklist-faq-item summary {
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.sp-checklist-faq-item div {
    margin-top: 8px;
    color: var(--sp-text-subtle, #374151);
    font-size: 14px;
    line-height: 1.7;
}

.sp-checklist-related-list {
    display: grid;
    gap: 8px;
}

.sp-checklist-related-link {
    display: block;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.sp-checklist-related-link:hover strong {
    color: var(--sp-brand-dark, #ea580c);
}

.sp-checklist-related-link strong,
.sp-checklist-related-link span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.sp-checklist-related-link strong {
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

.sp-checklist-related-link span {
    margin-top: 4px;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}


/* ---------------------------------------------------------
   Forms / editor shell
--------------------------------------------------------- */

.sp-checklist-form {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 0;
}

.sp-checklist-field label,
.sp-checklist-inline-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--sp-text, #111827);
    font-size: 13px;
    font-weight: 850;
}

.sp-checklist-inline-field label {
    font-size: 12px;
}

.sp-checklist-help,
.sp-checklist-field .helptext {
    display: block;
    margin-top: 5px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    line-height: 1.5;
}

.sp-checklist-field-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.sp-checklist-form input:not([type="checkbox"]):not([type="radio"]),
.sp-checklist-form textarea,
.sp-checklist-form select,
.sp-checklist-editor-card input:not([type="checkbox"]):not([type="radio"]),
.sp-checklist-editor-card textarea,
.sp-checklist-editor-card select {
    width: 100%;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}

.sp-checklist-form input:not([type="checkbox"]):not([type="radio"]),
.sp-checklist-form select,
.sp-checklist-editor-card input:not([type="checkbox"]):not([type="radio"]),
.sp-checklist-editor-card select {
    min-height: 40px;
    padding: 8px 12px;
}

.sp-checklist-form textarea,
.sp-checklist-editor-card textarea {
    min-height: 130px;
    padding: 12px;
    resize: vertical;
}

.sp-checklist-form input:focus,
.sp-checklist-form textarea:focus,
.sp-checklist-form select:focus,
.sp-checklist-editor-card input:focus,
.sp-checklist-editor-card textarea:focus,
.sp-checklist-editor-card select:focus {
    border-color: var(--sp-brand, #f97316);
    outline: none;
    box-shadow: var(--sp-search-focus-ring, 0 0 0 3px rgba(249, 115, 22, 0.13));
}

.sp-checklist-form-actions,
.sp-checklist-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.sp-checklist-form-alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.sp-checklist-form-alert p {
    margin: 0;
}

.sp-checklist-editor-card,
.sp-checklist-basic-box,
.sp-checklist-option-box,
.sp-checklist-task-editor {
    padding: 16px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
}

.sp-checklist-editor-card {
    margin-top: 14px;
}

.sp-checklist-option-box,
.sp-checklist-task-editor {
    background: #f8fafc;
}

.sp-checklist-block-title {
    margin: 0 0 10px;
    color: var(--sp-text, #111827);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
}

.sp-checklists-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-checklists-form-grid .is-full,
.sp-checklist-inline-field.is-full {
    grid-column: 1 / -1;
}

.sp-checklist-single-column {
    grid-template-columns: 1fr;
}

.sp-checklist-single-column .sp-checklist-field,
.sp-checklist-single-column .is-full {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   Unified item editor
--------------------------------------------------------- */

.sp-checklist-task-editor-head {
    margin-bottom: 12px;
}

.sp-checklist-task-editor-head h2 {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.4;
}

.sp-checklist-task-editor-head p {
    margin: 5px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}

.sp-checklist-task-list {
    display: grid;
    gap: 8px;
}

.sp-checklist-task-card {
    overflow: hidden;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 16px;
    background: #fff;
}

.sp-checklist-task-card:focus-within {
    border-color: var(--sp-brand, #f97316);
    box-shadow: var(--sp-search-focus-ring, 0 0 0 3px rgba(249, 115, 22, 0.13));
}

.sp-checklist-task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 10px;
    background: #fff;
}

.sp-checklist-task-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}

.sp-checklist-task-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 650;
    box-shadow: none !important;
    outline: none !important;
}

.sp-checklist-task-input::placeholder {
    color: #9ca3af;
}

.sp-checklist-task-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
}

.sp-checklist-task-remove:hover {
    background: #e5e7eb;
    color: #374151;
}

.sp-checklist-add-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin-top: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--sp-text-subtle, #374151);
    font-size: 13px;
    font-weight: 850;
}

.sp-checklist-add-item-btn:hover {
    background: var(--sp-brand-soft, #fff3e8);
    color: var(--sp-brand-strong, #c2410c);
}

.sp-checklist-advanced-options {
    margin: 0;
    padding: 12px 14px 14px;
    border: 0;
    border-top: 1px solid var(--sp-divider-soft, #f1f3f5);
    border-radius: 0;
    background: #f8fafc;
}

.sp-checklist-advanced-options summary {
    cursor: pointer;
    color: var(--sp-text, #111827);
    font-size: 13px;
    font-weight: 850;
}

.sp-checklist-advanced-options[open] summary {
    margin-bottom: 12px;
}

#deleted-item-container {
    display: none;
}


/* ---------------------------------------------------------
   Publish / actions
--------------------------------------------------------- */

.sp-checklist-publish-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 18px;
    background: #f8fafc;
}

.sp-checklist-publish-box h2 {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.4;
}

.sp-checklist-publish-box p {
    margin: 5px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    line-height: 1.6;
}

.sp-checklist-publish-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.sp-checklist-publish-actions form {
    margin: 0;
}

.sp-checklist-bottom-actions {
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 0;
}


/* ---------------------------------------------------------
   Legacy edit-section support
   Kept for section/item/FAQ helper pages and older templates.
--------------------------------------------------------- */

.sp-checklist-edit-sections {
    padding: 18px 0;
    border-bottom: 1px solid var(--sp-border, #e5e7eb);
}

.sp-checklist-edit-section-head,
.sp-checklist-edit-section-title,
.sp-checklist-edit-section li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sp-checklist-edit-section-head {
    margin-bottom: 12px;
}

.sp-checklist-edit-section-head h2 {
    margin: 0;
    color: var(--sp-text, #111827);
    font-size: 17px;
    font-weight: 850;
}

.sp-checklist-edit-section {
    padding: 14px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: 16px;
    background: #fff;
}

.sp-checklist-edit-section + .sp-checklist-edit-section {
    margin-top: 10px;
}

.sp-checklist-edit-section-title strong {
    color: var(--sp-text, #111827);
    font-size: 14px;
    font-weight: 850;
}

.sp-checklist-edit-section-title div,
.sp-checklist-edit-section li div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-checklist-edit-section a {
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 750;
}

.sp-checklist-edit-section a:hover {
    color: var(--sp-brand-dark, #ea580c);
}

.sp-checklist-edit-section ul {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.sp-checklist-edit-section li {
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.sp-checklist-edit-section li span {
    min-width: 0;
    color: var(--sp-text-subtle, #374151);
    font-size: 13px;
    font-weight: 650;
}

.sp-checklist-edit-section p {
    margin: 10px 0 0;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
}


/* ---------------------------------------------------------
   Pagination
--------------------------------------------------------- */

.sp-checklist-pagination,
.sp-checklists-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0 2px;
    color: var(--sp-muted, #6b7280);
    font-size: 13px;
    font-weight: 750;
}

.sp-checklist-pagination a,
.sp-checklists-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: var(--sp-radius-pill, 999px);
    color: var(--sp-text-subtle, #374151);
}

.sp-checklist-pagination a:hover,
.sp-checklists-pagination a:hover {
    background: var(--sp-hover-bg, #f3f4f6);
    color: var(--sp-text, #111827);
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 767.98px) {
    .sp-checklists,
    .sp-checklists-main {
        padding-right: 14px;
        padding-left: 14px;
    }

    .sp-checklists-hero-top,
    .sp-checklist-hero-top,
    .sp-checklist-toolbar,
    .sp-checklists-section-bar,
    .sp-checklists-card,
    .sp-checklist-edit-section-head,
    .sp-checklist-edit-section-title,
    .sp-checklist-edit-section li,
    .sp-checklist-publish-box {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-checklists-title,
    .sp-checklist-title,
    .sp-checklist-form-head h1 {
        font-size: 22px;
    }

    .sp-checklist-detail-title {
        font-size: 23px;
    }

    .sp-checklists-count-card,
    .sp-checklist-count-card,
    .sp-checklists-card-side {
        width: 100%;
        text-align: left;
    }

    .sp-checklists-card-side {
        justify-items: stretch;
    }

    .sp-checklist-toolbar-actions,
    .sp-checklists-actions,
    .sp-checklist-search,
    .sp-checklists-search,
    .sp-checklist-primary-btn,
    .sp-checklist-secondary-btn,
    .sp-checklist-action-btn,
    .sp-checklists-dark-btn,
    .sp-checklists-soft-btn,
    .sp-checklists-danger-btn {
        width: 100%;
    }

    .sp-checklist-card-link {
        align-items: flex-start;
    }

    .sp-checklist-card-side {
        display: none;
    }

    .sp-checklists-form-grid,
    .sp-checklist-single-column,
    .sp-checklist-task-card .sp-checklists-form-grid {
        grid-template-columns: 1fr;
    }

    .sp-checklist-basic-box,
    .sp-checklist-option-box,
    .sp-checklist-task-editor {
        padding: 14px;
    }

    .sp-checklist-publish-actions,
    .sp-checklist-publish-actions form,
    .sp-checklist-publish-actions button {
        width: 100%;
    }

    .sp-checklist-bottom-actions {
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------------
   Structured destination links
--------------------------------------------------------- */

.sp-checklist-destinations {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 9px;
    margin: 0 0 10px;
}

.sp-checklist-destination-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sp-muted, #6b7280);
    font-size: 12px;
    font-weight: 750;
}

.sp-checklist-destination-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sp-checklist-destination-chip,
.sp-checklist-destination-legacy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid var(--sp-border, #e5e7eb);
    border-radius: var(--sp-radius-pill, 999px);
    background: #f8fafc;
    color: var(--sp-text-subtle, #374151);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.sp-checklist-destination-chip:hover {
    border-color: rgba(249, 115, 22, 0.35);
    background: var(--sp-brand-soft, #fff3e8);
    color: var(--sp-brand-strong, #c2410c);
}

.sp-checklist-destination-chip .fa-star {
    color: var(--sp-brand, #f97316);
    font-size: 10px;
}

.sp-checklist-form .sp-destination-picker {
    width: 100%;
}

.sp-checklist-form .sp-destination-picker-label {
    margin-bottom: 6px;
    color: var(--sp-text, #111827);
    font-size: 13px;
    font-weight: 850;
}
