/* GENERATED by bvc-controls sync.sh, edit in ~/Desktop/Code/bvc-controls */
/* bvc-controls · web/web.css
   The online pieces of a hosted tool: the account pill and its menu, the
   cards they open (sign in, account, upgrade, feedback, the WebGPU, device
   and phone notices), and the viewer's bar. Load it after controls.css; it
   sets no palette of its own and reads the app's --cs-* tokens, and its card
   is the share dialog's card (master section 20). */

/* ───────────────────────── site header ───────────────────────── */
.cs-site-header {
  position: fixed; top: 18px; left: var(--cs-shell-inset, 12px); right: var(--cs-shell-inset, 12px);
  height: 44px; box-sizing: border-box; padding: 0 18px; z-index: 8000;
  display: flex; align-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 15, 20, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.cs-site-wordmark {
  font: 400 13px / 1 "Figtree", system-ui, sans-serif; letter-spacing: 0.5em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92); text-decoration: none; white-space: nowrap;
}
.cs-site-actions { margin-left: auto; margin-right: -14px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-site-actions .cs-account { position: relative; top: auto; right: auto; z-index: auto; }
.cs-site-actions .cs-account-pill { height: 34px; padding: 0 12px 0 8px; color: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.10); }
.cs-site-actions .cs-account-face { color: rgba(255, 255, 255, 0.6); }
.cs-site-actions .cs-account-pill:has(.cs-account-word[hidden]) { width: 34px; padding: 0; }
.cs-site-actions .cs-account-face.is-user { width: 26px; height: 26px; }
.cs-site-actions .cs-account-menu { top: calc(100% + 12px); }
html.cs-has-site-header { --cs-shell-top: 74px; }

/* Upgrade to Pro: left of the account pill in the bar, shown to an account
   without the app's Pro while it is on sale. Under 769px it floats at the
   top right of the stage, under the bar (an app with its own chrome there
   lowers it with --cs-upgrade-float-top). Its border and words take the
   app's Pro ramp (--cs-pro-stops, the accent unless the app sets one). */
.cs-upgrade-btn {
  display: inline-flex; align-items: center; flex-shrink: 0;
  height: 32px; padding: 0 16px; box-sizing: border-box; border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(rgba(10, 15, 20, 0.82), rgba(10, 15, 20, 0.82)) padding-box, linear-gradient(135deg, var(--cs-pro-stops)) border-box;
  font: 600 11px / 1 "Figtree", "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  box-shadow: 0 4px 20px -6px rgba(var(--cs-pro-glow-rgb), 0.45);
  transition: filter 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.cs-upgrade-btn[hidden] { display: none; }
.cs-upgrade-btn > span {
  background: linear-gradient(90deg, var(--cs-pro-stops));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cs-upgrade-btn:hover { filter: brightness(1.08); box-shadow: 0 6px 26px -6px rgba(var(--cs-pro-glow-rgb), 0.7); }
.cs-upgrade-btn:active { transform: scale(0.98); }
.cs-upgrade-btn:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.cs-upgrade-btn.is-floating {
  position: fixed; z-index: 7990;
  top: var(--cs-upgrade-float-top, calc(48px + env(safe-area-inset-top, 0px) + 20px));
  right: calc(12px + env(safe-area-inset-right, 0px));
}
body.cs-viewer .cs-upgrade-btn { display: none !important; }

@media (max-width: 768px) {
  .cs-site-header {
    top: 0; left: 0; right: 0; height: calc(48px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); border-radius: 0;
  }
  html.cs-has-site-header { --cs-shell-top: 60px; }
}
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .cs-site-header { padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .cs-site-wordmark { letter-spacing: 0.22em; overflow: hidden; text-overflow: clip; min-width: 0; }
  .cs-site-actions { gap: 6px; margin-right: 0; }
}
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .cs-site-header { background: rgba(10, 15, 20, 0.92); }
}

/* ───────────────────────── account pill ───────────────────────── */
/* Top right, level with the top of the shell column: clear of the rail on
   the left and of any chrome an app lowers the shell under. */
.cs-account {
  position: fixed;
  top: var(--cs-shell-top, 12px);
  right: var(--cs-shell-inset, 12px);
  z-index: 200;
  font: var(--cs-fs-row) / 1.45 var(--cs-font-ui);
  color: var(--cs-text);
}
.cs-account-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--cs-rail-btn, 44px); padding: 0 14px 0 10px;
  border-radius: var(--cs-r-pill); border: 1px solid var(--cs-line);
  background: var(--cs-glass);
  -webkit-backdrop-filter: var(--cs-blur); backdrop-filter: var(--cs-blur);
  box-shadow: var(--cs-glass-hi);
  color: var(--cs-text); font: 600 12px / 1 var(--cs-font-ui); letter-spacing: .02em;
  cursor: pointer;
  transition: border-color var(--cs-dur) var(--cs-ease), box-shadow var(--cs-dur) var(--cs-ease);
}
.cs-account-pill:hover, .cs-account-pill[aria-expanded="true"] {
  border-color: rgba(var(--cs-accent-rgb), 0.55);
  box-shadow: var(--cs-glass-hi), 0 0 14px rgba(var(--cs-accent-rgb), 0.22);
}
.cs-account-pill:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.cs-account-face {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  color: var(--cs-muted);
}
.cs-account-face svg { width: 22px; height: 22px; display: block; }
.cs-account-face.is-user {
  width: 28px; height: 28px;
  background: rgba(var(--cs-accent-rgb), 0.18); color: var(--cs-accent);
  font: 700 12px / 1 var(--cs-font-head);
}
.cs-account-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-account-word[hidden] { display: none; }
/* Signed in, the pill is the face alone, a round button like a rail button. */
.cs-account-pill:has(.cs-account-word[hidden]) { width: var(--cs-rail-btn, 44px); padding: 0; justify-content: center; }

