/* Bay & Bill — pack styles.
   Only what the engine primitives do not already cover. Everything here uses
   the engine tokens so light, dark and the red accent all follow.
*/

/* ------------------------------------------------------------- shared -- */

.input--slim { height: 32px; font-size: 13px; padding: 0 26px 0 9px; width: auto; min-width: 128px; max-width: 220px; }

.linkbtn {
  border: 0; background: none; padding: 0;
  font: inherit; color: inherit;
  cursor: pointer; text-align: left; min-width: 0;
}
.linkbtn:hover .cellmain__t { color: var(--accent-ink); }

.notecard {
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.kvgrid { gap: 10px 16px; }
.field__static.is-bad { color: var(--bad); }

.btnbar--scroll {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  max-width: calc(100% + var(--pad) * 2);
}
.btnbar--scroll::-webkit-scrollbar { display: none; }
.btnbar--scroll .btn { flex: 0 0 auto; }

/* Rego plate: the one piece of chrome a workshop screen has to get right. */
.plate {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  min-width: 78px; height: 24px;
  padding: 0 7px;
  border: 1.5px solid var(--ink-2);
  border-radius: 4px;
  background: hsl(48 44% 96%);
  color: hsl(0 62% 26%);
  font: 700 12.5px/1 var(--mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.plate--big { min-width: 104px; height: 34px; font-size: 17px; border-width: 2px; border-radius: 6px; }
[data-theme="dark"] .plate { background: hsl(48 18% 88%); border-color: hsl(48 12% 62%); color: hsl(0 58% 32%); }

/* Stage badge and the little bay and tech tags. */
.sbadge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 600 11.5px var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
}
.sbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-c, var(--accent)); flex: 0 0 auto; }

.btag { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--mono); color: var(--ink); white-space: nowrap; }
.btag i { width: 7px; height: 7px; border-radius: 2px; background: var(--b-c, var(--accent)); flex: 0 0 auto; }

.tchip { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); color: var(--ink-mute); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legend__i { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.legend__i i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }

/* --------------------------------------------------------- the bay board */

.bb { position: relative; min-width: 0; max-width: 100%; }
.bb__scroll {
  position: relative;
  overflow: auto;
  max-height: min(560px, calc(100vh - 300px));
  border-bottom: 1px solid var(--line-2);
}
.bb__inner { position: relative; }

.bb__head {
  display: flex;
  position: sticky; top: 0; z-index: 6;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 30px;
}
.bb__corner {
  position: sticky; left: 0; z-index: 7;
  flex: 0 0 auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
  padding-left: 12px;
  font: 700 10px var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.bb__ticks { position: relative; flex: 0 0 auto; }
.bb__tick {
  position: absolute; top: 8px;
  transform: translateX(-50%);
  font: 500 10.5px var(--mono);
  color: var(--ink-mute);
  white-space: nowrap;
}
.bb__tick--first { transform: none; }

.bb__rows { position: relative; }
.bb__row { display: flex; border-bottom: 1px solid var(--line-2); }
.bb__row:last-child { border-bottom: 0; }
.bb__lbl {
  position: sticky; left: 0; z-index: 4;
  flex: 0 0 auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border: 1px solid var(--b-c, var(--accent));
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 0 8px 0 9px;
  overflow: hidden;
}
.bb__lblt { font: 700 12.5px var(--sans); color: var(--ink); }
.bb__lbls { font: 500 10px var(--mono); color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bb__lane { position: relative; flex: 0 0 auto; display: flex; }
.bb__slot {
  flex: 0 0 auto; height: 100%;
  border: 0; border-right: 1px solid var(--line-2);
  background: none; padding: 0; cursor: pointer;
}
.bb__slot:nth-child(4n) { border-right-color: var(--line); }
.bb__slot:hover { background: var(--accent-soft); }
.bb__slot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 3; }

.bb__ev {
  position: absolute; top: 4px; height: 38px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1px;
  padding: 0 6px 0 5px;
  border: 1px solid transparent;
  border: 1px solid var(--ev-c, var(--accent));
  border-radius: 5px;
  background: color-mix(in srgb, var(--ev-c, var(--accent)) 14%, var(--surface));
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  z-index: 2;
  transition: box-shadow var(--t-fast) var(--ease);
}
.bb__ev:hover { box-shadow: var(--shadow-2); z-index: 5; }
.bb__ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 5; }
.bb__ev.is-dragging { opacity: 0.92; box-shadow: var(--shadow-3); z-index: 20; cursor: grabbing; }
body.bb-dragging { user-select: none; cursor: grabbing; }

