/* The checklist creator panel's styles (partials/panel_create_checklist.php). */
/* ── Create Checklist Panel ──────────────────────────────────────────── */
#panelCreateChecklist .slide-panel-content { width: 520px; }

/* Header gradient */
#panelCreateChecklist .sp-hd {
  background:#111827;
  border-bottom: none;
}
#panelCreateChecklist .sp-hd span { color: #fff; font-weight: 700; font-size: 15px; }
#panelCreateChecklist .sp-hd-icon {
  background: rgba(255,255,255,.18); color: #fff; border-radius: 10px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
#panelCreateChecklist .sp-x { color: rgba(255,255,255,.75); font-size: 16px; }
#panelCreateChecklist .sp-x:hover { color: #fff; }

/* Body */
#panelCreateChecklist .sp-bd { padding: 22px 22px 0; display: flex; flex-direction: column; overflow: hidden; }

/* ── Shared sub-view wrapper ─────────────────────────────────────────── */
.cc-subview { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Back button */
.cc-back-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 9px;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #475569; cursor: pointer;
  transition: all .15s; margin-bottom: 16px; align-self: flex-start;
}
.cc-back-btn:hover { background: #e2e8f0; color: #1e293b; }
.cc-back-btn i { font-size: 11px; }

/* Sub-view header */
.cc-sub-header { margin-bottom: 14px; }
.cc-sub-header h5 {
  font-size: 14px; font-weight: 800; color: #1e293b; margin: 0 0 3px;
  display: flex; align-items: center; gap: 7px;
}
.cc-sub-header h5 i { font-size: 16px; }
.cc-sub-header p { font-size: 12.5px; color: #64748b; margin: 0; }

/* ── AI section ─────────────────────────────────────────────────────── */
#ccAiView .cc-sub-header h5 i { color: #1f2937; }

/* Prompt chips */
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: #f5f3ff; border: 1.5px solid #e2e8f0; color: #1f2937;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cc-chip i { font-size: 13px; }
.cc-chip:hover { background: #fbbf24; border-color: #fbbf24; color: #0b0e14; }

/* Textarea */
.cc-label { display: block; font-size: 11.5px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.cc-label .opt { font-weight: 400; color: #94a3b8; }
.cc-field { margin-bottom: 14px; position: relative; }
.cc-textarea {
  width: 100%; box-sizing: border-box; font-size: 13.5px; color: #1e293b;
  border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s; background: #fff; resize: none;
  line-height: 1.55;
}
.cc-textarea:focus {
  outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.cc-char-count {
  position: absolute; bottom: 9px; right: 11px;
  font-size: 10.5px; color: #cbd5e1; font-weight: 500; pointer-events: none;
}

/* Primary button */
.cc-btn-primary {
  width: 100%; padding: 11px 16px; border-radius: 10px; border: none; cursor: pointer;
  background:#111827; color: #fff;
  font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s, transform .1s; letter-spacing: .01em;
}
.cc-btn-primary:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.cc-btn-primary:active:not(:disabled) { transform: translateY(0); }
.cc-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.cc-btn-primary i { font-size: 16px; }

/* ── Blank form ─────────────────────────────────────────────────────── */
#ccBlankView .cc-sub-header h5 i { color: #64748b; }

.cc-input {
  width: 100%; box-sizing: border-box; font-size: 13.5px; color: #1e293b;
  border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 13px;
  transition: border-color .15s; background: #fff;
}
.cc-input:focus {
  outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
#blankChecklistMessage { margin-top: 11px; }

/* Messages */
@keyframes ccFade { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:translateY(0) } }
.cc-msg-ok  {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
  padding: 10px 13px; border-radius: 9px; font-size: 13px;
  display: flex; align-items: center; gap: 7px; animation: ccFade .2s ease;
}
.cc-msg-err {
  background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3;
  padding: 10px 13px; border-radius: 9px; font-size: 13px;
  display: flex; align-items: center; gap: 7px; animation: ccFade .2s ease;
}

/* ── AI result ──────────────────────────────────────────────────────── */
#ccResultView { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
#ccResultView .cc-back-btn { margin-bottom: 12px; }

#checklistTitleContainer {
  /* Light amber with dark text: amber text on lavender read at about 2:1 (QA UY-34). */
  background: #fffbeb;
  border: 1.5px solid #fde68a; border-radius: 11px;
  padding: 13px 15px; margin-bottom: 14px; flex-shrink: 0;
}
#checklistGeneratedTitle { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0 0 3px; }
#checklistGeneratedDescription { font-size: 12.5px; color: #78350f; margin: 0; }

/* Loading state */
#processingIcon { padding: 48px 0; text-align: center; }
.cc-spinner-wrap { margin-bottom: 12px; }
.cc-spinner-wrap i { font-size: 32px; color: #94a3b8; }
#processingIcon h6 { font-size: 14px; font-weight: 700; color: #334155; margin: 0 0 5px; }
#processingIcon p  { font-size: 12.5px; color: #94a3b8; margin: 0; }
.cc-progress-dots { display: flex; justify-content: center; gap: 5px; margin-top: 14px; }
.cc-progress-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: #e2e8f0;
  animation: ccDot 1.2s infinite ease-in-out;
}
.cc-progress-dots span:nth-child(2) { animation-delay: .2s; }
.cc-progress-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ccDot { 0%,80%,100%{transform:scale(.7);opacity:.4} 40%{transform:scale(1);opacity:1} }

/* Result list */
.cc-result-list { flex: 1; overflow-y: auto; padding-bottom: 4px; }

.checklist-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px;
  border: 1.5px solid #e8ecf0; border-radius: 10px; margin-bottom: 7px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
  animation: ccFade .25s ease both;
}
.checklist-item:hover { border-color: #e2e8f0; box-shadow: 0 2px 8px rgba(99,102,241,.08); }
/* Steps that start together: one accent bar down the group, so the reader can
   see at a glance that these do not wait for each other. */
.ci-in-group { position: relative; background: #fbfcff; }
.ci-in-group::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: #6366f1; border-radius: 3px 0 0 3px;
}
.ci-in-group .ci-num { background: #eef2ff; color: #4338ca; }
.ci-par {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe;
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 1px 7px; border-radius: 20px;
}
.ci-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: linear-gradient(135deg,#ede9fe,#94a3b8); color: #1f2937;
  font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ci-body h6 { font-size: 13px; font-weight: 700; color: #1e293b; margin: 0 0 3px; }
.ci-body p  { font-size: 12px; color: #64748b; margin: 0; line-height: 1.4; }

/* ── Goal and KRA steps ─────────────────────────────────────────────── */
.cc-step { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #b45309; margin-bottom: 6px; }
.cc-goal-pill { display: flex; gap: 8px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; color: #78350f;
  border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.cc-goal-pill i { color: #b45309; font-size: 16px; line-height: 1.2; }
.cc-goal-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 10px 24px rgba(15,23,42,.12); margin-top: 4px; overflow: hidden; }
.cc-goal-opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 12px; font-size: 13px; color: #1e293b; cursor: pointer; }
.cc-goal-opt:hover, .cc-goal-opt.on { background: #f1f5f9; }
.cc-goal-opt small { color: #94a3b8; white-space: nowrap; }
.cc-btn-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px;
  background: none; border: 1.5px solid #e2e8f0; color: #475569; border-radius: 11px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.cc-btn-secondary:hover { border-color: #94a3b8; color: #0f172a; }
.cc-import-cta { display:flex; align-items:center; gap:12px; width:100%; margin-top:18px; padding:13px 14px; text-align:left; background:#fffbeb; border:1px solid #fde68a; border-radius:12px; cursor:pointer; color:#78350f; }
.cc-import-first { margin:0 0 6px; }
.cc-or { display:flex; align-items:center; gap:10px; margin:14px 0 12px; color:#94a3b8; font-size:12px; font-weight:600; }
.cc-or::before, .cc-or::after { content:''; flex:1; height:1px; background:#e2e8f0; }
html.dark-mode .cc-or::before, html.dark-mode .cc-or::after { background:#334155; }
.cc-import-cta:hover { background:#fef3c7; border-color:#fcd34d; }
.cc-import-cta > i:first-child { font-size:24px; color:#d97706; }
.cc-import-cta > i:last-child { margin-left:auto; font-size:20px; color:#b45309; }
.cc-import-cta b { display:block; font-size:13.5px; color:#78350f; }
.cc-import-cta small { display:block; font-size:12px; color:#92400e; line-height:1.4; margin-top:2px; }
.cc-drop { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:22px 16px; border:2px dashed #cbd5e1; border-radius:14px; background:#f8fafc; cursor:pointer; margin:0; }
.cc-drop:hover, .cc-drop.is-over { border-color:#d97706; background:#fffbeb; }
.cc-drop input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.cc-drop > i { font-size:30px; color:#d97706; }
.cc-drop b { font-size:14px; color:#0f172a; }
.cc-drop small { font-size:12px; color:#64748b; max-width:320px; }
.cc-files { display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.cc-file { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #e2e8f0; border-radius:10px; font-size:13px; color:#0f172a; background:#fff; }
.cc-file > i { font-size:18px; color:#b45309; }
.cc-file span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-file small { color:#94a3b8; font-size:11.5px; }
.cc-file-x { background:none; border:0; color:#94a3b8; cursor:pointer; padding:2px 4px; }
.cc-file-x:hover { color:#ef4444; }
.cc-saved { display: flex; align-items: center; gap: 8px; color: #15803d; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.cc-saved i { font-size: 18px; }
.cc-link { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.cc-link-top { display: flex; align-items: center; gap: 8px; }
.cc-link-name { font-weight: 800; font-size: 13.5px; color: #0f172a; flex: 1; min-width: 0; }
.cc-link-tag { font-size: 10.5px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.cc-link-x { background: none; border: 0; color: #94a3b8; font-size: 15px; cursor: pointer; padding: 0 2px; }
.cc-link-x:hover { color: #ef4444; }
.cc-link-why { font-size: 12px; color: #64748b; margin: 3px 0 8px; }
.cc-link-sel { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.cc-link-sel select, .cc-add-kra { border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; background: #fff; color: #1e293b; width: 100%; }
.cc-link-note { font-size: 12.5px; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px; margin-bottom: 12px; line-height: 1.5; }
.cc-link-note a { font-weight: 700; }
html.dark-mode #panelCreateChecklist .cc-btn-primary, html.dark-mode #useChecklistBtn { background: #fbbf24 !important; color: #0f172a !important; }
.cc-setup-nudge { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #334155; margin-bottom: 14px; line-height: 1.5; }
.cc-setup-nudge b { color: #0f172a; }
.cc-setup-nudge a { color: #4f46e5; font-weight: 700; }
.cc-setup-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 12px; }
.cc-setup-steps span { border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 9px; color: #64748b; background: #fff; }
.cc-setup-steps span.on { border-color: #fbbf24; background: #fffbeb; color: #78350f; font-weight: 700; }
.cc-pick-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: 6px; }
.cc-goal-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.cc-goal-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: #0f172a; cursor: pointer; }
.cc-goal-item:hover { border-color: #fbbf24; background: #fffbeb; }
.cc-goal-item small { color: #94a3b8; white-space: nowrap; font-size: 11.5px; }
.cc-goal-item small.none { color: #c2410c; font-weight: 700; }
html.dark-mode .cc-setup-nudge { background: var(--dm-surface2) !important; border-color: var(--dm-border) !important; color: var(--dm-text-muted) !important; }
html.dark-mode .cc-setup-nudge b { color: var(--dm-text) !important; }
html.dark-mode .cc-setup-nudge a { color: #fbbf24 !important; }
html.dark-mode .cc-setup-steps span { background: transparent !important; border-color: var(--dm-border2) !important; color: var(--dm-text-muted) !important; }
html.dark-mode .cc-setup-steps span.on { border-color: rgba(251,191,36,.5) !important; background: rgba(251,191,36,.1) !important; color: #fde68a !important; }
html.dark-mode .cc-pick-label { color: var(--dm-text-muted) !important; }
html.dark-mode .cc-goal-item { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; color: var(--dm-text) !important; }
html.dark-mode .cc-goal-item:hover { border-color: rgba(251,191,36,.5) !important; background: rgba(251,191,36,.08) !important; }
html.dark-mode .cc-goal-item small.none { color: #fdba74 !important; }
html.dark-mode .cc-goal-pill { background: rgba(251,191,36,.1) !important; border-color: rgba(251,191,36,.3) !important; color: #fde68a !important; }
html.dark-mode .cc-goal-suggest { background: var(--dm-surface) !important; border-color: var(--dm-border) !important; }
html.dark-mode .cc-goal-opt { color: var(--dm-text) !important; }
html.dark-mode .cc-goal-opt:hover, html.dark-mode .cc-goal-opt.on { background: var(--dm-surface2) !important; }
html.dark-mode .cc-btn-secondary { border-color: var(--dm-border2) !important; color: var(--dm-text-muted) !important; }
html.dark-mode .cc-import-cta { background:rgba(251,191,36,.08) !important; border-color:rgba(251,191,36,.3) !important; }
html.dark-mode .cc-import-cta b { color:#fde68a !important; }
html.dark-mode .cc-import-cta small { color:#fcd34d !important; opacity:.85; }
html.dark-mode .cc-import-cta > i { color:#fbbf24 !important; }
html.dark-mode .cc-drop { background:var(--dm-surface2) !important; border-color:var(--dm-border2) !important; }
html.dark-mode .cc-drop:hover, html.dark-mode .cc-drop.is-over { border-color:#fbbf24 !important; background:rgba(251,191,36,.08) !important; }
html.dark-mode .cc-drop b, html.dark-mode .cc-file { color:var(--dm-text) !important; }
html.dark-mode .cc-drop small { color:var(--dm-text-muted) !important; }
html.dark-mode .cc-file { background:var(--dm-surface) !important; border-color:var(--dm-border2) !important; }
html.dark-mode .cc-btn-secondary:hover { color: var(--dm-text) !important; }
html.dark-mode .cc-saved { color: #4ade80 !important; }
html.dark-mode .cc-link { border-color: var(--dm-border2) !important; }
html.dark-mode .cc-link-name { color: var(--dm-text) !important; }
html.dark-mode .cc-link-tag { background: var(--dm-surface2) !important; color: var(--dm-text-muted) !important; }
html.dark-mode .cc-link-why, html.dark-mode .cc-link-note { color: var(--dm-text-muted) !important; }
html.dark-mode .cc-link-note { background: var(--dm-surface2) !important; border-color: var(--dm-border2) !important; }
html.dark-mode .cc-link-sel select, html.dark-mode .cc-add-kra { background: var(--dm-input-bg) !important; border-color: var(--dm-border2) !important; color: var(--dm-text) !important; }

/* ── Footer ──────────────────────────────────────────────────────────── */
#ccPanelFooter {
  border-top: 1.5px solid #f1f5f9; padding: 13px 22px;
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  background: #fafbfc;
}

#useChecklistBtn {
  display: none; align-items: center; gap: 6px; padding: 9px 20px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg,#10b981,#059669);
  color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
#useChecklistBtn.cc-visible { display: inline-flex; }
#useChecklistBtn:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
#useChecklistBtn:disabled { opacity: .5; cursor: not-allowed; }

  /* ── Generated set, grouped into folders ───────────────────────────────
     The model files every checklist under a category, and each category
     becomes a folder on save. Titles only, so a twelve-checklist answer can
     be read at a glance; the steps are one click away on the title.        */
  .cc-folder { margin-bottom: 9px; border: 1.5px solid #e8ecf0; border-radius: 10px;
               background: #fff; overflow: hidden; animation: ccFade .25s ease both; }
  .cc-folder-head {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px;
    background: #f8fafc; border-bottom: 1.5px solid #eef2f6; cursor: pointer;
    user-select: none;
  }
  .cc-folder.collapsed .cc-folder-head { border-bottom-color: transparent; }
  .cc-folder-head:hover { background: #f1f5f9; }
  .cc-folder-head input { width: 15px; height: 15px; cursor: pointer; accent-color: #4f46e5; flex-shrink: 0; }
  .cc-folder-ico { color: #6366f1; font-size: 16px; line-height: 1; flex-shrink: 0; }
  .cc-folder-name { font-size: 12.5px; font-weight: 800; color: #1e293b; letter-spacing: .01em; }
  .cc-folder-count {
    background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe;
    font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
  }
  .cc-folder-caret { margin-left: auto; color: #94a3b8; font-size: 11px; transition: transform .15s; }
  .cc-folder.collapsed .cc-folder-caret { transform: rotate(-90deg); }
  .cc-folder-body { padding: 6px; }
  .cc-folder.collapsed .cc-folder-body { display: none; }

  .cc-row { border-radius: 8px; padding: 2px; }
  .cc-row + .cc-row { margin-top: 2px; }
  .cc-row:hover { background: #fafbff; }
  .cc-row-head { display: flex; align-items: center; gap: 9px; padding: 6px 7px; }
  .cc-row-head input { width: 15px; height: 15px; cursor: pointer; accent-color: #4f46e5; flex-shrink: 0; }
  .cc-title-btn {
    flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0;
    background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit;
  }
  .cc-title-caret { color: #94a3b8; font-size: 9px; flex-shrink: 0; transition: transform .15s; }
  .cc-row.open .cc-title-caret { transform: rotate(90deg); }
  .cc-title-txt {
    font-size: 12.5px; font-weight: 700; color: #1e293b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .cc-title-btn:hover .cc-title-txt { color: #4338ca; }
  .cc-title-count { font-size: 10.5px; color: #94a3b8; font-weight: 600; flex-shrink: 0; margin-left: auto; }
  .cc-row-steps { display: none; padding: 2px 10px 9px 31px; }
  .cc-row.open .cc-row-steps { display: block; }
  .cc-row-desc { font-size: 11.5px; color: #64748b; margin: 0 0 6px; line-height: 1.45; }
  .cc-row-steps ol { margin: 0 0 0 15px; padding: 0; }
  .cc-row-steps li { font-size: 11.8px; color: #64748b; line-height: 1.55; margin-bottom: 3px; }
  .cc-row-steps li strong { color: #334155; font-weight: 600; }
  .cc-folder-chip {
    display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
    vertical-align: middle; background: #eef2ff; color: #4338ca;
    border: 1px solid #c7d2fe; font-size: 10px; font-weight: 700;
    padding: 1px 8px; border-radius: 20px;
  }

  /* Rows waiting for, or failing to get, their steps. A queued row is visibly
     not ready: its caret and checkbox stay inert until the steps land. */
  .cc-row.is-queued  .cc-title-caret,
  .cc-row.is-failed  .cc-title-caret { visibility: hidden; }
  .cc-row.is-queued  .cc-title-txt   { color: #94a3b8; }
  .cc-row.is-queued  .cc-title-btn,
  .cc-row.is-drafting .cc-title-btn  { cursor: default; }
  .cc-row.is-queued  .cc-title-btn:hover .cc-title-txt { color: #94a3b8; }
  .cc-row.is-drafting .cc-title-count { color: #6366f1; }
  .cc-row.is-failed  .cc-title-txt   { color: #94a3b8; }
  .cc-row.is-failed  .cc-title-count { color: #dc2626; }
  .cc-retry {
    margin-left: 6px; background: none; border: 0; padding: 0;
    font: inherit; font-weight: 700; color: #4f46e5;
    text-decoration: underline; cursor: pointer;
  }
  .cc-retry:hover { color: #3730a3; }
/* The line above the drafted list keeps its height while drafting, so the list
   does not move under the pointer (QA AU-8). */
#checklistGeneratedDescription { min-height: 3.2em; }
.cc-goal-no { display:none; }
.cc-no-goal-yet .cc-goal-no { display:inline; }
.cc-no-goal-yet .cc-goal-yes { display:none; }
