/*
 * VidLab API platform: design tokens and the shared pieces every page uses (api-platform/CONTRACT.md).
 * Premium black, the old agent app's look (owner 2026-11-03): a near-black page, flat quiet panels, hairline borders,
 * generous radius, pill buttons, readable type (15px body, light grey secondary text, nothing greyed that is meant to be
 * read), no gradients, glass or blur, a pure-white primary button, Google Sans Flex headings, Geist body, Geist Mono for numbers, ids and code. The accent
 * is white, and so is every selection (owner 2026-11-03: a white outline, never orange; orange is only the front page's
 * brand words). Green marks success and Save, red marks an error, nothing else is coloured.
 * Page modules add their own stylesheet; they do not redefine these.
 */
:root {
  --vla-page: #050505;
  --vla-panel: #0e0e0e;
  --vla-panel-2: #141414;
  --vla-field: #090909;
  --vla-hover: #171717;
  --vla-hover-2: #1f1f1f;
  --vla-line: rgba(255, 255, 255, .07);
  --vla-line-2: rgba(255, 255, 255, .12);
  --vla-edge: inset 0 1px 0 rgba(255, 255, 255, .05);
  /* Flat panels (AGENTS.md: no gradients). The name stays so every page that layers it keeps working. */
  --vla-sheen: none;

  --vla-ink: #fafafa;
  --vla-ink-2: #b9b9b9;
  --vla-ink-3: #8d8d8d;

  /* The accent is white. The names stay so every page keeps working; none of them is a colour any more. */
  --vla-accent: #ffffff;
  --vla-accent-2: #ffffff;
  --vla-accent-grad: #ffffff;
  --vla-ok: #34d399;
  --vla-warn: #d4d4d4;
  --vla-us-tint: rgba(255, 255, 255, .06);
  --vla-us-solid: #141414;
  --vla-bad: #f87171;

  --vla-font-display: "Google Sans Flex", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vla-font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vla-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --vla-r-sm: 12px;
  --vla-r: 16px;
  --vla-r-lg: 22px;
  --vla-r-pill: 999px;

  --vla-top-h: 60px;
  --vla-side-w: 272px;
  --vla-content: 1120px;
  --vla-ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html,
body { margin: 0; background: var(--vla-page); color: var(--vla-ink); }
body.vla { font: 400 15px/1.55 var(--vla-font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
img,
svg,
video { display: block; max-width: 100%; }
::selection { background: rgba(255, 255, 255, .22); }

/* Owner rule: a hand cursor on everything pressable. */
a[href],
button:not(:disabled),
[role="button"],
[role="tab"],
label[for],
select,
summary { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- type ---------- */
.vla-h1 { margin: 0; font: 500 32px/1.15 var(--vla-font-display); letter-spacing: -0.02em; }
.vla-h2 { margin: 0; font: 500 20px/1.3 var(--vla-font-display); letter-spacing: -0.01em; }
.vla-sub { margin: 4px 0 0; color: var(--vla-ink-2); }
.vla-k { font: 500 12px/1 var(--vla-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--vla-ink-3); }
.vla-mono { font-family: var(--vla-mono); letter-spacing: -0.01em; }
.vla-muted { color: var(--vla-ink-2); }
.vla-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons ---------- */
.vla-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--vla-r-pill);
  border: 1px solid var(--vla-line-2);
  background: var(--vla-panel-2);
  box-shadow: var(--vla-edge);
  color: var(--vla-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.vla-btn:hover { background: var(--vla-hover-2); }
.vla-btn--primary { background: #fff; border-color: #fff; box-shadow: none; color: #050505; }
.vla-btn--primary:hover { background: #ececec; border-color: #ececec; }
.vla-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--vla-ink-2); }
.vla-btn--ghost:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vla-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.vla-btn:disabled { opacity: .45; cursor: default; }
.vla-btn--primary:disabled { opacity: .72; }

/* ---------- surfaces ---------- */
.vla-card { background: var(--vla-sheen), var(--vla-panel); border: 1px solid var(--vla-line); border-radius: var(--vla-r-lg); box-shadow: var(--vla-edge); }
.vla-card--pad { padding: 24px 28px; }
.vla-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--vla-line-2);
  background: rgba(255, 255, 255, .03);
  font: 500 11px/1 var(--vla-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vla-ink-2);
  white-space: nowrap;
}
.vla-chip--ok { color: var(--vla-ok); border-color: rgba(52, 211, 153, .35); }
.vla-chip--bad { color: var(--vla-bad); border-color: rgba(248, 113, 113, .35); }
.vla-chip--warn { color: var(--vla-ink); border-color: rgba(255, 255, 255, .3); }
.vla-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vla-ok); flex: none; }