.bb__ev--reported { --ev-c: hsl(220 8% 56%); }
.bb__ev--diagnosis { --ev-c: hsl(206 58% 46%); }
.bb__ev--parts { --ev-c: hsl(188 46% 34%); }
.bb__ev--quoted { --ev-c: hsl(38 82% 44%); }
.bb__ev--approved { --ev-c: hsl(0 58% 48%); }
.bb__ev--progress { --ev-c: hsl(24 72% 46%); }
.bb__ev--ready { --ev-c: hsl(150 44% 34%); }
.bb__ev--done { --ev-c: hsl(220 6% 62%); opacity: 0.72; }
.bb__ev--noshow { --ev-c: var(--bad); }
.bb__ev--noshow .bb__evn { text-decoration: line-through; }

.bb__evh { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bb__evp {
  flex: 0 0 auto;
  height: 17px; min-width: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--ev-c) 45%, var(--line));
  background: var(--surface);
  color: var(--ink);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.04em;
}
.bb__evt { margin-left: auto; font: 500 9.5px var(--mono); color: var(--ink-mute); white-space: nowrap; overflow: hidden; }
.bb__evn { font: 600 11px var(--sans); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb__evi { flex: 0 0 auto; display: grid; color: var(--ink-mute); }

.bb__now {
  position: absolute; top: 0; bottom: 0; width: 0;
  border: 1px solid var(--bad);
  z-index: 6; pointer-events: none;
}
.bb__nowt {
  position: absolute; top: -1px; left: 3px;
  font: 700 9px var(--mono);
  background: var(--bad); color: #fff;
  padding: 1px 4px; border-radius: 3px;
  white-space: nowrap;
}
[data-theme="dark"] .bb__nowt { color: hsl(222 20% 10%); }

.bb__hint {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-size: 11.5px; color: var(--ink-mute);
}
.bb__hint .ic { flex: 0 0 auto; }

/* ------------------------------------------------------------ row lists */

.rows { display: flex; flex-direction: column; }
.rows li { display: block; }
.rows__i {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 0; border-bottom: 1px solid var(--line-2);
  background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.rows li:last-child .rows__i { border-bottom: 0; }
.rows__i:hover { background: var(--surface-2); }
.rows__i.is-on { background: var(--accent-soft); }
.rows__i--static { cursor: default; }
.rows__i--static:hover { background: none; }
.rows__ic { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-mute); }
.rows__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rows__t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows__s { font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows__v { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; }
.rows__x { flex: 0 0 auto; color: var(--ink-mute); }
.rows__i--static .prog { width: 74px; flex: 0 0 auto; }

.minirows { display: flex; flex-direction: column; gap: 8px; }
.minirows li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.minirows li > span:first-child { flex: 1; min-width: 0; color: var(--ink-2); }
.minirows .prog { flex: 0 0 90px; }

.funnel { display: flex; flex-direction: column; }
.funnel li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); }
.funnel li:last-child { border-bottom: 0; }
.funnel__l { flex: 0 0 39%; font-size: 12.5px; color: var(--ink-2); }
.funnel__b { flex: 1; height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.funnel__f { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.funnel__n { flex: 0 0 auto; font-size: 12px; min-width: 34px; text-align: right; }

/* ------------------------------------------------------------- kanban -- */

.boardbar { gap: 12px; }
.boardbar__s { flex: 1 1 300px; max-width: 420px; }
.boardbar__h { font-size: 11.5px; color: var(--ink-mute); }

.kbc { display: flex; flex-direction: column; gap: 6px; }
.kbc__top { display: flex; align-items: center; gap: 8px; }
.kbc__v { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.kbc__t { font: 600 13px var(--sans); line-height: 1.3; }
.kbc__s { font-size: 11.5px; color: var(--ink-mute); line-height: 1.35; }
.kbc__flags { display: flex; flex-wrap: wrap; gap: 5px; }
.kbc__foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.kbc__d { font: 500 10.5px var(--mono); color: var(--ink-mute); }
.kbc__open {
  margin-left: auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-mute); cursor: pointer;
}
.kbc__open:hover { color: var(--accent-ink); border-color: var(--accent); }

/* -------------------------------------------------------- drawer bodies */

.dhead { display: flex; align-items: center; gap: 12px; }
.dhead__t { font: 700 16px var(--display); letter-spacing: -0.01em; }
.dhead__s { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.drawfoot { gap: 8px; }

.step { display: flex; flex-wrap: wrap; gap: 4px 2px; }
.step__i {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font: 600 11px var(--sans);
  color: var(--ink-mute);
  background: var(--surface-2);
}
.step__i i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.step__i.is-done { color: var(--ink-2); }
.step__i.is-done i { background: var(--s-c, var(--accent)); opacity: 0.55; }
.step__i.is-on { color: var(--accent-on); background: var(--s-c, var(--accent)); }
.step__i.is-on i { background: var(--surface); opacity: 1; }

.quotebox {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--accent); background: var(--accent-soft);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.quotebox p { font-size: 14px; line-height: 1.55; color: var(--ink); }
.quotebox footer { margin-top: 7px; font-size: 11.5px; color: var(--ink-mute); }

.techline { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.advlist { display: flex; flex-direction: column; }
.advlist li { display: flex; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.advlist li:last-child { border-bottom: 0; }
.advlist .ic { flex: 0 0 auto; margin-top: 2px; color: var(--warn); }

.notelist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.notelist li { display: flex; gap: 10px; }
.notelist__t { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.notelist__m { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }

/* ------------------------------------------------------- the line table */

.lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.lines th {
  text-align: left; padding: 0 0 7px;
  font: 700 10px var(--sans); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 1px solid var(--line);
}
.lines td { padding: 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.lines td:not(:first-child) { padding-left: 10px; }
.lines__d { display: block; color: var(--ink); line-height: 1.4; }
.lines__m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 11px; }
.lines__r.is-optional .lines__d { color: var(--ink-2); }
.lines__r.is-declined .lines__d { color: var(--ink-mute); text-decoration: line-through; }
.lines tfoot td { border-bottom: 0; padding: 5px 0; color: var(--ink-2); }
.lines tfoot tr:first-child td { padding-top: 10px; }
.lines__tot td { font-weight: 700; color: var(--ink); font-size: 14px; padding-top: 7px !important; border-top: 1px solid var(--line); }
.linefoot { gap: 6px; }

/* ------------------------------------------------- the customer's phone */

.grid--approve { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }

.cwrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cwrap__tag { display: flex; align-items: center; gap: 6px; font: 600 11px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }

.phone {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-3);
  padding: 8px;
  box-shadow: var(--shadow-2);
  min-width: 0;
}
.phone__bar { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; }
.phone__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.phone__net { font: 600 11px var(--sans); color: var(--ink-mute); flex: 1; }
.phone__time { font-size: 11px; color: var(--ink-mute); }
.phone__screen {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  max-height: min(720px, calc(100vh - 260px));
  overflow-y: auto;
  border: 1px solid var(--line);
}

.sms { padding: 14px 14px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sms__from { font: 700 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); }
.sms__b {
  margin-top: 6px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  font-size: 13px; line-height: 1.5; color: var(--ink);
}
.sms__l { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11px; color: var(--accent-ink); }

.qdoc { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.qdoc__head { display: flex; align-items: center; gap: 10px; }
.qdoc__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-on); }
.qdoc__biz { font: 700 14px var(--display); }
.qdoc__meta { font-size: 10.5px; color: var(--ink-mute); margin-top: 1px; }
.qdoc__car { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.qdoc__cart { font-weight: 600; font-size: 13px; }
.qdoc__cars { font: 500 11px var(--mono); color: var(--ink-mute); }
.qdoc__h { font: 700 10.5px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-mute); }
.qdoc__p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin-top: 5px; }
.qdoc__found { }
.qdoc__pix { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.qdoc__pix .phototile { width: 132px; }

.qitems { display: flex; flex-direction: column; gap: 8px; }
.qitem {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.qitem:hover { border-color: var(--accent); }
.qitem.is-off { background: var(--surface-2); border-style: dashed; }
.qitem.is-off .qitem__t, .qitem.is-off .qitem__v { color: var(--ink-mute); text-decoration: line-through; }
.qitem__c { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.qitem.is-locked { cursor: default; border-style: solid; border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); background: var(--ok-soft); }
.qitem.is-locked:hover { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.qitem__lock { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--ok); color: var(--surface); margin-top: 1px; }
[data-theme="dark"] .qitem__lock { color: hsl(222 20% 10%); }
.qitem__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qitem__t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.qitem__s { font-size: 11.5px; color: var(--ink-mute); line-height: 1.4; }
.qitem__v { flex: 0 0 auto; font-weight: 700; font-size: 13px; }

.qdoc__tot { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.qdoc__tot > div { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.qdoc__tot--big { padding-top: 6px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 16px !important; font-weight: 700; color: var(--ink) !important; }
.qdoc__tot--big dd { font-size: 17px; font-weight: 700; }

.qdoc__sign { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.qdoc__sign .field { display: flex; flex-direction: column; gap: 5px; }
.qdoc__foot { font-size: 10.5px; color: var(--ink-mute); line-height: 1.5; text-align: center; padding-top: 6px; }

.done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 2px; }
.done__ic { color: var(--ok); }
.done__t { font: 700 17px var(--display); }
.done__s { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.done__n { font-size: 12px; color: var(--ink-mute); line-height: 1.5; margin-top: 4px; }

.explain__l { display: flex; flex-direction: column; gap: 9px; counter-reset: ex; }
.explain__l li { position: relative; padding-left: 26px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); counter-increment: ex; }
.explain__l li::before {
  content: counter(ex);
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft-2); color: var(--accent-ink);
  font: 700 10px var(--mono);
}
.explain__n { margin-top: 10px; font-size: 11.5px; color: var(--ink-mute); line-height: 1.5; }

/* ---------------------------------------------------------- parts, stock */

.stocklev { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.stocklev .prog { width: 62px; flex: 0 0 auto; }

/* ------------------------------------------------------------- vehicles */

.nextsvc {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.nextsvc__l { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 200px; }
.nextsvc__l .ic { flex: 0 0 auto; margin-top: 1px; }
.nextsvc__t { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.nextsvc__s { font-size: 12px; color: var(--ink-mute); margin-top: 3px; line-height: 1.5; }
.nextsvc--ok { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); background: var(--ok-soft); }
.nextsvc--ok .ic { color: var(--ok); }
.nextsvc--warn { border-color: color-mix(in srgb, var(--warn) 36%, var(--line)); background: var(--warn-soft); }
.nextsvc--warn .ic { color: var(--warn); }
.nextsvc--bad { border-color: color-mix(in srgb, var(--bad) 36%, var(--line)); background: var(--bad-soft); }
.nextsvc--bad .ic { color: var(--bad); }

.hist { display: flex; flex-direction: column; }
.hist li { display: block; }
.hist__i {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px;
  border: 0; border-bottom: 1px solid var(--line-2);
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hist li:last-child .hist__i { border-bottom: 0; }
.hist__i:hover { background: var(--surface-2); }
.hist__d { flex: 0 0 58px; display: flex; flex-direction: column; }
.hist__d b { font: 700 12px var(--mono); }
.hist__d span { font: 500 10.5px var(--mono); color: var(--ink-mute); }
.hist__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hist__t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist__s { font-size: 11px; color: var(--ink-mute); }
.hist__v { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; }

.remlist { display: flex; flex-direction: column; }
.remlist li { padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.remlist li:last-child { border-bottom: 0; }
.remlist__h { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.remlist__m { font: 500 11px var(--mono); color: var(--ink-mute); flex: 1; }
.remlist__t { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1180px) {
  .grid--approve { grid-template-columns: minmax(0, 1fr); }
  .cwrap { max-width: 460px; }
}

@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .bb__scroll { max-height: min(420px, calc(100vh - 260px)); }
  .cwrap { max-width: none; }
  .phone { border-radius: 16px; padding: 6px; }
  .phone__screen { max-height: none; border-radius: 12px; }
  .funnel__l { flex: 0 0 45%; }
  .lines { font-size: 12.5px; }
  .step { gap: 3px; }
  .step__i { font-size: 10px; padding: 3px 7px 3px 6px; }
  .dhead__t { font-size: 15px; }
}

@media (max-width: 560px) {
  .plate { min-width: 70px; font-size: 11.5px; }
  .plate--big { min-width: 92px; height: 30px; font-size: 15px; }
  .qitem__v { font-size: 12.5px; }
  .boardbar__h { display: none; }
}

/* Engine gap: a stat label is nowrap, which clips on a phone. */
.kpis .stat__l { white-space: normal; }

.carcell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.carcell__s { font-size: 11.5px; color: var(--ink-mute); line-height: 1.35; }
.carcell:hover .carcell__s { color: var(--accent-ink); }

.finishnote { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.finishnote.is-bad { color: var(--bad); }