.cs-account-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px; max-height: calc(100vh - var(--cs-shell-top, 12px) - 72px); overflow-y: auto;
  padding: 6px;
  border-radius: 14px; border: 1px solid var(--cs-line);
  background: var(--cs-bg-menu);
  box-shadow: var(--cs-shadow-panel);
}
.cs-account-menu[hidden] { display: none; }
.cs-account-who { padding: 10px 10px 12px; border-bottom: 1px solid var(--cs-line); margin-bottom: 4px; }
.cs-account-name { color: var(--cs-text-strong); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cs-account-plan { margin-top: 3px; color: var(--cs-muted); font-size: 11px; }
.cs-account-group { display: flex; flex-direction: column; padding: 4px 0; }
.cs-account-group + .cs-account-group { border-top: 1px solid var(--cs-line); }
.cs-account-item {
  display: block; width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 0; border-radius: 8px; background: none; text-align: left;
  color: var(--cs-text); font: var(--cs-fs-row) / 1.3 var(--cs-font-ui); text-decoration: none; cursor: pointer;
}
.cs-account-item:hover, .cs-account-item:focus-visible { background: var(--cs-bg-hover); color: var(--cs-text-strong); outline: none; }
.cs-account-legal { flex-direction: row; gap: 2px; }
.cs-account-legal .cs-account-item { width: auto; color: var(--cs-muted); font-size: 11px; }

/* ───────────────────────── the card ───────────────────────── */
.cs-web {
  position: fixed; inset: 0; z-index: 9200; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 7, 11, 0.62);
  color: var(--cs-text); font: var(--cs-fs-row) / 1.45 var(--cs-font-ui);
}
.cs-web *, .cs-web *::before, .cs-web *::after { box-sizing: border-box; }
.cs-web-card {
  width: min(440px, 100%); max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 28px 20px;
  border-radius: 22px; border: 1px solid var(--cs-line);
  background: var(--cs-glass);
  -webkit-backdrop-filter: var(--cs-blur); backdrop-filter: var(--cs-blur);
  box-shadow: var(--cs-glass-hi), var(--cs-shadow-panel);
}
.cs-web-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.cs-web-brand { font: 600 12px / 1.2 var(--cs-font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--cs-text); }
.cs-web-brand-rule { align-self: center; width: 1px; height: 18px; background: var(--cs-line); }
.cs-web-title { margin: 0; flex: 1 1 auto; font: 600 12px / 1.2 var(--cs-font-head); letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--cs-accent-rgb)); }
.cs-web-close { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--cs-muted); font: 12px / 1 var(--cs-font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cs-web-close:hover { color: var(--cs-text-strong); }
.cs-web-text { margin: 12px 0 0; color: var(--cs-text); font: 14px / 1.5 var(--cs-font-ui); }
.cs-web-text a { color: var(--cs-accent); }
.cs-web-note { margin: 8px 0 0; font-size: 11px; color: var(--cs-muted-2); }
.cs-web-details { margin: 12px 0 0; font: 11px / 1.45 var(--cs-font-mono); color: var(--cs-muted-2); word-break: break-word; }
.cs-web-input {
  display: block; width: 100%; height: 40px; margin-top: 10px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--cs-line); background: rgba(0, 0, 0, 0.28);
  color: var(--cs-text-strong); font: 13px / 1 var(--cs-font-ui); outline: none;
}
.cs-web-input::placeholder { color: var(--cs-muted-2); }
.cs-web-input:focus-visible { border-color: rgba(var(--cs-accent-rgb), 0.8); }
.cs-web-textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.cs-web-error { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(var(--cs-danger-rgb), 0.3); background: rgba(var(--cs-danger-rgb), 0.08); color: var(--cs-danger); font-size: 12px; }
.cs-web-error.is-ok { border-color: rgba(var(--cs-accent-rgb), 0.3); background: rgba(var(--cs-accent-rgb), 0.08); color: var(--cs-text); }
.cs-web-error[hidden] { display: none; }
.cs-web-actions { display: flex; gap: 10px; margin-top: 16px; }
.cs-web-actions .cs-btn { flex: 1 1 0; width: auto; height: 42px; padding: 0 18px; font-size: 13px; white-space: nowrap; }
.cs-web-google { width: 100%; height: 42px; margin-top: 16px; font-size: 13px; color: var(--cs-text-strong); }
.cs-web-google .cs-btn-icon svg { width: 18px; height: 18px; }
.cs-web-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; color: var(--cs-muted-2); font-size: 11px; }
.cs-web-or::before, .cs-web-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cs-line); }
.cs-web-tabs { display: flex; gap: 4px; margin-top: 8px; padding: 3px; border-radius: var(--cs-r-pill); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--cs-line); }
.cs-web-tab { flex: 1 1 0; height: 30px; border: 0; border-radius: var(--cs-r-pill); background: none; color: var(--cs-muted); font: 600 12px / 1 var(--cs-font-ui); cursor: pointer; }
.cs-web-tab.is-on { background: rgba(var(--cs-accent-rgb), 0.18); color: var(--cs-text-strong); }
.cs-web-link { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--cs-muted); font: 12px / 1 var(--cs-font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cs-web-link:hover { color: var(--cs-text-strong); }
.cs-web-link[hidden] { display: none; }
.cs-web-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 13px; }
.cs-web-facts dt { color: var(--cs-muted); }
.cs-web-facts dd { margin: 0; color: var(--cs-text-strong); word-break: break-word; }
@media (max-width: 520px) {
  .cs-web-card { padding: 18px 16px 16px; }
  .cs-web-actions { flex-direction: column; }
  .cs-web-actions .cs-btn { flex: 0 0 auto; width: 100%; }
}