/* ---------- fields ---------- */
.vla-input,
.vla-select,
.vla-textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--vla-r-sm);
  border: 1px solid var(--vla-line-2);
  background: var(--vla-field);
  color: var(--vla-ink);
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.vla-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.vla-input:focus,
.vla-select:focus,
.vla-textarea:focus { border-color: rgba(255, 255, 255, .5); }
.vla-label { display: block; margin: 0 0 6px; font-weight: 500; color: var(--vla-ink); }
.vla-hint { margin: 6px 0 0; font-size: 13px; color: var(--vla-ink-3); }

/* ---------- table ---------- */
.vla-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vla-table th {
  padding: 13px 22px;
  text-align: left;
  font: 500 11.5px/1 var(--vla-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vla-ink-2);
  border-bottom: 1px solid var(--vla-line);
}
.vla-table td { padding: 15px 22px; border-bottom: 1px solid var(--vla-line); vertical-align: middle; }
.vla-table tr:last-child td { border-bottom: 0; }

/* ---------- tabs (segmented) ---------- */
.vla-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--vla-r-pill); border: 1px solid var(--vla-line); background: var(--vla-field); }
.vla-tab { height: 32px; padding: 0 14px; border: 0; border-radius: var(--vla-r-pill); background: transparent; color: var(--vla-ink-2); font-weight: 500; }
.vla-tab:hover { color: var(--vla-ink); }
.vla-tab.is-on { background: var(--vla-hover-2); color: var(--vla-ink); }

/* ---------- code ---------- */
.vla-code {
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border-radius: var(--vla-r);
  border: 1px solid var(--vla-line);
  background: #080808;
  font: 400 12.5px/1.65 var(--vla-mono);
  color: #e5e5e5;
  white-space: pre;
}

/* ---------- shared pieces added by the frame (any page may use them) ---------- */
.vla-maker { flex: none; width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }
.vla-maker--16 { width: 16px; height: 16px; border-radius: 4px; }
.vla-maker--20 { width: 20px; height: 20px; }
.vla-maker--24 { width: 24px; height: 24px; border-radius: 6px; }
.vla-maker--28 { width: 28px; height: 28px; border-radius: 7px; }
/* A maker we hold no mark for: the neutral model glyph (shell.js, never a letter). */
.vla-maker--generic { display: inline-grid; place-items: center; color: var(--vla-ink-2); }
.vla-maker--generic svg { display: block; width: 100%; height: 100%; }
.vla-err { color: var(--vla-bad); }
.vla-link { color: var(--vla-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.vla-link:hover { text-decoration-color: #fff; }

/* Dialog (ctx.dialog). */
.vla-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--vla-line-2); border-radius: 26px; background: var(--vla-sheen), var(--vla-panel); box-shadow: var(--vla-edge), 0 40px 100px rgba(0, 0, 0, .7); color: var(--vla-ink); overflow: auto; }
.vla-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.vla-dialog__box { padding: 28px; }
.vla-dialog__box > .vla-sub { margin-bottom: 18px; }
.vla-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.vla-dialog--wide { width: min(560px, calc(100vw - 32px)); }
.vla-money { position: relative; }
.vla-money > span:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vla-ink-3); }
.vla-money > .vla-input { padding-left: 28px; }
.vla-money__cr { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--vla-ink-2); pointer-events: none; }

