#tires .tq-by { display: flex; gap: 6px; flex-wrap: wrap; }
  #tires .tq-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: 12px; }
  #tires .tq-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
  #tires .tq-form input, #tires .tq-form select, #tires .tq-in { font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); min-height: 38px; box-sizing: border-box; }
  #tires .tq-go { font: inherit; font-family: var(--display); font-weight: 600; padding: 9px 16px; border-radius: 6px; border: 0; background: var(--brand-blue); color: #fff; cursor: pointer; min-height: 38px; }
  #tires .tq-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--chip); color: var(--fg); cursor: pointer; min-height: 34px; }
  #tires .tq-btn.blue { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
  #tires .tq-btn.red { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
  #tires .tq-btn.gold { background: var(--brand-gold); border-color: var(--brand-gold); color: #1b2026; }
  #tires .tq-ctx { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  #tires .tq-chip { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
  #tires .tq-chip.size { font-family: var(--mono); font-weight: 600; background: color-mix(in srgb, var(--brand-blue) 12%, var(--panel)); border-color: transparent; color: var(--brand-blue); }
  #tires .tq-two { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
  #tires .tq-two > #tq-results { flex: 999 1 560px; min-width: 0; }
  #tires .tq-two > #tq-quote { flex: 1 1 340px; min-width: 0; display: grid; gap: 12px; }
  #tires .tq-row { display: grid; grid-template-columns: 30px minmax(0, 2.6fr) minmax(0, 1.3fr) 76px 90px 62px 74px 112px; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
  #tires .tq-row.head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; }
  #tires .tq-row.on { background: color-mix(in srgb, var(--brand-blue) 9%, var(--panel)); }
  #tires .tq-row .r { text-align: right; }
  #tires .tq-row input[type=checkbox] { width: 18px; height: 18px; }
  #tires .tq-tire { display: flex; gap: 10px; align-items: center; min-width: 0; }
  #tires .tq-tire img, #tires .tq-tire svg { flex: none; width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; cursor: zoom-in; }
  #tires .tq-name { font-weight: 600; }
  #tires .tq-spec { font-size: 12.5px; color: var(--muted); }
  #tires .tq-tread { font-size: 12px; font-weight: 600; color: var(--brand-blue); }
  #tires .tq-warn { font-size: 12px; color: var(--warn); }
  #tires .tq-src { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
  #tires .tq-src.stock { background: color-mix(in srgb, var(--ok) 15%, var(--panel)); color: var(--ok); }
  #tires .tq-small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
  #tires .tq-dtchip { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand-red) 12%, var(--panel)); color: var(--brand-red); }
  #tires .tq-linkbtn { font: inherit; font-size: 12px; font-weight: 600; padding: 0; border: 0; background: none; color: var(--brand-red); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  #tires .tq-total { font-family: var(--display); font-weight: 600; font-size: 16px; }
  #tires .tq-wrap { overflow-x: auto; }
  #tires .tq-wrap > div { min-width: 860px; }
  #tires .tq-wrap.tq-vscroll { max-height: min(70vh, 760px) !important; overflow-y: auto !important; overflow-x: hidden !important; border: 1px solid var(--line); border-radius: 8px; overscroll-behavior: contain; }
  #tires .tq-wrap.tq-vscroll > div { min-width: 0 !important; }
  #tires .tq-wrap.tq-vscroll .tq-row.head { position: sticky; top: 0; z-index: 2; background: var(--panel); }
  #tires .tq-more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 8px 0; }
  #tires .tq-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  #tires .tq-seg button { font: inherit; font-family: var(--display); font-weight: 500; font-size: 15px; padding: 9px; border: 0; background: var(--panel); color: var(--fg); cursor: pointer; }
  #tires .tq-seg button[aria-pressed="true"] { background: var(--brand-blue); color: #fff; }
  #tires .tq-fee { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--chip); font-size: 14px; }
  #tires .tq-fee span:nth-child(2) { flex: 1; }
  #tires .tq-fee .p { color: var(--muted); font-size: 13px; }
  #tires .tq-opt { background: var(--bg); border-radius: 8px; padding: 12px; display: grid; gap: 4px; font-size: 13px; }
  #tires .tq-opt .ln { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
  #tires .tq-opt .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
  #tires .tq-opt .tot b { font-family: var(--display); font-size: 22px; }
  #tires .tq-opt .gp { display: flex; justify-content: space-between; font-weight: 600; color: var(--ok); }
  #tires .tq-opt .gp.pinch { color: var(--warn); } #tires .tq-opt .gp.low { color: var(--bad); }
  #tires .tq-opt input { width: 6.5rem; font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); text-align: right; }
  #tires .tq-qrow { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.3fr) 112px minmax(0, 1.7fr) 92px minmax(0, 1fr) 150px; gap: 8px; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
  #tires .tq-qrow.head { font-size: 12px; font-weight: 600; color: var(--muted); }
  #tires .tq-st { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; }
  #tires .tq-st.Sold { color: var(--ok); } #tires .tq-st.Declined { color: var(--bad); } #tires .tq-st.Open { color: var(--brand-blue); }
  #tires .tq-mono { font-family: var(--mono); font-size: 13px; }
  #tires .tq-spiff { border: 1px dashed var(--brand-gold); }
  #tires .tq-spiff .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; background: var(--warn); color: #fff; }
  #tires .tq-set summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; }
  #tires .tq-setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 10px 14px; margin-top: 12px; }
  #tires .tq-setgrid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
  #tires .tq-setgrid input { font: inherit; font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); }
  #tires .tq-msg { font-size: 13px; color: var(--muted); min-height: 1.2em; }
  #tires .tq-msg.bad { color: var(--bad); } #tires .tq-msg.ok { color: var(--ok); }
  #tires .tq-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 10px 12px; margin-top: 10px; }
  #tires .tq-add label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
  #tires .tq-add input, #tires .tq-add select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); min-height: 36px; }
  #tires .tq-add label.chk { display: flex; align-items: center; gap: 8px; color: var(--fg); }
  .tq-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(520px, 100vw); background: var(--panel); color: var(--fg); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column; font-family: var(--sans); }
  .tq-drawer[hidden] { display: none; }
  .tq-drawer .hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); border-top: 5px solid var(--brand-red); }
  .tq-drawer .hd h2 { flex: 1; margin: 0; font-family: var(--display); font-size: 19px; color: var(--brand-red); }
  .tq-drawer .bd { overflow-y: auto; padding: 14px 16px 24px; display: grid; gap: 14px; }
  .tq-drawer .x { font: inherit; font-size: 22px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--chip); color: var(--fg); cursor: pointer; }
  .tq-drawer .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .tq-drawer label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
  .tq-drawer input, .tq-drawer select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); min-height: 36px; box-sizing: border-box; width: 100%; }
  .tq-drawer .box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 6px; }
  .tq-drawer .warnbox { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: var(--fg); }
  .tq-drawer .target { background: color-mix(in srgb, var(--brand-blue) 10%, var(--panel)); border-radius: 8px; padding: 12px; display: grid; gap: 2px; }
  .tq-drawer .target b.big2 { font-family: var(--display); font-size: 26px; color: var(--brand-blue); }
  .tq-drawer .sup { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13.5px; }
  .tq-drawer .sup.low { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--panel)); }
  .tq-drawer .sup .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--muted); }
  .tq-drawer .sup .nums b { display: block; font-size: 16px; font-family: var(--display); color: var(--fg); }
  .tq-drawer .play { border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; font-size: 13.5px; background: #1b2026; color: #e8ecef; }
  .tq-drawer .play b.g { color: #7fd39b; font-family: var(--display); } .tq-drawer .play b.r { color: #ff8a80; font-family: var(--display); }
  .tq-drawer .play.warnp { background: #3a2a1a; }
  .tq-zoom { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
  .tq-zoom[hidden] { display: none; }
  .tq-zoom img, .tq-zoom svg { max-width: min(90vw, 560px); max-height: 85vh; background: #fff; border-radius: 12px; }
  @media (max-width: 640px) { #tires .tq-row { grid-template-columns: 30px minmax(0, 1fr); } #tires .tq-row > :nth-child(n+3) { grid-column: 2; text-align: left !important; } #tires .tq-row.head { display: none; } #tires .tq-wrap > div { min-width: 0; } #tires .tq-qrow { grid-template-columns: 1fr; } #tires .tq-qrow.head { display: none; } }

  #tires .tq-race { background: linear-gradient(135deg, #1b2a4a 0%, #22314f 60%, #2a1f2a 100%); color: #f3f5f8; border: 0; }
  #tires .tq-race-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
  #tires .tq-race-head h3 { margin: 0; font-family: var(--display); font-size: 20px; color: #fff; }
  #tires .tq-race-head h3 span { font-size: 13px; font-weight: 500; color: #b8c2d0; text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }
  #tires .tq-race .pw-tog { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #f3f5f8; }
  #tires .tq-race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 10px; }
  #tires .tq-racer { background: rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
  #tires .tq-racer.lead { background: rgba(244,180,0,.16); box-shadow: inset 0 0 0 1px rgba(244,180,0,.55); }
  #tires .tq-racer-top { display: flex; align-items: baseline; gap: 8px; }
  #tires .tq-racer .rk { font-family: var(--display); font-weight: 700; font-size: 18px; color: #b8c2d0; }
  #tires .tq-racer.lead .rk { color: var(--brand-gold, #f4b400); }
  #tires .tq-racer .nm { font-family: var(--display); font-size: 17px; color: #fff; }
  #tires .tq-lead { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; border-radius: 999px; background: var(--brand-gold, #f4b400); color: #1b2026; }
  #tires .tq-racer-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #c9d1dc; font-variant-numeric: tabular-nums; }
  #tires .tq-racer-nums b { font-size: 16px; color: #fff; }
  #tires .tq-racer-nums .sold b { color: #7fd39b; }
  #tires .tq-racebar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
  #tires .tq-racebar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
  #tires .tq-racebar i.q { background: rgba(255,255,255,.3); }
  #tires .tq-racebar i.s { background: #7fd39b; }
  #tires .tq-help { font-size: 12px; color: #b8c2d0; }
  #tires .tq-race-empty, #tires .tq-race-note { margin: 0; font-size: 13px; color: #b8c2d0; }
  #tires .tq-race-note { margin-top: 10px; }

  #tires .tq-floorbox { border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--panel)); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13.5px; }
  #tires .tq-floorbox:empty { display: none; }
  #tires .tq-floorbox.done { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
  #tires .tq-floorbox .ok { color: var(--ok); font-weight: 600; }
  #tires .tq-floorbox input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); min-height: 36px; flex: 1 1 12rem; min-width: 0; }
  #tires .tq-best { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, var(--panel)); color: var(--ok); }

  #tires .tq-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 8px; }
  #tires .tq-vchip { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
  #tires .tq-vchip b { font-family: var(--display); font-size: 14px; }
  #tires .tq-vchip span { color: var(--muted); font-variant-numeric: tabular-nums; }
  #tires .tq-vchip.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
  #tires .tq-vchip.ok span { color: var(--ok); font-weight: 600; }
  #tires .tq-vchip.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
  #tires .tq-vchip.bad span { color: var(--bad); font-weight: 600; }
  #tires .tq-vchip.busy { border-color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 8%, var(--panel)); }
  #tires .tq-vchip.busy span { color: var(--brand-blue); font-weight: 600; }
  #tires .tq-vsreq { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; background: color-mix(in srgb, var(--brand-blue) 9%, var(--panel)); }
  #tires .tq-btn[disabled] { opacity: .5; cursor: default; }

  #tires .tq-vhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 8px 6px; border-bottom: 2px solid var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 6%, var(--panel)); }
  #tires .tq-vhead b { font-family: var(--display); font-size: 15px; color: var(--brand-blue); }
  #tires .tq-vhead span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  #tires .tq-wrap.tq-vscroll .tq-vhead { position: sticky; top: 31px; z-index: 1; }
  #tires .tq-vpickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
  #tires .tq-vpickbar .tq-linkbtn { color: var(--brand-blue); font-size: 13px; }
  #tires button.tq-vchip { font: inherit; font-size: 13px; text-align: left; color: var(--fg); cursor: pointer; }
  #tires button.tq-vchip[disabled] { cursor: default; }
  #tires .tq-vchip b { display: flex; align-items: center; gap: 7px; }
  #tires .tq-box { flex: none; width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--muted); display: inline-grid; place-items: center; font-style: normal; font-size: 12px; line-height: 1; color: #fff; }
  #tires .tq-vchip.pick .tq-box { background: var(--brand-blue); border-color: var(--brand-blue); }
  #tires .tq-vchip.pick { box-shadow: inset 0 0 0 1px var(--brand-blue); }
  #tires .tq-vchip.nopick { opacity: .6; }
  #tires .tq-vchip.nopick:hover { opacity: .9; }


  #tires .tq-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  #tires .tq-tog, #tires .tq-ddb { font: inherit; font-size: 14px; padding: 7px 14px; min-height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); cursor: pointer; white-space: nowrap; }
  #tires .tq-tog[aria-pressed="true"], #tires .tq-ddb.on { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
  #tires .tq-ddb b { font-weight: 600; }
  #tires .tq-dd { position: relative; }
  #tires .tq-ddp { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(300px, calc(100vw - 32px)); max-height: 360px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 2px; }
  #tires .tq-ddi { font: inherit; font-size: 14px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--fg); cursor: pointer; text-align: left; }
  #tires .tq-ddi:hover { background: var(--bg); }
  #tires .tq-ddi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tires .tq-ddi em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
  #tires .tq-ddi[aria-checked="true"] .tq-box { background: var(--brand-blue); border-color: var(--brand-blue); }
  #tires .tq-ddf { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 2px; border-top: 1px solid var(--line); margin-top: 4px; position: sticky; bottom: -6px; background: var(--panel); }
  @media (max-width: 640px) { #tires .tq-dd { position: static; } #tires .tq-ctl { position: relative; } #tires .tq-ddp { left: 0; right: auto; } }

  #tires #tq-results > .row-head { display: grid; justify-content: stretch; gap: 10px; }
  #tires .tq-ctl { justify-content: flex-start; }
  #tires #tq-stk { min-width: 9.5rem; }
  #tires #tq-price { min-width: 11.5rem; }
  #tires .tq-ddb { min-width: 9.5rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; text-align: left; }

  #tires .tq-eta { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 16%, var(--panel)); color: var(--warn); }
  #tires .tq-eta.ok { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); color: var(--ok); }

  #tires .tq-ddq { font: inherit; font-size: 14px; width: 100%; box-sizing: border-box; padding: 8px 10px; margin: 2px 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); position: sticky; top: -6px; z-index: 1; }
  #tires .tq-ddq:focus { outline: 2px solid var(--brand-blue); outline-offset: 0; }

  .tq-zoom .tq-zpair { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 92vw; }
  .tq-zoom .tq-zpair img { max-width: min(44vw, 440px); max-height: 80vh; background: #fff; border-radius: 12px; }
