/*
 * The ZIK Agent app UI kit and the scene styles of /zik-agent. NOT site design: this is the
 * product's own interface, drawn as an illustration inside the page's app windows, scoped under
 * .zik-root. Copied verbatim from creative/zik-agent/app-ui/kit (tokens.css + zik-app.css) and from
 * the scene block of creative/web-pages/zik-agent/src/zik-agent.src.html. It lives in /public, like
 * the /anim scenes, because it carries the app's palette, not the site's tokens. To update: copy
 * the three sources again. The page's own styles are src/components/sections/ZikAgent/zik-agent.css.
 */
/*
 * ZIK Agent app tokens as plain CSS — DESIGN TOKENS v1.0.0, transcribed from
 * apps/web/tailwind.config.ts + apps/web/app/globals.css (desktop v2.31.0, 3 Nov 2026).
 * Everything the app's Tailwind utilities resolve to. Light + dark, type scale, radii, shadows,
 * motion, keyframes, scrollbars. Load this before zik-app.css. Read ../01-tokens.md for the why.
 *
 * SCOPED to `.zik-root` (not :root) so the kit can sit inside another page — the marketing site
 * has its own variables — without either side touching the other. Put `zik-root` on the window
 * element; add `dark` beside it for the app's default theme.
 */

.zik-root {
  /* brand anchors (theme-independent) */
  --zik-primary: #6831ff;
  --zik-primary-hover: #5a27e6;
  --zik-primary-soft: #a58bff;
  --zik-primary-tint: #f3f0ff;
  --zik-accent: #1bcfba;
  --zik-accent-bright: #21e2cc;
  --zik-accent-soft: #6fffe0;
  --zik-ink: #150d3f;

  /* light semantic */
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --surface-3: #ecedf0;
  --foreground: #150d3f;
  --muted-foreground: #4f5464;
  --subtle-foreground: #646979;
  --border: #e6e8ec;
  --border-strong: #d5d8df;
  --ring: #6831ff;
  --primary: #6831ff;
  --primary-foreground: #ffffff;
  --brand-tint: #f3f0ff;
  --accent: #1bcfba;
  --accent-foreground: #063b36;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #e5484d;
  --info: #3b82f6;
  --profit: #059669; /* emerald-600: the product table's profit column */

  /* type: next/font exposes Alexandria as --font-alexandria on the site; the demo loads the family by name */
  --font-sans: var(--font-alexandria, 'Alexandria'), 'Alexandria', 'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  /* radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* shadows */
  --shadow-xs: 0 1px 2px 0 rgba(21, 13, 63, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(21, 13, 63, 0.1);
  --shadow-md: 0 1px 6px 0 rgba(21, 13, 63, 0.06), 0 2px 16px 0 rgba(21, 13, 63, 0.1);
  --shadow-lg: 0 5px 40px 0 rgba(21, 13, 63, 0.16);
  --shadow-xl: 0 8px 50px 0 rgba(21, 13, 63, 0.2);
  --shadow-focus: 0 0 0 3px rgba(104, 49, 255, 0.35);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  --speak-ring: color-mix(in srgb, var(--primary) 55%, transparent);

  /* layout */
  --gutter: 8px;
  --w-nav: 248px;
  --w-nav-collapsed: 64px;
  --w-rail: 320px;
  --w-thread: 768px;
  --w-page: 1152px;

  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zik-root.dark {
  --background: #0b0a1a;
  --surface: #131022;
  --surface-2: #1a1730;
  --surface-3: #221e3d;
  --foreground: #eceaf6;
  --muted-foreground: #a6a2c0;
  --subtle-foreground: #8a85a8;
  --border: #262238;
  --border-strong: #332e4a;
  --ring: #8a6bff;
  --primary: #8a6bff;
  --primary-foreground: #0b0a1a;
  --brand-tint: #1e1940;
  --accent: #21e2cc;
  --accent-foreground: #04231f;
  --success: #3dd68c;
  --warning: #f0b232;
  --danger: #f2555a;
  --info: #5b9df9;
  --profit: #34d399; /* emerald-400 */
}

.zik-root,
.zik-root * { box-sizing: border-box; border-color: var(--border); }

/* ---- type scale (the app's text-* tokens) ---- */
.zik-root .t-display { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.zik-root .t-h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.zik-root .t-h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.zik-root .t-h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.zik-root .t-h4 { font-size: 18px; line-height: 26px; font-weight: 600; }
.zik-root .t-body-lg { font-size: 16px; line-height: 24px; }
.zik-root .t-body { font-size: 14px; line-height: 22px; }
.zik-root .t-body-sm { font-size: 13px; line-height: 20px; }
.zik-root .t-caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.zik-root .t-overline { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.zik-root .t-code { font-size: 13px; line-height: 20px; font-family: var(--font-mono); }

/* ---- keyframes (transform/opacity only, as in the app) ---- */
@keyframes zik-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zik-pop-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes zik-rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes zik-ds-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes zik-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes zik-speak { 0% { box-shadow: 0 0 0 0 var(--speak-ring); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes zik-pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes zik-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes zik-spin { to { transform: rotate(360deg); } }
@keyframes zik-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes zik-caret { 50% { opacity: 0; } }

.zik-root .a-fade-in { animation: zik-fade-in var(--duration-base) var(--ease-out) both; }
.zik-root .a-pop-in { animation: zik-pop-in var(--duration-base) var(--ease-out) both; }
.zik-root .a-rise-in { animation: zik-rise-in var(--duration-slow) var(--ease-out) both; }
.zik-root .a-ds-rise { animation: zik-ds-rise 0.28s ease both; }
.zik-root .a-shimmer { animation: zik-shimmer 1.8s linear infinite; }
.zik-root .a-speak { animation: zik-speak 1.6s var(--ease-out) infinite; }
.zik-root .a-pulse-dot { animation: zik-pulse-dot 1.4s ease-in-out infinite; }
.zik-root .a-indeterminate { animation: zik-indeterminate 1.3s ease-in-out infinite; }
.zik-root .a-spin { animation: zik-spin 1s linear infinite; }
.zik-root .a-ping { animation: zik-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

.zik-root .zik-skeleton {
  display: block;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: zik-shimmer 1.8s linear infinite;
}

/* ---- 2px brand scrollbars, everywhere inside the app ---- */
.zik-root ::-webkit-scrollbar { width: 2px; height: 2px; }
.zik-root ::-webkit-scrollbar-thumb { background-color: var(--zik-primary-soft); border-radius: 9999px; }
.zik-root ::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }
.zik-root ::-webkit-scrollbar-track, .zik-root ::-webkit-scrollbar-corner { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .zik-root *, .zik-root *::before, .zik-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * ZIK Agent app kit — the shell and the chat surface as plain CSS classes (`za-*`), every value
 * transcribed from the app's components (desktop v2.31.0, read 3 Nov 2026). Requires tokens.css.
 * Spec: ../02-shell.md, ../03-chat.md, ../01-tokens.md. Icons: inline SVG, 16px unless noted.
 *
 * Usage: <div class="zik-root za-window [dark]"> … </div>. The window is 1440×900 by default; set
 * width/height on .za-window to change it, or scale the whole thing with transform.
 */

/* ============================================================ window + columns */
.za-window {
  display: flex;
  gap: var(--gutter);
  width: 1440px;
  height: 900px;
  padding: var(--gutter);
  background: var(--background);
  color: var(--foreground);
  font: 400 14px/22px var(--font-sans);
  overflow: hidden;
}
.za-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.za-nav { width: var(--w-nav); flex: none; transition: width var(--duration-slow) var(--ease-out); }
.za-nav.is-collapsed { width: var(--w-nav-collapsed); }
.za-main { flex: 1 1 0; min-width: 0; }
.za-rail { width: var(--w-rail); flex: none; }

.za-svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.za-svg--14 { width: 14px; height: 14px; }
.za-svg--12 { width: 12px; height: 12px; }
.za-sep { height: 1px; width: 100%; background: var(--border); flex: none; }

/* ============================================================ left nav */
.za-nav__head { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.za-nav__row1 { display: flex; align-items: center; gap: 8px; }
.za-wordmark { display: flex; align-items: center; gap: 8px; }
.za-wordmark svg { width: 28px; height: 28px; flex: none; }
.za-wordmark__text { white-space: nowrap; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -0.025em; color: var(--foreground); }
.za-wordmark__text b { font-weight: 500; color: var(--primary); }
.za-customize {
  margin-left: auto; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: transparent; color: var(--subtle-foreground);
  transition: color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.za-customize:hover { background: var(--surface-2); color: var(--foreground); }
.za-customize.is-on { border-color: color-mix(in srgb, var(--primary) 30%, transparent); background: var(--brand-tint); color: var(--primary); }
.za-customize .za-svg { width: 14px; height: 14px; }

.za-project {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); color: var(--foreground); font-size: 13px; line-height: 20px;
}
.za-project:hover { background: var(--surface-3); }
.za-project span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-project .za-svg { width: 14px; height: 14px; color: var(--subtle-foreground); }

.za-nav__list { display: flex; flex-direction: column; gap: 2px; padding: 8px; list-style: none; margin: 0; min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.za-group { display: flex; align-items: center; gap: 6px; padding: 12px 10px 4px; }
.za-group span:first-child { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-group__count { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--subtle-foreground); }
.za-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md);
  font-size: 13px; line-height: 20px; font-weight: 500; color: var(--muted-foreground); text-decoration: none;
  transition: color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.za-row:hover { background: var(--surface-2); color: var(--foreground); }
.za-row.is-active { background: var(--brand-tint); color: var(--primary); }
.za-row__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-row__badge { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-row--add { border: 1px dashed var(--border); color: var(--subtle-foreground); }
.za-row--add:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); background: var(--brand-tint); color: var(--primary); }
.za-nav.is-collapsed .za-row { justify-content: center; padding-left: 0; padding-right: 0; }
.za-nav.is-collapsed .za-row__label, .za-nav.is-collapsed .za-row__badge, .za-nav.is-collapsed .za-group,
.za-nav.is-collapsed .za-wordmark__text, .za-nav.is-collapsed .za-customize { display: none; }

.za-refer { padding: 8px 8px 4px; }
.za-refer__btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: var(--radius-xl);
  background: var(--brand-tint); color: var(--foreground);
}
.za-refer__btn:hover { border-color: var(--primary); }
.za-refer__tile { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }
.za-refer__t { display: block; font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-refer__s { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-refer__btn .za-svg { width: 14px; height: 14px; color: var(--muted-foreground); margin-left: auto; }

.za-foot { padding: 8px; }
.za-foot__box { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px; border-radius: var(--radius-md); }
.za-foot__id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.za-foot__name { display: block; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-foot__mail { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); white-space: nowrap; overflow: hidden; }
.za-foot__ctl { display: flex; align-items: center; gap: 2px; }
.za-foot__ctl .za-spacer { flex: 1; }
.za-iconbtn {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted-foreground);
  transition: color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.za-iconbtn:hover { background: var(--surface-2); color: var(--foreground); }
.za-iconbtn--danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.za-credits { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px; border-radius: var(--radius-md); color: var(--muted-foreground); font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; }
.za-credits:hover { background: var(--surface-2); color: var(--foreground); }
.za-credits__bar { position: relative; width: 48px; height: 6px; margin-left: 2px; border-radius: 9999px; background: var(--border); overflow: hidden; }
.za-credits__bar i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 9999px; background: var(--primary); transition: width var(--duration-slower); }
.za-credits.is-low { color: var(--warning); } .za-credits.is-low .za-credits__bar i { background: var(--warning); }
.za-credits.is-empty { color: var(--danger); } .za-credits.is-empty .za-credits__bar i { background: var(--danger); }
.za-pill { display: inline-flex; align-items: center; height: 24px; flex: none; padding: 0 8px; border-radius: 9999px; font-size: 11px; line-height: 1; font-weight: 500; }
.za-pill--ok { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.za-pill--free { background: var(--surface-2); color: var(--muted-foreground); }
.za-pill--warn { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.za-pill--checking { background: var(--surface-2); color: var(--subtle-foreground); }

/* ============================================================ primitives */
.za-avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 600; }
.za-avatar--brand { background: var(--brand-tint); color: var(--primary); }
.za-avatar--accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.za-avatar--ink { background: var(--surface-3); color: var(--foreground); }
.za-avatar--28 { width: 28px; height: 28px; }
.za-portrait { display: block; flex: none; width: 32px; height: 32px; border-radius: 9999px; object-fit: cover; user-select: none; }
.za-portrait--16 { width: 16px; height: 16px; } .za-portrait--20 { width: 20px; height: 20px; } .za-portrait--24 { width: 24px; height: 24px; }
.za-portrait--56 { width: 56px; height: 56px; border-radius: var(--radius-xl); }
.za-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: var(--subtle-foreground); }
.za-dot--active { background: var(--accent); animation: zik-pulse-dot 1.4s ease-in-out infinite; }
.za-dot--waiting { background: var(--warning); animation: zik-pulse-dot 1.4s ease-in-out infinite; }
.za-dot--success { background: var(--success); } .za-dot--error { background: var(--danger); }

.za-badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; border: 1px solid transparent; border-radius: 9999px; padding: 2px 6px; font-size: 10px; line-height: 1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.za-badge--neutral { border-color: var(--border); background: var(--surface-2); color: var(--muted-foreground); }
.za-badge--brand { background: var(--brand-tint); color: var(--primary); }
.za-badge--accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.za-badge--success { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.za-badge--warning { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.za-badge--danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.za-badge--info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }

.za-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-md);
  font: 500 13px/20px var(--font-sans); color: var(--foreground); background: transparent; cursor: default;
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), scale var(--duration-fast) var(--ease-out);
}
.za-btn:active { scale: 0.97; }
.za-btn .za-svg { width: 16px; height: 16px; }
.za-btn--sm { height: 32px; padding: 0 12px; }
.za-btn--lg { height: 40px; padding: 0 20px; font-size: 14px; line-height: 22px; }
.za-btn--primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-xs); }
.za-btn--primary:hover { background: var(--zik-primary-hover); }
.za-btn--outline { border-color: var(--border-strong); background: var(--surface); }
.za-btn--outline:hover { background: var(--surface-2); }
.za-btn--ghost { color: var(--muted-foreground); } .za-btn--ghost:hover { background: var(--surface-2); color: var(--foreground); }
.za-btn--danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-xs); }
.za-btn--subtle { background: var(--surface-2); } .za-btn--subtle:hover { background: var(--surface-3); }
.za-btn--reject { color: var(--danger); } .za-btn--reject:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.za-btn[disabled] { opacity: 0.5; pointer-events: none; }

.za-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.za-code { border-radius: 4px; background: var(--surface-2); padding: 2px 4px; font-family: var(--font-mono); font-size: 0.85em; color: var(--foreground); }
.za-switch { display: inline-flex; align-items: center; width: 44px; height: 24px; padding: 2px; border: 0; border-radius: 9999px; background: var(--surface-3); transition: background-color var(--duration-base); }
.za-switch i { display: block; width: 20px; height: 20px; border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--duration-base); }
.za-switch.is-on { background: var(--primary); } .za-switch.is-on i { transform: translateX(20px); }
.za-switch--sm { width: 36px; height: 20px; } .za-switch--sm i { width: 16px; height: 16px; } .za-switch--sm.is-on i { transform: translateX(16px); }
.za-progress { position: relative; height: 6px; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--surface-2); }
.za-progress i { display: block; height: 100%; border-radius: 9999px; background: var(--primary); transition: width var(--duration-slower) var(--ease-out); }
.za-tooltip { z-index: 50; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 4px 10px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--foreground); box-shadow: var(--shadow-md); }

