@import url("statusbar.css");   /* the S21 FE status bar used by every phone (screens.js statusBar) */
/* Device concepts: a flat Galaxy S-series phone running One UI 8, and a laptop running KDE Plasma.
   Frame proportions follow the MIT Galaxy S25 SVG in pixelsign/html5-device-mockups;
   One UI look from Samsung's design guidelines and official screenshots (docs/research/samsung-ui.md).
   Inside a phone screen, 1 One UI dp = var(--u) (the screen is 384dp wide). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.vs-demo {
  /* the phone's OS theme follows the page (light page, light phone; dark page, dark phone) through color-scheme, and
     every app on it follows the phone: One UI dark is a near-black screen with lighter cards, not shadows */
  --vs-h: var(--glacier-h, 230); /* one glacier hue, shared with the page (css/site.css) */
  --vs-accent: light-dark(oklch(.58 .095 var(--vs-h)), oklch(.8 .065 var(--vs-h)));  /* glacier blue (the site accent); belongs to Vivi only */
  --vs-accent-deep: light-dark(oklch(.5 .095 var(--vs-h)), oklch(.52 .07 var(--vs-h))); /* Vivi's filled buttons: deep glacier, softer on dark */
  --vs-accent-text: light-dark(oklch(.5 .095 var(--vs-h)), oklch(.8 .065 var(--vs-h))); /* glacier text and text buttons */
  --vs-accent-ink: oklch(.98 .012 var(--vs-h)); /* text on deep glacier: tinted near-white, never #fff */
  --vs-danger: light-dark(oklch(.58 .2 25), oklch(.66 .13 25)); /* muted on dark (visual tip 16) */
  --vs-danger-ink: light-dark(oklch(.98 .015 25), oklch(.2 .03 25));
  --vs-shadow-c: light-dark(oklch(.35 .02 60 / .07), transparent); /* layered, tinted, gone on dark (depth from lighter cards) */
  --vs-shadow: 0 calc(1 * var(--u)) calc(1 * var(--u)) var(--vs-shadow-c), 0 calc(2 * var(--u)) calc(4 * var(--u)) var(--vs-shadow-c),
    0 calc(4 * var(--u)) calc(8 * var(--u)) var(--vs-shadow-c), 0 calc(8 * var(--u)) calc(16 * var(--u)) var(--vs-shadow-c), 0 calc(16 * var(--u)) calc(32 * var(--u)) var(--vs-shadow-c);
  --vs-ink: light-dark(oklch(.2 0 0), oklch(.96 0 0)); --vs-ink-2: light-dark(oklch(.52 .005 270), oklch(.74 .006 270));
  --vs-line: light-dark(oklch(.2 .01 270 / .1), oklch(1 0 0 / .12));
  --vs-bg: light-dark(oklch(.962 .004 286), oklch(.15 .004 286)); --vs-card: light-dark(oklch(1 0 0), oklch(.235 .005 286));
  --vs-tonal: light-dark(oklch(.93 .004 270), oklch(.31 .005 270)); --vs-tonal-hover: light-dark(oklch(.9 .006 270), oklch(.35 .006 270));
  --vs-field: light-dark(oklch(.955 .004 270), oklch(.29 .005 270));
  --vs-out: light-dark(oklch(.88 .025 235), oklch(.36 .05 245));    /* your own message bubbles */
  --vs-glass: light-dark(oklch(.99 0 0 / .86), oklch(.27 .005 270 / .86)); /* notifications over the wallpaper */
  --vs-ui: "Inter", "Roboto", ui-sans-serif, system-ui, sans-serif;
  container-type: inline-size;
  position: relative; isolation: isolate; margin: 0 auto; width: min(100%, 330px); color: var(--vs-ink);
  font: 400 14px/1.35 var(--vs-ui); text-align: left;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03";
}
.vs-demo *, .vs-demo *::before, .vs-demo *::after { box-sizing: border-box; }
.vs-demo :is(h3, h4, p) { margin: 0; }
.vs-demo :is(button, input, textarea) { font: inherit; color: inherit; }
.vs-demo button { cursor: pointer; }
.vs-demo :is(button, input, textarea):focus-visible { outline: 2px solid var(--vs-accent); outline-offset: 2px; }
.vs-demo button:disabled { opacity: .4; cursor: default; }
.vs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vs-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vs-i .f { fill: currentColor; stroke: none; }

/* ================= the phone ================= */
.vs-phone {
  position: relative; padding: 2.9cqi; border-radius: 10.4cqi;
  background: oklch(.13 .004 260);                                       /* black glass bezel */
  border: .5px solid oklch(.2 .01 260);
  box-shadow:
    inset 0 0 0 .28cqi oklch(.82 .02 255 / .55),                         /* polished edge */
    inset 0 0 0 1.05cqi oklch(.36 .035 258),                             /* armour aluminium frame */
    inset 0 0 0 1.35cqi oklch(.1 .005 260);
}
/* devices are objects in the scene: a soft contact shadow, no card */
.vs-demo::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -2.2cqi; height: 4.4cqi; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, light-dark(oklch(.17 .012 265 / .26), oklch(0 0 0 / .3)), light-dark(oklch(.17 .012 265 / .1), oklch(0 0 0 / .1)) 55%, transparent);
}
.vs-demo--laptop::before { left: 2%; right: 2%; bottom: -1.4cqi; height: 3cqi; }
/* side keys: volume and power on the right */
.vs-demo:has(> .vs-phone)::after {
  content: ""; position: absolute; right: -.55cqi; top: 21.7%; width: .8cqi; height: 15.2%; border-radius: .4cqi;
  background: linear-gradient(oklch(.36 .035 258) 0 51%, transparent 0 66%, oklch(.36 .035 258) 0);
}
/* centred punch-hole camera, 26/697 of the body width */
.vs-phone::before {
  content: ""; position: absolute; z-index: 5; left: 50%; top: 4.85cqi; width: 3.75cqi; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(circle at 42% 40%, oklch(.42 .05 250) 0 10%, oklch(.18 .03 255) 30%, oklch(.06 0 0) 70%);
  box-shadow: 0 0 0 .5cqi oklch(.04 0 0);
}
/* gesture navigation pill */
.vs-phone::after {
  content: ""; position: absolute; z-index: 6; left: 50%; bottom: 4.4cqi; width: 30cqi; height: 1.1cqi; translate: -50% 0;
  border-radius: 1cqi; background: light-dark(oklch(.15 0 0 / .78), oklch(1 0 0 / .85)); pointer-events: none;
}
.vs-phone:has(> .vs-screen[data-tone="dark"])::after { background: oklch(1 0 0 / .85); }
.vs-screen {
  --u: calc(100cqi / 384);
  container-type: inline-size; position: relative; display: flex; flex-direction: column;
  aspect-ratio: 1080 / 2340; border-radius: 7.8cqi; overflow: hidden; isolation: isolate;
  background: var(--vs-bg); font-size: calc(15 * var(--u));
}
.vs-screen[data-acting]::after {            /* Vivi is operating this screen: soft edge glow */
  content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 calc(2.5 * var(--u)) color-mix(in oklch, var(--vs-accent) 55%, transparent), inset 0 0 calc(26 * var(--u)) color-mix(in oklch, var(--vs-accent) 35%, transparent);
}