/* ───────────────────────── a short word in the corner ───────────────────────── */
.cs-web-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 9300; transform: translateX(-50%);
  max-width: min(480px, calc(100vw - 32px)); padding: 10px 16px;
  border-radius: 12px; border: 1px solid var(--cs-line); background: var(--cs-bg-menu);
  box-shadow: var(--cs-shadow-panel); color: var(--cs-text); font: 13px / 1.4 var(--cs-font-ui);
}

/* ───────────────────────── viewer ───────────────────────── */
/* A shared link opens the picture alone: no shell, no pill, no menus. */
body.cs-viewer .cs-shell,
body.cs-viewer .cs-account,
body.cs-viewer .cs-site-header,
body.cs-viewer .cs-quickstart,
body.cs-viewer .cs-splash { display: none !important; }
.cs-viewer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 14px 18px; pointer-events: none;
  font: var(--cs-fs-row) / 1.45 var(--cs-font-ui);
}
.cs-viewer-mark { pointer-events: auto; color: #fff; opacity: .7; font: 600 11px / 1.2 var(--cs-font-head); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.cs-viewer-mark:hover { opacity: 1; }
/* Centred in the middle of the window's bottom third (operator 2026-11-14). */
.cs-viewer-actions {
  position: fixed; left: 50%; top: 83.333vh; top: 83.333dvh; transform: translate(-50%, -50%);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px); pointer-events: auto;
}
.cs-viewer-actions .cs-btn { height: 36px; padding: 0 16px; font-size: 12px; font-weight: 600; background: var(--cs-glass); -webkit-backdrop-filter: var(--cs-blur); backdrop-filter: var(--cs-blur); text-decoration: none; }
.cs-viewer-actions .cs-btn.primary { flex: 0 0 auto; background: var(--cs-accent); color: #fff; }

/* The viewer's "What's <APP>?" card (viewer-about.js), on the kit's modal. */
.cs-about .cs-web-card { width: min(460px, 100%); }
.cs-about-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 14px 0 0; border-radius: 12px; border: 1px solid var(--cs-line); }
.cs-about-title { margin: 16px 0 0; font: 600 20px / 1.25 var(--cs-font-head); color: var(--cs-text-strong); text-wrap: balance; }
.cs-about-lead { margin: 8px 0 0; color: var(--cs-text); font: 14px / 1.5 var(--cs-font-ui); }
.cs-about-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.cs-about-list h3 { margin: 0; font: 600 13px / 1.3 var(--cs-font-ui); color: var(--cs-text-strong); }
.cs-about-list p { margin: 2px 0 0; color: var(--cs-muted); font: 13px / 1.45 var(--cs-font-ui); }
.cs-about-plans { margin: 16px 0 0; color: var(--cs-text); font: 600 13px / 1.4 var(--cs-font-ui); }
.cs-about .cs-web-actions .cs-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--cs-text-strong); }
.cs-about .cs-web-actions .cs-btn.primary { color: #fff; }

/* ───────────────────────── phone ───────────────────────── */
.cs-web-phone .cs-web-card { width: min(380px, 100%); }
