/* logic-gates — scoped panel styles */
.lg-expr { font-family: "Cambria Math", "STIX Two Math", Georgia, serif; font-size: 15px; display: flex; flex-direction: column; gap: 4px; direction: ltr; text-align: left; overflow-wrap: anywhere; }
.lg-expr:empty { display: none; }
.lg-expr b { font-family: var(--font); font-size: 13px; color: var(--ink-2); }
.lg-tt-wrap { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; direction: ltr; }
.lg-tt-wrap:empty { display: none; }
.lg-tt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; text-align: center; }
.lg-tt th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font); font-size: 12px; padding: 5px 6px; color: var(--ink-2); }
.lg-tt th.out { background: #e9f8ee; color: #166534; }
.lg-tt td { padding: 3px 6px; border-top: 1px solid var(--line); }
.lg-tt td.out { font-weight: 700; color: #94a3b8; }
.lg-tt td.out.one { color: #15803d; }
.lg-tt td.in + td.out { border-left: 2px solid var(--line-strong); }
.lg-tt th.in + th.out { border-left: 2px solid var(--line-strong); }
.lg-tt tbody tr { cursor: pointer; }
.lg-tt tbody tr:hover { background: var(--surface-2); }
.lg-tt tbody tr.cur { background: #fef3c7; box-shadow: inset 3px 0 0 #f59e0b; }
.lg-tt tr.good td.mark { color: #15803d; font-weight: 800; }
.lg-tt tr.bad { background: #fee2e2; }
.lg-tt tr.bad td.mark { color: #b91c1c; font-weight: 800; }
