/* Logic Encoder — console unification layer
   Shared alignment, typography and interaction polish for all bridge-plugin
   consoles (ecx, xex, cvew, drb, lch, mil, airq, arx).
   Brand accent: #00d4aa · secondary: #4a8fd8 · up #34d399 · down #f87171. */

/* ---- single left baseline: section title -> panel title -> first column ---- */
.ecx-sec-t,.xex-sec-t,.cvew-sec-t,.drb-sec-t,.lch-sec-t,.mil-sec-t,.airq-sec-t,.arx-sec-t{
  padding-left:15px;
}

/* ---- table edges: first col flush with panel title, last col flush right ---- */
.ecx-table th:first-child,.ecx-table td:first-child,
.xex-table th:first-child,.xex-table td:first-child,
.cvew-table th:first-child,.cvew-table td:first-child,
.drb-table th:first-child,.drb-table td:first-child,
.lch-table th:first-child,.lch-table td:first-child,
.mil-table th:first-child,.mil-table td:first-child,
.airq-table th:first-child,.airq-table td:first-child,
.arx-table th:first-child,.arx-table td:first-child{padding-left:0}
.ecx-table th:last-child,.ecx-table td:last-child,
.xex-table th:last-child,.xex-table td:last-child,
.cvew-table th:last-child,.cvew-table td:last-child,
.drb-table th:last-child,.drb-table td:last-child,
.lch-table th:last-child,.lch-table td:last-child,
.mil-table th:last-child,.mil-table td:last-child,
.airq-table th:last-child,.airq-table td:last-child,
.arx-table th:last-child,.arx-table td:last-child{padding-right:2px}

/* sorted column header: keep the arrow, neutral color (not accent) */
.ecx-table th.is-srt,.xex-table th.is-srt,.cvew-table th.is-srt,.drb-table th.is-srt,
.lch-table th.is-srt,.mil-table th.is-srt,.airq-table th.is-srt,.arx-table th.is-srt{color:#e6edf6}

/* ---- panels never leak their own scrollbars ---- */
.ecx-panel,.xex-panel,.cvew-panel,.drb-panel,.lch-panel,.mil-panel,.airq-panel,.arx-panel{overflow:hidden}

/* ---- slim, quiet scrollbars where scroll regions exist on purpose ---- */
.ecx *,.xex *,.cvew *,.drb *,.lch *,.mil *,.airq *,.arx *{scrollbar-width:thin;scrollbar-color:#28344a #10161f}
.ecx *::-webkit-scrollbar,.xex *::-webkit-scrollbar,.cvew *::-webkit-scrollbar,.drb *::-webkit-scrollbar,
.lch *::-webkit-scrollbar,.mil *::-webkit-scrollbar,.airq *::-webkit-scrollbar,.arx *::-webkit-scrollbar{width:7px;height:7px}
.ecx *::-webkit-scrollbar-thumb,.xex *::-webkit-scrollbar-thumb,.cvew *::-webkit-scrollbar-thumb,.drb *::-webkit-scrollbar-thumb,
.lch *::-webkit-scrollbar-thumb,.mil *::-webkit-scrollbar-thumb,.airq *::-webkit-scrollbar-thumb,.arx *::-webkit-scrollbar-thumb{background:#28344a;border-radius:4px}
.ecx *::-webkit-scrollbar-track,.xex *::-webkit-scrollbar-track,.cvew *::-webkit-scrollbar-track,.drb *::-webkit-scrollbar-track,
.lch *::-webkit-scrollbar-track,.mil *::-webkit-scrollbar-track,.airq *::-webkit-scrollbar-track,.arx *::-webkit-scrollbar-track{background:#10161f}

/* ---- unified semantic colors (saturated, readable on dark) ---- */
.ecx-up,.xex-up,.cvew-up,.drb-up,.lch-up,.mil-up,.airq-up,.arx-up{color:#34d399!important}
.ecx-dn,.xex-dn,.cvew-dn,.drb-dn,.lch-dn,.mil-dn,.airq-dn,.arx-dn{color:#f87171!important}

/* ---- consistent focus ring for interactive controls ---- */
.ecx button:focus-visible,.xex button:focus-visible,.cvew button:focus-visible,.drb button:focus-visible,
.lch button:focus-visible,.mil button:focus-visible,.airq button:focus-visible,.arx button:focus-visible{
  outline:2px solid var(--ac);outline-offset:1px}