/* ---- status bar (One UI 8): time left, Wi-Fi, signal and pill battery right */
.vs-status {
  position: relative; z-index: 8; flex: none; display: flex; align-items: center; gap: calc(6 * var(--u));
  height: calc(36 * var(--u)); padding: calc(4 * var(--u)) calc(24 * var(--u)) 0 calc(26 * var(--u));
  font-size: calc(13.5 * var(--u)); font-weight: 500; letter-spacing: .01em; color: var(--vs-ink);
}
.vs-status > span:first-child { margin-right: auto; }  /* also styles simple status bars from day.js */
.vs-status-time { margin-right: 0 !important; }
.vs-status-icons { display: flex; gap: calc(5 * var(--u)); margin-right: auto; align-items: center; }
.vs-status-icons .vs-i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); stroke-width: 2.3; }
.vs-status-vivi { --orb-size: calc(11 * var(--u)); }
.vs-status-sys { display: flex; align-items: center; gap: calc(4 * var(--u)); }
.vs-status-sys .vs-i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.vs-wifi { stroke: none; }
.vs-batt {
  display: grid; place-items: center; min-width: calc(25 * var(--u)); height: calc(14 * var(--u)); padding: 0 calc(3 * var(--u));
  border-radius: calc(5 * var(--u)); background: currentColor; font-size: calc(10 * var(--u)); font-weight: 700; letter-spacing: 0;
}
.vs-batt::first-line { color: var(--vs-bg); }
.vs-screen[data-tone="dark"] .vs-status { color: #fff; }
.vs-status--lock .vs-status-time { visibility: hidden; }
.vs-status--lock .vs-batt::first-line { color: oklch(.3 .08 270); }

/* ---- app chrome: condensed One UI app bar */
.vs-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vs-bar { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)); font-size: calc(22 * var(--u)); }
.vs-bar > .vs-i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.vs-bar-title { flex: 1; font-size: calc(21 * var(--u)); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.vs-bar-title small { display: block; font-size: calc(12.5 * var(--u)); font-weight: 400; color: var(--vs-ink-2); letter-spacing: 0; }
.vs-card { background: var(--vs-card); border-radius: calc(26 * var(--u)); margin: 0 calc(12 * var(--u)); }

/* ---- Vivi mark: its orb (css/vivi-orb.css), sized by --s */
.vs-vivi { --s: calc(30 * var(--u)); --orb-size: var(--s); }
.vs-vivi--sm { --s: calc(20 * var(--u)); }
.vs-wave { display: inline-flex; align-items: center; gap: calc(2.5 * var(--u)); height: calc(18 * var(--u)); color: var(--vs-accent); flex: none; }
.vs-wave i { width: calc(2.5 * var(--u)); height: 30%; border-radius: 2px; background: currentColor; }
.vs-wave i:nth-child(2), .vs-wave i:nth-child(4) { height: 65%; }
.vs-wave i:nth-child(3) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .vs-demo:not([data-paused="true"]) .vs-wave i { animation: vs-wave 1.1s ease-in-out infinite alternate; }
  html:not([data-motion="off"]) .vs-demo .vs-wave i:nth-child(2n) { animation-delay: -.45s; }
  html:not([data-motion="off"]) .vs-demo .vs-wave i:nth-child(3) { animation-delay: -.8s; }
}
@keyframes vs-wave { to { scale: 1 .45; } }

/* ---- One UI buttons: full pills; filled = primary dark, tonal = grey */
.vs-btns { display: flex; gap: calc(10 * var(--u)); margin-top: calc(18 * var(--u)); }
.vs-btn {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  min-height: calc(46 * var(--u)); padding: 0 calc(18 * var(--u)); border: 0; border-radius: 999px;
  font-size: calc(15.5 * var(--u)) !important; font-weight: 600 !important; letter-spacing: -.005em;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.vs-btn { transition: background-color 150ms ease-out, scale 150ms ease-out; }
.vs-btn:active, .vs-agent-stop:active { scale: .97; }
.vs-btn--primary { background: var(--vs-accent-deep); color: var(--vs-accent-ink) !important; }
.vs-btn--primary:hover { background: color-mix(in oklch, var(--vs-accent-deep), black 8%); }
.vs-btn--tonal { background: var(--vs-tonal); color: var(--vs-ink); }
.vs-btn--tonal:hover { background: var(--vs-tonal-hover); }
.vs-btn--text { flex: 0 auto; background: none; color: var(--vs-accent-text); padding: 0 calc(12 * var(--u)); }
.vs-btn--danger { flex: none; background: var(--vs-danger); color: var(--vs-danger-ink) !important; }
.vs-btn--danger:hover { background: color-mix(in oklch, var(--vs-danger), black 10%); }
.vs-btn[data-action="send"] { touch-action: none; }
.vs-btn[data-action="send"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklch, var(--vs-accent-deep), black 25%); transform: scaleX(0); transform-origin: left; }
.vs-btn.is-holding::before { transform: scaleX(1); transition: transform 850ms linear; }

/* ---- bottom sheet and scrim (One UI floats sheets with a small margin) */
.vs-scrim { position: absolute; inset: 0; z-index: 9; background: oklch(0 0 0 / .32); }
.vs-sheet {
  position: absolute; z-index: 10; left: calc(8 * var(--u)); right: calc(8 * var(--u)); bottom: calc(30 * var(--u));
  padding: calc(20 * var(--u)) calc(22 * var(--u)) calc(20 * var(--u)); border-radius: calc(28 * var(--u));
  background: var(--vs-card); box-shadow: var(--vs-shadow);
}
.vs-sheet-head { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(14 * var(--u)); }
.vs-sheet-head b { font-weight: 600; }
.vs-sheet-head [data-invocation] { margin-left: auto; color: var(--vs-ink-2); font-size: calc(12.5 * var(--u)); }
.vs-sheet-title { margin-top: calc(16 * var(--u)) !important; font-size: calc(23 * var(--u)); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.vs-sheet-sub { margin-top: calc(6 * var(--u)) !important; color: var(--vs-ink-2); font-size: calc(14 * var(--u)); line-height: 1.4; text-wrap: pretty; }
.vs-field { display: block; margin-top: calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--vs-field); }
.vs-field:focus-within { box-shadow: inset 0 0 0 calc(1.5 * var(--u)) var(--vs-accent); }
.vs-field textarea {
  display: block; width: 100%; min-height: 1.3em; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden;
  field-sizing: content; font-size: calc(19 * var(--u)) !important; font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
}
.vs-demo .vs-field textarea:focus-visible { outline: none; }
.vs-say { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(14 * var(--u)) !important; font-size: calc(14 * var(--u)); color: var(--vs-ink); }

/* ---- One UI toast */
.vs-toast {
  position: absolute; z-index: 10; left: 50%; bottom: calc(72 * var(--u)); translate: -50% 0; width: max-content; max-width: calc(330 * var(--u));
  display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(11 * var(--u)) calc(18 * var(--u)) calc(11 * var(--u)) calc(11 * var(--u));
  border-radius: calc(26 * var(--u)); background: oklch(.27 .003 270 / .94); color: #fff; font-size: calc(14 * var(--u)); line-height: 1.3;
}