/* ============================================================ page frame */
.za-page { display: flex; flex-direction: column; height: 100%; }
.za-page__head { display: flex; align-items: center; gap: 12px; height: 56px; flex: none; padding: 0 20px; border-bottom: 1px solid var(--border); }
.za-page__title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-page__sub { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-page__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.za-page__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.za-page__content { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 24px 20px; animation: zik-fade-in var(--duration-base) var(--ease-out) both; }
.za-section-label { margin-bottom: 8px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }

/* ============================================================ chat: top bar */
.za-topbar { display: flex; align-items: center; gap: 12px; height: 56px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--border); }
.za-topbar__title { margin: 0; min-width: 0; font-size: 18px; line-height: 26px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-agentchip { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); color: var(--foreground); font-size: 13px; line-height: 20px; }
.za-agentchip:hover { background: var(--surface-3); }
.za-agentchip b { font-weight: 500; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-agentchip .za-svg { width: 14px; height: 14px; color: var(--subtle-foreground); transition: transform var(--duration-base); }
.za-agentchip.is-open .za-svg { transform: rotate(180deg); }
.za-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.za-menu { position: absolute; z-index: 50; margin-top: 4px; width: 256px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 4px; box-shadow: var(--shadow-lg); transform-origin: top left; animation: zik-pop-in var(--duration-base) var(--ease-out) both; }
.za-menu__label { padding: 6px 8px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-menu__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--radius-md); background: transparent; text-align: left; font-size: 13px; line-height: 20px; color: var(--foreground); }
.za-menu__item:hover { background: var(--surface-2); }
.za-menu__item.is-active { color: var(--primary); }
.za-menu__item span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-menu__item .za-svg { width: 14px; height: 14px; color: var(--primary); }

