/* Tuning portal: an app of its own, not a page of the website (includes/portal.php, assets/js/portal.js). */
:root {
  --bg: #2b2d31; --surface: #36383d; --surface-2: #404249; --panel: #36383d; --line: #4b4d54; --line-2: #5e6068;
  --fg: #f6f6f7; --muted: #bcbec4; --red: #e3141f; --red-deep: #8e0c13;
  --ok: #4ccb82; --ok-bg: rgba(76, 203, 130, .13); --warn: #f1b75c; --warn-bg: rgba(241, 183, 92, .13); --info: #7fb2ff; --info-bg: rgba(127, 178, 255, .12); --off: #bcbec4; --off-bg: rgba(188, 190, 196, .14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --r: 14px; --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 Barlow, system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.vp-loading { padding: 40px; color: var(--muted); text-align: center; }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: the site's rounded 3D style, a little quieter */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #4a4c53, #3d3f45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 #1f2023; color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 #1f2023; }
.btn.primary { border-color: var(--red); background: linear-gradient(180deg, #f2333d, #d3101a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 0 var(--red-deep); color: #fff; }
.btn.primary:hover { background: linear-gradient(180deg, #ff4650, #e3141f); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.link { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--red); }

/* The shell: sidebar, top bar, content */
.vp-shell { min-height: 100vh; min-height: 100dvh; }
.vp-side { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: #232428; border-right: 1px solid var(--line); }
.vp-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.vp-brand img { width: 62px; height: auto; display: block; }
.vp-brand span { font: 700 18px/1.05 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.vp-nav { display: grid; gap: 3px; }
.vp-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.vp-nav a:hover { background: var(--surface); color: var(--fg); }
.vp-nav a.on { background: var(--surface-2); color: var(--fg); box-shadow: inset 2px 0 0 var(--red); }
.vp-nav a.on svg { color: var(--red); }
.vp-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.vp-side-foot { margin-top: auto; display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.vp-who { padding: 4px 12px 8px; overflow-wrap: anywhere; }
.vp-who strong { display: block; }
.vp-side-foot a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.vp-side-foot a:hover { background: var(--surface); color: var(--fg); }
.vp-main { margin-left: var(--side); min-width: 0; }
.vp-top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 28px; background: rgba(43, 45, 49, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.vp-top h1 { font: 700 26px/1.1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .01em; }
.vp-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-top-logo { display: none; width: 46px; height: auto; }
.vp-top-right { display: flex; align-items: center; gap: 10px; }
.vp-balance-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.vp-balance-chip small { color: var(--muted); font-weight: 500; }
.vp-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.vp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.vp-dot.open::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.vp-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 28px 48px; max-width: 1240px; }
.vp-tabs { display: none; }

/* Cards and headings */
.vp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.vp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vp-h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.vp-two-col { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.vp-sticky { position: sticky; top: 92px; }
.vp-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: var(--r); border: 1px solid; font-size: 14px; }
.vp-banner.warn { border-color: rgba(241, 183, 92, .4); background: var(--warn-bg); }
.vp-banner.bad { border-color: rgba(227, 20, 31, .5); background: rgba(227, 20, 31, .1); }
.vp-error { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(227, 20, 31, .5); background: rgba(227, 20, 31, .1); font-size: 14px; }

/* Dashboard figures */
.vp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vp-stat { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
a.vp-stat:hover { border-color: var(--line-2); background: var(--surface-2); }
.vp-stat span { font-size: 13px; color: var(--muted); }
.vp-stat strong { font: 700 32px/1.1 "Barlow Condensed", Barlow, sans-serif; font-variant-numeric: tabular-nums; }
.vp-stat.hot strong { color: var(--warn); }
.vp-stat.good strong { color: var(--ok); }

/* Status */
.vp-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.vp-pill.info { color: var(--info); background: var(--info-bg); }
.vp-pill.warn { color: var(--warn); background: var(--warn-bg); }
.vp-pill.ok { color: var(--ok); background: var(--ok-bg); }
.vp-pill.off { color: var(--off); background: var(--off-bg); }
.vp-new { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--red); vertical-align: middle; }

/* File tables */
.vp-table { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; container-type: inline-size; }.vp-tr { display: grid; grid-template-columns: 74px minmax(0, 1.2fr) minmax(0, 1.5fr) 100px 150px 18px; align-items: center; gap: 12px; padding: 12px 10px; border-top: 1px solid var(--line); text-decoration: none; }
.vp-tr.th { padding-block: 0 8px; border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
a.vp-tr:hover { background: var(--surface-2); }
.vp-tr > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-tr .ref { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.vp-tr .chev { color: var(--muted); }
@container (max-width: 760px) {
  .vp-tr.th { display: none; }
  .vp-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 4px; }
  .vp-tr .ref { grid-column: 1; grid-row: 2; }
  .vp-tr .car { grid-column: 1; grid-row: 1; font-weight: 600; }
  .vp-tr .svc { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 13px; white-space: normal; }
  .vp-tr .date { display: none; }
  .vp-tr .st { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .vp-tr .chev { display: none; }
}
.vp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.vp-chips button.on { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.vp-empty { padding: 34px 16px; text-align: center; color: var(--muted); }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #26282c; color: var(--fg); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(227, 20, 31, .55); outline-offset: 0; border-color: var(--red); }
.vp-search { max-width: 280px; }
.vp-form { display: grid; gap: 14px; }
.vp-form label, .vp-label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--fg); }
.vp-form label small, .vp-label small { font-weight: 400; color: var(--muted); }
.up { text-transform: uppercase; }
.vp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.vp-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.vp-step i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-style: normal; }
.vp-pick { display: grid; gap: 6px; }
.vp-pick label { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #2e3035; font-weight: 500; font-size: 14px; cursor: pointer; }
.vp-pick label:hover { border-color: var(--line-2); }
.vp-pick label:has(input:checked) { border-color: var(--red); background: rgba(227, 20, 31, .08); }
.vp-pick input { accent-color: var(--red); width: 17px; height: 17px; flex: none; margin: 0; }
.vp-pick .name { flex: 1; min-width: 0; }
.vp-pick .price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-pick em { display: block; font-style: normal; font-size: 12px; color: var(--warn); }
.vp-unit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vp-legal { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(241, 183, 92, .5); background: var(--warn-bg); font-size: 13px; }
.vp-sub { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.vp-drop { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #2e3035; text-align: center; cursor: pointer; font-weight: 500 !important; }
.vp-drop:hover, .vp-drop.over { border-color: var(--red); background: rgba(227, 20, 31, .06); }
.vp-drop input { display: none; }
.vp-drop svg { width: 26px; height: 26px; color: var(--muted); }
.vp-drop strong { overflow-wrap: anywhere; }
.vp-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 14px !important; cursor: pointer; }
.vp-check input { accent-color: var(--red); width: 17px; height: 17px; flex: none; margin: 2px 0 0; }
.vp-offroad { padding: 11px 12px; border: 1px solid rgba(241, 183, 92, .5); border-radius: 10px; background: var(--warn-bg); }
.vp-offroad[hidden] { display: none !important; }
.vp-hp { position: absolute; left: -9999px; }

/* Send a file: one step at a time */
.vp-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.vp-progress li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--muted); cursor: pointer; }
.vp-progress li i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; font-style: normal; }
.vp-progress li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 50%; width: calc(100% + 6px); height: 2px; background: var(--line-2); }
.vp-progress li.on { color: var(--fg); }
.vp-progress li.on i { background: var(--red); border-color: var(--red); color: #fff; }
.vp-progress li.done { color: var(--fg); }
.vp-progress li.done i { background: var(--ok); border-color: var(--ok); color: #123; }
.vp-progress li.done::after { background: var(--ok); }
.vp-step-title { font: 700 24px/1.1 "Barlow Condensed", Barlow, sans-serif; }
.vp-wiz-nav { display: flex; justify-content: space-between; gap: 10px; }
.vp-wiz-nav [hidden] { display: none; }
.vp-card[data-step][hidden] { display: none; }
.vp-badge { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(227, 20, 31, .16); color: #ffb3b6; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-badge.free { background: var(--ok-bg); color: var(--ok); }
.vp-big label { padding: 15px 14px; font-size: 16px; font-weight: 600; }
.vp-optrow { display: grid; gap: 6px; }
.vp-optrow[hidden], [data-offgroup][hidden] { display: none; }
.vp-optrow > input, .vp-optrow > select { margin-left: 28px; width: calc(100% - 28px); }
.vp-optrow > [hidden] { display: none; }
@media (max-width: 560px) { .vp-progress li span { display: none; } .vp-progress li.on span { display: block; position: absolute; top: 32px; white-space: nowrap; } .vp-progress { padding-bottom: 18px; } }

/* Logo tiles for the make and the tool */
.vp-tile-search { margin-bottom: 8px; }
.vp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.vp-tile span { overflow-wrap: anywhere; min-width: 0; }
.vp-tile { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; background: #2e3035; color: var(--fg); font: inherit; font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; }
.vp-tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.vp-tile img { height: 30px; width: auto; max-width: 62px; object-fit: contain; filter: invert(1) brightness(.95); }
/* Tool logos are in colour on white, so they sit on white tiles. */
.vp-tile.light { background: #fff; border-color: #fff; color: #1b1c1f; }
.vp-tile.light:hover { background: #f1f1f2; border-color: #f1f1f2; }
.vp-tile.light img { height: 34px; max-width: 78px; filter: none; }
.vp-tile.light[aria-pressed="true"] { background: #fff; border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.vp-tile.plain { font-size: 14px; font-weight: 600; }
.vp-tile[aria-pressed="true"] { border-color: var(--red); background: rgba(227, 20, 31, .14); box-shadow: inset 0 0 0 1px var(--red); }
.vp-more { justify-self: start; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.vp-label [data-other] { margin-top: 8px; font-weight: 400; }
.vp-label [data-other][hidden], .vp-more[hidden], [data-vars][hidden] { display: none; }
[data-vars] { margin-top: 10px; font-weight: 400; }

/* Order summary and key-value lists */
.vp-sum { display: grid; gap: 8px; font-size: 14px; }
.vp-sum div { display: flex; justify-content: space-between; gap: 12px; }
.vp-sum span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-sum .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.vp-kv { display: grid; gap: 9px; font-size: 14px; }
.vp-kv div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.vp-kv span:first-child { color: var(--muted); }
.vp-kv span:last-child { overflow-wrap: anywhere; white-space: pre-line; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Money */
.vp-big { font: 700 44px/1.05 "Barlow Condensed", Barlow, sans-serif; font-variant-numeric: tabular-nums; }
.vp-topup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.vp-other { grid-column: 1 / -1; display: flex; gap: 8px; }
.vp-other input { min-width: 0; }
.vp-topup .vp-error { grid-column: 1 / -1; }
.vp-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vp-line:first-of-type { border-top: 0; }
.vp-line .amt { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.vp-line .amt.in { color: var(--ok); }
.vp-line .amt small { display: block; font-weight: 400; color: var(--muted); }

/* A job's progress */
.vp-track { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.vp-track li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding-bottom: 14px; color: var(--muted); font-size: 14px; }
.vp-track li:last-child { padding-bottom: 0; }
.vp-track i { grid-row: span 2; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); }
.vp-track li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 2px; background: var(--line-2); }
.vp-track li.done, .vp-track li.on { color: var(--fg); font-weight: 600; }
.vp-track li.done i { background: var(--ok); border-color: var(--ok); }
.vp-track li.done:not(:last-child)::before { background: var(--ok); }
.vp-track li.on i { background: var(--warn); border-color: var(--warn); }
.vp-track small { color: var(--muted); font-size: 12px; font-weight: 400; }
.vp-track small:empty { display: none; }

/* Two-step sign-in */
.vp-qr { width: 190px; padding: 8px; border-radius: 10px; background: #fff; }
.vp-qr svg { display: block; width: 100%; height: auto; }
.vp-qr[hidden] { display: none; }
.vp-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 14px; padding: 12px 14px; border-radius: 10px; background: #26282c; font-size: 14px; }

/* Invoices */
.vp-inv { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px 80px 90px 170px; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vp-inv.th { padding-block: 0 8px; border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vp-inv .r { text-align: right; }
@container (max-width: 680px) {
  .vp-inv.th { display: none; }
  .vp-inv { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .vp-inv .m { display: none; }
  .vp-inv > div:last-child { grid-column: 1 / -1; margin-top: 6px; text-align: left; }
  .vp-inv > div:last-child .btn { width: 100%; }
}

/* A job: chat beside its details */
.vp-job { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.vp-job-side { display: grid; gap: 18px; }
.vp-job .vc-chat-log { height: calc(100vh - 300px); min-height: 360px; }
.vp-files { display: grid; gap: 6px; font-size: 14px; }
.vp-files a { overflow-wrap: anywhere; }
.vp-files small { display: block; font-size: 12px; }
.vp-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.vp-back:hover { color: var(--fg); }

/* Sign-in */
.vp-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.vp-auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 40px; background: #232428 center / cover no-repeat; overflow: hidden; }
.vp-auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 21, 24, .72), rgba(20, 21, 24, .35) 45%, rgba(20, 21, 24, .9)); }
.vp-auth-art > * { position: relative; }
.vp-auth-art img { width: 130px; height: auto; display: block; }
.vp-auth-art h1 { font: 700 46px/1.02 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.vp-auth-art p { margin-top: 10px; max-width: 44ch; font-size: 16px; color: #d9d2d4; }
.vp-auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; }
.vp-auth-box { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.vp-auth-box h2 { font: 700 30px/1.1 "Barlow Condensed", Barlow, sans-serif; }
.vp-auth-switch { display: flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.vp-auth-switch button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.vp-auth-switch button.on { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.vp-auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.vp-auth-foot a { color: inherit; }

/* Chat inside the portal: the shared chat, in the portal's greys */
.vc-chat { border-radius: var(--r); }
.vc-chat-msg { background: #484a51; }
.vc-chat-msg.mine { background: #7a2329; }
.vc-chat-msg.note { background: #5a4a23; border-color: #a38746; }
.vc-chat-send { background: #2e3035; }
.vc-chat-row textarea { background: #26282c; border-color: var(--line-2); }
.vc-chat-attach, .vc-chat-full { background: #404249; border-color: var(--line-2); }
.vc-chat-picked span { background: #484a51; }
.vc-chat-bar { background: var(--line); }
.vc-chat-file { background: rgba(0, 0, 0, .22); }

@media (max-width: 1080px) {
  .vp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-two-col, .vp-job { grid-template-columns: minmax(0, 1fr); }
  .vp-job-side { order: -1; }
  .vp-sticky { position: static; }
  .vp-first { order: -1; }
  .vp-job .vc-chat-log { height: 60vh; }
}
@media (max-width: 820px) {
  .vp-side { display: none; }
  .vp-main { margin-left: 0; padding-bottom: 76px; }
  .vp-top { padding: 10px 14px; }
  .vp-top h1 { font-size: 22px; }
  .vp-top-logo { display: block; }
  .vp-top-right .vp-dot { display: none; }
  .vp-content { padding: 14px 14px 30px; gap: 14px; }
  .vp-card { padding: 14px; }
  .vp-stats { gap: 10px; }
  .vp-stat { padding: 12px 14px; }
  .vp-stat strong { font-size: 26px; }
  .vp-tabs { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #232428; border-top: 1px solid var(--line); }
  .vp-tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 0; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
  .vp-tabs a.on { color: var(--fg); }
  .vp-tabs a.on svg { color: var(--red); }
  .vp-tabs a.send svg { color: #fff; width: 38px; height: 28px; padding: 5px 0; border-radius: 9px; background: linear-gradient(180deg, #f2333d, #d3101a); }
  .vp-tabs .vp-count { position: absolute; top: 0; left: 54%; margin: 0; padding: 0 5px; font-size: 10px; }
  .vp-search { max-width: none; }
  .vp-auth { grid-template-columns: minmax(0, 1fr); }
  .vp-auth-art { min-height: 200px; padding: 20px; }
  .vp-auth-art img { width: 90px; }
  .vp-auth-art h1 { font-size: 32px; }
  .vp-auth-art p { display: none; }
  .vp-auth-panel { justify-content: flex-start; padding: 24px 16px 30px; }
}
/* ---------- Log viewer (assets/js/logview.js) ---------- */
.vlv { display: grid; gap: 10px; min-width: 0; }
.vlv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.vlv-bar strong { color: var(--fg); font-size: 15px; overflow-wrap: anywhere; }
.vlv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.vlv-tools button, .vlv-list-head button, .vlv-btn { min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.vlv-tools label { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.vlv-tools input, .vlv-row input { accent-color: var(--c-orange); }
.vlv-plot { height: min(62vh, 460px); min-height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.vlv-plot canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.vlv-list-head { display: flex; gap: 8px; }
.vlv-list-head input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: #26282c; color: var(--fg); font: inherit; }
.vlv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 18px; max-height: 46vh; overflow: auto; }
.vlv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--c, var(--muted)); cursor: pointer; font-size: 14px; }
.vlv-row span:first-child { overflow-wrap: anywhere; }
.vlv-row span[data-v] { font-variant-numeric: tabular-nums; font-weight: 600; }
.vlv-row input { width: 22px; height: 22px; }
.vlv-row.time { color: var(--c-teal); cursor: default; }
.vlv-err { padding: 16px; color: var(--muted); }
.vlv-again { margin-top: 6px; }
.vlv-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .7); display: grid; padding: 12px; }
.vlv-modal-in { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow: auto; display: grid; align-content: start; gap: 10px; }
.vlv-modal-top { display: flex; justify-content: flex-end; gap: 8px; }
.vc-chat-log-file { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vc-chat-graph { min-height: 34px; padding: 6px 12px; border-radius: 9px; border: 1px solid rgba(255, 122, 69, .6); background: rgba(255, 122, 69, .15); color: #ffb08f; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) { .vlv-tools { margin-left: 0; } .vlv-plot { height: 52vh; } .vlv-modal { padding: 0; } .vlv-modal-in { border-radius: 0; } }.vp-dtcbox { margin: 8px 0 4px 30px; display: grid; gap: 8px; }
.vp-dtcbox[hidden] { display: none; }
.vp-dtc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-dtc { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(240, 86, 122, .16); border: 1px solid rgba(240, 86, 122, .5); color: #ffc7d4; font: 700 14px var(--mono); }
.vp-kv .vp-dtc { padding-right: 12px; }
.vp-dtc button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.vp-dtc-add { display: flex; gap: 8px; }
.vp-dtc-add input { flex: 1; min-width: 0; text-transform: uppercase; }
/* ---------- The light look (owner, 2026-11-04: "better UI and graphics, it looks very dated"; "those screenshots look much more modern")
   Light grey page, white cards with soft shadows, a dark sidebar, Poppins, pastel tiles with icon chips. Our red stays the brand
   colour; blue is the working accent. Everything above still sets the layout; this sets the look. */
:root {
  --bg: #eef0f6; --surface: #ffffff; --surface-2: #f5f6fb; --panel: #ffffff; --line: #e7e9f1; --line-2: #d6d9e4;
  --fg: #1d2033; --muted: #8b90a6; --red: #e3141f; --red-deep: #a50d15;
  --ok: #1aa772; --ok-bg: #e3f7ef; --warn: #c27c0e; --warn-bg: #fdf3e1; --info: #3d7bf2; --info-bg: #e7efff; --off: #7c8197; --off-bg: #eef0f5;
  --c-blue: #4f8cff; --c-teal: #2bbfae; --c-purple: #7c5cf6; --c-amber: #f5a524; --c-pink: #f0567a; --c-green: #1fbf7f; --c-orange: #ff7a45; --c-cyan: #2db7e8;
  --shadow: 0 1px 2px rgba(24, 28, 52, .05), 0 8px 24px rgba(24, 28, 52, .06); --r: 16px; --side: 256px;
}
body { background: var(--bg); color: var(--fg); font-family: Poppins, system-ui, sans-serif; font-size: 14.5px; }
::selection { background: #ffd9dc; }
svg.ic { stroke-width: 1.7; }

/* Buttons: flat, rounded, a soft glow on the main one */
.btn { min-height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 1px 2px rgba(24, 28, 52, .06); color: var(--fg); font-weight: 600; }
.btn:hover { border-color: #c3c7d6; background: #fafbfe; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { border-color: transparent; background: linear-gradient(135deg, #ff3b47, #e3141f); box-shadow: 0 6px 16px rgba(227, 20, 31, .28); color: #fff; }
.btn.primary:hover { background: linear-gradient(135deg, #ff4c57, #cf111b); }
.link:hover { text-decoration-color: var(--red); }

/* The shell: a dark sidebar, a light page */
.vp-side { background: #191b2a; border-right: 0; color: #e9eaf2; gap: 26px; padding: 22px 14px; }
.vp-brand span { color: #fff; font-family: Poppins, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.vp-nav a { color: #a5a9c0; font-weight: 500; padding: 9px 10px; }
.vp-nav a svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.vp-nav a:nth-child(8n+1) svg { color: #6f9dff; } .vp-nav a:nth-child(8n+2) svg { color: #3fd4c3; } .vp-nav a:nth-child(8n+3) svg { color: #ff8a5c; } .vp-nav a:nth-child(8n+4) svg { color: #3fd18f; }
.vp-nav a:nth-child(8n+5) svg { color: #ffbe4d; } .vp-nav a:nth-child(8n+6) svg { color: #a48bff; } .vp-nav a:nth-child(8n+7) svg { color: #57c9f2; } .vp-nav a:nth-child(8n+8) svg { color: #ff7d9c; }
.vp-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.vp-nav a.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: none; }
.vp-nav a.on svg { color: #fff; background: linear-gradient(135deg, #ff3b47, #e3141f); box-shadow: 0 4px 12px rgba(227, 20, 31, .4); }
.vp-count { background: #ff3b47; }
.vp-side-foot { border-top-color: rgba(255, 255, 255, .08); }
.vp-side-foot a { color: #a5a9c0; }
.vp-side-foot a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.vp-who strong { color: #fff; }
.vp-who .muted { color: #8d91a8; }
.vp-top { background: rgba(238, 240, 246, .86); border-bottom: 0; padding: 20px 32px 12px; }
.vp-top h1 { font: 700 26px/1.15 Poppins, sans-serif; letter-spacing: -.01em; }
.vp-content { padding: 12px 32px 48px; gap: 20px; }
.vp-dot { color: var(--muted); }
.vp-balance-chip { border: 0; background: linear-gradient(135deg, #7c5cf6, #5b3fd8); color: #fff; box-shadow: 0 6px 16px rgba(124, 92, 246, .3); }
.vp-balance-chip small { color: rgba(255, 255, 255, .8); }

/* Cards */
.vp-card { background: #fff; border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.vp-h { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg); }
.vp-banner { border: 0; box-shadow: var(--shadow); background: #fff; }
.vp-banner.warn { background: var(--warn-bg); }
.vp-banner.bad { background: #ffe8ea; }
.vp-banner.info { background: linear-gradient(135deg, #e7efff, #efe9ff); color: var(--fg); text-decoration: none; }
.vp-banner.info svg { color: var(--c-blue); vertical-align: -3px; }
.vp-error { border: 0; background: #ffe8ea; color: #a50d15; }

/* Figures: pastel tiles with an icon chip */
.vp-stats { gap: 18px; }
.vp-stat { position: relative; padding: 20px 22px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); gap: 6px; transition: transform .15s, box-shadow .15s; }
a.vp-stat:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24, 28, 52, .06), 0 14px 30px rgba(24, 28, 52, .1); }
.vp-stat span { font-size: 13.5px; color: var(--muted); }
.vp-stat strong { font: 700 30px/1.1 Poppins, sans-serif; letter-spacing: -.02em; }
.vp-stat .vp-stat-ic { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e7efff; color: var(--c-blue); }
.vp-stat .vp-stat-ic svg { width: 22px; height: 22px; }
.vp-stat:nth-child(1) { background: linear-gradient(135deg, #7c5cf6, #5b3fd8); color: #fff; } .vp-stat:nth-child(1) span { color: rgba(255, 255, 255, .85); } .vp-stat:nth-child(1) .vp-stat-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.vp-stat:nth-child(2) .vp-stat-ic { background: #e3f6f4; color: var(--c-teal); }
.vp-stat:nth-child(3) .vp-stat-ic { background: #e3f7ef; color: var(--c-green); }
.vp-stat:nth-child(4) .vp-stat-ic { background: #fdf1e1; color: var(--c-amber); }
.vp-stat.hot { background: #fff6e8; } .vp-stat.hot strong { color: #b86e00; }
.vp-stat.good strong { color: var(--ok); }

/* Status, chips, tables */
.vp-pill { padding: 4px 11px; font-weight: 600; }
.vp-tr { border-top: 1px solid var(--line); border-radius: 12px; }
a.vp-tr:hover { background: var(--surface-2); }
.vp-tr.th { color: var(--muted); font-weight: 600; }
.vp-chips button { border-color: var(--line-2); background: #fff; color: #5b6078; font-weight: 500; }
.vp-chips button.on { background: var(--c-blue); border-color: var(--c-blue); color: #fff; box-shadow: 0 4px 12px rgba(79, 140, 255, .3); }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea { border-color: var(--line-2); background: #fff; color: var(--fg); border-radius: 12px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(79, 140, 255, .22); border-color: var(--c-blue); }
.vp-pick label { border-color: var(--line-2); background: #fff; }
.vp-pick label:hover { border-color: #b9bed0; }
.vp-pick label:has(input:checked) { border-color: var(--red); background: #fff2f3; }
.vp-step i, .vp-progress li i { background: #fff; border-color: var(--line-2); color: var(--muted); }
.vp-progress li:not(:last-child)::after { background: var(--line-2); }
.vp-progress li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.vp-step-title, .vp-auth-box h2 { font-family: Poppins, sans-serif; letter-spacing: -.01em; }
.vp-legal, .vp-offroad { border-color: #f3d39a; }
.vp-drop { border-color: #c9cede; background: var(--surface-2); }
.vp-drop:hover, .vp-drop.over { border-color: var(--c-blue); background: #eef3ff; }
.vp-badge { background: #ffe8ea; color: #c4101a; }
.vp-tile { border-color: var(--line-2); background: #fff; color: var(--fg); }
.vp-tile:hover { border-color: #b9bed0; background: #fafbfe; }
.vp-tile img { filter: brightness(0) saturate(100%) invert(12%) sepia(14%) saturate(1200%) hue-rotate(196deg); }
.vp-tile.light img { filter: none; }
.vp-tile[aria-pressed="true"] { border-color: var(--red); background: #fff2f3; }
.vp-codes { background: var(--surface-2); }
.vp-big { font-family: Poppins, sans-serif; letter-spacing: -.02em; }
.vp-dtc { background: #ffe9ee; border-color: #ffc2d0; color: #c2234a; }
.vp-dtc button { background: rgba(194, 35, 74, .1); }

/* Sign-in: the photo stays dark, the form is light */
.vp-auth-art h1 { font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.vp-auth-switch { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.vp-auth-switch button.on { background: var(--c-blue); color: #fff; box-shadow: 0 4px 12px rgba(79, 140, 255, .3); }

/* Chat */
.vc-chat { background: #fff; border: 0; box-shadow: var(--shadow); }
.vc-chat-msg { background: var(--surface-2); color: var(--fg); }
.vc-chat-msg.mine { background: #ffe8ea; color: #4a0a0e; }
.vc-chat-msg.note { background: #fff6e2; border-color: #e4b55a; }
.vc-chat-send { background: var(--surface-2); border-top-color: var(--line); }
.vc-chat-row textarea { background: #fff; border-color: var(--line-2); color: var(--fg); }
.vc-chat-attach, .vc-chat-full { background: #fff; border-color: var(--line-2); color: var(--fg); }
.vc-chat-picked span { background: #fff; }
.vc-chat-bar { background: var(--line); }
.vc-chat-file { background: rgba(24, 28, 52, .05); }
.vc-chat-graph { background: #fff1ea; border-color: #ffc5ad; color: #c2410c; }

/* Log viewer */
.vlv-tools button, .vlv-list-head button, .vlv-btn { background: #fff; border-color: var(--line-2); color: var(--fg); }
.vlv-plot { border: 0; box-shadow: var(--shadow); }
.vlv-list-head input { background: #fff; border-color: var(--line-2); color: var(--fg); }
.vlv-modal { background: rgba(25, 27, 42, .55); backdrop-filter: blur(3px); }
.vlv-modal-in { background: var(--bg); border: 0; }

@media (max-width: 820px) {
  .vp-top { padding: 12px 14px; background: #191b2a; }
  .vp-top h1 { color: #fff; font-size: 20px; }
  .vp-content { padding: 14px 14px 30px; }
  .vp-card { padding: 16px; }
  .vp-stat { padding: 16px; } .vp-stat strong { font-size: 24px; } .vp-stat .vp-stat-ic { width: 34px; height: 34px; top: 14px; right: 14px; }
  .vp-tabs { background: #fff; border-top: 0; box-shadow: 0 -6px 20px rgba(24, 28, 52, .08); }
  .vp-tabs a { color: var(--muted); }
  .vp-tabs a.on { color: var(--fg); }
}.vp-stat span { padding-right: 50px; }
@media (max-width: 820px) { .vp-stat span { padding-right: 38px; font-size: 12.5px; } }
.vp-tile { background: var(--surface-2); border-color: var(--line); }
.vp-tile:hover { background: #fff; border-color: #b9bed0; box-shadow: var(--shadow); }
.vp-tile.light { border-color: var(--line); }
.vp-acting { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 32px; background: linear-gradient(90deg, #f5a524, #ff7a45); color: #2a1600; font-size: 14px; }
.vp-acting .btn { min-height: 36px; background: #191b2a; color: #fff; border-color: #191b2a; }
@media (max-width: 820px) { .vp-acting { padding: 8px 14px; } }
.vp-logo { display: inline-block; vertical-align: middle; object-fit: contain; margin-right: 8px; }
.vp-logo.make { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(12%) sepia(14%) saturate(1200%) hue-rotate(196deg); }
.vp-logo.tool { height: 22px; max-width: 64px; padding: 2px 4px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.vpi-bar-name .vp-logo { width: 18px; height: 18px; margin-right: 6px; }
.vpi-bar-name .vp-logo.tool { width: auto; max-width: 44px; height: 18px; }
.vp-broadcast { padding: 12px 32px; font-size: 15px; line-height: 1.4; background: #e7efff; color: #163a8a; border-bottom: 1px solid #cfdcfb; }
.vp-broadcast.warn { background: #fff1d6; color: #6b4300; border-bottom-color: #f3d79c; }
.vp-broadcast.bad { background: #ffe1e4; color: #8a0b13; border-bottom-color: #f8b9bf; }
.vp-broadcast a { color: inherit; font-weight: 700; }
.vp-auth-box .vp-broadcast { padding: 12px 14px; border-radius: 12px; border: 0; }
.vc-chat-closed { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff1d6; color: #6b4300; font-size: 14px; font-weight: 600; }
@media (max-width: 820px) { .vp-broadcast { padding: 10px 14px; font-size: 14px; } }.vp-auth-art { color: #fff; }
.vp-auth-art h1 { color: #fff; }
.vp-auth-art p { color: #e6e7ee; }
/* Phones: More opens the whole menu as a sheet from the bottom, in the sidebar's navy. */
.vp-more-tab { display: none; }
.vp-sheet[hidden] { display: none; }
@media (max-width: 820px) {
  .vp-more-tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
  .vp-more-tab.on { color: var(--fg); }
  .vp-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(25, 27, 42, .5); backdrop-filter: blur(2px); }
  .vp-sheet-in { width: 100%; max-height: 86vh; overflow: auto; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #191b2a; color: #e9eaf2; display: grid; gap: 12px; }
  .vp-sheet-head { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 17px; }
  .vp-sheet-head .btn { min-height: 36px; }
  .vp-sheet .vp-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .vp-sheet .vp-nav a { padding: 10px; background: rgba(255, 255, 255, .04); }
}/* The bottom tabs on phones: coloured icon squares like the menu, red for the screen you're on (owner, 2026-11-04). */
@media (max-width: 820px) {
  .vp-tabs { padding-top: 8px; }
  .vp-tabs a, .vp-more-tab { gap: 4px; font-weight: 600; }
  .vp-tabs a svg, .vp-more-tab svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; }
  .vp-tabs > :nth-child(1) svg { color: #3d7bf2; background: #e7efff; }
  .vp-tabs > :nth-child(2) svg { color: #1f9e90; background: #dcf6f3; }
  .vp-tabs > :nth-child(3) svg { color: #e2622f; background: #ffece3; }
  .vp-tabs > :nth-child(4) svg { color: #17955f; background: #e0f6ec; }
  .vp-tabs > :nth-child(5) svg { color: #6a4be0; background: #ede8ff; }
  .vp-tabs a.on svg, .vp-more-tab.on svg { color: #fff; background: linear-gradient(135deg, #ff3b47, #e3141f); box-shadow: 0 4px 12px rgba(227, 20, 31, .35); }
  .vp-tabs a.send svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #ff3b47, #e3141f); box-shadow: 0 4px 12px rgba(227, 20, 31, .3); }
  .vp-tabs a.on, .vp-more-tab.on { color: var(--fg); }
  .vp-tabs .vp-count { top: 2px; left: 58%; }
}/* The tab bar in the sidebar's navy, like the More menu (owner, 2026-11-04). */
@media (max-width: 820px) {
  .vp-tabs { background: #191b2a; box-shadow: 0 -6px 20px rgba(24, 28, 52, .25); }
  .vp-tabs a, .vp-more-tab { color: #a5a9c0; }
  .vp-tabs a.on, .vp-more-tab.on { color: #fff; }
  .vp-tabs > :nth-child(1) svg { color: #6f9dff; background: rgba(255, 255, 255, .07); }
  .vp-tabs > :nth-child(2) svg { color: #3fd4c3; background: rgba(255, 255, 255, .07); }
  .vp-tabs > :nth-child(3) svg { color: #ff8a5c; background: rgba(255, 255, 255, .07); }
  .vp-tabs > :nth-child(4) svg { color: #3fd18f; background: rgba(255, 255, 255, .07); }
  .vp-tabs > :nth-child(5) svg { color: #a48bff; background: rgba(255, 255, 255, .07); }
  .vp-tabs a.on svg, .vp-more-tab.on svg, .vp-tabs a.send svg { color: #fff; background: linear-gradient(135deg, #ff3b47, #e3141f); }
}