/* TX160 air compressors on Tank Monitor (report-portal/.internal/specs/TX160_COMPRESSOR_STRIP_HANDOFF.md section 6; D-175).
   Portal tokens only, so light and dark work on the desktop page (styles.css) and the phone page (m/m.css). Grey when normal;
   color only when something is wrong. Every rule is scoped to the strip. */
.cmp { margin:0 0 10px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:var(--ink); font-family:var(--font-sans); font-size:12px; line-height:1.4; }
.cmp.is-act { border-color:var(--neg); box-shadow:0 0 0 1px var(--neg); }
.cmp-unavailable { margin:0; padding:8px 14px; font-weight:600; color:var(--ink-2); }
.cmp-cells { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); }
/* 1 px dividers between cells whether they sit side by side or stacked. */
.cmp-cell { min-width:0; display:flex; flex-direction:column; gap:5px; padding:9px 14px; background:var(--surface); box-shadow:0 0 0 1px var(--line); }
.cmp-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.cmp-eyebrow { font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.cmp-slot { display:inline-flex; align-items:center; gap:5px; color:var(--ink-3); white-space:nowrap; }
.cmp-slot.is-p1,.cmp-slot.is-plan { color:var(--ink); font-weight:700; }
/* White on --neg in both themes (4.6:1), as .ceo-banner does; --surface turns dark in the dark theme. */
.cmp-p1 { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; background:var(--neg); color:#fff; font-size:11px; font-weight:700; line-height:1; }
.cmp-plan-mark { flex:none; fill:var(--warn); }
.cmp-reading { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; }
.cmp-big { font:600 26px/1.1 var(--font-mono); white-space:nowrap; }
.cmp-big small { font-size:14px; font-weight:400; }
.cmp-sub { color:var(--ink-3); }
.cmp-air.is-none .cmp-big { font-size:20px; color:var(--ink-3); }
.cmp-bar { display:block; overflow:visible; }
.cmp-track { fill:var(--line); }
.cmp-band { fill:var(--ink-4); fill-opacity:.45; }
.cmp-fill { fill:var(--ink-3); }
.cmp-fill.is-plan { fill:var(--warn); }
.cmp-fill.is-muted { fill:var(--ink-4); }
.cmp-tick { stroke-width:2; }
.cmp-tick.is-low { stroke:var(--neg); }
.cmp-tick.is-warn { stroke:var(--warn); }
.cmp-tick.is-rated { stroke:var(--ink-3); stroke-width:1.5; stroke-dasharray:2 2; }
.cmp-pointer { fill:var(--ink); }
.cmp-pointer.is-alarm { fill:var(--neg); }
.cmp-pointer.is-muted { fill:var(--ink-3); }
.cmp-scale { font-family:var(--font-mono); font-size:9px; fill:var(--ink-3); }
.cmp-scale.is-low { fill:var(--ink-2); }
.cmp-unit { gap:0; padding:0; }
.cmp-head { display:flex; align-items:center; gap:10px; padding:7px 14px 4px; }
.cmp-who { flex:1; min-width:0; }
.cmp-name { font-size:14px; font-weight:600; }
.cmp-line { color:var(--ink-2); }
.cmp-sym { flex:none; display:block; }
.cmp-grid { display:grid; grid-template-columns:52px minmax(48px,1fr) auto; gap:4px 8px; align-items:center; padding:0 14px 9px; }
.cmp-label { color:var(--ink-3); }
.cmp-val { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; font-family:var(--font-mono); font-weight:600; text-align:right; white-space:nowrap; }
.cmp-msg { grid-column:span 2; font-weight:600; overflow-wrap:anywhere; }
.cmp-grid.is-muted .cmp-val { color:var(--ink-3); }
/* Act now: the compressor's header, pulsing with the tank low-low keyframes of each page. Pause flashing and reduced motion stop it. */
.cmp-act { background:var(--neg-soft); border-bottom:3px solid var(--neg); padding-bottom:5px; margin-bottom:6px; }
.tank-monitor .cmp-act { animation:tank-lowlow-pulse 1.8s ease-in-out infinite; }
.mt-screen .cmp-act { animation:mt-lowlow 1.2s ease-in-out infinite; }
.tank-monitor[data-paused="true"] .cmp-act,.mt-screen[data-paused="true"] .cmp-act { animation:none; }
@media (prefers-reduced-motion:reduce) { .cmp-act { animation:none !important; } }
/* Compressor symbol: hollow when stopped, filled when running, dashed without a current reading, red outline on a fault. Static. */
.cmp-sym-base { fill:var(--line); stroke:var(--ink-3); stroke-width:1.5; }
.cmp-sym-body { fill:var(--surface); stroke:var(--ink-3); stroke-width:1.5; }
.cmp-sym-line { fill:none; stroke:var(--ink-3); stroke-width:1.5; }
.cmp-sym path.cmp-sym-line { stroke-width:2; }
.cmp-sym.is-filled .cmp-sym-base { fill:var(--ink-4); stroke:var(--ink-2); }
.cmp-sym.is-filled .cmp-sym-body { fill:var(--ink-2); stroke:var(--ink-2); }
.cmp-sym.is-filled .cmp-sym-line { stroke:var(--surface); }
.cmp-sym.is-dashed .cmp-sym-base { fill:var(--surface); }
.cmp-sym.is-dashed .cmp-sym-base,.cmp-sym.is-dashed .cmp-sym-body,.cmp-sym.is-dashed .cmp-sym-line { stroke-dasharray:3 2; }
.cmp-sym.is-fault .cmp-sym-body { stroke:var(--neg); stroke-width:3; }
.cmp-foot { display:flex; align-items:center; flex-wrap:wrap; gap:2px 12px; padding:2px 14px; border-top:1px solid var(--line); background:var(--bg-sunken); }
.cmp-plans { display:flex; flex-wrap:wrap; gap:2px 16px; font-weight:600; color:var(--ink-2); }
.cmp-plan-item { display:inline-flex; align-items:center; gap:6px; }
.cmp-updated { margin-left:auto; color:var(--ink-3); }
.cmp-details summary { cursor:pointer; padding:5px 0; color:var(--ink-2); font-weight:600; }
.cmp-details summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.cmp-details[open] { flex-basis:100%; }
.cmp-details-body { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:8px 24px; padding:2px 0 8px; }
.cmp-detail h3 { margin:0 0 4px; font-size:12px; font-weight:600; }
.cmp-detail dl { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; margin:0; }
.cmp-detail dt { color:var(--ink-3); }
.cmp-detail dd { margin:0; font-family:var(--font-mono); overflow-wrap:anywhere; }
.cmp-flags { grid-column:1/-1; margin:0; padding-left:18px; color:var(--ink-2); }
/* Buttons into the compressor screens (handoff section 15.2; D-181), in the footer row beside the disclosure. */
.cmp-screens { display:flex; flex-wrap:wrap; gap:4px; }
.cmp-screen-btn { box-sizing:border-box; min-height:24px; padding:2px 8px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); font:600 12px/1.3 var(--font-sans); cursor:pointer; }
.cmp-screen-btn:hover { background:var(--bg-sunken); }
.cmp-screen-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
/* Phone: cells stack in one card; the disclosure and the buttons are 44 px touch targets. */
.mt-screen .cmp-details summary { min-height:44px; padding:12px 0; box-sizing:border-box; }
.mt-screen .cmp-screens { flex-basis:100%; padding:6px 0 2px; }
.mt-screen .cmp-screen-btn { min-height:44px; padding:10px 14px; font-size:14px; }
@media (max-width:380px) {
  .cmp-cell { padding:9px 12px; }
  .cmp-head { padding:7px 12px 4px; gap:8px; }
  .cmp-grid { grid-template-columns:46px minmax(36px,1fr) auto; padding:0 12px 9px; gap:4px 6px; }
  .cmp-val { white-space:normal; }
  .cmp-foot { padding:2px 12px; }
}