/* ============================================================ chat: thread */
.za-thread { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.za-log { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: var(--w-thread); margin: 0 auto; padding: 24px 20px; }
.za-divider { position: relative; display: flex; align-items: center; justify-content: center; margin: 4px 0; }
.za-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.za-divider__label { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--surface); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-divider__new { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; border-radius: var(--radius-md); background: transparent; text-transform: none; letter-spacing: 0; color: var(--primary); font: inherit; font-weight: 500; }
.za-divider__new:hover { background: var(--brand-tint); }
.za-divider__new .za-svg { width: 12px; height: 12px; }

.za-msg { display: flex; gap: 12px; }
.za-msg.is-new { animation: zik-rise-in var(--duration-slow) var(--ease-out) both; }
.za-msg__ava { position: relative; width: 32px; height: 32px; flex: none; }
.za-msg__ava .za-portrait { width: 32px; height: 32px; }
.za-msg__ava.is-live::after { content: ''; position: absolute; inset: 0; border-radius: 9999px; animation: zik-speak 1.6s var(--ease-out) infinite; }
.za-msg__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.za-msg__head { display: flex; align-items: baseline; gap: 8px; }
.za-msg__who { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground); }
.za-msg__time { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-msg__user { white-space: pre-wrap; font-size: 14px; line-height: 1.625; font-weight: 300; color: var(--muted-foreground); }
.za-msg__images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.za-msg__images img { max-height: 192px; max-width: 256px; border: 1px solid var(--border); border-radius: var(--radius-lg); object-fit: contain; }

/* markdown inside an agent reply */
.za-md { font-size: 14px; line-height: 1.625; font-weight: 300; color: var(--foreground); overflow-wrap: anywhere; }
.za-md h1, .za-md h2 { margin: 16px 0 8px; font-size: 18px; line-height: 26px; font-weight: 600; }
.za-md h3 { margin: 12px 0 6px; font-size: 16px; line-height: 24px; font-weight: 600; }
.za-md h4 { margin: 12px 0 6px; font-size: 14px; line-height: 22px; font-weight: 600; }
.za-md > :first-child { margin-top: 0; } .za-md > :last-child { margin-bottom: 0; }
.za-md p { margin: 8px 0; }
.za-md ul, .za-md ol { margin: 8px 0; padding-left: 20px; }
.za-md ul { list-style: disc; } .za-md ol { list-style: decimal; }
.za-md li { padding-left: 2px; } .za-md li + li { margin-top: 4px; }
.za-md li::marker { color: var(--subtle-foreground); }
.za-md a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.za-md a:hover { opacity: 0.8; }
.za-md strong { font-weight: 600; color: var(--foreground); }
.za-md blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--border-strong); color: var(--muted-foreground); }
.za-md hr { margin: 12px 0; border: 0; border-top: 1px solid var(--border); }
.za-md img { display: block; margin: 8px 0; max-height: 448px; max-width: 100%; width: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.za-md code { border-radius: 4px; background: var(--surface-2); padding: 2px 4px; font-family: var(--font-mono); font-size: 0.85em; color: var(--foreground); }
.za-md pre { margin: 8px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); padding: 12px; font-size: 13px; line-height: 20px; font-weight: 300; }
.za-md pre code { background: transparent; padding: 0; font-size: 13px; }
.za-md .za-table { margin: 8px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.za-md table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.za-md thead { background: var(--surface-2); }
.za-md th { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 600; color: var(--foreground); }
.za-md td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); }
.za-md tr:last-child td { border-bottom: 0; }

/* a lone tool chip is a paragraph holding one inline code span */
.za-chip { display: inline; }

/* folded activity row */
.za-activity { margin: 8px 0; }
.za-activity:first-child { margin-top: 0; } .za-activity:last-child { margin-bottom: 0; }
.za-activity__btn {
  display: flex; align-items: center; gap: 6px; max-width: 100%; margin-left: -4px; padding: 2px 8px 2px 4px;
  border: 0; border-radius: var(--radius-md); background: transparent; text-align: left;
  font: 400 13px/20px var(--font-sans); color: var(--subtle-foreground);
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.za-activity__btn:hover { background: var(--surface-2); color: var(--foreground); }
.za-activity__btn .za-svg { width: 14px; height: 14px; transition: transform var(--duration-base) var(--ease-out); }
.za-activity.is-open .za-activity__btn .za-svg--chev { transform: rotate(90deg); }
.za-activity__warn { display: flex; align-items: center; gap: 4px; flex: none; color: var(--foreground); }
.za-activity__warn .za-svg { width: 12px; height: 12px; color: var(--warning); }
.za-activity__tail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 0.85em; }
.za-activity__panel { display: none; margin: 4px 0 0 7px; padding-left: 12px; border-left: 1px solid var(--border); }
.za-activity.is-open .za-activity__panel { display: block; }
.za-activity__panel p { margin: 8px 0; } .za-activity__panel p:first-child { margin-top: 0; } .za-activity__panel p:last-child { margin-bottom: 0; }

/* thinking indicator */
.za-thinking { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-thinking__dot { position: relative; display: flex; width: 8px; height: 8px; }
.za-thinking__dot::before { content: ''; position: absolute; inset: 0; border-radius: 9999px; background: var(--primary); opacity: 0.6; animation: zik-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.za-thinking__dot::after { content: ''; position: relative; display: block; width: 8px; height: 8px; border-radius: 9999px; background: var(--primary); }
.za-thinking__dots { color: var(--primary); }
.za-msg__col > .za-thinking { margin-top: 6px; }

/* post-decision notice */
.za-notice { display: flex; gap: 12px; }
.za-notice__ico { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 9999px; }
.za-notice__ico .za-svg { width: 14px; height: 14px; }
.za-notice--ok .za-notice__ico { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.za-notice--rejected .za-notice__ico { background: color-mix(in srgb, var(--muted-foreground) 40%, transparent); color: var(--subtle-foreground); }
.za-notice--failed .za-notice__ico { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.za-notice__box { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--muted-foreground) 20%, transparent); }
.za-notice__t { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.za-notice__t span { font-weight: 400; color: var(--subtle-foreground); }
.za-notice__r { white-space: pre-wrap; font-size: 12px; line-height: 1.625; font-weight: 300; color: var(--subtle-foreground); }

/* working plan */
.za-plan { border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-2) 60%, transparent); box-shadow: var(--shadow-sm); }
.za-plan__row { display: flex; align-items: center; }
.za-plan__head { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; }
.za-plan__ico { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 9999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.za-plan.is-done .za-plan__ico { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.za-plan__ico .za-svg { width: 14px; height: 14px; }
.za-plan__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.za-plan__title { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground); }
.za-plan__title span { font-weight: 400; color: var(--subtle-foreground); }
.za-plan__now { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-plan__now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-plan__paused { flex: none; border-radius: 4px; padding: 1px 6px; background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); font-weight: 500; }
.za-plan__bar { display: block; width: 64px; height: 6px; flex: none; overflow: hidden; border-radius: 9999px; background: var(--border); }
.za-plan__bar i { display: block; height: 100%; border-radius: 9999px; background: var(--primary); transition: width var(--duration-slow); }
.za-plan.is-done .za-plan__bar i { background: var(--success); }
.za-plan__chev { width: 16px; height: 16px; flex: none; color: var(--subtle-foreground); transition: transform var(--duration-base); }
.za-plan.is-closed .za-plan__chev { transform: rotate(-90deg); }
.za-plan__x { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; margin-right: 6px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--subtle-foreground); }
.za-plan__x:hover { background: var(--surface-3); color: var(--foreground); }
.za-plan__x[disabled] { opacity: 0.4; pointer-events: none; }
.za-plan__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 8px 10px; list-style: none; }
.za-plan.is-closed .za-plan__list { display: none; }
.za-plan__item { display: flex; align-items: flex-start; gap: 10px; padding: 6px; border-radius: var(--radius-md); font-size: 13px; line-height: 1.625; }
.za-plan__item .za-svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.za-plan__item.is-done { color: var(--subtle-foreground); text-decoration: line-through; }
.za-plan__item.is-done .za-svg { color: var(--success); }
.za-plan__item.is-active { background: color-mix(in srgb, var(--primary) 6%, transparent); font-weight: 500; color: var(--foreground); }
.za-plan__item.is-active .za-svg { color: var(--primary); }
.za-plan__item.is-pending { color: var(--muted-foreground); }
.za-plan__item.is-pending .za-svg { color: var(--subtle-foreground); }

/* approval card */
.za-approval { border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--warning) 6%, transparent); box-shadow: var(--shadow-sm); }
.za-approval__head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 0; }
.za-approval__shield { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; margin-top: 2px; border-radius: 9999px; background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.za-approval__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.za-approval__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.za-approval__over { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warning); }
.za-approval__type { border-radius: 4px; background: var(--surface); padding: 2px 6px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.za-approval__title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.za-approval__title .za-svg { color: var(--muted-foreground); }
.za-approval__sum { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-approval__details { margin: 8px 14px; }
.za-approval__details summary { width: fit-content; cursor: pointer; user-select: none; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-approval__details summary:hover { color: var(--foreground); }
.za-approval__payload { margin: 6px 0 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--foreground); }
.za-approval__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 14px 12px; }
.za-approval__foot .za-btn { gap: 6px; }
.za-batch__list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0 14px; list-style: none; }
.za-batch__item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 60%, transparent); font-size: 13px; line-height: 20px; }
.za-batch__n { width: 16px; flex: none; text-align: right; font-size: 12px; font-weight: 500; color: var(--subtle-foreground); }
.za-batch__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foreground); }
.za-batch .za-approval__foot { margin-top: 4px; padding-top: 8px; }

/* boxes under the thread */
.za-box { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 12px 14px; }
.za-box__t { font-size: 13px; line-height: 20px; color: var(--foreground); }
.za-box__s { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-box--error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); padding: 10px 14px; font-size: 13px; line-height: 20px; }

