/* Card summary: preserve quiet space and reveal detail only on demand. */
.idea-view .card-toolbar {
  grid-column: 1 / -1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.idea-view .card-toolbar-label {
  color: rgba(243,239,231,.32);
  font: 700 10px/1 'Space Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.idea-view .card-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.idea-view .card-toolbar-actions button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: #1d1f22;
  color: rgba(243,239,231,.5);
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.idea-view .card-toolbar-actions button:hover { background: #25272b; color: var(--card-orange); transform: translateY(-1px); }

.idea-view .core-card .card-core-text { padding-right: 0; }
.idea-view .core-card .card-actions { display: none !important; }

.idea-view .growth-more { display: flex; flex-direction: column; gap: 9px; }
.idea-view .growth-more[hidden] { display: none !important; }
.idea-view .growth-actions .growth-more-toggle {
  min-height: 32px;
  justify-content: center;
  padding: 7px 12px;
  background: transparent;
  color: rgba(243,239,231,.38);
  font: 500 11px/1 'Space Grotesk', sans-serif;
}
.idea-view .growth-actions .growth-more-toggle:hover { background: rgba(255,255,255,.025); color: rgba(243,239,231,.7); transform: none; }
.idea-view .growth-actions .growth-more-toggle .task-checkbox { display: none; }

.idea-view .card-context-details {
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #17191c;
}
.idea-view .card-context-details > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: var(--card-text-2);
  font: 700 13px/1.2 'Noto Serif SC', serif;
  cursor: pointer;
  list-style: none;
}
.idea-view .card-context-details > summary::-webkit-details-marker { display: none; }
.idea-view .card-context-details > summary > span { display: flex; align-items: center; gap: 10px; }
.idea-view .card-context-details > summary > i {
  color: var(--card-muted);
  font: 400 14px/1 'Space Mono', monospace;
  transition: transform .2s ease;
}
.idea-view .card-context-details[open] > summary > i { transform: rotate(180deg); }
.idea-view .card-context-body { padding: 0 18px 18px; }
.idea-view .card-context-details .card-origin-block,
.idea-view .card-context-details .card-turn-block {
  min-height: 0;
  padding: 16px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.idea-view .card-context-details .card-turn-block { border-top: 1px solid rgba(255,255,255,.045); }
.idea-view .card-context-details .card-section-label {
  margin: 0 0 10px;
  color: rgba(243,239,231,.38);
  font: 700 10px/1 'Space Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.idea-view .card-context-details .origin-quote-mark { top: 46px; }

.idea-view .card-timeline .timeline-item {
  min-height: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 13px 23px;
}
.idea-view .card-timeline .timeline-time {
  flex: 0 0 auto;
  margin: 0;
  color: var(--card-muted);
  font: 400 10px/1.4 'Space Mono', monospace;
}
.idea-view .card-timeline .timeline-sep { color: rgba(243,239,231,.18); font: 400 10px/1 'Space Mono', monospace; }
.idea-view .card-timeline .timeline-text {
  color: var(--card-text-2);
  font: 500 12px/1.4 'Space Grotesk', sans-serif;
}
.idea-view .card-timeline .timeline-item::before { width: 8px; height: 8px; left: 2px; top: 3px; border-width: 1px; }
.idea-view .card-timeline .timeline-item:not(:last-child)::after { left: 6px; top: 12px; }

@media (max-width: 768px) {
  .idea-view .card-toolbar { order: -1; padding: 0 2px; }
  .idea-view .card-context-details { order: initial; }
  .idea-view .card-context-details > summary { min-height: 54px; }
}

/* At larger browser zoom levels, the three-column minimums would overflow the canvas. */
@media (max-width: 980px) and (min-width: 769px) {
  body .idea-view .card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
  }
  body .idea-view .card-toolbar,
  body .idea-view .card-column { width: 100%; }
  body .idea-view .card-column-context { display: block; }
}