/* ================= Messages ================= */
.vs-msgs { background: var(--vs-bg); }
.vs-avatar { display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; flex: none; background: oklch(.78 .1 150); color: #fff; font-size: calc(16 * var(--u)); font-weight: 600; }
.vs-msgs .vs-bar { gap: calc(10 * var(--u)); }
.vs-msgs .vs-bar > .vs-i:nth-of-type(2) { margin-right: calc(6 * var(--u)); }
.vs-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: calc(6 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); }
.vs-day { align-self: center; margin-bottom: calc(6 * var(--u)) !important; font-size: calc(12 * var(--u)); color: var(--vs-ink-2); }
.vs-bubble { display: flex; align-items: flex-end; gap: calc(6 * var(--u)); max-width: 80%; }
.vs-bubble p { padding: calc(9 * var(--u)) calc(14 * var(--u)); border-radius: calc(20 * var(--u)); font-size: calc(15.5 * var(--u)); line-height: 1.35; }
.vs-bubble time { font-size: calc(10.5 * var(--u)); color: var(--vs-ink-2); white-space: nowrap; }
.vs-bubble--in p { background: var(--vs-card); }
.vs-bubble--out { align-self: flex-end; flex-direction: row-reverse; }
.vs-bubble--out p { background: var(--vs-out); color: var(--vs-ink); }
.vs-bubble--new p { box-shadow: inset 0 0 0 1px var(--vs-line); }
.vs-composer {
  display: flex; align-items: center; gap: calc(12 * var(--u)); margin: 0 calc(10 * var(--u)) calc(34 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: 999px; background: var(--vs-card); color: var(--vs-ink-2); font-size: calc(15 * var(--u));
}
.vs-composer span { flex: 1; }
.vs-composer .vs-i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }

