/* v4 Idea Lab */
.il-head p { max-width: 760px; }
.il-tabs { margin-top: 10px; }
.il-fields > div { min-width: 180px; }
.il-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.il-cards > .card { margin-bottom: 0; }
.il-idea { display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--accent); }
.il-idea.used { border-top-color: var(--green); opacity: .85; }
.il-idea h3 { margin: 10px 0 4px; font-size: 19px; line-height: 1.3; }
.il-idea .il-actions { margin-top: auto; padding-top: 12px; gap: 6px; }
.il-hook { font-style: italic; color: #4a5565; border-left: 3px solid #f3dfae; padding-left: 10px; }
.il-logline { font-size: 18px; line-height: 1.5; margin: 10px 0; }
.il-notes { background: #fffaf0; border-radius: 8px; padding: 6px 10px; }
.il-tag { background: #f3f0fa; color: #5b4a8a; font-weight: 600; }
.il-engine { margin: 0 0 10px; }
.il-empty { text-align: center; }

.il-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.il-card-head .il-stars { margin-left: auto; }
.il-stars { display: inline-flex; gap: 0; }
.il-star { background: transparent; color: #d0d5dd; padding: 2px 3px; font-size: 20px; line-height: 1; }
.il-star:hover, .il-star:focus-visible { background: transparent; color: #f2c14e; }
.il-star.on { color: #e8a500; }
.il-star:disabled { cursor: default; opacity: 1; }

.il-match { padding: 12px 0; border-top: 1px solid var(--line); }
.il-match:first-of-type { border-top: none; }
.il-match.best { background: #f3faf5; border-radius: 12px; padding: 12px 14px; border-top: none; }
.il-score { font-weight: 800; font-size: 20px; color: var(--green-dark); min-width: 42px; text-align: right; }
.il-reasons { margin: 4px 0 6px; padding-left: 20px; color: #3d4756; }
.il-lowsignal { background: #fffaf0; border: 1px solid #f3dfae; border-radius: 10px; padding: 8px 12px; }
.il-more summary { cursor: pointer; font-weight: 600; color: var(--green); margin: 12px 0 4px; }

.il-mode { margin: 6px 0 4px; }
.il-ll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.il-twists { padding-left: 22px; margin: 6px 0; }
.il-twists li { margin: 6px 0; }
.il-filters { margin-bottom: 12px; }

/* "Need an idea?" link on the Library form */
.il-lib-link { font-weight: 600; font-size: 15px; margin-left: 8px; }

@media (max-width: 860px) {
  .il-cards { grid-template-columns: 1fr; }
  .il-fields > div { min-width: 100%; }
  .il-filters select { max-width: 100% !important; }
  .il-quick .row select { max-width: 100% !important; }
}