/* ---------- the frame (shell.js) ---------- */
html.vla-locked,
html.vla-locked body { overflow: hidden; }
/* The app's own pages only: the public site's pages (html.vla-site-public, page.mjs publicSiteHtml) keep the front
   page's scrollbar, so the page is exactly as wide as the front page and its nav does not move by a gutter's width. */
html:not(.vla-site-public) { scrollbar-gutter: stable; }
/* Scrollbars that sit in the black UI: a thin dark thumb that lightens on hover, no track (the OS's grey bar stood out,
   most of all with "always show scroll bars" on). scrollbar-color is inherited, so every scrolling box gets it; Safari reads
   the ::-webkit-scrollbar rules. A box that hides its scrollbar keeps doing so (its own rule is more specific). */
html:not(.vla-site-public) { scrollbar-color: #262626 transparent; }
html:not(.vla-site-public),
html:not(.vla-site-public) * { scrollbar-width: thin; }
html:not(.vla-site-public)::-webkit-scrollbar,
html:not(.vla-site-public) *::-webkit-scrollbar { width: 10px; height: 10px; }
html:not(.vla-site-public)::-webkit-scrollbar-track,
html:not(.vla-site-public) *::-webkit-scrollbar-track,
html:not(.vla-site-public) *::-webkit-scrollbar-corner { background: transparent; }
html:not(.vla-site-public)::-webkit-scrollbar-thumb,
html:not(.vla-site-public) *::-webkit-scrollbar-thumb { background: #262626; border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
html:not(.vla-site-public)::-webkit-scrollbar-thumb:hover,
html:not(.vla-site-public) *::-webkit-scrollbar-thumb:hover { background-color: #3a3a3a; }
.vla-top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--vla-top-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: var(--vla-page);
  border-bottom: 1px solid var(--vla-line);
}
.vla-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font: 600 16px/1 var(--vla-font-display); letter-spacing: -0.01em; }
.vla-brand img { width: 22px; height: 22px; }
/* The nav sits against the right edge (next to the balance) on every page, with or without the side menu, so it never moves between pages. */
.vla-topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.vla-topnav > a,
.vla-mm__btn,
.vla-dd__btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: var(--vla-r-pill); background: transparent; color: var(--vla-ink-2); font-weight: 500; white-space: nowrap; }
.vla-topnav > a:hover,
.vla-mm__btn:hover,
.vla-dd__btn:hover,
.vla-mm.is-open .vla-mm__btn,
.vla-dd__btn[aria-expanded="true"],
.vla-topnav > .is-on,
.vla-mm__btn.is-on,
.vla-dd__btn.is-on { background: var(--vla-hover); color: var(--vla-ink); }
.vla-chev { flex: none; opacity: .7; transition: transform 160ms var(--vla-ease); }
[aria-expanded="true"] > .vla-chev { transform: rotate(180deg); }
.vla-top__end { margin-left: 14px; display: flex; align-items: center; gap: 8px; }
.vla-balance { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--vla-r-pill); border: 1px solid var(--vla-line-2); background: rgba(255, 255, 255, .02); font: 500 13px/1 var(--vla-mono); white-space: nowrap; }
.vla-balance:hover { background: var(--vla-hover); }
.vla-balance__u { color: var(--vla-ink-3); }
.vla-avatar { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--vla-line-2); background: var(--vla-panel-2); color: var(--vla-ink); font: 600 13px/1 var(--vla-font); }
button.vla-avatar:hover,
.vla-avatar[aria-expanded="true"] { background: var(--vla-hover-2); }
.vla-avatar--sm { width: 30px; height: 30px; font-size: 12px; }
/* The member's picture over the initial (shell.js avatarFace; the initial shows when there is none or it fails to load). */
.vla-avatar { position: relative; overflow: hidden; }
.vla-avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; }

