/* 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; }
}
