/* ===== CHECKLIST PRESENTATION STYLES ===== */

.checklist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 0.15s;
}
.checklist-card:hover { border-color: var(--brand-dim); }
.checklist-card.is-complete,
.checklist-card[data-complete="true"] {
  border-left: 3px solid var(--brand);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: var(--space-3); }
.card-name { font-weight: 600; font-size: var(--text-base); }
.card-name-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-schedule {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.card-archived-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--danger);
  background: rgba(var(--danger-rgb), 0.1);
  border: 1px solid rgba(var(--danger-rgb), 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.card-sample-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: help;
}
.card-actions { display: flex; gap: 6px; margin-bottom: var(--space-4); }
.card-action-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.15s;
  background: none;
  cursor: pointer;
}
.card-action-link:hover { border-color: var(--text-muted); color: var(--text); }
.card-progress {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.card-progress .accent { color: var(--brand); }
.card-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}
.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-complete {
  background: var(--brand);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-complete:hover { background: var(--success-dim); }
.completed-badge { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--success); }

/* Shared item row */
.item-list { display: flex; flex-direction: column; gap: 2px; }
.item-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.1s;
  border: 1px solid transparent;
  user-select: none;
}
.item-row:hover { background: var(--surface-raised); border-color: var(--border); }
.item-row.pending { opacity: 0.55; }
.item-checkbox-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.item-checkbox {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.item-checkbox-input:checked ~ .item-checkbox { background: var(--success); border-color: var(--success); }
.item-checkbox-input:checked ~ .item-checkbox svg { display: block; }
.item-checkbox svg { display: none; }
.item-checkbox-input:focus-visible ~ .item-checkbox { box-shadow: 0 0 0 2px var(--success); }
.item-checkbox-input:checked ~ .item-text { color: var(--text-muted); text-decoration: line-through; }
.item-text { font-size: var(--text-sm); flex: 1; }

.checklists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-5);
}

/* Cards presentation */
.presentation-cards .item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
}
.presentation-cards .item-row {
  flex-direction: column;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  min-height: 88px;
}
.presentation-cards .item-checkbox { margin-bottom: 4px; }
.presentation-cards .item-text { font-size: var(--text-xs); }

/* Compact presentation */
.presentation-compact .item-row { padding: 6px 8px; gap: 8px; }
.presentation-compact .item-checkbox { width: 16px; height: 16px; border-radius: 4px; }
.presentation-compact .item-text { font-size: var(--text-xs); }
.presentation-compact .card-progress-bar { height: 2px; }

/* Executive presentation */
.presentation-executive .exec-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}
.exec-ring {
  width: 72px; height: 72px;
  flex-shrink: 0;
  position: relative;
}
.exec-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.exec-ring__bg { fill: none; stroke: var(--border); stroke-width: 6; }
.exec-ring__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s;
}
.checklist-card.is-complete .exec-ring__fill,
.checklist-card[data-complete="true"] .exec-ring__fill { stroke: var(--success); }
.exec-ring__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}
.exec-summary { flex: 1; min-width: 0; }
.exec-summary__count { font-size: var(--text-lg); font-weight: 700; }
.exec-summary__label { font-size: var(--text-xs); color: var(--text-muted); }
.exec-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: var(--space-2);
}
.presentation-executive .item-list.is-collapsed { display: none; }

/* Timeline presentation */
.presentation-timeline .item-list { position: relative; padding-left: 20px; }
.presentation-timeline .item-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}
.presentation-timeline .item-row {
  position: relative;
  padding-left: 28px;
  background: transparent;
  border: none;
}
.presentation-timeline .item-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
}
.presentation-timeline .item-row:has(.item-checkbox-input:checked)::before {
  background: var(--success);
  border-color: var(--success);
}
.presentation-timeline .item-row:not(:has(.item-checkbox-input:checked)):first-of-type::before,
.presentation-timeline .item-row:not(:has(.item-checkbox-input:checked)) + .item-row:not(:has(.item-checkbox-input:checked))::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.presentation-timeline .item-checkbox { display: none; }

@media (max-width: 768px) {
  .checklists-grid { grid-template-columns: 1fr; }
  .presentation-cards .item-list { grid-template-columns: repeat(2, 1fr); }
}
