/* Repeatable items in custom sections (TRK-1004): a page's items, and a list's item settings in the code dialog */
.funnel-items { display: grid; gap: 8px; min-width: 0; }
.funnel-items-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.funnel-items-head .sub { font-weight: 400; font-size: 12px; }
.funnel-item-list { display: grid; gap: 6px; }
.funnel-item { border: 1px solid var(--border); border-radius: 8px; background: var(--sunken); min-width: 0; transition: border-color 0.15s, opacity 0.15s; }
.funnel-item.is-dragging { opacity: 0.5; }
.funnel-item.is-drop { border-color: var(--accent); }
.funnel-item-head { display: grid; grid-template-columns: 16px minmax(0, 1fr) repeat(4, 28px); align-items: center; gap: 2px; padding: 4px 4px 4px 6px; }
.funnel-item-grip { color: var(--muted); cursor: grab; font-size: 12px; letter-spacing: -2px; user-select: none; }
.funnel-item-toggle { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 4px; background: none; border: 0; color: inherit; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.funnel-item-toggle .funnel-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funnel-item-caret { width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 0.15s; flex: none; }
.funnel-item-toggle[aria-expanded="true"] .funnel-item-caret { transform: rotate(90deg); }
.funnel-item-act { width: 28px; height: 28px; padding: 0; font-size: 14px; line-height: 1; }
.funnel-item-act:disabled { opacity: 0.35; }
.funnel-item-body { display: grid; gap: 10px; padding: 4px 10px 12px; border-top: 1px solid var(--border); }
.funnel-item-body[hidden] { display: none; }
.funnel-items-note { margin: 0; font-size: 12px; }
.funnel-items-add { justify-self: start; }
.funnel-inline > input.funnel-small-number { width: 80px; } /* the code dialog's 140px inputs are wider */
.funnel-inline > input.funnel-small-text { width: 110px; }
.funnel-item-settings-wrap { flex-basis: 100%; display: grid; gap: 8px; padding-left: 12px; border-left: 2px solid var(--border); }
.funnel-item-settings .funnel-setting-row { background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .funnel-item, .funnel-item-caret { transition: none; } }
