/* Lighthouse v2 · Calls tab: the call log (assets/js/lighthouse-calls.js, contract §12 / §14.3).
   Every rule is scoped under .lh-calls-root (the module's own wrapper inside the tab); no global rules.
   Colours and fonts come from the page's --lh-* and --ch-* tokens (lighthouse.css), with the same values as fallbacks.
   Evidence badges: Confirmed = solid ink, Inferred = outlined, Unknown = hatched grey (§14.3). Nothing here is red.
   Light theme only, like the page. */
.lh-calls-root {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 24px;
  background: var(--lh-card, #ffffff); border: 1px solid var(--lh-card-border, #d5dbe6); border-radius: 12px; box-shadow: var(--lh-e0, 0 1px 2px rgba(15, 27, 61, .06));
  color: var(--lh-ink, #1e2a4a);
  font: 400 14px/20px var(--lh-f-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif);
}
.lh-calls-root, .lh-calls-root *, .lh-calls-root *::before, .lh-calls-root *::after { box-sizing: border-box; }
.lh-calls-root [hidden] { display: none !important; }
.lh-calls-root .lc-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lh-calls-root .lc-h3 { margin: 0; font: 600 20px/28px var(--lh-f-sans, sans-serif); color: var(--lh-ink, #1e2a4a); }
.lh-calls-root .lc-rules-box .lc-h3 { font-size: 16px; line-height: 24px; }
.lh-calls-root .lc-sub { margin: 4px 0 0; color: var(--lh-ink-muted, #4f5b76); font-size: 14px; line-height: 20px; max-width: 90ch; }
.lh-calls-root .lc-caps { font: 600 12px/16px var(--lh-f-sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; color: var(--lh-ink-muted, #4f5b76); white-space: nowrap; }
.lh-calls-root .lc-faint { color: var(--lh-ink-faint, #5f6b85); }
.lh-calls-root .lc-mono { font-family: var(--lh-f-mono, ui-monospace, "SF Mono", Consolas, monospace); font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.lh-calls-root .lc-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; min-width: 0; }
.lh-calls-root .lc-field { display: inline-flex; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.lh-calls-root .lc-select { max-width: 240px; min-width: 0; }
.lh-calls-root .lc-q {
  width: 120px; height: 32px; padding: 0 10px; border: 1px solid var(--lh-control-border, #6b7590); border-radius: 8px; box-shadow: none;
  background: var(--lh-card, #ffffff); color: var(--lh-ink, #1e2a4a); font: inherit; font-size: 14px;
}
.lh-calls-root .lc-q:focus-visible, .lh-calls-root button:focus-visible, .lh-calls-root a:focus-visible, .lh-calls-root select:focus-visible {
  outline: 2px solid var(--lh-focus, #2f6fdb); outline-offset: 2px;
}
.lh-calls-root .lc-q:hover { border-color: var(--lh-ink, #1e2a4a); }
.lh-calls-root .lc-summary { margin: 0; font-size: 12px; line-height: 16px; color: var(--lh-ink-muted, #4f5b76); font-variant-numeric: tabular-nums; }
.lh-calls-root .lc-note { padding: 0; border-radius: 0; background: none; font-size: 14px; line-height: 20px; color: var(--lh-ink-muted, #4f5b76); }
.lh-calls-root .lc-note-warn { padding-left: 12px; border-left: 2px dashed var(--lh-ink-faint, #5f6b85); color: var(--lh-ink, #1e2a4a); }   /* 1.21.0 C-30: amber is for feed status only */
.lh-calls-root .lc-body[aria-busy="true"] { opacity: .6; transition: opacity 150ms; }
.lh-calls-root .lc-more { margin-top: 12px; }

/* ---------- call log table ---------- */
.lh-calls-root .lc-scroll { overflow-x: auto; min-width: 0; position: relative; -webkit-overflow-scrolling: touch; }
.lh-calls-root .lc-table, .lh-calls-root .lc-legs { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.lh-calls-root .lc-table th, .lh-calls-root .lc-legs th {
  position: sticky; top: 0; z-index: 1; background: var(--lh-card, #ffffff);
  font: 600 11px/16px var(--lh-f-sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; color: var(--lh-ink-faint, #5f6b85);
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--lh-border, #d9dde6); white-space: nowrap;
}
.lh-calls-root .lc-table td, .lh-calls-root .lc-legs td { padding: 7px 8px; border-bottom: 1px solid var(--lh-border, #d9dde6); text-align: left; vertical-align: top; }
.lh-calls-root .lc-table td { white-space: nowrap; }
.lh-calls-root .lc-table .lc-n, .lh-calls-root .lc-table th.lc-n { text-align: right; }
.lh-calls-root .lc-table td.lc-path { white-space: normal; min-width: 180px; max-width: 280px; }
.lh-calls-root .lc-table td.lc-result { white-space: normal; min-width: 260px; max-width: 460px; }
.lh-calls-root .lc-table td.lc-src { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.lh-calls-root .lc-table tr.lc-open > td { background: var(--lh-surface-2, #f4f6fa); border-bottom-color: transparent; }
.lh-calls-root .lc-table tr.lc-empty td { color: var(--lh-ink-faint, #5f6b85); text-align: center; padding: 16px 8px; }
.lh-calls-root .lc-rl { display: inline-flex; flex-direction: column; line-height: 16px; }
.lh-calls-root .lc-sort, .lh-calls-root .lc-exp, .lh-calls-root .lc-link {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
}
.lh-calls-root .lc-sort { font: 600 11px/16px var(--lh-f-sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; color: var(--lh-ink, #1e2a4a); }
.lh-calls-root .lc-exp { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--lh-control-border, #6b7590); background: var(--lh-card, #ffffff); line-height: 1; }
.lh-calls-root .lc-exp:hover { background: var(--lh-hover-bg, #eef1f6); border-color: var(--lh-ink, #1e2a4a); }
.lh-calls-root .lc-link { color: var(--lh-ink, #1e2a4a); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.lh-calls-root .lc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; flex: none; }
.lh-calls-root .lc-hatch { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .7) 0 2px, transparent 2px 4px) !important; box-shadow: inset 0 0 0 1px var(--lh-border, #d9dde6); }
.lh-calls-root .lc-lb { margin-left: 6px; }

/* ---------- evidence badges (also used by the expanded row) ---------- */
.lh-calls-root .lc-ev {
  display: inline-block; padding: 0 6px; border-radius: 4px; border: 1px solid var(--lh-ink, #1e2a4a);
  font: 600 11px/16px var(--lh-f-sans, sans-serif); letter-spacing: .02em; white-space: nowrap; vertical-align: 1px;
}
.lh-calls-root .lc-ev-c { background: var(--lh-ink, #1e2a4a); color: var(--lh-card, #ffffff); }
.lh-calls-root .lc-ev-i { background: var(--lh-card, #ffffff); color: var(--lh-ink, #1e2a4a); }
.lh-calls-root .lc-ev-u {
  border-color: var(--lh-ink-faint, #808aa1); color: var(--lh-ink-muted, #4f5b76);
  background: repeating-linear-gradient(45deg, #e3e6ec 0 3px, #f6f7fa 3px 6px);
}

/* ---------- expanded row ---------- */
.lh-calls-root .lc-detail-row > td { background: var(--lh-surface-2, #f4f6fa); padding: 4px 12px 14px 38px; white-space: normal; }
.lh-calls-root .lc-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lh-calls-root .lc-detail-result { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lh-calls-root .lc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin: 0; }
.lh-calls-root .lc-facts > div { min-width: 0; }
.lh-calls-root .lc-facts dt { font: 600 11px/16px var(--lh-f-sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; color: var(--lh-ink-faint, #5f6b85); }
.lh-calls-root .lc-facts dd { margin: 0; overflow-wrap: anywhere; }
.lh-calls-root .lc-legs { background: var(--lh-card, #ffffff); }
.lh-calls-root .lc-legs th { position: static; }
.lh-calls-root .lc-legs td { white-space: nowrap; }
.lh-calls-root .lc-legs td.lc-id { font-size: 12px; color: var(--lh-ink-faint, #5f6b85); }
.lh-calls-root .lc-detail-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-calls-root .lc-detail-links a { text-decoration: none; }

/* ---------- How we read a call ---------- */
.lh-calls-root .lc-rules-box { margin-top: 12px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--lh-border, #e3e7ef); border-radius: 0; background: none; }
.lh-calls-root .lc-rules { margin: 8px 0 0; padding-left: 20px; max-width: 110ch; font-size: 13px; line-height: 19px; color: var(--lh-ink-muted, #4f5b76); }
.lh-calls-root .lc-rules li { margin: 0 0 6px; }
.lh-calls-root .lc-rules strong { color: var(--lh-ink, #1e2a4a); font-weight: 600; }

@media (max-width: 700px) {
  #wlf-lighthouse .lh-calls-root { padding: 16px; }
  #wlf-lighthouse .lh-calls-root .lc-select { max-width: 100%; }
  #wlf-lighthouse .lh-calls-root .lc-detail-row > td { padding-left: 12px; }
}

/* ---------- Calls workspace (approved 2026-10-01; 1.21.0 overhaul): views, SHOWING bar, KPIs, bars, heatmaps, hourly columns ----------
   1.21.0: no amber or red outside feed status (C-30); every mobile rule is scoped under #wlf-lighthouse .lh-calls-root (MB-02). */
#wlf-lighthouse .lcw { display: flex; flex-direction: column; gap: 16px; }
#wlf-lighthouse .lcw-nav { display: flex; gap: 4px; padding: 5px; background: #dfe5f0; border-radius: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lh-sticky-h, 0px)); z-index: 4; }
#wlf-lighthouse .lcw-tab { flex: 1 0 auto; height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: #4f5b76; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
#wlf-lighthouse .lcw-tab:hover { background: #eef2f8; color: #1e2a4a; }
#wlf-lighthouse .lcw-tab.lcw-on { background: #0f1b3d; color: #fff; box-shadow: 0 3px 8px rgba(15, 27, 61, .22); }
#wlf-lighthouse .lcw-tab:focus-visible { outline: 2px solid #2f6fdb; outline-offset: -2px; }
/* the in-module SHOWING bar (1.20.1 shell fallback) and the toggles in the shell's sticky slot */
#wlf-lighthouse .lcw-bar-top { padding: 10px 14px; background: #fff; border: 1px solid #d5dbe6; border-radius: 12px; }
#wlf-lighthouse .lh-calls-root .lh-showing { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
#wlf-lighthouse .lh-calls-root .lh-showing .lh-fb-right { margin-left: auto; display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }
#wlf-lighthouse .lh-calls-root .lh-restored { flex-basis: 100%; margin: 0; font-size: 12px; color: #4f5b76; }
#wlf-lighthouse .lh-calls-root .lcw-hint { font-size: 12px; }
#wlf-lighthouse .lcw-toggle, #lh-fslot-calls label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1e2a4a; cursor: pointer; }
#wlf-lighthouse .lcw-toggle input, #lh-fslot-calls label input { width: 16px; height: 16px; margin: 0; accent-color: #0f1b3d; }
#wlf-lighthouse .lcw-view { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#wlf-lighthouse .lcw-view[hidden] { display: none; }
#wlf-lighthouse .lh-calls-root[aria-busy="true"] .lcw-view { opacity: .6; transition: opacity 150ms; }   /* a new range is loading */
#wlf-lighthouse .lcw-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
#wlf-lighthouse .lcw-head-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4f5b76; }
/* KPIs: a 6-up row on wide screens (C-34), 3-up from 640 px, 2-up below */
#wlf-lighthouse .lcw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
#wlf-lighthouse .lcw-kpis-6, #wlf-lighthouse .lcw-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { #wlf-lighthouse .lcw-kpis-6, #wlf-lighthouse .lcw-kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { #wlf-lighthouse .lcw-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } #wlf-lighthouse .lcw-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
#wlf-lighthouse .lcw-kpis-sm { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 260px)); margin-bottom: 12px; }
#wlf-lighthouse .lcw-kpi { min-width: 0; background: #fff; border: 1px solid #d5dbe6; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
#wlf-lighthouse .lcw-kpi-l { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4f5b76; }
#wlf-lighthouse .lcw-kpi-ev { text-transform: none; letter-spacing: .02em; }
#wlf-lighthouse .lcw-kpi-v { font-size: 28px; line-height: 34px; font-weight: 800; color: #1e2a4a; margin-top: 4px; font-variant-numeric: tabular-nums; }
#wlf-lighthouse .lcw-kpi-s { font-size: 12.5px; color: #4f5b76; overflow-wrap: anywhere; }
#wlf-lighthouse .lcw-kpi .lh-delta { margin-top: 4px; font-size: 12px; line-height: 16px; color: #5f6b85; font-variant-numeric: tabular-nums; }
#wlf-lighthouse .lcw-kpi-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; }
#wlf-lighthouse .lcw-kpi-go:hover { border-color: #808aa1; }
#wlf-lighthouse .lcw-kpi-go.lcw-on { border-color: #0f1b3d; box-shadow: inset 0 0 0 1px #0f1b3d; background: #f3f6fb; }
#wlf-lighthouse .lcw-kpi-btn:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 4px; }
#wlf-lighthouse .lcw-nocmp { margin: 0; font-size: 12.5px; color: #5f6b85; }
#wlf-lighthouse .lcw-card { min-width: 0; background: #fff; border: 1px solid #d5dbe6; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15, 27, 61, .05); }
#wlf-lighthouse .lcw-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
#wlf-lighthouse .lcw-h { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: #1e2a4a; }
#wlf-lighthouse .lcw-sub { margin: 4px 0 14px; font-size: 13px; line-height: 18px; color: #4f5b76; max-width: 90ch; }
#wlf-lighthouse .lcw-exp { flex: none; }
#wlf-lighthouse .lcw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
/* the outcome stack: the picked class is highlighted, the rest dimmed (C-34) */
#wlf-lighthouse .lcw-stack { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: #eef1f6; }
#wlf-lighthouse .lcw-seg { border: 0; padding: 0; cursor: pointer; min-width: 3px; }
#wlf-lighthouse .lcw-seg:hover { filter: brightness(1.08); }
#wlf-lighthouse .lcw-stack.lcw-has-on .lcw-seg:not(.lcw-on) { opacity: .35; }
#wlf-lighthouse .lcw-seg.lcw-on { box-shadow: inset 0 0 0 2px #0f1b3d; }
#wlf-lighthouse .lcw-seg:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 2px; }
#wlf-lighthouse .lcw-hatch { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .65) 0 2px, transparent 2px 5px) !important; }
#wlf-lighthouse .lcw-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
#wlf-lighthouse .lcw-leg { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; background: none; padding: 3px 8px; border-radius: 999px; font: inherit; font-size: 13px; color: #1e2a4a; cursor: pointer; }
#wlf-lighthouse span.lcw-leg { cursor: default; }
#wlf-lighthouse button.lcw-leg:hover { border-color: #d5dbe6; }
#wlf-lighthouse .lcw-leg.lcw-on { border-color: #0f1b3d; background: #e6ebf5; font-weight: 700; }
#wlf-lighthouse .lcw-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
#wlf-lighthouse .lcw-bars { display: flex; flex-direction: column; gap: 6px; }
#wlf-lighthouse .lcw-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: inherit; }
#wlf-lighthouse button.lcw-bar { cursor: pointer; }
#wlf-lighthouse button.lcw-bar:hover { background: #f3f6fb; border-color: #e3e7ef; }
#wlf-lighthouse .lcw-bar.lcw-on { background: #e6ebf5; border-color: #0f1b3d; }
#wlf-lighthouse .lcw-bar:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 2px; }
#wlf-lighthouse .lcw-bar.lcw-zero { opacity: .5; }
#wlf-lighthouse .lcw-bar-l { font-weight: 700; font-size: 13.5px; color: #1e2a4a; min-width: 0; overflow-wrap: anywhere; }
#wlf-lighthouse .lcw-bar-ev { margin-left: 6px; }
#wlf-lighthouse .lcw-bar-n { white-space: nowrap; }
#wlf-lighthouse .lcw-bar-n b { font-size: 14px; color: #1e2a4a; }
#wlf-lighthouse .lcw-bar-n small { color: #4f5b76; font-weight: 600; }
#wlf-lighthouse .lcw-bar-t { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: #eef1f6; overflow: hidden; }
#wlf-lighthouse .lcw-bar-t span { display: block; height: 100%; border-radius: 5px; }
/* heatmaps (W-22, W-11 gaps, K-10 drill) */
#wlf-lighthouse .lcw-heat-scroll { overflow-x: auto; min-width: 0; }
#wlf-lighthouse .lcw-heat { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; min-width: 620px; margin-top: 8px; }
#wlf-lighthouse .lcw-heat-c { display: flex; align-items: center; justify-content: center; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 3px; font: inherit; font-size: 10.5px; font-weight: 700; color: #1e2a4a; font-variant-numeric: tabular-nums; }
#wlf-lighthouse button.lcw-heat-c { cursor: pointer; }
#wlf-lighthouse button.lcw-heat-c:hover { box-shadow: inset 0 0 0 1.5px #0f1b3d; }
#wlf-lighthouse button.lcw-heat-c:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 1px; position: relative; z-index: 1; }
#wlf-lighthouse .lcw-heat-c.lcw-on { box-shadow: inset 0 0 0 2px #2f6fdb; }
#wlf-lighthouse .lcw-heat-c.lcw-few { background: #eef1f6; color: #808aa1; font-weight: 600; }
#wlf-lighthouse .lcw-heat-c.lcw-gap { outline: 1.5px dashed #4f5b76; outline-offset: -2px; }
#wlf-lighthouse .lcw-heat-h { height: 16px; background: none !important; color: #4f5b76; font-weight: 600; }
#wlf-lighthouse .lcw-heat-d { background: none !important; color: #4f5b76; font-weight: 700; justify-content: flex-start; }
#wlf-lighthouse .lcw-heat-leg { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: #4f5b76; max-width: 100ch; }
#wlf-lighthouse .lcw-faint { color: #5f6b85; }
/* the hourly profile (C-27 axes, K-10 hour drill) */
#wlf-lighthouse .lcw-yax { font-size: 11px; color: #4f5b76; margin-bottom: 4px; }
#wlf-lighthouse .lcw-cols { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; height: 200px; align-items: end; margin-top: 4px; }
#wlf-lighthouse .lcw-cols-ax { border-left: 1px solid #d5dbe6; border-bottom: 1px solid #d5dbe6; padding-left: 2px; }
#wlf-lighthouse .lcw-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; margin: 0; padding: 0; border: 0; background: none; font: inherit; min-width: 0; }
#wlf-lighthouse button.lcw-col { cursor: pointer; border-radius: 4px; }
#wlf-lighthouse button.lcw-col:hover .lcw-col-s { filter: brightness(1.1); }
#wlf-lighthouse button.lcw-col:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 1px; }
#wlf-lighthouse .lcw-col.lcw-on { box-shadow: inset 0 0 0 2px #2f6fdb; }
#wlf-lighthouse .lcw-col-s { display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 1px; }
#wlf-lighthouse .lcw-col-s span { display: block; width: 100%; }
#wlf-lighthouse .lcw-col-l { font-size: 10.5px; color: #4f5b76; text-align: center; height: 14px; white-space: nowrap; overflow: visible; }
#wlf-lighthouse .lcw-cols-ax .lcw-col-l { text-align: left; }
#wlf-lighthouse .lcw-segc { margin-bottom: 8px; flex-wrap: wrap; }
/* tables */
#wlf-lighthouse .lcw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#wlf-lighthouse .lcw-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #4f5b76; padding: 8px; border-bottom: 2px solid #d5dbe6; white-space: nowrap; }
#wlf-lighthouse .lcw-table td { padding: 9px 8px; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
#wlf-lighthouse .lcw-table .lc-n { text-align: right; font-variant-numeric: tabular-nums; }
#wlf-lighthouse .lcw-table td.lcw-few { color: #808aa1; background: #f6f7fa; }
#wlf-lighthouse .lcw-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
#wlf-lighthouse .lcw-sort:hover { color: #1e2a4a; text-decoration: underline; }
#wlf-lighthouse .lcw-sort:focus-visible { outline: 2px solid #2f6fdb; outline-offset: 2px; }
#wlf-lighthouse .lcw-click { cursor: pointer; }
#wlf-lighthouse .lcw-click:hover td { background: #f3f6fb; }
#wlf-lighthouse .lcw-click:focus-visible { outline: 2px solid #2f6fdb; outline-offset: -2px; }
#wlf-lighthouse .lcw-click.lcw-on td { background: #e6ebf5; font-weight: 700; }
#wlf-lighthouse .lcw-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#wlf-lighthouse .lcw-note { margin: 8px 0 0; font-size: 12.5px; color: #4f5b76; }
/* the call log (C-22, FEATURES.tables): sticky first two columns, column chooser, page size; K-04 callback column */
#wlf-lighthouse .lh-calls-root .lc-table.lc-sticky th.lc-c-exp, #wlf-lighthouse .lh-calls-root .lc-table.lc-sticky td.lc-c-exp { position: sticky; left: 0; z-index: 2; width: 40px; min-width: 40px; background: var(--lh-card, #fff); }
#wlf-lighthouse .lh-calls-root .lc-table.lc-sticky th.lc-c-time, #wlf-lighthouse .lh-calls-root .lc-table.lc-sticky td.lc-c-time { position: sticky; left: 40px; z-index: 2; background: var(--lh-card, #fff); box-shadow: 1px 0 0 var(--lh-border, #d9dde6); }
#wlf-lighthouse .lh-calls-root .lc-table.lc-sticky tr.lc-open > td.lc-c-exp, #wlf-lighthouse .lh-calls-root .lc-table.lc-sticky tr.lc-open > td.lc-c-time { background: var(--lh-surface-2, #f4f6fa); }
/* 1.21.0 C-22(5): a call log that fits its card (JS adds .lc-fit) drops the sideways box, so the header row sticks under the
   shell's sticky bar and the Calls view tabs while the page scrolls. A wider log keeps the 1.20.1 scroll box. */
#wlf-lighthouse .lh-calls-root .lc-scroll.lc-fit { overflow: visible; }
#wlf-lighthouse .lh-calls-root .lc-scroll.lc-fit > .lc-table.lc-sticky th { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lh-sticky-h, 0px) + var(--lcw-nav-h, 0px)); z-index: 3; }
#wlf-lighthouse .lh-calls-root .lc-table td.lc-cb { white-space: nowrap; }
#wlf-lighthouse .lh-calls-root .lc-cols { position: relative; }
#wlf-lighthouse .lh-calls-root .lc-cols > summary { list-style: none; cursor: pointer; }
#wlf-lighthouse .lh-calls-root .lc-cols > summary::-webkit-details-marker { display: none; }
#wlf-lighthouse .lh-calls-root .lc-cols-list { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; display: grid; gap: 6px; min-width: 200px; padding: 10px 12px; background: #fff; border: 1px solid #d5dbe6; border-radius: 10px; box-shadow: 0 6px 18px rgba(15, 27, 61, .14); }
#wlf-lighthouse .lh-calls-root .lc-col-opt { display: flex; gap: 8px; align-items: center; font-size: 13px; white-space: nowrap; }
#wlf-lighthouse .lh-calls-root .lc-cap { margin-top: 4px; }
#wlf-lighthouse .lh-calls-legacy { display: flex; flex-direction: column; gap: 16px; }

/* phones (MB-02): one scrollable sub-tab row, single-column cards, no sideways page scroll */
@media (max-width: 700px) {
  #wlf-lighthouse .lh-calls-root .lcw-grid { grid-template-columns: minmax(0, 1fr); }
  #wlf-lighthouse .lh-calls-root .lcw-tab { flex: 0 0 auto; height: 38px; padding: 0 12px; font-size: 13px; }
  #wlf-lighthouse .lh-calls-root .lcw-card { padding: 14px; }
  #wlf-lighthouse .lh-calls-root .lcw-kpi { padding: 12px; }
  #wlf-lighthouse .lh-calls-root .lcw-kpi-v { font-size: 24px; line-height: 30px; }
  #wlf-lighthouse .lh-calls-root .lcw-cols { gap: 2px; height: 160px; }
  #wlf-lighthouse .lh-calls-root .lc-controls { gap: 8px; }
  #wlf-lighthouse .lh-calls-root .lc-field { flex-wrap: wrap; }
  #wlf-lighthouse .lh-calls-root .lc-table td.lc-result { min-width: 200px; }
}

/* print (K-13, FEATURES.print: the shell sets data-lh-print on the root) */
@media print {
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root { border: 0; box-shadow: none; padding: 0; }
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-nav,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-exp,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lh-btn,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lc-controls,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root details.lh-cols,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lc-more,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lc-c-exp,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-segc,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lh-fb-right,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lh-fb-clear,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lh-x { display: none !important; }
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-card,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-kpi { break-inside: avoid; box-shadow: none; }
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lc-table tbody tr:nth-child(n+26),
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-table tbody tr:nth-child(n+26) { display: none; }
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lc-scroll,
  :root[data-lh-print] #wlf-lighthouse .lh-calls-root .lcw-heat-scroll { overflow: visible; }
}