/* Small dropdown menus (Resources, Support, the account menu). */
.vla-dd { position: relative; }
.vla-dd__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 200px; padding: 6px; border-radius: var(--vla-r); border: 1px solid var(--vla-line-2); background: var(--vla-panel); box-shadow: var(--vla-edge), 0 24px 60px rgba(0, 0, 0, .7); }
.vla-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.vla-dd__menu--end { left: auto; right: 0; }
.vla-dd__menu a,
.vla-dd__menu button { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: var(--vla-r-sm); background: transparent; color: var(--vla-ink); font-size: 14.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.vla-dd__menu a:hover,
.vla-dd__menu button:hover,
.vla-dd__menu a:focus-visible,
.vla-dd__menu button:focus-visible,
.vla-dd__menu a.is-on { background: var(--vla-hover); color: var(--vla-ink); }

/* The Models mega menu. */
.vla-mm__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 55; padding: 14px 20px 22px; border-bottom: 1px solid var(--vla-line); background: rgba(7, 7, 7, .98); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.vla-mm__inner { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 14px; max-width: 1100px; margin: 0 auto; }
.vla-mm__groups { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--vla-r); border: 1px solid var(--vla-line); background: var(--vla-page); }
.vla-mm__group { height: 36px; padding: 0 12px; border: 0; border-radius: var(--vla-r-sm); background: transparent; color: var(--vla-ink-2); font-weight: 500; text-align: left; }
.vla-mm__group:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vla-mm__group[aria-selected="true"] { background: #fff; color: #050505; }
.vla-mm__body { min-width: 0; padding: 12px 14px 14px; border-radius: var(--vla-r); border: 1px solid var(--vla-line); background: var(--vla-page); }
.vla-mm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vla-mm__all { font-size: 13px; font-weight: 500; color: var(--vla-ink-2); }
.vla-mm__all:hover { color: var(--vla-ink); }
.vla-mm__all::after { content: " \2192"; }
.vla-mm__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 120px; }
.vla-mm__note { grid-column: 1 / -1; margin: 0; padding: 24px 0; color: var(--vla-ink-3); }
.vla-tile { display: flex; flex-direction: column; min-width: 0; border-radius: var(--vla-r); border: 1px solid var(--vla-line); background: var(--vla-panel); overflow: hidden; transition: border-color 150ms ease, background-color 150ms ease; }
.vla-tile:hover,
.vla-tile:focus-visible { border-color: var(--vla-line-2); background: var(--vla-hover); }
.vla-tile__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--vla-panel-2); overflow: hidden; }
.vla-tile__media > img:not(.vla-maker) { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vla-tile__kind { position: absolute; top: 8px; right: 8px; padding: 4px 6px; border-radius: 6px; background: rgba(5, 5, 5, .8); font: 500 10px/1 var(--vla-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vla-ink); }
.vla-tile__name { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; font-weight: 500; }
.vla-tile__name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vla-scrim { position: fixed; inset: var(--vla-top-h) 0 0; z-index: 40; background: rgba(0, 0, 0, .55); }
.vla-shell.has-side ~ .vla-scrim { left: var(--vla-side-w); }

/* The shell: signed in with the side menu the page is two columns, the menu the full height on the left, the top bar
   and the page on the right. */
.vla-shell.has-side { display: grid; grid-template-columns: var(--vla-side-w) minmax(0, 1fr); }
.vla-col { min-width: 0; }
.vla-body { min-height: calc(100vh - var(--vla-top-h)); }
.vla-side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; padding: 18px 14px 14px; border-right: 1px solid var(--vla-line); background: var(--vla-page); }
.vla-side__head { display: flex; align-items: center; height: 32px; padding: 0 10px; margin-bottom: 20px; }
.vla-side__head .vla-brand { font-size: 18px; gap: 10px; }
.vla-side__head .vla-brand img { width: 24px; height: 24px; }
.vla-shell.has-side .vla-top .vla-brand { display: none; }
/* Dash | Models: two plain words, the side in use a white pill. */
.vla-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: var(--vla-r-pill); border: 1px solid var(--vla-line-2); background: var(--vla-field); }
.vla-seg__b { height: 36px; padding: 0; border: 0; border-radius: var(--vla-r-pill); background: transparent; color: var(--vla-ink-2); font: 500 14px/1 var(--vla-font); transition: background-color 150ms ease, color 150ms ease; }
.vla-seg__b:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vla-seg__b[aria-selected="true"] { background: #fff; color: #050505; }
[data-side-root][data-side="dash"] [data-pane="models"],
[data-side-root][data-side="models"] [data-pane="dash"] { display: none; }
.vla-side__nav { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 16px -4px 0; padding: 0 4px; }
.vla-side__nav,
.vla-side__help { display: flex; flex-direction: column; gap: 2px; }
.vla-side__help { flex: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--vla-line); }
.vla-side__group { margin: 20px 12px 8px; }
.vla-side__rule { height: 1px; margin: 12px 10px; background: var(--vla-line); }
/* A side link: its glyph and a readable label (15px, the text colour, never greyed). */
.vla-side a,
.vla-sheet__nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--vla-r-sm); color: var(--vla-ink); font-size: 15px; font-weight: 500; transition: background-color 120ms ease; }
.vla-side__g { flex: none; display: grid; place-items: center; width: 22px; color: var(--vla-ink-2); }
.vla-side__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vla-side__ext { margin-left: auto; color: var(--vla-ink-3); }
.vla-side a:hover,
.vla-sheet__nav a:hover { background: var(--vla-hover); }
.vla-side a:hover .vla-side__g,
.vla-sheet__nav a:hover .vla-side__g { color: var(--vla-ink); }
.vla-side a.is-on,
.vla-sheet__nav a.is-on { background: var(--vla-hover-2); color: #fff; }
.vla-side a.is-on .vla-side__g,
.vla-sheet__nav a.is-on .vla-side__g { color: #fff; }
.vla-side__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--vla-line); }
.vla-me { position: relative; flex: 1; min-width: 0; }
.vla-me__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--vla-line); border-radius: var(--vla-r); background: var(--vla-panel); text-align: left; transition: background-color 150ms ease; }
.vla-me__btn:hover,
.vla-me__btn[aria-expanded="true"] { background: var(--vla-hover); }
.vla-iconbtn { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--vla-line); border-radius: var(--vla-r); background: transparent; color: var(--vla-ink-2); transition: background-color 150ms ease, color 150ms ease; }
.vla-iconbtn:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vla-dd__menu--up { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; }
.vla-dd__menu--up::before { top: auto; bottom: -10px; }
.vla-side__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vla-side__name { color: var(--vla-ink); font-size: 14.5px; font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vla-side__bal { font-size: 12.5px; line-height: 1.2; color: var(--vla-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vla-main { min-width: 0; padding: 44px 40px 96px; }
.vla-page { max-width: var(--vla-content); margin: 0 auto; }
.vla-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: var(--vla-r-pill); background: #fff; color: #050505; font-weight: 500; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.vla-empty { padding: 48px 24px; text-align: center; color: var(--vla-ink-3); }
.vla-nf { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 72px 24px; text-align: center; }
.vla-nf__code { margin: 0; font-size: 14px; color: var(--vla-ink-3); }
.vla-nf .vla-sub { margin: 0; }
.vla-nf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.vla-legal { margin: 14px 0 0; }

/* Phone menu. */
.vla-burger { display: none; position: relative; width: 38px; height: 38px; padding: 0; border: 1px solid var(--vla-line-2); border-radius: 50%; background: transparent; }
.vla-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: var(--vla-ink); transition: transform 180ms var(--vla-ease); }
.vla-burger span:first-child { top: 15px; }
.vla-burger span:last-child { top: 21px; }
.vla-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.vla-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.vla-sheet { position: fixed; inset: var(--vla-top-h) 0 0; z-index: 45; background: rgba(0, 0, 0, .6); }
.vla-sheet__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); overflow: auto; background: var(--vla-page); }
/* Scoped to the phone sheet: the desktop side menu's lists carry the same class and keep their own height. */
.vla-sheet .vla-sheet__nav a { height: 48px; font-size: 16px; }
.vla-sheetside { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-top: 8px; }
.vla-sheetside .vla-side__nav { flex: 0 0 auto; overflow: visible; margin: 12px 0 0; padding: 0; }
.vla-sheetside .vla-side__help { margin-top: 12px; }
.vla-sheetside .vla-side__foot { margin-top: auto; }
.vla-sheet__site { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--vla-line); }
/* The member's Site links: a compact two-column grid (the chip and sign-out stay on screen at 390x844). */
.vla-sheetside .vla-sheet__site { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.vla-sheet .vla-sheetside .vla-sheet__site a { height: 42px; gap: 10px; padding: 0 10px; font-size: 15px; }
.vla-sheet__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.vla-sheet__foot--cta > .vla-btn { flex: 1; height: 44px; }

@media (max-width: 1080px) {
  .vla-top__login { display: none; }
}
@media (max-width: 960px) {
  .vla-mm__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .vla-dialog__box { padding: 22px 20px; }
}
@media (max-width: 900px) {
  .vla-top { padding: 0 12px 0 16px; gap: 10px; }
  .vla-topnav,
  .vla-acct,
  .vla-scrim,
  .vla-top__end > .vla-btn { display: none; }
  .vla-top__end { margin-left: auto; }
  .vla-burger { display: inline-block; }
  .vla-balance { height: 32px; padding: 0 10px; font-size: 12px; }
  .vla-shell.has-side { display: block; }
  .vla-side { display: none; }
  .vla-shell.has-side .vla-top .vla-brand { display: inline-flex; }
  .vla-shell.has-side .vla-topnav { margin-left: 12px; }
  .vla-main { padding: 28px 16px 64px; }
}
@media (min-width: 901px) {
  .vla-sheet { display: none; }
}
/* A quiet loading ring for a panel whose rows are on their way (the page around it is already drawn). */
.vla-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14); border-top-color: rgba(255, 255, 255, .7); animation: vla-spin .8s linear infinite; vertical-align: middle; }
.vla-loading { display: flex; justify-content: center; align-items: center; padding: 44px 20px; }
@keyframes vla-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vla-chev,
  .vla-burger span { transition: none; }
  .vla-spinner { animation-duration: 2.4s; }
}

