.channel-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.channel { display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.channel b { font-weight: 600; font-size: 11.5px; }
.channel.on { background: var(--success-50); border-color: transparent; color: var(--success); }
.channel.off b { color: var(--muted); }
.channel-note { font-size: 12.5px; color: var(--muted); }
.channel-note code { font-size: 11.5px; }

.auto-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.auto-kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.auto-kpi strong { display: block; font-family: var(--font-heading); font-size: 22px; line-height: 1.1; }
.auto-kpi span:not(.icon-chip) { display: block; font-size: 12.5px; color: var(--muted); }

.auto-card { padding: 20px; margin-bottom: 20px; }
.auto-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.auto-card-head h5 { margin: 0 0 3px; font-size: 16px; }
.auto-card-head p { margin: 0; color: var(--muted); font-size: 13px; }

.route-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--primary-50); color: var(--primary-700); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.route-pill.sm { padding: 2px 8px; font-size: 11.5px; }
.app-table tr.is-off td, .trip-row.is-off { opacity: .6; }
.time-select { min-width: 120px; max-width: 150px; }
.form-switch { display: inline-flex; align-items: center; gap: 8px; }

.rotation-table th, .rotation-table td { min-width: 150px; }
.rotation-table th:first-child, .rotation-table td:first-child { min-width: 96px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.rotation-table .is-today { background: var(--primary-50); }
.today-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.crew-input { font-size: 12.5px; }
.crew-input.empty { background: var(--surface-2); }

.trip-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trip-filters .form-select { width: auto; min-width: 150px; }
.trip-bulk { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.trip-list { display: flex; flex-direction: column; gap: 8px; }
.trip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .2s var(--ease); }
.trip-row:hover { border-color: var(--primary-100); }
.trip-dir { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.trip-time { font-size: 14px; }
.trip-time i { color: var(--muted); }
.trip-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.person-inline { font-size: 13.5px; font-weight: 600; }
.person-inline small { color: var(--muted); font-weight: 400; }

.auto-log { list-style: none; margin: 0; padding: 0; }
.auto-log li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.auto-log li:last-child { border-bottom: 0; }
.auto-log .log-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-log .log-main small { color: var(--muted); }
.auto-log .log-side { color: var(--muted); font-size: 12px; white-space: nowrap; }
.auto-log .log-empty { justify-content: center; color: var(--muted); padding: 24px 0; }

@media (max-width: 576px) {
  .trip-bulk { margin-left: 0; width: 100%; }
  .trip-filters .form-select { flex: 1 1 140px; min-width: 0; }
  .trip-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}