/* ================= lock screen ================= */
.vs-screen[data-tone="dark"] { background: oklch(.25 .06 270); color: #fff; }
.vs-lock {
  position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center;
  padding: calc(44 * var(--u)) calc(12 * var(--u)) 0;
  background:
    radial-gradient(70% 45% at 85% 18%, oklch(.62 .16 300 / .75), transparent 70%),
    radial-gradient(80% 50% at 10% 70%, oklch(.55 .17 255 / .8), transparent 70%),
    radial-gradient(60% 40% at 80% 95%, oklch(.7 .12 40 / .55), transparent 70%),
    linear-gradient(170deg, oklch(.3 .09 275), oklch(.2 .07 265));
}
.vs-lock-icon .vs-i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); opacity: .9; }
.vs-lock-clock {
  display: flex; flex-direction: column; align-items: center; margin-top: calc(10 * var(--u)) !important;
  font-size: calc(104 * var(--u)); font-weight: 800; line-height: .86; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  color: oklch(.97 .02 280); text-shadow: 0 calc(2 * var(--u)) calc(16 * var(--u)) oklch(.2 .08 270 / .35);
}
.vs-lock-date { margin-top: calc(12 * var(--u)) !important; font-size: calc(15 * var(--u)); font-weight: 500; }
.vs-notes { width: 100%; display: grid; gap: calc(6 * var(--u)); margin-top: calc(22 * var(--u)); }
.vs-note {
  padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(24 * var(--u));
  background: var(--vs-glass); color: var(--vs-ink); backdrop-filter: blur(14px) saturate(1.3);
}
.vs-note header { display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--vs-ink-2); }
.vs-note header > span:nth-child(2) { color: var(--vs-ink); font-weight: 500; }
.vs-note time::before { content: "· "; }
.vs-note-src { margin-left: auto; }
.vs-note h3 { margin-top: calc(7 * var(--u)) !important; font-size: calc(16 * var(--u)); font-weight: 700; letter-spacing: -.01em; }
.vs-note p { margin-top: calc(3 * var(--u)) !important; font-size: calc(14 * var(--u)); line-height: 1.35; }
.vs-note--ask .vs-field { margin-top: calc(9 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); background: var(--vs-field); }
.vs-note--ask .vs-field textarea { font-size: calc(17 * var(--u)) !important; }
.vs-note--ask .vs-say { margin-top: calc(10 * var(--u)) !important; font-size: calc(13 * var(--u)); }
.vs-note-actions { display: flex; justify-content: flex-end; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(10 * var(--u)); }
.vs-note-actions .vs-btn { min-height: calc(40 * var(--u)); flex: 0 auto; }
.vs-note-actions .vs-btn--primary { padding: 0 calc(20 * var(--u)); }
.vs-note--quiet { background: color-mix(in oklch, var(--vs-glass) 80%, transparent); padding-block: calc(12 * var(--u)); }
.vs-note--quiet p b { font-weight: 600; margin-right: calc(4 * var(--u)); }
.vs-app-dot { width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; flex: none; }
.vs-app-dot--msg { background: radial-gradient(circle at 50% 55%, #fff 0 32%, transparent 34%), oklch(.6 .17 255); }
.vs-lock-shortcuts { position: absolute; left: calc(28 * var(--u)); right: calc(28 * var(--u)); bottom: calc(40 * var(--u)); display: flex; justify-content: space-between; }
.vs-lock-shortcuts span { display: grid; place-items: center; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: 50%; background: oklch(1 0 0 / .14); }
.vs-lock-shortcuts .vs-i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.vs-screen[data-tone="dark"] .vs-status { position: relative; }
.vs-screen[data-tone="dark"] > .vs-status { z-index: 3; }

/* ================= bank sign-in ================= */
.vs-bank { background: var(--vs-card); }
.vs-bank-body { padding: calc(30 * var(--u)) calc(28 * var(--u)); text-align: center; }
.vs-bank-mark { display: inline-grid; place-items: center; width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(18 * var(--u)); background: oklch(.42 .09 165); color: #fff; }
.vs-bank-mark .vs-i { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.vs-bank-body h3 { margin-top: calc(18 * var(--u)) !important; font-size: calc(24 * var(--u)); font-weight: 700; letter-spacing: -.02em; }
.vs-bank-body > p { margin-top: calc(8 * var(--u)) !important; color: var(--vs-ink-2); font-size: calc(14.5 * var(--u)); }
.vs-otp { display: flex; justify-content: center; gap: calc(8 * var(--u)); margin-top: calc(26 * var(--u)); }
.vs-otp i { display: grid; place-items: center; width: calc(40 * var(--u)); height: calc(50 * var(--u)); border-radius: calc(12 * var(--u)); background: oklch(.955 .004 270); font: normal 700 calc(22 * var(--u))/1 var(--vs-ui); }
.vs-caret { width: calc(2 * var(--u)); height: calc(24 * var(--u)); background: oklch(.42 .09 165); }
.vs-bank-link { margin-top: calc(20 * var(--u)) !important; font-size: calc(14 * var(--u)); font-weight: 600; color: oklch(.42 .09 165) !important; }
.vs-code-input {
  display: block; width: 100%; margin-top: calc(8 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u));
  border: 0; border-radius: calc(18 * var(--u)); background: oklch(.955 .004 270);
  font: 600 calc(26 * var(--u)) ui-monospace, "JetBrains Mono", monospace !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; color: var(--vs-ink) !important;
}
.vs-code-input::placeholder { color: oklch(.75 .005 270); }
.vs-demo .vs-code-input:focus-visible { outline: none; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) var(--vs-accent); }
.vs-code-input:is(:user-invalid, [aria-invalid="true"]) { box-shadow: inset 0 0 0 calc(1.5 * var(--u)) oklch(.55 .2 25); }
.vs-code-help { margin-top: calc(12 * var(--u)) !important; font-size: calc(12.5 * var(--u)); color: var(--vs-ink-2); }
.vs-code .vs-btns { margin-top: calc(14 * var(--u)); }

/* ================= quick panel ================= */
.vs-wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 40% at 20% 30%, oklch(.88 .05 20), transparent 70%),
    radial-gradient(70% 50% at 90% 70%, oklch(.85 .06 260), transparent 70%),
    oklch(.93 .02 280);
}
.vs-qp { position: absolute; inset: 0; z-index: 1; padding: calc(40 * var(--u)) calc(12 * var(--u)) 0; background: oklch(.72 .01 285 / .8); backdrop-filter: blur(22px) saturate(1.2); color: #fff; }
.vs-demo--quiet .vs-status { color: #fff; }
.vs-demo--quiet .vs-status-time { visibility: hidden; }
.vs-demo--quiet .vs-batt::first-line { color: oklch(.55 .01 280); }
.vs-demo--quiet .vs-status { background: transparent; }
.vs-qp-head { display: flex; align-items: baseline; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)) calc(14 * var(--u)); font-size: calc(14 * var(--u)); }
.vs-qp-head b { font-size: calc(24 * var(--u)); font-weight: 700; letter-spacing: -.02em; }
.vs-qp-head span { font-weight: 600; margin-right: auto; }
.vs-qp-head .vs-i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); margin-left: calc(12 * var(--u)); align-self: center; }
.vs-qp-pills { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.vs-qp-pill { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)); border-radius: 999px; background: oklch(.86 .006 280 / .38); font-size: calc(14 * var(--u)); font-weight: 600; line-height: 1.15; }
.vs-qp-pill small { display: block; font-weight: 400; font-size: calc(12 * var(--u)); color: oklch(1 0 0 / .75); }
.vs-qp-pill > i { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: #fff; color: var(--vs-ink); }
.vs-qp-pill .vs-i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.vs-qp-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(14 * var(--u)) 0; justify-items: center; margin-top: calc(8 * var(--u)); padding: calc(16 * var(--u)) calc(6 * var(--u)); border-radius: calc(30 * var(--u)); background: oklch(.86 .006 280 / .38); }
.vs-qp-tog { display: grid; place-items: center; width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: 50%; background: oklch(.45 .008 280 / .45); color: #fff; }
.vs-qp-tog .vs-i { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.vs-qp-tog.is-on { background: #fff; color: var(--vs-ink); }
.vs-qp-tog.is-on:has(.vs-i) { }
.vs-qp-block .vs-qp-tog:nth-child(4).is-on { background: var(--vs-accent-deep); color: var(--vs-accent-ink); box-shadow: 0 0 0 calc(4 * var(--u)) color-mix(in oklch, var(--vs-accent) 20%, transparent); }
.vs-qp-slider { margin-top: calc(8 * var(--u)); padding: calc(8 * var(--u)); border-radius: 999px; background: oklch(.86 .006 280 / .38); }
.vs-qp-slider { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.vs-qp-slider > b { flex: 1; height: calc(36 * var(--u)); border-radius: 999px; background: oklch(.86 .006 280 / .45); overflow: hidden; }
.vs-qp-slider > i { display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: oklch(.45 .008 280 / .45); }
.vs-qp-slider > i .vs-i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.vs-qp-slider span { display: flex; align-items: center; width: 42%; color: var(--vs-ink); height: calc(36 * var(--u)); padding-left: calc(12 * var(--u)); border-radius: 999px; background: #fff; }
.vs-qp-slider .vs-i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.vs-note--light { margin-top: calc(12 * var(--u)); background: color-mix(in oklch, var(--vs-card) 94%, transparent); }
.vs-qp-media { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(30 * var(--u)); background: oklch(.86 .006 280 / .38); font-size: calc(13.5 * var(--u)); }
.vs-qp-media .vs-i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.vs-qp-media b { margin-left: auto; padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: oklch(.45 .008 280 / .45); font-weight: 600; font-size: calc(12.5 * var(--u)); }
.vs-note--light .vs-note-actions { margin-top: calc(6 * var(--u)); }

/* ================= grocery app (also used by day.js .vs-store) ================= */
.vs-shop { background: var(--vs-bg); }
.vs-cart { position: relative; display: grid; }
.vs-cart .vs-i { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.vs-cart b { position: absolute; top: calc(-6 * var(--u)); right: calc(-8 * var(--u)); min-width: calc(17 * var(--u)); height: calc(17 * var(--u)); display: grid; place-items: center; border-radius: 999px; background: oklch(.55 .15 150); color: #fff; font-size: calc(10.5 * var(--u)); font-weight: 700; }
.vs-shop-chip { display: flex; align-items: center; gap: calc(6 * var(--u)); margin: 0 calc(16 * var(--u)) calc(12 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--vs-ink-2); }
.vs-shop-chip .vs-i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: oklch(.5 .13 150); }
.vs-products { position: relative; padding: calc(4 * var(--u)) calc(16 * var(--u)); }
.vs-product { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) 0; border-bottom: 1px solid var(--vs-line); }
.vs-product > span:not(.vs-qty) { flex: 1; min-width: 0; }
.vs-product b { display: block; font-size: calc(15 * var(--u)); font-weight: 600; }
.vs-product small { display: block; color: var(--vs-ink-2); font-size: calc(12.5 * var(--u)); margin-top: calc(1 * var(--u)); }
.vs-product strong { font-size: calc(14 * var(--u)); font-weight: 600; }
.vs-qty { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; border: 1px solid oklch(.5 .13 150 / .5); color: oklch(.45 .13 150); }
.vs-qty .vs-i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); stroke-width: 2.2; }
.vs-qty.is-added { background: oklch(.5 .13 150); border-color: transparent; color: #fff; }
.vs-food { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); flex: none; border-radius: calc(12 * var(--u)); background: oklch(.95 .012 85); overflow: hidden; }
.vs-food i { display: block; position: relative; background: oklch(.73 .025 80); }
.vs-food--milk i { width: calc(17 * var(--u)); height: calc(29 * var(--u)); background: oklch(.99 .005 85); border: 1px solid var(--vs-line); clip-path: polygon(15% 0,85% 0,100% 20%,100% 100%,0 100%,0 20%); }
.vs-food--milk i::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 22%; background: oklch(.75 .08 80); }
.vs-food--bread i { width: calc(32 * var(--u)); height: calc(22 * var(--u)); border-radius: 50% 50% 30% 30%; background: oklch(.72 .08 70); }
.vs-food--bread i::after { content: ""; position: absolute; inset: 22% 30%; border-left: 2px solid oklch(.92 .04 80 / .8); border-right: 2px solid oklch(.92 .04 80 / .8); transform: skew(-20deg); }
.vs-food--eggs i { width: calc(12 * var(--u)); height: calc(17 * var(--u)); border-radius: 50% 50% 44% 44%; background: oklch(.95 .03 80); box-shadow: calc(10 * var(--u)) calc(2 * var(--u)) 0 oklch(.87 .04 75), calc(-9 * var(--u)) calc(3 * var(--u)) 0 oklch(.9 .035 75); }
.vs-more { display: flex; justify-content: space-between; padding: calc(12 * var(--u)) 0; font-size: calc(13.5 * var(--u)); color: var(--vs-ink-2); }
.vs-total { display: flex; justify-content: space-between; align-items: baseline; padding: calc(14 * var(--u)) 0; font-size: calc(13.5 * var(--u)); color: var(--vs-ink-2); }
.vs-total b { font-size: calc(24 * var(--u)); font-weight: 700; color: var(--vs-ink); letter-spacing: -.02em; }
.vs-sum { position: relative; margin-top: calc(10 * var(--u)); padding: 0 calc(16 * var(--u)); }
.vs-shop-cta { position: relative; margin: calc(14 * var(--u)) calc(12 * var(--u)) 0; }
.vs-shop-sec { margin: calc(18 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u)) !important; font-size: calc(16 * var(--u)); font-weight: 700; }
.vs-shop-recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); margin: 0 calc(12 * var(--u)); }
.vs-shop-recs > span { padding: calc(10 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--vs-card); font-size: calc(12.5 * var(--u)); font-weight: 600; line-height: 1.25; }
.vs-shop-recs small { display: block; font-weight: 400; color: var(--vs-ink-2); }
.vs-shop-recs .vs-food { width: 100%; height: calc(56 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.vs-shop-btn { display: grid; place-items: center; min-height: calc(50 * var(--u)); border-radius: 999px; background: oklch(.5 .13 150); color: #fff; font-size: calc(15.5 * var(--u)); font-weight: 600; }
.vs-shop-btn.is-pressed { background: oklch(.42 .12 150); scale: .98; }
.vs-shop-btn--pay { background: var(--vs-ink); outline: calc(1.5 * var(--u)) dashed oklch(.5 .13 150); outline-offset: calc(5 * var(--u)); }
.vs-yours { position: absolute; right: calc(8 * var(--u)); top: calc(-18 * var(--u)); font: 600 calc(10 * var(--u))/1 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: oklch(.45 .13 150); }
/* day.js's simple store screen (.vs-store) uses the same app styling */
.vs-store { padding: calc(10 * var(--u)) calc(12 * var(--u)) 0; }
.vs-store header { display: flex; align-items: baseline; justify-content: space-between; padding: 0 calc(4 * var(--u)) calc(10 * var(--u)); }
.vs-store header b { font-size: calc(19 * var(--u)); font-weight: 800; letter-spacing: -.03em; color: oklch(.45 .13 150); }
.vs-store header span { font-size: calc(12 * var(--u)); color: var(--vs-ink-2); }
.vs-store h3 { padding: 0 calc(4 * var(--u)); font-size: calc(24 * var(--u)); font-weight: 700; letter-spacing: -.02em; }
.vs-store > p { padding: 0 calc(4 * var(--u)); margin: calc(2 * var(--u)) 0 calc(10 * var(--u)) !important; color: var(--vs-ink-2); font-size: calc(13 * var(--u)); }
.vs-store .vs-products { background: var(--vs-card); border-radius: calc(26 * var(--u)); }
.vs-store .vs-total { padding-inline: calc(6 * var(--u)); }

/* ---- Vivi's tracking brackets over the element it acts on */
.vs-corners { position: absolute; inset: calc(-6 * var(--u)); z-index: 4; pointer-events: none; }
.vs-corners i { position: absolute; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border: 0 solid var(--vs-accent); }
.vs-corners i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; border-top-left-radius: calc(8 * var(--u)); }
.vs-corners i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; border-top-right-radius: calc(8 * var(--u)); }
.vs-corners i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: calc(8 * var(--u)); }
.vs-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: calc(8 * var(--u)); }
.vs-corners::before { content: attr(data-ref); position: absolute; right: 0; top: calc(-17 * var(--u)); padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: calc(5 * var(--u)); background: var(--vs-accent-deep); color: var(--vs-accent-ink); font: 600 calc(9.5 * var(--u))/1.2 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .vs-corners { animation: vs-lock-on .45s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes vs-lock-on { from { opacity: 0; scale: 1.08; } }

/* ---- Vivi's on-screen sheet while operating an app (holds assistant-ui AgentStatus, ComputerUse, MemoryChips, StoppedRun) */
.vs-agent {
  position: absolute; z-index: 10; left: calc(8 * var(--u)); right: calc(8 * var(--u)); bottom: calc(30 * var(--u));
  display: flex; flex-direction: column; gap: calc(12 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); border-radius: calc(28 * var(--u));
  box-shadow: var(--vs-shadow);
}
.vs-agent-top { display: flex; min-width: 0; }
.vs-agent-top .aui-as { max-width: 100%; }
.vs-agent-src { display: block; font-size: calc(12 * var(--u)); color: var(--vs-ink-2); }
.vs-agent > .aui-receipt { padding: calc(2 * var(--u)) calc(2 * var(--u)) 0; }

/* ================= laptop: KDE Plasma desktop ================= */
.vs-demo--laptop { width: min(100%, 860px); font-family: var(--vs-ui); }
.vs-laptop { container-type: inline-size; }
.vs-lid {
  position: relative; padding: 2.1cqi 2.1cqi 2.6cqi; border-radius: 2.4cqi 2.4cqi .6cqi .6cqi; margin: 0 5.5cqi;
  background: oklch(.15 .004 260); box-shadow: inset 0 0 0 .25cqi oklch(.55 .01 260 / .7), inset 0 0 0 .45cqi oklch(.12 0 0);
}
.vs-cam { position: absolute; left: 50%; top: .75cqi; width: .7cqi; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: oklch(.28 .02 250); }
.vs-base { position: relative; height: 2.2cqi; border-radius: .3cqi .3cqi 1.8cqi 1.8cqi / .3cqi .3cqi 1.6cqi 1.6cqi; background: linear-gradient(oklch(.86 .006 260), oklch(.68 .008 260) 70%, oklch(.5 .01 260)); }
.vs-base i { position: absolute; left: 50%; top: 0; width: 14cqi; height: .9cqi; translate: -50% 0; border-radius: 0 0 1cqi 1cqi; background: oklch(.66 .008 260); }
.vs-desktop {
  --l: calc(100cqi / 1080); --u: var(--l);
  container-type: inline-size; position: relative; aspect-ratio: 16 / 10; overflow: hidden; color: #fff; background: oklch(.16 .01 300);
}
/* the screen is a real recording (assets/laptop); Vivi's layer sits on top of it */
.vs-gn-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.vs-gn-layer { position: absolute; inset: 0; z-index: 2; }
.vs-gn-target { position: absolute; z-index: 3; pointer-events: none; }
.vs-gn-target .vs-corners::before { top: calc(-19 * var(--u)); }
.vs-gn-note {
  --u: var(--l);
  position: absolute; z-index: 5; right: calc(20 * var(--l)); bottom: calc(20 * var(--l)); width: calc(390 * var(--l));
  display: flex; flex-direction: column; gap: calc(10 * var(--l)); padding: calc(12 * var(--l)) calc(14 * var(--l)) calc(14 * var(--l));
  border-radius: calc(14 * var(--l)); background: oklch(.24 .005 270 / .97); font-size: calc(14 * var(--l));
  box-shadow: 0 0 0 1px oklch(1 0 0 / .08), 0 calc(10 * var(--l)) calc(30 * var(--l)) oklch(0 0 0 / .45);
}
.vs-gn-note-top { display: flex; align-items: center; gap: calc(10 * var(--l)); min-width: 0; }
.vs-gn-note-top > span { flex: 1; min-width: 0; display: flex; }
.vs-gn-note .aui-as { background: oklch(1 0 0 / .06); max-width: 100%; }
.vs-gn-note .vs-btn { min-height: calc(32 * var(--l)); padding: 0 calc(16 * var(--l)); border-radius: 999px; font-size: calc(13.5 * var(--l)) !important; }
.vs-gn-src { font-size: calc(12 * var(--l)); color: oklch(.74 .01 270); line-height: 1.35; }
.vs-gn-note .aui-tl-steps { padding-top: calc(6 * var(--l)); gap: calc(7 * var(--l)); }
.vs-gn-note .aui-stopped { margin-top: 0; }
.vs-gn-note .aui-tl-step:not(:nth-last-child(-n + 4 of .aui-tl-step)) { display: none; }
.vs-desktop { --u: var(--l); }
.vs-gn-note .aui-cu-step { padding-top: calc(9 * var(--l)); }
.vs-gn-replay { display: flex; justify-content: flex-end; }
.vs-gn-replay .vs-i { width: calc(14 * var(--l)); height: calc(14 * var(--l)); }
/* small laptops: crop the recording to the sheet (as if zoomed in) and dock Vivi's panel at the bottom */
@container (max-width: 560px) {
  .vs-desktop { --l: calc(100cqi / 520); aspect-ratio: 4 / 3.6; }
  .vs-gn-video { object-position: 30% 0; }
  .vs-gn-note { left: calc(10 * var(--l)); right: calc(10 * var(--l)); bottom: calc(10 * var(--l)); width: auto; padding: calc(10 * var(--l)) calc(12 * var(--l)); gap: calc(8 * var(--l)); }
  .vs-gn-note .aui-tl-step:not(:nth-last-child(-n + 2 of .aui-tl-step)) { display: none; }
  .vs-gn-note .aui-cu-step { display: none; }
}

@media (prefers-reduced-motion: reduce) { .vs-btn.is-holding::before { transition: none; } }
html[data-motion="off"] .vs-btn.is-holding::before { transition: none; }

/* ================= assistant-ui elements (ported, MIT; see js/ui/aui-elements.js and js/ui/CREDITS.md) =================
   Tailwind recipes from elements-surfaces (paper, field, ghost and ink buttons, shimmer) as tokens,
   sized in One UI dp (var(--u)) and tinted Vivi blue instead of Tailwind blue-500. */
.vs-demo {
  --aui-fg: var(--vs-ink); --aui-muted: var(--vs-ink-2); --aui-paper: var(--vs-card);
  --aui-border: light-dark(oklch(.2 .01 270 / .09), oklch(1 0 0 / .1)); --aui-field: light-dark(oklch(.2 .01 270 / .045), oklch(1 0 0 / .07));
  --aui-hover: light-dark(oklch(.2 .01 270 / .075), oklch(1 0 0 / .11));
  --aui-live: var(--vs-accent); --aui-ok: light-dark(oklch(.62 .15 158), oklch(.76 .14 158)); --aui-bad: light-dark(oklch(.58 .2 25), oklch(.7 .17 25));
  --aui-amber: light-dark(oklch(.62 .14 62), oklch(.8 .13 75));
  --aui-mono: var(--vs-ui); --aui-ease: cubic-bezier(.22, 1, .36, 1);
}
.aui-dark {
  --aui-fg: oklch(.97 0 0); --aui-muted: oklch(.76 .01 270); --aui-paper: oklch(.27 .006 270);
  --aui-border: oklch(1 0 0 / .1); --aui-field: oklch(1 0 0 / .07); --aui-hover: oklch(1 0 0 / .11);
  --aui-live: oklch(.8 .065 225); --aui-ok: oklch(.76 .14 158); --aui-amber: oklch(.8 .13 75);
  color: var(--aui-fg);
}
.aui-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aui-fill { fill: currentColor; }
.aui-paper { background: var(--aui-paper); border: 1px solid var(--aui-border); color: var(--aui-fg); }
.aui-field { background: var(--aui-field); }
.aui-mono { font: 500 calc(12.5 * var(--u))/1.25 var(--aui-mono); font-variant-numeric: tabular-nums; }
.aui-muted { color: var(--aui-muted); }
.aui-live { color: var(--aui-live); }
.aui-ok { color: var(--aui-ok); }
.aui-bad { color: var(--aui-bad); }
.aui-tnum { font-variant-numeric: tabular-nums; }
.vs-demo .aui-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(5 * var(--u));
  min-height: calc(38 * var(--u)); padding: 0 calc(14 * var(--u)); border: 0; border-radius: 999px; background: transparent;
  color: var(--aui-muted); font-size: calc(14.5 * var(--u)); font-weight: 600; white-space: nowrap;
  transition: background-color 150ms, color 150ms, scale 150ms cubic-bezier(.23, 1, .32, 1);
}
.vs-demo .aui-ghost:hover { background: var(--aui-hover); color: var(--aui-fg); }
.aui-ghost:active { scale: .97; }
.aui-ghost .aui-i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.aui-tile { display: grid; place-items: center; flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(14 * var(--u)); background: color-mix(in oklch, var(--aui-fg) 6%, transparent); color: var(--aui-muted); }
.aui-tile .aui-i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.aui-tile--amber { background: oklch(.72 .15 70 / .14); color: var(--aui-amber); }
.aui-tile--red { background: oklch(.58 .2 25 / .1); color: var(--aui-bad); }
.aui-receipt { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(14 * var(--u)); color: var(--aui-muted); line-height: 1.35; }
.aui-receipt .aui-i, .aui-receipt .vs-i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.aui-receipt > .vs-i { color: var(--aui-ok); }
.aui-receipt:focus-visible { outline: 2px solid var(--vs-accent); outline-offset: 3px; border-radius: 6px; }
.aui-code-chip { display: inline-flex; gap: calc(4 * var(--u)); padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: calc(6 * var(--u)); background: color-mix(in oklch, var(--aui-fg) 7%, transparent); color: color-mix(in oklch, var(--aui-fg) 72%, transparent); font: 500 calc(12 * var(--u))/1.3 var(--aui-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.aui-add { color: var(--aui-ok); } .aui-del { color: var(--aui-bad); }
.aui-code-chip { min-width: 0; max-width: 100%; }
.aui-mid { display: inline-flex; min-width: 0; max-width: 100%; }
.aui-mid-a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aui-mid-b { flex: none; white-space: nowrap; }

/* ---- approval-card */
.aui-approval { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.aui-ap-head { display: flex; align-items: center; gap: calc(12 * var(--u)); min-width: 0; }
.aui-ap-head > div { min-width: 0; }
.aui-ap-title { font-size: calc(17 * var(--u)); font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.aui-ap-sub { margin-top: calc(1 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--aui-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aui-ap-desc { font-size: calc(14 * var(--u)); line-height: 1.4; color: color-mix(in oklch, var(--aui-fg) 62%, transparent); text-wrap: pretty; }
.aui-ap-cmd { padding: calc(10 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); font: 500 calc(12.5 * var(--u))/1.4 var(--aui-mono); color: color-mix(in oklch, var(--aui-fg) 72%, transparent); }
.vs-demo .vs-field.aui-field { margin-top: 0; background: var(--aui-field); border-radius: calc(16 * var(--u)); }
.aui-ap-details { display: flex; flex-direction: column; gap: calc(7 * var(--u)); margin: 0; padding: calc(10 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); }
.aui-ap-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: calc(14 * var(--u)); align-items: baseline; font-size: calc(13.5 * var(--u)); }
.aui-ap-details dt { font: 500 calc(12.5 * var(--u))/1.25 var(--aui-mono); color: var(--aui-muted); }
.aui-ap-details dd { margin: 0; color: color-mix(in oklch, var(--aui-fg) 82%, transparent); overflow-wrap: anywhere; }
/* a list of figures (an invoice): values right-aligned in tabular figures, like a receipt (visual tip 17) */
.aui-ap-details:has(.aui-num) dd { text-align: end; font-variant-numeric: tabular-nums; }
.aui-ap-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: calc(6 * var(--u)); min-height: calc(40 * var(--u)); }
.aui-ap-actions .vs-btn { flex: 0 auto; min-height: calc(44 * var(--u)); padding: 0 calc(22 * var(--u)); }
.aui-ap-actions > [data-slot="approval-card-deny"] { margin-inline-end: auto; }
.vs-demo .aui-ap-ghost { min-height: calc(44 * var(--u)); padding: 0 calc(18 * var(--u)); font-size: calc(15.5 * var(--u)); }
.vs-sheet.aui-approval, .vs-sheet.aui-guard { padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)); }
.vs-sheet--receipt { gap: calc(8 * var(--u)); padding-bottom: calc(12 * var(--u)) !important; }
.vs-sheet--receipt .aui-ap-actions { justify-content: flex-start; padding-left: calc(52 * var(--u)); min-height: calc(30 * var(--u)); }
.aui-bare { background: none; border: 0; padding: 0; }
.vs-note .aui-approval { margin-top: calc(10 * var(--u)); gap: calc(10 * var(--u)); }
.vs-note .aui-approval .aui-tile { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: calc(12 * var(--u)); }
.vs-note .aui-ap-title { font-size: calc(16 * var(--u)); }
.vs-note .aui-ap-actions { min-height: calc(36 * var(--u)); }
.vs-note .aui-ap-actions .vs-btn, .vs-note .aui-ap-ghost { min-height: calc(40 * var(--u)); }
.vs-note .vs-say { margin-top: 0 !important; }
.vs-note-done { display: flex; align-items: center; gap: calc(8 * var(--u)); }

/* ---- agent-status */
.aui-as { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); min-width: 0; padding: calc(5 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)) calc(14 * var(--u)); border-radius: 999px; font-size: calc(13.5 * var(--u)); }
.aui-as:not(:has(.aui-as-trail, .aui-as-stop)) { padding-block: calc(9 * var(--u)); padding-inline-end: calc(16 * var(--u)); }
.aui-as-dot { width: calc(7 * var(--u)); height: calc(7 * var(--u)); flex: none; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--aui-fg) 35%, transparent); }
.aui-as-dot.is-working { border: 0; background: var(--aui-live); }
.aui-as-lead { width: calc(13 * var(--u)); height: calc(13 * var(--u)); stroke-width: 2.6; }
.aui-as-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.aui-as-trail { display: grid; place-items: center; flex: none; width: calc(26 * var(--u)); height: calc(26 * var(--u)); color: var(--aui-muted); }
.aui-as-trail .aui-i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.vs-demo .aui-as-stop { display: grid; place-items: center; flex: none; width: calc(34 * var(--u)); height: calc(34 * var(--u)); padding: 0; border: 0; border-radius: 50%; background: var(--aui-field); color: var(--aui-fg); transition: background-color 150ms ease-out, scale 150ms ease-out; }
.aui-as-stop:hover { background: var(--aui-hover); }
.aui-as-stop:active { scale: .97; }
.aui-as-stop .vs-i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }

