/* Project Hub — checklist mission control */

.project-hub {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header — uses standard Card component, minimal overrides */

/* Checklist sections */
.checklist-section .card-header {
  background: #f8f5fc;
  border-bottom: 1px solid #e8e0f0;
}
.checklist-section-icon {
  font-size: 1rem;
  color: #712F79;
}
.checklist-section-title {
  font-weight: 600;
  color: #3E2155;
}
.checklist-section--complete .card-header {
  background: #eaf7ef;
}
.checklist-section--complete .checklist-section-title {
  color: #2BC485;
}

/* Gated (finalised) section — subtle collapsed look */
.checklist-section--gated .card-header {
  background: #f0f7f2;
}
.checklist-section--gated .checklist-section-title {
  color: #555;
}

/* Checklist items */
.checklist-item {
  border-bottom: 1px solid #f0eff2;
  transition: background 0.15s ease;
}
.checklist-item:last-child {
  border-bottom: none;
}
.checklist-item:hover {
  background: #faf8fd;
}
.checklist-item--checked {
  background: #fafafa;
}

.checklist-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #712F79;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-label {
  font-size: 0.95rem;
  cursor: pointer;
  color: #333;
}

/* Shared action button — consistent size across hub */
.hub-action-btn {
  font-size: 0.8rem;
  padding: 5px 14px;
  white-space: nowrap;
  border-radius: 6px;
}

.checklist-remove {
  font-size: 1.2rem;
  line-height: 1;
}

.checklist-add-btn {
  font-size: 0.85rem;
  text-decoration: none;
}
.checklist-add-btn:hover {
  text-decoration: underline;
}

/* Smart prompts */
.smart-prompt {
  background: #fef9e7;
  border: 1px solid #f5e6a3;
  border-radius: 8px;
  font-size: 0.9rem;
}
.smart-prompt-message {
  color: #5a4e00;
}
.smart-prompt-action {
  white-space: nowrap;
}

/* Progress ring */
.progress-ring {
  transform: rotate(0deg);
}

/* Inline +/- expand toggle */
.expand-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  color: #712F79;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #712F79;
  flex-shrink: 0;
}
.expand-toggle:hover {
  background: #712F79;
  color: #fff;
}

/* Expanded content below a checklist item */
.checklist-expand-content {
  border-bottom: 1px solid #f0eff2;
  padding: 4px 16px 10px 42px;
}

/* Outline entries */
.outline-entry {
  background: none;
  border: none;
  padding: 0 !important;
  margin-bottom: 6px !important;
}
.outline-title {
  color: #3E2155;
  font-size: 0.85rem;
}
.outline-body {
  font-size: 0.83rem;
  line-height: 1.45;
  color: #666;
}
.outline-body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}
.outline-body li {
  font-size: 0.85rem;
}

/* Thumbnail inline preview */
.thumbnail-preview {
  max-width: 160px;
  height: auto;
}

/* ---- Intelligence panels ---- */

.project-intelligence .intel-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(62, 33, 85, 0.08);
}
.project-intelligence .intel-card--subtle {
  background: #faf8fd;
  box-shadow: none;
  border: 1px solid #e8e0f0;
}

.intel-card-heading {
  font-size: 14px;
  font-weight: 700;
  color: #3E2155;
}
.intel-card-heading--muted {
  color: #888;
  font-weight: 600;
}

.intel-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.intel-hint {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

.intel-tag {
  font-size: 0.75rem;
  background: #f2eef8;
  color: #712F79;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.intel-score-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3E2155;
}
.intel-score-verdict {
  font-size: 0.72rem;
  font-weight: 500;
}

.intel-reasoning {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.55;
}

.intel-window {
  font-size: 0.8rem;
  color: #777;
}

.intel-ref-thumb {
  width: 100%;
  height: auto;
  border: 1px solid #e8e0f0;
  transition: transform 0.15s ease;
}
.intel-ref-thumb:hover {
  transform: scale(1.02);
}

/* ---- Project sidebar ---- */

.sidebar-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(62, 33, 85, 0.08);
}

.sidebar-heading {
  font-size: 13px;
  font-weight: 700;
  color: #3E2155;
}

.sidebar-thumb {
  width: 100%;
  height: auto;
}

.sidebar-empty {
  font-size: 0.82rem;
  color: #aaa;
  font-style: italic;
}

.sidebar-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0eff2;
  font-size: 0.84rem;
}
.sidebar-summary-item:last-child {
  border-bottom: none;
}
.sidebar-summary-icon {
  color: #712F79;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-summary-label {
  color: #666;
  flex-shrink: 0;
}
.sidebar-summary-value {
  margin-left: auto;
  color: #333;
  font-weight: 500;
  text-align: right;
}
.sidebar-summary-empty {
  color: #bbb;
  font-weight: 400;
  font-style: italic;
}

.sidebar-body-snippet {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.sidebar-alt-titles {
  font-size: 0.82rem;
  color: #555;
}
.sidebar-alt-titles ul {
  padding-left: 1.1rem;
  margin: 0;
}
.sidebar-alt-titles li {
  margin-bottom: 3px;
}

/* Asset picker modal */
.asset-picker-modal .list-group-item:focus {
  outline: 2px solid #712F79;
}
.asset-picker-thumb {
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.asset-picker-thumb:hover {
  border-color: #712F79;
  transform: scale(1.03);
}
.asset-picker-thumb--active {
  border-color: #712F79 !important;
}