/* jump pill */
.za-jump { position: absolute; left: 0; right: 0; top: 8px; z-index: 20; display: flex; justify-content: center; padding: 0 20px; pointer-events: none; }
.za-jump__btn { pointer-events: auto; display: flex; align-items: center; gap: 8px; max-width: min(512px, 100%); padding: 6px 14px 6px 12px; border: 1px solid var(--border); border-radius: 9999px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-jump__btn:hover { background: var(--surface-2); color: var(--foreground); }
.za-jump__btn .za-svg { width: 14px; height: 14px; color: var(--primary); }
.za-jump__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* no-provider strip */
.za-strip { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); background: var(--surface-2); padding: 6px 16px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-strip a { font-weight: 500; color: var(--primary); text-decoration: none; } .za-strip a:hover { text-decoration: underline; }
.za-strip .za-svg { width: 14px; height: 14px; }

/* ============================================================ chat: composer */
.za-composer { flex: none; border-top: 1px solid var(--border); background: var(--surface); padding: 12px; }
.za-composer__box { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); padding: 8px; transition: border-color var(--duration-base), box-shadow var(--duration-base); }
.za-composer__box.is-focus { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 30%, transparent); }
.za-composer__attach { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 0; }
.za-composer__thumb { position: relative; }
.za-composer__thumb img { display: block; width: 56px; height: 56px; border: 1px solid var(--border); border-radius: var(--radius-md); object-fit: cover; }
.za-composer__thumb button { position: absolute; top: -6px; right: -6px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); color: var(--muted-foreground); box-shadow: var(--shadow-sm); }
.za-composer__file { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--foreground); }
.za-composer__file.is-error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.za-composer__ta { display: block; width: 100%; min-height: 40px; max-height: 200px; resize: none; overflow-y: auto; border: 0; background: transparent; padding: 4px 6px; font: 400 14px/22px var(--font-sans); color: var(--foreground); outline: none; }
.za-composer__ta::placeholder { color: var(--subtle-foreground); }
.za-composer__ta[disabled] { cursor: not-allowed; opacity: 0.5; }
.za-composer__bar { display: flex; align-items: center; justify-content: space-between; }
.za-composer__left { display: flex; align-items: center; gap: 4px; }
.za-composer__right { display: flex; align-items: center; gap: 6px; }
.za-composer__ico { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--subtle-foreground); transition: color var(--duration-base), background-color var(--duration-base); }
.za-composer__ico:hover { background: var(--surface-3); color: var(--foreground); }
.za-composer__ico[disabled] { opacity: 0.5; }
.za-composer__tog { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px 6px; border: 0; border-radius: var(--radius-md); background: transparent; font: 500 12px/16px var(--font-sans); color: var(--subtle-foreground); transition: color var(--duration-base), background-color var(--duration-base); }
.za-composer__tog:hover { background: var(--surface-3); color: var(--foreground); }
.za-composer__tog.is-on { color: var(--primary); } .za-composer__tog.is-on:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.za-composer__tog .za-svg { width: 14px; height: 14px; }
.za-composer__mode .za-svg { color: var(--primary); }
.za-composer__mode.is-auto { color: var(--danger); } .za-composer__mode.is-auto .za-svg { color: var(--danger); }
.za-composer__mode.is-auto:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.za-composer__send { gap: 6px; } .za-composer__send .za-svg { width: 14px; height: 14px; }
.za-composer__stop .za-svg { width: 12px; height: 12px; fill: currentColor; }

