/* CoupeFab — coolant calculator. Builds on outillage.css (.tl); own prefix .lq. Touch targets ≥ 44px. */
.lq-setup { display: grid; grid-template-columns: minmax(16rem, 2fr) repeat(3, minmax(11rem, 1fr)); gap: .8rem; align-items: start;
  margin: 1rem 0; padding: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--tl-r); box-shadow: var(--shadow); }
.lq-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.lq-field > label, .lq-field > span { font-size: .8rem; font-weight: 650; color: var(--ink); }
.lq input[type="text"], .lq input[type="search"] { font: inherit; font-size: 1rem; height: 44px; padding: 0 .65rem; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.lq input:focus { border-color: var(--focus); outline: 2px solid rgba(27,79,138,.25); outline-offset: 0; }
.lq-help { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.lq-help a, .lq-src a { font-weight: 600; }
.lq-unitrow { display: flex; gap: .4rem; }
.lq-unitrow input { flex: 1 1 auto; }
.lq-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; flex: none; }
.lq-seg button { min-height: 44px; min-width: 3.2rem; padding: 0 .6rem; border: 0; background: var(--paper); font: inherit; font-size: .88rem; font-weight: 650; color: var(--muted); cursor: pointer; }
.lq-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lq-chips, .lq-variants { display: flex; flex-wrap: wrap; gap: .35rem; }
.lq-chips .chip, .lq-variants .chip { min-height: 36px; }
.lq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.lq-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--tl-r); box-shadow: var(--shadow); padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.lq-card h2 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.lq-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; flex: none; }
.lq-fields { display: grid; gap: .6rem; }
.lq-out { background: var(--bg); border-radius: 8px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .2rem; min-height: 4.5rem; }
.lq-line { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .28rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.lq-line:last-of-type { border-bottom: 0; }
.lq-line > span:first-child { color: var(--steel, var(--ink)); }
.lq-line > span:last-child { text-align: right; }
.lq-line b { font-size: 1.05rem; color: var(--ink); }
.lq-alt { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.lq-wait { margin: 0; color: var(--muted); font-size: .88rem; }
.lq-step, .lq-quick { margin: .3rem 0 0; font-size: .88rem; color: var(--steel, var(--ink)); }
.lq-quick { border-top: 1px solid var(--line); padding-top: .45rem; color: var(--muted); }
.lq-verdict { margin: .3rem 0 0; font-weight: 650; font-size: .9rem; }
.lq-good { color: #166534; } .lq-bad, .lq-warn { color: #9a3412; }
.lq-warn { margin: 0; font-weight: 650; }
.lq-safety { border-left: 4px solid var(--accent); }
.lq-src { font-size: .82rem; color: var(--muted); margin: .5rem 0 1rem; max-width: 60rem; }
.lq-ref { max-width: 60rem; }
.lq-r { text-align: right !important; }
.lq-num { font-weight: 650; white-space: nowrap; }
.lq-sub { font-size: .76rem; color: var(--muted); margin-top: .15rem; max-width: 38rem; }
.lq-count { color: var(--faint); font-weight: 500; font-size: .9rem; }
.lq-tablebar { display: flex; gap: .7rem; align-items: end; justify-content: space-between; flex-wrap: wrap; margin: .4rem 0 .7rem; }
.lq-filter { flex: 1 1 18rem; max-width: 26rem; }
.lq-suggest { display: inline-flex; align-items: center; text-decoration: none; }
.lq-table td:first-child { min-width: 14rem; }
.lq-table td a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 64rem) { .lq-setup { grid-template-columns: 1fr 1fr; } .lq-machine { grid-column: 1 / -1; } .lq-grid { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .lq-setup { grid-template-columns: 1fr; padding: .75rem; } .tl-stamp { text-align: left; } .lq-table th:nth-child(2), .lq-table td:nth-child(2) { display: none; } }

/* machine combobox: one input, results panel right under it at the same width, grouped by brand */
.lq-setup { position: relative; z-index: 45; } /* panel above the result cards, below the sticky header (50) */
.lq-combo { position: relative; scroll-margin-top: calc(var(--hdr) + .5rem); }
.lq-combo-ico { position: absolute; left: .7rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.525rem; color: var(--faint); pointer-events: none; }
.lq .lq-combo input { padding-left: 2.2rem; padding-right: 2.75rem; height: 48px; font-size: 1.02rem; }
.lq-combo.is-open input { border-color: var(--focus); border-bottom-left-radius: 0; border-bottom-right-radius: 0; outline: 2px solid rgba(27,79,138,.18); }
.lq-combo-clear { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.lq-combo-clear svg { width: 1rem; height: 1rem; }
.lq-combo-clear:hover { color: var(--ink); background: var(--bg); }
.lq-combo-clear:focus-visible { outline: 2px solid var(--focus); }
.lq-pop { position: absolute; left: 0; right: 0; top: 100%; margin-top: -1px; max-height: min(26rem, 60vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--focus); border-top-color: var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 14px 34px rgba(21,25,28,.16), 0 2px 6px rgba(21,25,28,.06); z-index: 46; }
.lq-pop[hidden] { display: none; }
.lq-grp-h { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: .35rem .75rem; background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--steel, var(--ink)); }
.lq-grp-h span { font-weight: 600; color: var(--faint); letter-spacing: 0; }
.lq-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto 6.8rem; gap: .75rem; align-items: center; min-height: 42px; padding: .35rem .75rem; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,.04); font-size: .95rem; }
.lq-opt-m { font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-opt-t { font-size: .74rem; color: var(--muted); background: var(--bg-2, var(--bg)); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.lq-opt-c { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; font-size: .9rem; }
.lq-opt-c span { color: var(--muted); font-weight: 500; font-size: .8rem; }
.lq-opt-c em { font-style: normal; font-weight: 500; color: var(--faint); font-size: .8rem; }
.lq-opt.is-act { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.lq-opt.is-sel .lq-opt-m::after { content: " ✓"; color: var(--accent); }
.lq-opt mark, .lq-grp-h mark { background: rgba(194,65,12,.16); color: inherit; border-radius: 2px; padding: 0 1px; }
.lq-pop-msg, .lq-pop-more { padding: .8rem .9rem; font-size: .85rem; color: var(--muted); }
.lq-pop-more { border-top: 1px solid var(--line); background: var(--bg); text-align: center; font-size: .8rem; }
.tl-more-wrap { margin: .6rem 0; }
@media (max-width: 34rem) {
  .lq-pop { left: -.75rem; right: -.75rem; max-height: 62vh; border-radius: 0 0 12px 12px; border-left: 0; border-right: 0; }
  .lq-opt { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m c" "t c"; min-height: 56px; row-gap: .1rem; padding: .5rem 1rem; font-size: 1rem; }
  .lq-opt-m { grid-area: m; } .lq-opt-t { grid-area: t; justify-self: start; } .lq-opt-c { grid-area: c; }
  .lq-grp-h { padding: .45rem 1rem; }
}