/* ---- computer-use: cursor trail over the screen being driven, and the step row */
.aui-cu-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.vs-desktop .aui-cu-layer { z-index: 4; }
.aui-cu-dot { position: absolute; width: calc(8 * var(--u)); height: calc(8 * var(--u)); translate: -50% -50%; border-radius: 50%; background: var(--vs-accent); transition: opacity 300ms; }
.aui-cu-cursor { position: absolute; width: calc(20 * var(--u)); height: calc(20 * var(--u)); translate: -17% -19%; color: var(--vs-accent); filter: drop-shadow(0 1px 1.5px oklch(0 0 0 / .3)); }
.aui-cu-cursor .aui-i { width: 100%; height: 100%; fill: currentColor; stroke: var(--vs-accent-ink); stroke-width: 1.4; }
.aui-cu-step { display: flex; align-items: center; gap: calc(8 * var(--u)); padding-top: calc(11 * var(--u)); border-top: 1px solid var(--aui-border); }
.aui-cu-target { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14 * var(--u)); color: color-mix(in oklch, var(--aui-fg) 82%, transparent); }

/* ---- stopped-run */
.aui-stopped { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.aui-stopped-words { font-size: calc(15 * var(--u)); line-height: 1.55; color: color-mix(in oklch, var(--aui-fg) 82%, transparent); }
.aui-stopped-caret { display: inline-block; width: 2px; height: 1em; margin-inline-start: calc(4 * var(--u)); translate: 0 .15em; border-radius: 9px; background: color-mix(in oklch, var(--aui-fg) 22%, transparent); }
.aui-stopped-row { display: flex; align-items: center; gap: calc(4 * var(--u)); }
/* Discard stays quiet and away from Continue: it sits right after the reason, Continue alone at the far end */
.vs-demo .aui-stopped-row > .aui-stopped-go { margin-inline-start: auto; }
.aui-pill { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 999px; white-space: nowrap; }
.aui-pill .aui-i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
.vs-demo .aui-stopped-go { margin-inline-start: auto; color: color-mix(in oklch, var(--aui-fg) 75%, transparent); }

/* ---- memory-chips */
.aui-mem { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.aui-mem-head { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.aui-mem-head .aui-i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.aui-mem-chips { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.aui-chip { display: inline-flex; align-items: center; gap: calc(2 * var(--u)); padding: calc(3 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)) calc(11 * var(--u)); border-radius: 999px; font-size: calc(13 * var(--u)); }
.aui-chip--new { background: color-mix(in oklch, var(--vs-accent) 14%, transparent); color: var(--vs-accent-text); }
.vs-demo .aui-chip-x { width: calc(24 * var(--u)); min-height: calc(24 * var(--u)); padding: 0; }
.aui-chip-x .aui-i { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }

/* ---- guardrail-notice */
.aui-guard { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.aui-guard-head { display: flex; align-items: center; gap: calc(10 * var(--u)); min-width: 0; }
.aui-guard-head .aui-tile { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: calc(11 * var(--u)); }
.aui-guard-head .aui-tile .aui-i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.aui-guard-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(17 * var(--u)); font-weight: 650; letter-spacing: -.01em; }
.aui-guard-exp { font-size: calc(14 * var(--u)); line-height: 1.5; color: color-mix(in oklch, var(--aui-fg) 64%, transparent); text-wrap: pretty; }
.aui-guard-alts { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.aui-guard-alts > .aui-mono { margin-bottom: calc(2 * var(--u)); }
.vs-demo .aui-guard-alt { margin-inline: calc(-10 * var(--u)); padding: calc(10 * var(--u)); border: 0; border-radius: calc(14 * var(--u)); background: transparent; text-align: start; font-size: calc(15 * var(--u)); font-weight: 600; color: var(--aui-fg); transition: background-color 350ms var(--aui-ease); }
.vs-demo .aui-guard-alt:hover { background: var(--aui-field); }
.aui-guard .vs-code-form .vs-code-help { margin-top: 0 !important; }
.aui-guard .vs-code-form .vs-say { margin-top: 0 !important; margin-bottom: calc(8 * var(--u)); }
.aui-guard .vs-code-form .vs-btns { margin-top: calc(12 * var(--u)); }

/* ---- tool-timeline (Radix Collapsible → <details>) */
.aui-tl > summary { display: flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(3 * var(--u)) 0; list-style: none; cursor: pointer; color: var(--aui-muted); font-size: calc(14 * var(--u)); border-radius: 6px; transition: color 150ms ease-out, scale 150ms ease-out; transform-origin: left center; }
.aui-tl > summary:active { scale: .97; }
.aui-tl > summary::-webkit-details-marker { display: none; }
.aui-tl > summary:hover { color: var(--aui-fg); }
.aui-tl > summary:focus-visible { outline: 2px solid var(--aui-live); outline-offset: 2px; }
.aui-tl-chev { width: calc(14 * var(--u)); height: calc(14 * var(--u)); opacity: .6; }
.aui-tl[open] .aui-tl-chev { rotate: 90deg; }
.aui-tl-steps { display: flex; flex-direction: column; gap: calc(9 * var(--u)); padding: calc(9 * var(--u)) 0 0 calc(16 * var(--u)); }
.aui-tl-step { display: flex; align-items: center; gap: calc(8 * var(--u)); min-width: 0; color: var(--aui-muted); font-size: calc(13.5 * var(--u)); }
.aui-tl-step .aui-i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.aui-tl-stats { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); padding-top: calc(2 * var(--u)); }
.aui-tl::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.aui-tl:not([open])::details-content { block-size: 0; }
.aui-swap { display: inline-grid; }
.aui-swap-layer { grid-area: 1 / 1; white-space: nowrap; opacity: 0; filter: blur(4px); pointer-events: none; }
.aui-swap-layer.is-in { opacity: 1; filter: none; pointer-events: auto; }

/* ---- voice-conversation (compact: orb, caption and mute in a row, transcript below) */
.aui-vc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(4 * var(--u)) calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--aui-field); }
.aui-vc-orb { display: grid; place-items: center; width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
.aui-vc-orb i { grid-area: 1 / 1; border-radius: 50%; }
.aui-vc-o1 { width: calc(54 * var(--u)); height: calc(54 * var(--u)); background: color-mix(in oklch, var(--aui-fg) 5%, transparent); scale: .62; opacity: .5; transition: scale 200ms ease-out, opacity 200ms ease-out; }
.aui-vc-o2 { width: calc(38 * var(--u)); height: calc(38 * var(--u)); background: color-mix(in oklch, var(--aui-fg) 8%, transparent); scale: .7; transition: scale 150ms ease-out; }
.aui-vc-core { width: calc(22 * var(--u)); height: calc(22 * var(--u)); background: color-mix(in oklch, var(--aui-fg) 20%, transparent); scale: .85; transition: scale 150ms ease-out, background-color 150ms; }
.aui-vc[data-mode="listening"] .aui-vc-core { background: color-mix(in oklch, var(--aui-fg) 80%, transparent); }
.aui-vc[data-mode="speaking"] .aui-vc-core { background: var(--aui-live); }
.aui-vc[data-mode="speaking"] .aui-vc-o1 { background: color-mix(in oklch, var(--vs-accent) 12%, transparent); }
.aui-vc[data-mode="speaking"] .aui-vc-o2 { background: color-mix(in oklch, var(--vs-accent) 20%, transparent); }
.aui-vc[data-active] .aui-vc-o1 { scale: calc(.72 + var(--aui-level, .35) * .28); opacity: 1; }
.aui-vc[data-active] .aui-vc-o2 { scale: calc(.8 + var(--aui-level, .35) * .22); }
.aui-vc[data-active] .aui-vc-core { scale: calc(.9 + var(--aui-level, .35) * .2); }
.aui-vc-cap { display: flex; flex-direction: column; gap: calc(2 * var(--u)); min-width: 0; }
.aui-vc-caption { font-size: calc(15 * var(--u)); font-weight: 600; }
.vs-demo .aui-vc-mute { width: calc(40 * var(--u)); min-height: calc(40 * var(--u)); padding: 0; }
.aui-vc-mute .aui-i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.vs-demo .aui-vc-mute.is-on { background: var(--aui-hover); color: var(--aui-fg); }
.aui-vc-tx { grid-column: 1 / -1; display: flex; flex-direction: column; gap: calc(4 * var(--u)); margin-top: calc(4 * var(--u)); }
.aui-vc-turn { display: flex; gap: calc(8 * var(--u)); font-size: calc(13 * var(--u)); line-height: 1.45; }
.aui-vc-turn > .aui-mono { flex: none; width: calc(34 * var(--u)); padding-top: calc(2 * var(--u)); }
.aui-vc-turn > span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* ---- dot-matrix: 5×5 indicator; state changes cross-fade through the registered hi/lo bounds */
@property --aui-dm-hi { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --aui-dm-lo { syntax: "<number>"; inherits: false; initial-value: .15; }
@keyframes aui-dm-blink { 0%, 100% { opacity: var(--aui-dm-hi, 1); } 50% { opacity: var(--aui-dm-lo, .15); } }
.aui-dm { display: inline-block; flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--aui-live); }
.aui-dm svg { display: block; width: 100%; height: 100%; }
.aui-dm circle { transition: --aui-dm-hi 300ms, --aui-dm-lo 300ms, opacity 300ms; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.aui-tone-muted { color: var(--aui-muted); } .aui-tone-green { color: var(--aui-ok); } .aui-tone-red { color: var(--aui-bad); } .aui-tone-amber { color: var(--aui-amber); } .aui-tone-live { color: var(--aui-live); }

/* ---- motion (all of it off under reduced motion or the site's Pause motion) */
@keyframes aui-fade { from { opacity: 0; } }
@keyframes aui-fade-blur { from { opacity: 0; filter: blur(4px); } }
@keyframes aui-fade-up { from { opacity: 0; translate: 0 4px; } }
@keyframes aui-zoom { from { opacity: 0; scale: .97; } }
@keyframes aui-spin { to { rotate: 1turn; } }
@keyframes aui-pulse { 50% { opacity: .5; } }
@keyframes aui-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .vs-demo {
    .aui-in { animation: aui-fade 350ms var(--aui-ease) both; }
    .aui-in-blur { animation: aui-fade-blur 350ms var(--aui-ease) both; }
    .aui-tl-step:not(:has(~ .aui-tl-step)), .aui-vc-turn:last-child { animation: aui-fade-up 350ms var(--aui-ease) both; }
    .aui-chip--new { animation: aui-zoom 350ms var(--aui-ease) both; }
    .aui-spin { animation: aui-spin 1s linear infinite; }
    .aui-as-dot.is-working, .aui-vc[data-mode="connecting"] .aui-vc-core, .aui-vc[data-mode="thinking"] .aui-vc-core { animation: aui-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
    .aui-dm circle { animation-name: aui-dm-blink; }
    .aui-shimmer {
      color: transparent; background: linear-gradient(90deg, var(--aui-muted) 0 40%, var(--aui-fg) 50%, var(--aui-muted) 60% 100%) 0 0 / 250% 100%;
      -webkit-background-clip: text; background-clip: text; animation: aui-shimmer 2s linear infinite;
    }
    .aui-swap-layer { transition: opacity 350ms var(--aui-ease), filter 350ms var(--aui-ease); }
    .aui-tl-chev { transition: rotate 350ms var(--aui-ease); }
    .aui-tl::details-content { transition: block-size 350ms var(--aui-ease), content-visibility 350ms; transition-behavior: allow-discrete; }
  }
}
html[data-motion="off"] .vs-demo :is(.aui-cu-cursor, .aui-vc-orb i) { transition: none; }
@media (prefers-reduced-motion: reduce) { .vs-demo :is(.aui-cu-cursor, .aui-vc-orb i) { transition: none; } }
@media (forced-colors: active) { .aui-field, .aui-as, .aui-pill { border: 1px solid CanvasText; } }