/* ============================================================ right rail */
.za-rail__sec { display: flex; flex-direction: column; min-height: 0; flex: 3 1 0; overflow: hidden; }
.za-rail__sec--1 { flex: 1 1 0; }
.za-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 10px 12px 8px; }
.za-rail__title { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-rail__title .za-svg { width: 14px; height: 14px; }
.za-rail__new { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); font: 500 12px/16px var(--font-sans); color: var(--foreground); transition: color var(--duration-base), border-color var(--duration-base); }
.za-rail__new:hover { border-color: var(--primary); color: var(--primary); }
.za-rail__new .za-svg { width: 14px; height: 14px; }
.za-filter { margin: 0 12px 8px; }
.za-filter__btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); font: 500 13px/20px var(--font-sans); color: var(--foreground); text-align: left; }
.za-filter__btn:hover { background: var(--surface-3); }
.za-filter__btn span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-filter__btn .za-svg { width: 14px; height: 14px; color: var(--subtle-foreground); }
.za-filter__btn .za-svg--users { color: var(--primary); }
.za-rail__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 10px 8px; }
.za-rail__list ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.za-rail__empty { padding: 4px; font-size: 13px; line-height: 20px; color: var(--subtle-foreground); }
.za-session { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--duration-base); }
.za-session:hover { background: var(--surface-2); }
.za-session.is-active { background: var(--brand-tint); }
.za-session__l1 { display: flex; align-items: flex-start; gap: 8px; }
.za-session__title { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.za-session.is-active .za-session__title { color: var(--primary); }
.za-session__title span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-session__title .za-svg { width: 12px; height: 12px; color: var(--primary); }
.za-session__act { display: none; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border: 0; border-radius: 4px; background: transparent; color: var(--subtle-foreground); }
.za-session:hover .za-session__act { display: flex; }
.za-session__act .za-svg { width: 14px; height: 14px; }
.za-session__act:hover { color: var(--primary); } .za-session__act--del:hover { color: var(--danger); }
.za-session__l2 { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-session__l2 > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-session__age { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.za-session__age .za-svg { width: 12px; height: 12px; }
.za-session__run { width: 12px; height: 12px; color: color-mix(in srgb, var(--primary) 60%, transparent); }
.za-skelrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; }
.za-skelrow .zik-skeleton { height: 14px; }
.za-skelrow__l2 { display: flex; align-items: center; gap: 6px; }
.za-skelrow__l2 .zik-skeleton:first-child { width: 16px; height: 16px; border-radius: 9999px; }
.za-skelrow__l2 .zik-skeleton:last-child { width: 33%; height: 10px; }

/* rail approval item */
.za-rail__approvals { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 12px 12px; list-style: none; }
.za-rapp { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--warning) 6%, transparent); }
.za-rapp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.za-rapp__meta .za-svg { width: 14px; height: 14px; color: var(--warning); }
.za-rapp__src { display: flex; align-items: center; gap: 2px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-rapp__src .za-svg { width: 12px; height: 12px; color: inherit; }
.za-rapp__t { margin: 0; font-size: 13px; line-height: 1.375; font-weight: 500; color: var(--foreground); }
.za-rapp__s { margin: 0; white-space: pre-line; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-rapp__btns { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.za-rapp__btns .za-btn { height: 28px; gap: 4px; padding: 0 8px; font-size: 12px; line-height: 16px; }
.za-rapp__btns .za-btn .za-svg { width: 12px; height: 12px; }


/* ============================================================ frame + Windows title bar */
/* The Electron window: a native Windows 11 title bar (32px, approximate) over the three columns.
   .za-frame stacks them; .za-window keeps its own padding/gaps. */
.za-frame { display: flex; flex-direction: column; background: var(--background); overflow: hidden; }
.za-frame > .za-window { width: auto; }
.za-titlebar { display: flex; align-items: center; height: 32px; flex: none; padding-left: 10px; background: var(--background); color: var(--muted-foreground); font-family: 'Segoe UI', var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; user-select: none; }
.za-titlebar__icon { width: 16px; height: 16px; flex: none; margin-right: 8px; }
.za-titlebar__title { flex: 1 1 auto; color: var(--foreground); }
.za-titlebar__ctl { display: flex; align-self: stretch; }
.za-titlebar__ctl span { display: flex; align-items: center; justify-content: center; width: 46px; height: 32px; }
.za-titlebar__ctl svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1; fill: none; }

/* composer: a static stand-in for the textarea when a scene types into it */
.za-composer__fake { display: block; width: 100%; min-height: 40px; padding: 4px 6px; font-family: var(--font-sans); font-size: 14px; line-height: 22px; color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
.za-composer__fake.is-empty { color: var(--subtle-foreground); }
.za-composer__fake.is-disabled { color: var(--subtle-foreground); opacity: 0.5; }
.za-caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--foreground); animation: zik-caret 1s step-end infinite; }

/* ============================================================ product grid (chat + Lists) */
.za-grid { margin: 12px 0; }
.za-grid__cap { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-grid__wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.za-grid table { width: 100%; min-width: 544px; border-collapse: collapse; font-size: 12px; line-height: 16px; }
.za-grid thead { background: var(--surface-2); }
.za-grid th { padding: 6px 10px; text-align: left; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-grid th.r, .za-grid td.r { text-align: right; }
.za-grid td { padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: top; }
.za-grid tr:hover td { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.za-grid__img { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); overflow: hidden; font-size: 9px; color: var(--subtle-foreground); }
.za-grid__img img { width: 100%; height: 100%; object-fit: contain; }
.za-grid__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; line-height: 1.375; color: var(--foreground); }
.za-grid__title a { color: inherit; text-decoration: none; } .za-grid__title a:hover { color: var(--primary); }
.za-grid__meta { display: flex; gap: 8px; margin-top: 2px; font-size: 10px; line-height: 14px; color: var(--subtle-foreground); }
.za-grid__meta code { font-family: var(--font-mono); font-size: 10px; background: transparent; padding: 0; }
.za-grid__note { margin-top: 2px; font-size: 11px; line-height: 14px; color: var(--muted-foreground); }
.za-grid__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.za-grid__badge { border-radius: 4px; padding: 2px 4px; font-size: 10px; line-height: 12px; font-weight: 500; background: var(--surface-2); color: var(--subtle-foreground); }
.za-grid__badge--source { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.za-grid__price { font-weight: 600; color: var(--foreground); white-space: nowrap; }
.za-grid__sold { font-size: 10px; line-height: 14px; color: var(--muted-foreground); white-space: nowrap; }
.za-grid__sub { font-size: 10px; line-height: 14px; color: var(--subtle-foreground); white-space: nowrap; }
.za-grid__profit { font-weight: 600; color: var(--profit); white-space: nowrap; }
.za-grid__profit.is-neg { color: var(--danger); }
.za-grid__margin { font-size: 10px; line-height: 14px; color: var(--muted-foreground); }
.za-grid__acts { display: flex; justify-content: flex-end; gap: 2px; }
.za-grid__act { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted-foreground); }
.za-grid__act:hover { background: var(--surface-2); color: var(--foreground); }
.za-grid__act .za-svg { width: 14px; height: 14px; }
.za-grid__save { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 0; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: transparent; font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--muted-foreground); }
.za-grid__save:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: var(--surface-2); color: var(--primary); }
.za-grid__save.is-saved { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.za-grid__more { margin-top: 8px; border: 0; background: transparent; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-grid__collapsed { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-grid__collapsed .za-svg { width: 14px; height: 14px; }
.za-grid__collapsed b { font-weight: 500; color: var(--muted-foreground); }

/* curated pick cards (chat only, at most 6; the first of several is the wide, featured one) */
.za-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.za-pick { display: flex; flex-direction: column; border: 1px solid #e3e0f0; border-radius: 14px; background: #f7f6fc; overflow: hidden; transition: transform var(--duration-base), border-color var(--duration-base); }
.za-pick:hover { transform: translateY(-2px); border-color: #cfcae6; }
.zik-root.dark .za-pick { border-color: #29274a; background: #18172f; }
.za-pick.is-feat { grid-column: 1 / -1; flex-direction: row; }
.za-pick__img { display: block; width: 100%; height: 132px; object-fit: cover; background: #faf9fe; border-radius: 13px 13px 0 0; }
.za-pick.is-feat .za-pick__img { width: 42%; height: auto; min-height: 190px; border-radius: 13px 0 0 13px; }
.za-pick__body { padding: 12px 14px 14px; min-width: 0; flex: 1 1 auto; }
.za-pick.is-feat .za-pick__body { padding: 16px 18px; }
.za-pick__pill { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 20px; background: linear-gradient(90deg, #7a5cff, #a08cff); color: #fff; font-size: 11.5px; line-height: 1.3; font-weight: 700; }
.za-pick__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--foreground); }
.za-pick.is-feat .za-pick__name { font-size: 18px; }
.za-pick__why { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted-foreground); }
.za-pick__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.za-pick__tag { padding: 2px 8px; border-radius: 6px; background: #efedf8; color: #3d3a5c; font-size: 11.5px; line-height: 16px; font-weight: 500; }
.zik-root.dark .za-pick__tag { background: #211f3d; color: #d5d3e8; }
.za-pick__money { display: flex; gap: 16px; margin-top: 10px; }
.za-pick__money span { display: block; font-size: 13px; line-height: 16px; color: var(--muted-foreground); }
.za-pick__money b { display: block; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--foreground); }
.za-pick__money b.ok { color: #16a34a; }
.za-pick__acts { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.za-pick__choose { padding: 10px 18px; border: 0; border-radius: 10px; background: #6831ff; color: #fff; font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 600; }
.za-pick__choose.is-chosen { background: var(--surface-3); color: var(--muted-foreground); }
.za-pick__lnk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #5a27e6; text-decoration: none; }
.za-pick__lnk .za-svg { width: 14px; height: 14px; }

/* ============================================================ survey card (ask_survey) */
.za-survey { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.za-survey__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.za-survey__title { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground); }
.za-survey__skip { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-survey__skip .za-svg { width: 12px; height: 12px; }
.za-survey__done { color: var(--success); }
.za-survey__q { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.za-survey__q:last-of-type { border-bottom: 0; }
.za-survey__qt { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground); }
.za-survey__hint { margin: 0 0 8px; font-size: 12px; line-height: 16px; color: var(--subtle-foreground); }
.za-survey__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.za-survey__opt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.za-survey__opt:hover { background: var(--surface-2); }
.za-survey__opt.is-on { border-color: var(--primary); background: var(--brand-tint); color: var(--primary); }
.za-survey__opt .za-svg { width: 14px; height: 14px; }
.za-survey__text { width: 100%; min-height: 72px; resize: none; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 8px 12px; font-family: var(--font-sans); font-size: 14px; line-height: 22px; color: var(--foreground); }
.za-survey__foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--border); }
.za-survey__blank { font-size: 12px; color: var(--subtle-foreground); }

/* ============================================================ connect card (zik-connect fence) */
.za-connect { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); padding: 12px 14px; }
.za-connect__head { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-connect__head .za-svg { width: 14px; height: 14px; }
.za-connect__head.is-warn { color: var(--warning); }
.za-connect__why { margin: 4px 0 10px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-connect__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.za-connect__row + .za-connect__row { margin-top: 6px; }
.za-connect__logo { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-md); font-size: 12px; font-weight: 700; color: #fff; }
.za-connect__name { display: block; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.za-connect__used { display: block; font-size: 12px; line-height: 16px; color: var(--subtle-foreground); }
.za-connect__used.is-error { color: var(--warning); }
.za-connect__row .za-btn { margin-left: auto; }
.za-connect__ok { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--success); }

/* ============================================================ usage-limit card (zik-credits fence) */
.za-ucard { border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--warning) 6%, transparent); padding: 12px 14px; }
.za-ucard.is-ok { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 6%, transparent); }
.za-ucard__eyebrow { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warning); }
.za-ucard.is-ok .za-ucard__eyebrow { color: var(--success); }
.za-ucard__title { margin: 2px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.za-ucard__body { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-ucard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.za-ucard__foot { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--subtle-foreground); }
.za-ucard__one { font-size: 12px; line-height: 16px; color: var(--subtle-foreground); }


/* ============================================================ Tasks page (04-screens/tasks.md) */
.za-tasks { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.za-tasks__head { flex: none; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.za-tasks__row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.za-tasks__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.za-tasks__sub { margin: 2px 0 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-tasks__right { display: flex; align-items: center; gap: 8px; flex: none; }
.za-seg { display: flex; border-radius: var(--radius-lg); background: var(--surface-2); padding: 2px; }
.za-seg span { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-md); padding: 6px 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--subtle-foreground); }
.za-seg span.is-on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }
.za-seg .za-svg { width: 14px; height: 14px; }
.za-tasks__row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.za-tasks__lbl { margin-right: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 6px 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted-foreground); }
.za-fchip.is-on { border-color: var(--primary); background: var(--brand-tint); color: var(--primary); }
.za-fchip i { width: 8px; height: 8px; border-radius: 9999px; background: var(--primary); }
.za-fchip i.t-success { background: var(--success); } .za-fchip i.t-info { background: var(--info); } .za-fchip i.t-warning { background: var(--warning); } .za-fchip i.t-danger { background: var(--danger); } .za-fchip i.t-accent { background: var(--accent); }
.za-tasks__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.za-board { display: flex; align-items: flex-start; gap: 16px; padding: 20px; overflow-x: auto; scroll-behavior: smooth; }
.za-kcol { display: flex; flex-direction: column; gap: 10px; width: 300px; flex: none; align-self: flex-start; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-2); padding: 10px; }
.za-kcol__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 0; }
.za-kcol__dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--subtle-foreground); }
.za-kcol__dot--running { background: var(--info); } .za-kcol__dot--review { background: var(--warning); } .za-kcol__dot--done { background: var(--success); } .za-kcol__dot--failed { background: var(--danger); }
.za-kcol__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted-foreground); }
.za-kcol__count { border-radius: 9999px; background: var(--surface-3); padding: 2px 6px; font-size: 10px; line-height: 12px; font-weight: 600; color: var(--subtle-foreground); }
.za-kcol__add { display: flex; align-items: center; gap: 8px; border-radius: var(--radius-lg); padding: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--subtle-foreground); }
.za-kcol__add .za-svg { width: 16px; height: 16px; }
.za-kcard { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 12px; box-shadow: var(--shadow-xs); }
.za-kcard.is-review { border-left: 3px solid var(--warning); }
.za-kcard__row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.za-kcard__agent { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted-foreground); }
.za-kcard__title { margin: 0; font-size: 13px; line-height: 1.375; font-weight: 600; color: var(--foreground); }
.za-kcard__foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-kcard__chat { display: inline-flex; align-items: center; gap: 4px; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary); }
.za-kcard__chat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-kcard__chat .za-svg, .za-kcard__time .za-svg { width: 12px; height: 12px; }
.za-kcard__time { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.za-kcard__acts { display: flex; gap: 8px; margin-top: 10px; }
.za-kcard__acts span { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-md); padding: 6px 0; font-size: 12px; line-height: 16px; font-weight: 600; }
.za-kcard__acts .za-svg { width: 14px; height: 14px; }
.za-kcard__ok { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.za-kcard__chg { background: color-mix(in srgb, var(--warning) 10%, transparent); color: var(--warning); }
.za-abadge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border-radius: var(--radius-md); font-size: 9px; font-weight: 700; }
.za-abadge--brand { background: var(--brand-tint); color: var(--primary); }
.za-abadge--accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.za-abadge--info { background: color-mix(in srgb, var(--info) 10%, transparent); color: var(--info); }
.za-abadge--warning { background: color-mix(in srgb, var(--warning) 10%, transparent); color: var(--warning); }
.za-abadge--success { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.za-abadge--danger { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.za-prio { border-radius: 4px; padding: 2px 6px; font-size: 10px; line-height: 12px; font-weight: 600; }
.za-prio--high { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.za-prio--medium { background: color-mix(in srgb, var(--warning) 10%, transparent); color: var(--warning); }
.za-prio--low { background: var(--surface-3); color: var(--subtle-foreground); }

/* ============================================================ Workflows page (04-screens/workflows.md) */
.za-wf { display: flex; flex-direction: column; gap: 16px; }
.za-wf__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); padding: 4px; }
.za-stat { padding: 4px 12px; }
.za-stat b { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; color: var(--foreground); }
.za-stat span { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-stat--active b { color: var(--success); } .za-stat--act b { color: var(--warning); }
.za-wf__div { width: 1px; height: 28px; background: var(--border); }
.za-wf__owner { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-ochip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; padding: 4px 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-ochip.is-on { border-color: var(--primary); background: var(--brand-tint); color: var(--primary); }
.za-ochip small { opacity: 0.6; font-size: 12px; }
.za-ochip img { width: 16px; height: 16px; border-radius: 9999px; }
.za-wfcard { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px; box-shadow: var(--shadow-sm); transition: border-color var(--duration-base) var(--ease-out), translate var(--duration-base) var(--ease-out); }
.za-wfcard:hover { border-color: var(--border-strong); translate: 0 -2px; }
.za-wfcard + .za-wfcard { margin-top: 8px; }
.za-wfcard.is-paused { opacity: 0.7; }
.za-wfcard__top { display: flex; align-items: flex-start; gap: 12px; }
.za-wfcard__ava { width: 36px; height: 36px; border-radius: var(--radius-lg); flex: none; object-fit: cover; }
.za-wfcard__mid { min-width: 0; flex: 1 1 auto; }
.za-wfcard__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--foreground); }
.za-wfcard__desc { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-wfcard__right { display: flex; align-items: center; gap: 8px; flex: none; }
.za-wfcard__status { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--success); }
.za-wfcard__status--paused { color: var(--subtle-foreground); }
.za-actpill { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 3px 8px; font-size: 10px; line-height: 1; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.za-actpill .za-svg { width: 12px; height: 12px; }
.za-actpill--act { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.za-actpill--ro { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.za-wfcard__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-wfcard__meta { display: inline-flex; align-items: center; gap: 6px; }
.za-wfcard__meta .za-svg { width: 14px; height: 14px; color: var(--subtle-foreground); }
.za-wfcard__meta--sub { color: var(--subtle-foreground); }
.za-wfcard__meta--ok { color: var(--success); } .za-wfcard__meta--ok .za-svg { color: var(--success); }
.za-rbadge { display: inline-flex; align-items: center; gap: 6px; border-radius: 9999px; background: var(--surface-2); padding: 2px 10px 2px 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--foreground); }
.za-rbadge img { width: 20px; height: 20px; border-radius: 9999px; }
.za-wfcard__acts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.za-wfcard__acts .za-iconbtn .za-svg { color: var(--muted-foreground); }
.za-wfcard__acts .za-btn { gap: 6px; }
.za-page__live { display: inline-flex; align-items: center; border-radius: 9999px; padding: 2px 6px; font-size: 10px; line-height: 1; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

/* ============================================================ Reports page (04-screens/reports.md) */
.za-rhead { display: flex; align-items: center; gap: 12px; height: 56px; flex: none; padding: 0 20px; border-bottom: 1px solid var(--border); }
.za-rhead__title { margin: 0; min-width: 0; flex: 1 1 auto; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-rhead__meta { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); white-space: nowrap; }
.za-rhead__meta .za-svg { width: 12px; height: 12px; }
.za-report { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1024px; margin: 0 auto; padding: 24px 20px; }
.za-report__sum { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.za-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.za-kpis--4 { grid-template-columns: repeat(4, 1fr); }
.za-kpi { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.za-kpi span { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); }
.za-kpi b { display: block; margin-top: 4px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--foreground); }
.za-kpi em { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-style: normal; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--success); }
.za-kpi em.is-down { color: var(--danger); } .za-kpi em.is-flat { color: var(--subtle-foreground); }
.za-kpi em .za-svg { width: 14px; height: 14px; }
.za-rcard { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px; box-shadow: var(--shadow-sm); }
.za-rcard h3 { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.za-rchart { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 4px; height: 280px; }
.za-rchart--sm { height: 180px; }
.za-rchart__y { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 20px); text-align: right; font-size: 11px; line-height: 11px; color: rgba(148, 148, 180, 0.9); }
.za-rchart__plot { position: relative; height: calc(100% - 20px); background: repeating-linear-gradient(to top, rgba(148, 148, 180, 0.15) 0 1px, transparent 1px 25%); }
.za-rchart__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; padding: 0 8px; }
.za-rchart__bars i { display: block; width: 100%; max-width: 48px; height: 0; border-radius: 4px 4px 0 0; background: #6831ff; transition: height 0.6s var(--ease-out); }
.za-rchart__bars i.is-on { height: var(--h); }
.za-rchart__x { grid-column: 2; display: flex; justify-content: space-around; padding-top: 6px; font-size: 11px; line-height: 14px; color: rgba(148, 148, 180, 0.9); }
.za-rtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.za-rtable th { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-rtable td { padding: 6px 10px; border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); color: var(--foreground); }
.za-rtable tr:last-child td { border-bottom: 0; }
.za-rtable .n { text-align: right; font-variant-numeric: tabular-nums; }
.za-sources { border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 12px 16px; }
.za-sources__h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--subtle-foreground); }
.za-sources__h .za-svg { width: 14px; height: 14px; }
.za-sources p { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.za-sources p + p { margin-top: 2px; }
/* the Analyst rail */
.za-analyst__head { display: flex; align-items: center; gap: 8px; flex: none; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.za-analyst__tile { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-lg); background: var(--brand-tint); color: var(--primary); }
.za-analyst__t { display: block; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground); }
.za-analyst__s { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.za-analyst__new { margin-left: auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-md); color: var(--subtle-foreground); }
.za-analyst__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; }
.za-analyst__msgs { display: flex; flex-direction: column; gap: 16px; }