/* ---------- the Copy prompt pill (owner 2026-11-03: the site's one way in for an agent) ----------
   The front page's hero, /pricing and the app's Agent tools page draw the same button (.vlpr-cp); the front page loads
   this sheet for it. */
/* Copy-prompt pill (after Clerk's): agents' icons and "Copy prompt"; hovered or focused it opens to show the prompt */
.vlpr-cp { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; height: 56px; margin-top: 22px; padding: 0 6px 0 7px; border: 1px solid var(--vla-line-2); border-radius: 999px; background: #121212; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--vla-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s; }
.vlpr-cp__icons { flex: none; display: flex; }
.vlpr-cp__icons img { display: block; width: 32px; height: 32px; padding: 3px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: #1b1b1b; object-fit: contain; transition: margin .3s var(--vla-ease), opacity .2s, width .3s var(--vla-ease), padding .3s var(--vla-ease), border-width .3s; }
.vlpr-cp__icons img + img { margin-left: -9px; }
.vlpr-cp__text { flex: 0 1 auto; max-width: 0; overflow: hidden; white-space: nowrap; font: 13.5px/1 var(--vla-mono); color: var(--vla-ink-2); opacity: 0; text-overflow: ellipsis; transition: max-width .4s var(--vla-ease), opacity .25s; }
.vlpr-cp__go { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: #050505; font: 500 14.5px var(--vla-font); transition: padding .3s var(--vla-ease); }
.vlpr-cp__label { overflow: hidden; white-space: nowrap; max-width: 120px; transition: max-width .3s var(--vla-ease), opacity .2s; }
.vlpr-cp__ico, .vlpr-cp__ok { display: none; }
.vlpr-cp__ico svg, .vlpr-cp__ok svg { display: block; width: 17px; height: 17px; }
.vlpr-cp:hover .vlpr-cp__go, .vlpr-cp:focus-visible .vlpr-cp__go { background: #ececec; }
.vlpr-cp:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 3px; }
@media (hover: hover) {
  .vlpr-cp:hover, .vlpr-cp:focus-visible { border-color: rgba(255, 255, 255, .22); }
  .vlpr-cp:hover .vlpr-cp__icons img + img, .vlpr-cp:focus-visible .vlpr-cp__icons img + img { width: 0; margin-left: 0; padding: 0; border-width: 0; opacity: 0; }
  .vlpr-cp:hover .vlpr-cp__text, .vlpr-cp:focus-visible .vlpr-cp__text { max-width: 340px; opacity: 1; }
  .vlpr-cp:hover .vlpr-cp__go, .vlpr-cp:focus-visible .vlpr-cp__go { padding: 0; }
  .vlpr-cp:hover .vlpr-cp__label, .vlpr-cp:focus-visible .vlpr-cp__label { max-width: 0; opacity: 0; }
  .vlpr-cp:hover .vlpr-cp__ico, .vlpr-cp:focus-visible .vlpr-cp__ico { display: block; }
}
.vlpr-cp.is-done .vlpr-cp__ico, .vlpr-cp.is-done .vlpr-cp__label { display: none; }
.vlpr-cp.is-done .vlpr-cp__go { padding: 0; }
.vlpr-cp.is-done .vlpr-cp__ok { display: block; }
@media (prefers-reduced-motion: reduce) {
  .vlpr-cp *, .vlpr-cp { transition: none !important; }
}

/* ---------- our dropdown (api-platform/select.js, owner 2026-11-03: no native <select> popup anywhere) ----------
   The native select stays hidden in the page (it keeps the value); a button with the select's own classes takes its place
   and opens the listbox: dark, the chosen option white, the active one lit. */
.vls-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
button.vls__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; text-align: left; white-space: nowrap; background-image: none; cursor: pointer; }
.vls__v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vls__chev { flex: none; color: var(--vla-ink-2); transition: transform 160ms var(--vla-ease); }
.vls__btn[aria-expanded="true"] .vls__chev { transform: rotate(180deg); }
.vls__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, .5); }
.vls__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vls__btn:disabled { opacity: .5; cursor: default; }
/* A page's own chevron next to its select goes: the button draws one. */
.vlmd-sel:has(> .vls__btn)::after { content: none; }
.vls-pop { position: fixed; left: var(--vls-x, 0); top: var(--vls-y, 0); z-index: 1000; width: var(--vls-w, 220px); max-height: var(--vls-h, 320px); overflow: auto; overscroll-behavior: contain; padding: 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: #0e0e0e; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); color: #fafafa; font: 500 14px/1.3 var(--vla-font, "Geist", system-ui, sans-serif); outline: none; }
.vls-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 12px; border-radius: 10px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.vls-opt__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vls-opt.is-active { background: rgba(255, 255, 255, .08); }
/* The chosen option: white (owner 2026-11-03: selection is white, never orange). */
.vls-opt[aria-selected="true"] { background: #fff; color: #050505; }
.vls-opt[aria-selected="true"].is-active { box-shadow: inset 0 0 0 2px #050505, 0 0 0 1px #fff; }
.vls-opt[aria-disabled="true"] { opacity: .4; cursor: default; }
.vls__tick { flex: none; }
.vls-group { padding: 10px 12px 4px; font: 500 11px/1 var(--vla-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: #8d8d8d; }
@media (pointer: coarse) { .vls-opt { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .vls__chev { transition: none; } }
