/* Cron Builder — expression row, six builder field blocks with chips, headline + run list. */
.cb-expr { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.02em; }
.cb-preset { flex: 0 0 auto; max-width: 160px; }
.cb-builder { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.cb-field { margin: 0; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cb-field[hidden], .cb-field-body[hidden], .cb-runs[hidden] { display: none; }
.cb-field-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; }
.cb-field-head legend { float: left; padding: 0; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.cb-field-head .select-clean { max-width: 55%; min-width: 0; }
.cb-field-body { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.cb-field-body .input-clean { width: 90px; }
.cb-field-body .select-clean { flex: 1; min-width: 0; max-width: 160px; }
.cb-chips { gap: 0.3rem; }
.cb-chip { min-width: 2.1rem; height: 2rem; padding: 0 0.45rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-secondary); font: inherit; font-size: 0.76rem; cursor: pointer; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
.cb-chip:hover { border-color: var(--brand); }
.cb-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.cb-headline { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.cb-headline strong { font-size: 1.15rem; line-height: 1.35; color: var(--text-primary); overflow-wrap: anywhere; }
.cb-headline code { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-secondary); }
.cb-runs { margin: 0; padding: 0; list-style: none; counter-reset: run; display: flex; flex-direction: column; gap: 0.3rem; }
.cb-runs li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 0.5rem; align-items: baseline; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.cb-runs li::before { counter-increment: run; content: counter(run); color: var(--text-muted); font-size: 0.74rem; }
.cb-runs li:first-child { background: var(--surface); border-radius: var(--radius-sm); font-weight: 600; }
.cb-ref th:first-child { width: 22%; }
.cb-ref td { font-family: var(--font-family); }
.cb-ref td code { font-family: var(--font-mono); font-size: 0.8rem; }
@container (max-width: 420px) { .cb-field-head { flex-direction: column; align-items: stretch; } .cb-field-head .select-clean { max-width: 100%; } .cb-preset { max-width: 120px; } }