/* ============================================================ the Executive welcome (first run), light values (07-onboarding.md) */
.za-zo { --zo-bd: #e3e0f0; --zo-card2: #f7f6fc; --zo-accs: #efecfa; --zo-acc: #6831ff; --zo-acc2: #5a27e6; --zo-muted: #4f5464; --zo-faint: #646979; }
.za-zo__msg { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
.za-zo__av { width: 40px; height: 40px; border-radius: 9999px; background: radial-gradient(circle at 30% 25%, #9b82ff, #4b25c9 70%); box-shadow: 0 0 0 3px #ece7ff; display: flex; align-items: center; justify-content: center; color: #ffd66b; }
.za-zo__av .za-svg { width: 18px; height: 18px; }
.za-zo__av--face { background: #4533a0; overflow: hidden; }
.za-zo__av--face img { display: block; width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
.za-zo__mh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.za-zo__mh b { font-size: 15px; font-weight: 700; color: var(--foreground); }
.za-zo__mh span { font-size: 13px; color: var(--zo-faint); }
.za-zo__mc { min-width: 0; font-size: 16px; line-height: 1.62; color: var(--foreground); }
.za-zo__mc p { margin: 0; } .za-zo__mc p + p { margin-top: 10px; } .za-zo__mc p + .za-zo__card { margin-top: 14px; }
.za-zo__mc b { font-weight: 600; }
.za-zo__card { border: 1px solid var(--zo-bd); border-radius: 14px; background: #fff; padding: 16px; }
.za-zo__card + .za-zo__card { margin-top: 12px; }
.za-zo__kick { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zo-acc2); }
.za-zo__kick .za-svg { width: 14px; height: 14px; }
.za-zo__opts { display: flex; flex-direction: column; gap: 10px; }
.za-zo__opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--zo-bd); border-radius: 12px; background: var(--zo-card2); }
.za-zo__opt.is-on { border-color: var(--zo-acc); background: var(--zo-accs); box-shadow: inset 0 0 0 1px var(--zo-acc); }
.za-zo__radio { width: 18px; height: 18px; flex: none; border-radius: 9999px; border: 2px solid #cfcae6; display: flex; align-items: center; justify-content: center; }
.za-zo__opt.is-on .za-zo__radio { border-color: var(--zo-acc); }
.za-zo__opt.is-on .za-zo__radio::after { content: ''; width: 8px; height: 8px; border-radius: 9999px; background: var(--zo-acc2); }
.za-zo__ot { display: block; font-size: 15px; font-weight: 500; color: var(--foreground); }
.za-zo__od { display: block; font-size: 13px; color: var(--zo-muted); }
.za-zo__vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.za-zo__vcard { position: relative; border: 1px solid var(--zo-bd); border-radius: 14px; background: var(--zo-card2); overflow: hidden; }
.za-zo__vcard.is-on { box-shadow: 0 0 0 2px var(--zo-acc), 0 12px 30px -12px rgba(122, 92, 255, 0.6); }
.za-zo__vimg { position: relative; width: 100%; height: 150px; overflow: hidden; display: grid; place-items: center; line-height: 1; }
.za-zo__vimg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.18), transparent 60%); pointer-events: none; }
.za-zo__vimg .big { position: relative; z-index: 2; font-size: 76px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25)); }
.za-zo__vimg .s1, .za-zo__vimg .s2 { position: absolute; font-size: 38px; opacity: 0.95; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2)); }
.za-zo__vimg .s1 { left: 16%; bottom: 16%; transform: rotate(-12deg); }
.za-zo__vimg .s2 { right: 15%; top: 16%; transform: rotate(10deg); }
.za-zo__vimg--logo { height: 112px; } .za-zo__vimg--logo::after { display: none; }
.za-zo__vfoot { padding: 12px 14px; }
.za-zo__vfoot b { display: block; font-size: 15px; font-weight: 600; color: var(--foreground); }
.za-zo__vfoot span { display: block; font-size: 13px; color: var(--zo-muted); }
.za-zo__pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--zo-acc2); border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--zo-acc2); vertical-align: middle; }
.za-zo__chk { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 9999px; background: rgba(10, 9, 18, 0.55); border: 2px solid rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.za-zo__chk .za-svg { width: 14px; height: 14px; opacity: 0; }
.za-zo__vcard.is-on .za-zo__chk { background: var(--zo-acc); border-color: var(--zo-acc); }
.za-zo__vcard.is-on .za-zo__chk .za-svg { opacity: 1; }
.za-zo__vcard--ai { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(110deg, #f1edff, #faf9ff 60%); border-color: #d6ccff; }
.za-zo__spark { width: 56px; height: 56px; flex: none; border-radius: 14px; background: linear-gradient(135deg, #8b6cff, #4b25c9); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 24px -8px #7a5cff; }
.za-zo__spark .za-svg { width: 26px; height: 26px; }
.za-zo__vcard--ai b { display: block; font-size: 16px; font-weight: 600; color: var(--foreground); }
.za-zo__vcard--ai span { display: block; font-size: 14px; color: var(--zo-muted); }
.za-zo__tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 20px; background: var(--zo-acc); color: #fff; font-size: 11px; font-weight: 600; vertical-align: middle; }
.za-zo__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.za-zo__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: #6831ff; color: #fff; font-size: 15px; line-height: 1.3; font-weight: 600; }
.za-zo__btn .za-svg { width: 16px; height: 16px; }
.za-zo__btn2 { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #cfcae6; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--foreground); }
.za-zo__btn2 .za-svg { width: 16px; height: 16px; }
.za-zo__btn3 { padding: 9px 6px; font-size: 14px; color: var(--zo-muted); }
.za-zo__done { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e6e8ec; border-radius: 11px; background: #f6f5fb; font-size: 14px; color: var(--zo-muted); }
.za-zo__done b { font-weight: 500; color: var(--foreground); }
.za-zo__done a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--zo-acc2); }
.za-zo__ck { width: 20px; height: 20px; flex: none; border-radius: 9999px; background: rgba(22, 163, 74, 0.1); display: flex; align-items: center; justify-content: center; color: #16a34a; }
.za-zo__ck .za-svg { width: 12px; height: 12px; }
.za-zo__umsg { display: flex; justify-content: flex-end; margin-top: 18px; }
.za-zo__umsg span { max-width: 70%; padding: 9px 15px; border: 1px solid var(--zo-bd); border-radius: 14px 14px 4px 14px; background: #efecfa; font-size: 15px; line-height: 1.4; color: var(--foreground); }
.za-zo__ebay { position: relative; z-index: 2; display: flex; font-size: 44px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
.za-zo__shop { display: flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 600; color: #1a1a1a; line-height: 1; }
.za-zo__shop .za-svg { width: 36px; height: 40px; color: #96bf48; }
/* drawn storefront mockups on the design cards (the app's .sf, em-scaled): nav, hero, product grid or buy box */
.za-zo__vimg--sf { display: block; font-size: 8.6px; line-height: 1.2; text-align: left; user-select: none; }
.za-zo__vimg--sf::after { display: none; }
.za-sf__nav { display: flex; align-items: center; gap: 1em; padding: 1em 1.4em; }
.za-sf__logo { font-size: 1.3em; font-weight: 700; letter-spacing: 0.06em; }
.za-sf__links { display: flex; gap: 0.7em; margin-left: auto; }
.za-sf__links i { display: block; width: 2.8em; height: 0.45em; border-radius: 1em; background: currentColor; opacity: 0.3; }
.za-sf__cart { font-size: 1.1em; margin-left: 0.8em; }
.za-sf__hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 1.2em; padding: 1.4em 1.4em 1.6em; }
.za-sf__hero--buy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.za-sf__h { font-size: 2.05em; line-height: 1.05; margin-bottom: 0.45em; font-weight: 700; }
.za-sf__hero--buy .za-sf__h { font-size: 1.7em; }
.za-sf__p i { display: block; width: 90%; height: 0.5em; margin: 0.4em 0; border-radius: 1em; background: currentColor; opacity: 0.2; }
.za-sf__p i.s { width: 62%; }
.za-sf__btn { display: inline-block; margin-top: 0.9em; padding: 0.65em 1.3em; border-radius: 0.5em; font-size: 0.95em; font-weight: 600; }
.za-sf__art { aspect-ratio: 1; display: grid; place-items: center; border-radius: 0.8em; font-size: 4.6em; }
.za-sf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em; padding: 0 1.4em 1.5em; }
.za-sf__img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 0.5em; border-radius: 0.8em; font-size: 2.5em; }
.za-sf__item i { display: block; width: 80%; height: 0.45em; margin: 0.35em 0; border-radius: 1em; background: currentColor; opacity: 0.25; }
.za-sf__item i.s { width: 40%; opacity: 0.45; }
.za-sf--boutique { background: #faf6f0; color: #1f1a14; }
.za-sf--boutique .za-sf__btn { background: #1f1a14; color: #fff; }
.za-sf--boutique .za-sf__art, .za-sf--boutique .za-sf__img { background: #eee4d4; }
.za-sf--bold { background: #15122b; color: #fff; }
.za-sf--bold .za-sf__btn { background: #ff4f7a; color: #fff; }
.za-sf--bold .za-sf__art, .za-sf--bold .za-sf__img { background: #2a2550; }
.za-sf--single { background: #f3f7fb; color: #13243a; }
.za-sf--single .za-sf__btn { background: #2563eb; color: #fff; }
.za-sf--single .za-sf__art { background: #dbe7f5; }
.za-sf--nordlys { background: linear-gradient(160deg, #0b1620, #13313c); color: #e8f3f5; }
.za-sf--nordlys .za-sf__btn { background: #49c6a8; color: #06211d; }
.za-sf--nordlys .za-sf__art { background: rgba(255, 255, 255, 0.08); }
.za-zo__note { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--zo-muted); }
.za-zo__note .za-svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--zo-faint); }
.za-zo__link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================ a drawn logo preview (site demo stand-in for a generated image) */
.za-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 168px; height: 112px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #1f1a14; color: #faf6f0; }
.za-logo span { font-size: 26px; line-height: 1; }
.za-logo b { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: 0.04em; }
.za-logo small { font-size: 10px; line-height: 1.2; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

/* ============================================================ a theme preview in a reply (the drawn storefront as a screenshot stand-in) */
.za-shot { width: 300px; max-width: 100%; height: 150px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.za-shot .za-zo__vimg--sf { height: 100%; font-size: 8.6px; }

/* ---- scenes (from the design file) ---- */
.zka { --ease-out: cubic-bezier(.16,1,.3,1); }
/* ============================================================ the scene engine */
[data-scene] [data-t] { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
[data-scene] [data-t].on { opacity: 1; transform: none; }
[data-scene] [data-t].fx-pop { transform: scale(.92); }
[data-scene] [data-t].fx-pop.on { transform: none; transition-timing-function: var(--ease), var(--ease-spring); }
[data-scene] [data-t].fx-fade { transform: none; }
[data-scene].is-fading { opacity: 0; transition: opacity .5s var(--ease); }
[data-scene] { transition: opacity .5s var(--ease); }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-inline-start: 1px; vertical-align: -2px; background: var(--primary-500); animation: zik-caret 1s step-end infinite; }

/* 1:1 kit scaled to its column */
.fit { position: relative; display: flex; align-items: flex-start; justify-content: center; width: 100%; min-width: 0; }
.fit > * { flex: none; transform-origin: top center; }
.fit.is-scaled { justify-content: flex-start; }
.fit.is-scaled > * { position: absolute; inset-block-start: 0; inset-inline-start: 0; transform-origin: top left; }

/* the app window in monitor proportions (16:10): every app scene on the page */
.app-frame { overflow: hidden; border: 1px solid var(--border-2); border-radius: 14px; background: #f6f7f9; box-shadow: 0 40px 80px -40px rgba(21,13,63,.45), 0 2px 8px rgba(21,13,63,.08), 0 0 0 6px rgba(255,255,255,.55); }
.scene-win { display: flex; flex-direction: column; width: 100%; aspect-ratio: 16 / 10; }
.fit > .scene-win, .hero-visual { width: var(--fit-w); }
.zik-root.scene-win .za-window { flex: 1 1 0; width: 100%; height: auto; min-height: 0; }
.zik-root .za-thread { overflow: hidden; }
.zik-root .za-log { position: relative; transition: transform .7s var(--ease-out); }
.zik-root .rail-sep { height: 1px; margin: 6px 12px; background: var(--border); list-style: none; }
.zik-root .za-nav.is-collapsed .za-foot__box { align-items: center; }
.zik-root .cmp { display: grid; }
.zik-root .cmp > * { grid-area: 1 / 1; }
.zik-root .cmp-ph { color: var(--subtle-foreground); }
.zik-root .cmp-typed .caret { background: var(--foreground); }
.zik-root .za-composer__box { transition: border-color .2s, box-shadow .2s; }
.zik-root .za-composer__box.is-focus { border-color: var(--primary); box-shadow: var(--shadow-focus); }
.zik-root .za-composer__send { transition: opacity .2s, transform .15s; }
.zik-root .za-composer__send.is-off { opacity: .5; }
.zik-root .za-composer__send.is-press { transform: scale(.9); }
.hero-visual .srcs { margin-top: 18px; }
.hero-visual .src b { font-size: 28px; }
.hero-visual .src span { font-size: 13.5px; }
.hero-visual .stage-src { font-size: 13px; }
@media (max-width: 720px) { .scene-win, .hero-visual { --fit-w: 720px !important; } }
/* Muse stage: a soft card the kit floats on */
.stage-card { position: relative; width: var(--fit-w, 600px); padding: 22px; border-radius: 28px; border: 1px solid var(--border-2); background: radial-gradient(80% 60% at 100% 0%, rgba(104,49,255,.10), transparent 70%), linear-gradient(170deg, #fff 0%, #F7F5FF 45%, var(--lightblue-100) 100%); box-shadow: var(--shadow-lg); }
.float-card { padding: 18px 16px; border: 1px solid #e6e8ec; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -18px rgba(21,13,63,.28), 0 1px 2px rgba(21,13,63,.06); }
.stage-src { margin: 12px 4px 0; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }

/* ============================================================ kit additions used by the scenes (marketing only) */
.zik-root .za-md p:first-child { margin-top: 0; }
.zik-root .za-md .za-grid__img img, .zik-root .za-md .za-pick__img, .zik-root .za-md .ads img, .zik-root .za-md .nx-shop img { margin: 0; border: 0; max-height: none; border-radius: 0; }
.zik-root .za-md .za-pick__img { border-radius: 13px 0 0 13px; }
.zik-root .za-grid__img img { width: 100%; height: 100%; object-fit: cover; }
.zik-root .za-pick__img { background: #fff; object-fit: cover; }
.zik-root .za-pick.is-feat .za-pick__img { width: 36%; min-height: 0; }
.zik-root .za-pick__lnk { white-space: nowrap; }
.zik-root .za-pick__choose { white-space: nowrap; }
/* the kit table reflows in a narrow post instead of scrolling (the launch film's reel fix) */
.zik-root .za-grid table { min-width: 0; }
.zik-root .za-grid th, .zik-root .za-grid td { padding-inline: 6px; }
.zik-root .za-grid th { white-space: nowrap; }
.zik-root .za-grid td:first-child { padding-inline-start: 8px; }
.zik-root .za-grid__acts { gap: 2px; }
.zik-root .draft { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.zik-root .draft small { display: block; margin-bottom: 4px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle-foreground); }
.zik-root .draft b { font-weight: 500; color: var(--foreground); }
.zik-root .ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; }
.zik-root .ads img { display: block; width: 100%; height: auto; border-radius: 10px !important; box-shadow: 0 12px 26px -14px rgba(21,13,63,.4); }
.zik-root .appr { display: flex; margin: 6px 0 0 44px; }
.zik-root .appr .za-btn { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(104,49,255,.55); transition: transform .15s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease); }
.zik-root .appr .za-btn .i-busy { display: none; }
.zik-root .appr .za-btn.is-press { transform: scale(.93); }
.zik-root .appr .za-btn.is-busy .i-ok { display: none; }
.zik-root .appr .za-btn.is-busy .i-busy { display: inline-block; animation: zik-spin 1s linear infinite; }
.zik-root .appr .za-btn.is-ok { opacity: .45; box-shadow: none; }
.zik-root .za-plan__item .ico-a, .zik-root .za-plan__item .ico-d { display: none; }
.zik-root .za-plan__item.is-active .ico-p, .zik-root .za-plan__item.is-done .ico-p { display: none; }
.zik-root .za-plan__item.is-active .ico-a { display: inline-block; animation: zik-spin 1s linear infinite; }
.zik-root .za-plan__item.is-done .ico-d { display: inline-block; }
.zik-root .za-plan__item { transition: background-color .3s var(--ease), color .3s var(--ease); }
.zik-root .za-plan__head .ico-live { display: none; }
.zik-root .za-plan.is-live:not(.is-done) .za-plan__head .ico-still { display: none; }
.zik-root .za-plan.is-live:not(.is-done) .za-plan__head .ico-live { display: inline-block; animation: zik-spin 1s linear infinite; }
.zik-root .swap { display: grid; }
.zik-root .swap > * { grid-area: 1 / 1; }
.zik-root .gone { display: none !important; }
.zik-root .typing .caret { background: var(--foreground); }
.zik-root .za-notice + .za-notice { margin-top: 8px; }
.zik-root .done-badge { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0 44px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--zik-ink); }
.zik-root .done-badge i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--zik-primary); }
.zik-root .done-badge svg { width: 18px; height: 18px; stroke: var(--zik-primary); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* the Nestly store (from the launch film), drawn at 1100px and scaled into the post */
.nx-browser { overflow: hidden; margin: 8px 0; border: 1px solid #E6E8EC; border-radius: 12px; background: #fff; box-shadow: 0 22px 44px -22px rgba(21,13,63,.35); }
.nx-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid #E6E8EC; background: #F1F2F4; }
.nx-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #D9DBE0; }
.nx-url { flex: 1; max-width: 300px; height: 16px; margin-inline-start: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #E6E8EC; border-radius: 999px; background: #fff; font-size: 9px; color: #6B7280; }
.nx-url b { font-weight: 500; color: #150D3F; }
.nx-viewport { position: relative; height: 330px; overflow: hidden; }
.nx-shop { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1100px; transform: scale(var(--nx-s, .5)); transform-origin: top left; background: #FAF6F0; color: #1F1A14; font-family: var(--font-sans); }
.nx-nav { display: flex; align-items: center; padding: 20px 44px; font-size: 16px; }
.nx-nav b { font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.nx-links { display: flex; gap: 28px; margin-inline-start: auto; color: #4a4238; }
.nx-cart { display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: 30px; border-radius: 50%; background: #1F1A14; }
.nx-cart svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-banner { position: relative; height: 380px; margin: 0 24px; overflow: hidden; border-radius: 20px; background: #D5B095; }
.nx-banner > img { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; width: auto; }
.nx-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #D5B095 0%, #D5B095 34%, rgba(213,176,149,.6) 42%, rgba(213,176,149,0) 54%); }
.nx-copy { position: absolute; z-index: 2; inset-inline-start: 48px; top: 50%; max-width: 440px; transform: translateY(-50%); }
.nx-eyebrow { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #7a6a52; }
.nx-copy h4 { margin: 0; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.nx-copy p { margin: 16px 0 22px; font-size: 17px; line-height: 1.5; color: #4a4238; }
.nx-btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: #1F1A14; color: #fff; font-size: 15px; font-weight: 600; }
.nx-ghost { margin-inline-start: 10px; border: 1.5px solid #1F1A14; background: rgba(255,255,255,.6); color: #1F1A14; }
.nx-strip { display: flex; justify-content: center; gap: 44px; margin-top: 18px; padding: 12px 44px; border-block: 1px solid #E8DFD2; background: #F4EDE2; font-size: 14px; color: #5b5146; }
.nx-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 26px 44px 36px; }
.nx-card .nx-im { aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #fff; }
.nx-card .nx-im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nx-card b { display: block; margin: 10px 0 2px; font-size: 16px; font-weight: 600; }
.nx-card span { font-size: 14px; color: #5b5146; }
/* the store building itself (hero): each part fades up when the browser gets b1..b4 */
.nx-build .nx-nav, .nx-build .nx-banner, .nx-build .nx-strip, .nx-build .nx-card { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.nx-build.b1 .nx-nav, .nx-build.b2 .nx-banner, .nx-build.b3 .nx-strip, .nx-build.b4 .nx-card { opacity: 1; transform: none; }
.nx-build.b4 .nx-card:nth-child(2) { transition-delay: .18s; }
.nx-build.b4 .nx-card:nth-child(3) { transition-delay: .36s; }
/* the hero's store is smaller and its banner shorter, so the whole store and its products fit the 16:10 window's thread */
.win-hero .nx-browser { max-width: 430px; }
.win-hero .nx-banner { height: 300px; }
@media (max-width: 720px) { .win-hero .nx-browser { max-width: 270px; } }

/* confetti (film) */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; display: block; width: 9px; height: 6px; border-radius: 2px; opacity: 0; }
.on > .confetti i, .confetti.on i { animation: confetti 1.6s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes confetti { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* ---- on the site: the kit uses the font the site already loads (next/font names it) ---- */
.zka .zik-root { --font-sans: inherit; }
/* <img> tags carry width and height on the site; these two are sized by their box, not by the attribute */
.zka .zik-root img.za-pick__img { height: auto; }

/* ---- the ring of app logos (from the design file) ---- */
.ring-stage { --fit-w: 720px; position: relative; width: 720px; height: 430px; }
.lg { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 20px 40px -18px rgba(21,13,63,.35), 0 1px 2px rgba(21,13,63,.06); transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.lg img, .lg .chk { backface-visibility: hidden; }
.lg img { width: 58%; height: 58%; object-fit: contain; }
.lg .chk { position: absolute; inset: 0; display: grid; place-items: center; border: 7px solid var(--primary-500); border-radius: 50%; background: #fff; transform: rotateY(180deg); }
.lg .chk svg { width: 46%; height: 46%; stroke: var(--primary-500); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lg.is-chk, [data-scene] .lg.is-chk[data-t].on { transform: rotateY(180deg); }
.zik-root .za-plan.is-done .za-plan__now { display: none; }
.ring-pill { position: absolute; inset-inline-start: 50%; top: 50%; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 99px; background: #F2F3F5; font-size: 20px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%); }
.ring-pill i { display: grid; place-items: center; width: 28px; height: 28px; border: 2.5px solid var(--primary-500); border-radius: 50%; }
.ring-pill svg { width: 15px; height: 15px; stroke: var(--primary-500); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the four counters under the hero window (from the design file) ---- */
.hero-stage { --fit-w: 620px; }
.srcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.src { padding: 10px 11px 9px; border: 1px solid var(--border-2); border-radius: 14px; background: #fff; transition: border-color .3s var(--ease); }
.src b { display: block; font-size: 21px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--primary-500); font-variant-numeric: tabular-nums; }
.src span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.3; font-weight: 500; color: var(--ink-2); }
.src.ping { border-color: var(--primary-500); animation: srcPing .9s var(--ease-out); }
@keyframes srcPing { 0% { box-shadow: 0 0 0 0 rgba(104,49,255,.45); } 100% { box-shadow: 0 0 0 12px rgba(104,49,255,0); } }
