/* Live cells: a dropdown per row, "Add a channel", one histogram card per row, and the counts table. */
.lc-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 10px; }
.lc-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lc-row-head .linkbtn { font-size: 11.5px; font-weight: 400; }
.lc-add { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin: 0 0 12px; }
.lc-add .note { margin: 0; }
.lc-leave { margin: 0 0 14px; }
.lc-wait .linkbtn, .lc-problem .btn { margin-left: 8px; }
.lc-problem { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-tools { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 4px 0 10px; }
.lc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--fg-2); }
.lc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.lc-chan { padding: 12px; min-width: 0; }
.lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lc-name { font-weight: 600; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.lc-role { display: block; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
.lc-chart { position: relative; height: 230px; background: var(--plot-bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lc-chart > div { position: absolute; inset: 0; }
/* The plot area takes a click to place the line (Plotly's own cursor rule has three classes). */
.lc-chart .js-plotly-plot .plotly .nsewdrag { cursor: crosshair; }
.lc-ends { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 6px; font: 11.5px var(--mono); color: var(--fg-3); }
.lc-line { display: flex; align-items: flex-end; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; }
.lc-line .field { width: 170px; }
.lc-line .linkbtn { height: 30px; font-size: 12px; }
.lc-tip { margin: 0 0 6px; flex: 1 1 200px; }
.lc-counts { margin-top: 6px; }
.lc-counts.pending .tbl-wrap { opacity: .55; }
.lc-echo { font: 11.5px var(--mono); color: var(--fg); margin: 0 0 8px; overflow-wrap: anywhere; }
.lc-left { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--warn); border-radius: 4px; font: 600 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--warn); }
.tbl tr.lc-total td { font-weight: 600; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .lc-chart { height: 210px; }
}
