/* yatishara.com home. Static HTML on Studio tokens (tokens.css, synced from Studio). */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
}

:root {
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gap: 16px;
  --card-r: 22px;
  --media-r: 16px;
  --card-fill: color-mix(in srgb, #fff 55%, var(--mos-plate));
  --card-shadow:
    0 1px 2px color-mix(in srgb, #0f172a 6%, transparent),
    0 2px 8px color-mix(in srgb, #0f172a 5%, transparent);
  --card-shadow-lg:
    0 6px 24px color-mix(in srgb, #0f172a 10%, transparent),
    0 2px 6px color-mix(in srgb, #0f172a 6%, transparent);
  --pill-fill: rgb(255 255 255 / 0.62);
  --pill-fill-hover: rgb(255 255 255 / 0.9);
  --pill-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 2px 4px rgb(0 0 0 / 0.05);
  --tint: color-mix(in srgb, var(--mos-accent) 12%, var(--mos-page));
  --inset: color-mix(in srgb, var(--mos-plate-strong) 70%, transparent);
}
:root[data-appearance="dark"] {
  --card-fill: color-mix(in srgb, var(--mos-plate) 92%, transparent);
  --card-shadow:
    0 1px 2px color-mix(in srgb, #000 30%, transparent),
    0 2px 8px color-mix(in srgb, #000 22%, transparent);
  --card-shadow-lg:
    0 8px 28px color-mix(in srgb, #000 40%, transparent),
    0 2px 6px color-mix(in srgb, #000 24%, transparent);
  --pill-fill: rgb(255 255 255 / 0.06);
  --pill-fill-hover: rgb(255 255 255 / 0.12);
  --pill-shadow: none;
  --tint: color-mix(in srgb, var(--mos-accent) 18%, var(--mos-page));
  --inset: color-mix(in srgb, var(--mos-plate-strong) 80%, transparent);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--mos-page); }
body {
  color: var(--mos-text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--mos-accent) 28%, transparent); }
svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: 40px 0; }

/* ---- Shell: copied from blog-redesign src/app/globals.css (stage, 36px header,
   rounded app card). Gap set to 12px per Dallas. ---- */
:root {
  --blog-frame-gap: 12px;
  --blog-frame-radius: 22px;
  --blog-frame-shadow:
    0 3px 12px color-mix(in srgb, #0f172a 8%, transparent),
    0 1px 3px color-mix(in srgb, #0f172a 5%, transparent);
  --blog-head-pill: rgb(255 255 255 / 0.56);
  --blog-head-pill-hover: rgb(255 255 255 / 0.8);
  --blog-head-pill-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 2px 4px rgb(0 0 0 / 0.06);
  --blog-head-mark: rgb(255 255 255 / 0.62);
}
:root[data-appearance="dark"] {
  --blog-frame-shadow:
    0 3px 10px color-mix(in srgb, #000 18%, transparent),
    0 1px 3px color-mix(in srgb, #000 12%, transparent);
  --blog-head-pill: rgb(0 0 0 / 0.22);
  --blog-head-pill-hover: rgb(0 0 0 / 0.3);
  --blog-head-pill-shadow: none;
  --blog-head-mark: rgb(255 255 255 / 0.1);
}
/* ---- stage (gradient) + header + app card ---- */
.blog-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: var(--blog-frame-gap);
  background-color: var(--mos-page);
  isolation: isolate;
}
.blog-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--studio-theme-gradient);
}
@media (min-width: 900px) {
  .blog-shell {
    --blog-frame-gap: 16px;
    padding-top: 4px;
  }
}

/* .studio-desktop-workspace-head: 36px, transparent, sits on the gradient. */
.blog-header {
  flex: 0 0 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  z-index: 40;
}
@media (max-width: 899px) {
  .blog-header { margin-bottom: 6px; }
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  min-width: 0;
  padding: 0 14px 0 3px;
  border-radius: 999px;
  background: var(--blog-head-pill);
  box-shadow: var(--blog-head-pill-shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: var(--mos-text);
}
/* π mark = Studio's logo tap: flips light/dark + new accent. */
.blog-brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--blog-head-mark);
  cursor: pointer;
  transition: transform 160ms ease;
}
.blog-brand-mark:hover { transform: rotate(-12deg); }
.blog-brand-mark:active { transform: scale(0.92); }
.blog-brand img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
[data-appearance="dark"] .blog-brand img { filter: invert(1); }
.blog-brand-link {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mos-text);
}
.blog-brand-link:hover { color: var(--mos-accent-ink); }

.blog-header-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
/* Header tool pills: 34px, round, frosted — icon + label. */
.blog-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blog-head-pill);
  box-shadow: var(--blog-head-pill-shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: var(--mos-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.blog-header-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.blog-header-btn:hover { background: var(--blog-head-pill-hover); }
@media (max-width: 520px) {
  .blog-header { gap: 4px; }
  .blog-header-links { gap: 4px; }
  .blog-brand { padding-right: 11px; gap: 6px; }
  .blog-brand-link { font-size: 12px; }
  .blog-header-btn { padding: 0 10px 0 9px; gap: 5px; font-size: 12px; }
  .blog-header-btn svg { width: 14px; height: 14px; }
}



/* .studio-stage > .studio-polish: the rounded app card. No border. */
.blog-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--blog-frame-radius);
  background: var(--mos-page);
  box-shadow: var(--blog-frame-shadow);
}
@media (max-width: 899px) {
  .blog-body { --blog-frame-radius: 18px; }
}

/* 12px on every side at every width (blog uses 6/16). */
@media (min-width: 900px) { .blog-shell { --blog-frame-gap: 12px; padding-top: 4px; } }
@media (max-width: 899px) { .blog-shell { padding-top: 4px; } }
.blog-header-btn.is-primary { background: var(--mos-accent); color: var(--mos-accent-fg); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.blog-header-btn.is-primary:hover { background: color-mix(in srgb, var(--mos-accent) 88%, #000); }

/* The one scroller: everything lives inside the card. */
.home-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.wrap { width: 100%; padding: 0 clamp(16px, 3.2vw, 48px); }

/* ---- pills ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill-row.tight { margin-top: 12px; gap: 6px; }
.pill-row.center { justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-fill);
  box-shadow: var(--pill-shadow);
  color: var(--mos-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.pill svg { width: 15px; height: 15px; color: var(--mos-muted); }
a.pill:hover { background: var(--pill-fill-hover); }
a.pill:active { transform: scale(0.98); }
.pill.ghost { background: transparent; box-shadow: none; }
.pill.ghost:hover { background: var(--pill-fill); }
.pill.primary { background: var(--mos-accent); color: var(--mos-accent-fg); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.pill.primary svg { color: var(--mos-accent-fg); }
a.pill.primary:hover { background: color-mix(in srgb, var(--mos-accent) 88%, #000); }
.pill.lg { height: 44px; padding: 0 20px; font-size: 14px; }
.pill.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.pill.xs { height: 26px; padding: 0 10px; font-size: 11px; gap: 5px; }
.pill.xs svg { width: 12px; height: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--mos-accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }

/* ---- hero: stacked under 1100px, two columns above ---- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 760px; }
.mock { margin: 0; min-width: 0; }
@media (max-width: 1099px) { .mock { max-width: 880px; } }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 3.4vw + 14px, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 1100px) { .hero h1 { font-size: clamp(44px, 3.6vw, 64px); } }
.lede { margin-top: 18px; font-size: clamp(16px, 0.5vw + 13px, 19px); line-height: 1.5; color: var(--mos-muted); max-width: 36em; text-wrap: pretty; }
.lede.sm { font-size: 16px; margin-top: 12px; }

/* ---- sections + cards ---- */
.section-head { display: grid; gap: 6px; margin-bottom: 22px; }
.section-head h2, .card h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.section-head p { color: var(--mos-muted); font-size: 16px; }
.card { border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); padding: 24px; }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--mos-text-soft); }
.feature { display: grid; gap: 10px; align-content: start; }
.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--mos-accent-ink);
}
.icon svg { width: 19px; height: 19px; }
.feature p, .step p { font-size: 14px; }
.step { display: grid; gap: 8px; align-content: start; }
.num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--mos-accent);
  color: var(--mos-accent-fg);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.split { display: grid; gap: 28px; padding: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; padding: 44px; } }
.split h2 { margin-top: 14px; }
.ticks { display: grid; gap: 8px; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--inset);
  font-weight: 500;
}
.ticks svg { color: var(--mos-accent-ink); }

.person { display: flex; gap: 18px; align-items: flex-start; }
.person img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.person .role { margin-top: 2px; font-size: 13px; color: var(--mos-muted); }
.person .role + p { margin-top: 10px; }
@media (max-width: 480px) { .person { flex-direction: column; } .person img { width: 72px; height: 72px; } }

.course { display: grid; gap: 0; padding: 12px; overflow: hidden; }
.course-art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--media-r); }
.course-copy { padding: 20px 12px 12px; }
.course-copy h2 { margin-top: 14px; }
@media (min-width: 900px) {
  .course { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .course-copy { padding: 24px 28px 24px 0; }
}

.cta { text-align: center; padding: 48px 24px; }
.cta .lede { margin-left: auto; margin-right: auto; }

/* ---- footer ---- */
.foot { padding: 24px 0 40px; font-size: 12px; color: var(--mos-muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a:hover { color: var(--mos-text); }

/* ---- small screens ---- */
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top-row > .pill.primary { margin-left: auto; }
  .section { padding: 28px 0; }
  .card { padding: 20px; }
  .split { padding: 24px; }
  .pill.lg { height: 42px; padding: 0 18px; }
}

/* ---- Studio custom cursor (fine pointer only; tokens set by home.js) ---- */
@media (hover: hover) and (pointer: fine) {
  .blog-shell, .blog-shell * { cursor: var(--studio-cursor-default, auto) !important; }
  .blog-shell :is(a, button):is(:hover, :active),
  .blog-shell :is(a, button):is(:hover, :active) * { cursor: var(--studio-cursor-active, pointer) !important; }
  .blog-shell :where(h1, h2, h3, p, li span) { cursor: var(--studio-cursor-text, text) !important; }
  .shell a :where(span, svg) { cursor: var(--studio-cursor-active, pointer) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- small extras ---- */
.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--mos-accent-ink); background: var(--tint); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.small { display: flex; gap: 16px; align-items: flex-start; }
.small h3 { margin-bottom: 4px; }
.small p { font-size: 14px; }
.ticks svg { color: var(--mos-accent-ink); }

/* =====================================================================
   Studio parts, ported from /opt/yatishara-studio (values copied):
   studio-messages.css (DM rows, bubbles, composer), studio-profile-avatar.css,
   studio-agent-avatar.css, agent-steps.css (active bot, task pills),
   studio-status-glyph.css, chrome/studio-shimmer-status.css,
   studio-agent.css (head tabs), planner/studio-planner.css (calendar tones).
   ===================================================================== */
.demo-window {
  border-radius: var(--card-r);
  background: var(--studio-card-surface, var(--card-fill));
  box-shadow: var(--card-shadow-lg);
  padding: 10px;
  min-width: 0;
}
.demo-window-head { padding: 2px 2px 10px; overflow: hidden; }
.demo-window-body { border-radius: 16px; background: var(--mos-page); overflow: hidden; min-width: 0; }

/* studio-agent.css .studio-agent-sidebar-tabs .studio-admin-head-tab */
.studio-admin-head-tabs { display: flex; gap: 4px; padding: 0 2px; overflow: hidden; }
.studio-admin-head-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; min-height: 28px; padding: 0 11px;
  border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--mos-ink, #111) 6%, transparent);
  color: var(--mos-muted);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
:root[data-appearance="dark"] .studio-admin-head-tab { background: color-mix(in srgb, #fff 6%, transparent); }
.studio-admin-head-tab svg { width: 14px; height: 14px; }
.studio-admin-head-tab.is-active {
  background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, var(--mos-page));
  color: var(--mos-text);
}

/* studio-profile-avatar.css + profileAvatarGradient letter fallback */
.studio-profile-avatar {
  --spa-size: 32px; --spa-font: 11px;
  position: relative; box-sizing: border-box; display: block; flex-shrink: 0;
  width: var(--spa-size); height: var(--spa-size); border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: var(--spa-font); font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.studio-profile-avatar.is-sm { --spa-size: 26px; --spa-font: 9px; }
.studio-profile-avatar.is-md { --spa-size: 32px; --spa-font: 11px; }
.studio-profile-avatar-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-size: 100% 100%; background-repeat: no-repeat; color: #fff;
}

/* studio-agent-avatar.css: locked disk, accent tint, face */
.studio-agent-avatar {
  --studio-agent-avatar-size: 28px;
  display: inline-grid; place-items: center; flex: 0 0 var(--studio-agent-avatar-size);
  width: var(--studio-agent-avatar-size); height: var(--studio-agent-avatar-size);
  border-radius: 50%; overflow: hidden; line-height: 0;
  background: linear-gradient(145deg, var(--cursor-accent), #46a66f);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent);
}
.studio-agent-avatar svg { width: 100%; height: 100%; display: block; }
.studio-agent-avatar-head { fill: #fff; }
.studio-agent-avatar-eyes { fill: var(--cursor-accent-ink, #18201c); }
.studio-agent-working { position: relative; display: inline-grid; place-items: center; width: var(--studio-agent-avatar-size); height: var(--studio-agent-avatar-size); flex: 0 0 auto; }
.studio-agent-working-aura {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--cursor-accent) 70%, transparent), transparent 60%);
  animation: ys-spin 2.4s linear infinite;
}
.studio-agent-working .studio-agent-avatar { position: relative; }
@keyframes ys-spin { to { transform: rotate(360deg); } }

/* agent-steps.css .studio-agent-active-bot */
.studio-agent-active-bot { display: inline-flex; align-items: center; justify-content: center; color: var(--cursor-accent-ink, var(--cursor-accent)); animation: studio-agent-active-bot 1.6s ease-in-out infinite; }
.studio-agent-active-bot svg { width: 14px; height: 14px; }
@keyframes studio-agent-active-bot {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 0 transparent); }
  50% { opacity: 1; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--cursor-accent) 85%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--cursor-accent) 45%, transparent)); }
}

/* studio-status-glyph.css */
.studio-status-glyph {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto;
  min-width: var(--status-glyph-size, 14px); min-height: var(--status-glyph-size, 14px); line-height: 1;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.studio-status-glyph svg { width: var(--status-glyph-size, 14px); height: var(--status-glyph-size, 14px); stroke-width: 2.5; }
.studio-status-glyph.is-done { color: var(--cursor-success, var(--mos-success, #16a34a)); }
.studio-status-glyph.is-waiting { color: var(--mos-warning, #d97706); }
.studio-status-glyph.is-running { color: var(--cursor-accent-ink, var(--cursor-accent, var(--mos-accent))); }
.studio-status-glyph-pulse { display: block; border-radius: 999px; background: currentColor; animation: studio-status-glyph-pulse 1.4s ease-in-out infinite; }
@keyframes studio-status-glyph-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
}
/* clock -> check, CSS only */
.glyph-flip { position: relative; display: inline-grid; width: 14px; height: 14px; }
.glyph-flip > * { grid-area: 1 / 1; }
.glyph-flip > .is-pending { animation: ys-out 6s steps(1) infinite; }
.glyph-flip > .is-done { animation: ys-in 6s steps(1) infinite; }
@keyframes ys-out { 0% { opacity: 1; } 55% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ys-in { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }

/* studio-messages.css: DM sidebar rows */
.dm-split { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr); min-height: 400px; }
.studio-dm-sidebar { display: grid; align-content: start; gap: 2px; padding: 8px 6px; border-right: 0; background: color-mix(in srgb, var(--mos-plate) 60%, var(--mos-page)); }
.studio-dm-row {
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0;
  padding: 6px 12px 6px 8px; border: 1px solid transparent;
  --studio-dm-row-radius-start: 32px; --studio-dm-row-radius-end: 16px;
  border-radius: var(--studio-dm-row-radius-start) var(--studio-dm-row-radius-end) var(--studio-dm-row-radius-end) var(--studio-dm-row-radius-start);
}
.studio-dm-row.is-active { /* chrome/studio-chrome-kit.css .studio-chrome-plate-surface */
  border: 1px solid color-mix(in srgb, var(--color-cursor-border-soft, var(--mos-border-soft)) 82%, transparent);
  background: var(--mos-plate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.04);
}
:root[data-appearance="dark"] .studio-dm-row.is-active { box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent), 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 10px rgb(0 0 0 / 0.06); }
.studio-dm-row-main { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.studio-dm-row-avatar-wrap { display: grid; place-items: center; position: relative; flex: 0 0 auto; width: 48px; height: 48px; }
.studio-dm-row-avatar-wrap .studio-profile-avatar { --spa-size: 48px; --spa-font: 15px; }
.studio-dm-row-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.studio-dm-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.studio-dm-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; color: var(--mos-text); }
.studio-dm-row-top time { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 10px; font-weight: 600; color: var(--mos-muted); white-space: nowrap; }
.studio-dm-row-top time.is-unread { color: var(--cursor-accent-ink, var(--mos-accent)); }
.studio-dm-wa-mark { width: 10px; height: 10px; flex: 0 0 auto; color: #25d366; opacity: 0.9; display: inline-block; vertical-align: -1px; fill: currentColor; stroke: none; }
.studio-dm-source-mark { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--mos-muted) 35%, transparent); }
.studio-dm-row-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.studio-dm-row-preview { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 1.25; font-weight: 500; color: var(--mos-muted); }
.studio-dm-unread-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: var(--cursor-accent-ink, var(--cursor-accent, var(--mos-accent))); }
.studio-dm-online-dot { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid #3dd68c; pointer-events: none; z-index: 2; }

/* chat column, bubbles */
.studio-dm-chat-column {
  display: flex; flex-direction: column; min-width: 0; background: var(--mos-page);
  --studio-dm-peer-bubble-bg: color-mix(in srgb, var(--mos-text) 6%, transparent);
}
:root[data-appearance="dark"] .studio-dm-chat-column { --studio-dm-peer-bubble-bg: color-mix(in srgb, var(--mos-text) 10%, transparent); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.studio-dm-messages { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; flex: 1 1 auto; }
.studio-dm-bubble-row { display: flex; justify-content: flex-start; align-items: flex-end; gap: 8px; width: 100%; min-width: 0; }
.studio-dm-bubble-row.is-mine { justify-content: flex-end; }
.studio-dm-bubble-row.has-sender { margin-top: 8px; }
.studio-dm-bubble-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 24px; }
.studio-dm-bubble-avatar .studio-profile-avatar { --spa-size: 24px; --spa-font: 9px; }
.studio-dm-bubble-stack { display: flex; flex-direction: column; min-width: 0; max-width: 84%; border-radius: var(--studio-r-3xl, 16px); }
.studio-dm-bubble {
  display: inline-flex; flex-direction: column; gap: 2px; min-width: min(7.25rem, 100%); max-width: 100%; width: fit-content;
  padding: 8px 11px; border-radius: var(--studio-r-3xl, 16px);
  background: var(--studio-dm-peer-bubble-bg); color: var(--mos-text);
  font-size: 13px; line-height: 1.42; overflow-wrap: anywhere;
}
.studio-dm-bubble-row.is-mine .studio-dm-bubble { background: var(--cursor-accent, var(--mos-accent)); color: #fff; }
.studio-dm-msg-head { display: flex; align-items: center; gap: 6px; height: 20px; margin: 0 0 2px; }
.studio-dm-msg-head-copy { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.studio-dm-sender-name { font-size: 12px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.studio-dm-time { font-size: 10px; font-weight: 600; color: var(--mos-muted); }
.studio-dm-bubble.is-typing { min-width: 0; padding: 10px 12px; }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--mos-muted); animation: ys-typing 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ys-typing { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* agent-steps.css task pills above the composer */
.studio-agent-task-pill-row { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; margin: 0 0 6px; }
.studio-agent-task-meter {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 8px;
  border-radius: 999px; background: var(--mos-plate);
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft));
  font-size: 12px; font-weight: 600;
}
.task-pill-lead { display: inline-grid; place-items: center; width: 20px; color: var(--mos-muted); }
.task-pill-lead > svg { width: 14px; height: 14px; }
.task-pill-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* studio-messages.css .studio-dm-composer-box: translucent, 3px blur */
.studio-dm-composer.is-split { padding: 0 8px 10px; }
.studio-dm-composer-box {
  position: relative; border-radius: 20px;
  background: var(--studio-composer-bg-page);
  -webkit-backdrop-filter: var(--studio-composer-blur); backdrop-filter: var(--studio-composer-blur);
  box-shadow: inset 0 0 0 1px var(--studio-composer-ring);
}
:root[data-appearance="light"] .studio-dm-composer-box { background: var(--studio-composer-bg); }
.composer-row { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 12px; color: var(--mos-muted); font-size: 13px; }
.composer-input { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.composer-tool svg { width: 16px; height: 16px; }
.dm-composer-submit { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--cursor-accent, var(--mos-accent)); color: #fff; }
.dm-composer-submit svg { width: 16px; height: 16px; }

/* chrome/studio-shimmer-status.css */
.studio-shimmer { position: relative; overflow: hidden; }
.studio-shimmer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--mos-text) 7%, transparent) 50%, transparent 80%);
  transform: translateX(-100%); animation: studio-shimmer-sweep 1.6s ease-in-out infinite; pointer-events: none;
}
.studio-shimmer-glow { color: var(--cursor-accent-ink, var(--mos-accent)); animation: studio-shimmer-pulse 1.4s ease-in-out infinite; }
@keyframes studio-shimmer-sweep { to { transform: translateX(100%); } }
@keyframes studio-shimmer-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.studio-shimmer-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; min-height: 72px; padding: 12px; border-radius: inherit;
  background: var(--mos-plate); text-align: center;
}
.studio-shimmer-status > * { position: relative; }
.studio-shimmer-status-time { font-size: 1.375rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px color-mix(in srgb, var(--mos-accent) 55%, transparent); }
.studio-shimmer-status-sub { font-size: 12px; color: var(--mos-muted); }
.studio-gen-tile-badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgb(0 0 0 / 0.45); color: #fff; font-size: 10px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---- landing sections around the parts ---- */
.feature-section { padding: clamp(48px, 7vw, 104px) 0; }
.feature-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature-section.is-flip .feature-copy { order: 2; }
}
.feature-copy { max-width: 520px; }
.feature-copy h2 { margin-top: 14px; font-size: clamp(28px, 2.4vw + 10px, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.feature-demo { min-width: 0; }
.section-head.center { text-align: center; justify-items: center; margin: 0 auto 32px; max-width: 640px; }
.section-head.center h2 { margin-top: 8px; }
.mini-list { display: grid; gap: 8px; margin-top: 22px; }
.mini-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mini-list svg { width: 18px; height: 18px; color: var(--mos-accent-ink); }
.mock-lines { display: grid; min-width: 0; line-height: 1.25; }
.mock-lines b { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-lines i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.pill.xs { height: 26px; padding: 0 10px; font-size: 11px; gap: 5px; }
.pill.xs svg { width: 12px; height: 12px; }

/* office board */
.office-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.ob-tile { border-radius: 14px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); padding: 10px; min-width: 0; display: grid; gap: 6px; align-content: start; }
.ob-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--mos-muted); padding: 0 2px 2px; }
.ob-head svg { width: 14px; height: 14px; }
.ob-tile .studio-dm-row { padding: 4px 8px 4px 4px; }
.ob-tile .studio-dm-row-avatar-wrap { width: 34px; height: 34px; }
.ob-tile .studio-dm-row-avatar-wrap .studio-profile-avatar { --spa-size: 32px; --spa-font: 11px; }
.ob-gen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ob-gen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.ob-steps { display: grid; gap: 6px; }
.ob-steps span { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--mos-page); font-size: 12px; font-weight: 600; }
.ob-cal { display: grid; gap: 6px; }

/* calendar (planner tones) */
:root { --cal-meeting-dot: #3b82f6; --cal-task-dot: #f97316; --cal-run-dot: #14b8a6; --cal-checkpoint-dot: #a855f7; }
.cal-mini, .cal-item { --tone: var(--cal-meeting-dot); background: color-mix(in srgb, var(--tone) 12%, var(--mos-page)); border-radius: 10px; box-shadow: inset 3px 0 0 var(--tone); }
.cal-mini { display: grid; padding: 8px 10px; font-size: 12px; font-weight: 600; }
.cal-mini b { font-size: 10px; color: var(--mos-muted); }
.is-task { --tone: var(--cal-task-dot); }
.is-run { --tone: var(--cal-run-dot); }
.is-booking { --tone: var(--cal-checkpoint-dot); }
.cal-day { padding: 14px; }
.cal-dayhead { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 12px; }
.cal-dayhead b { font-size: 15px; }
.cal-dayhead span { font-size: 12px; color: var(--mos-accent-ink); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 10px; align-items: center; }
.cal-hour { font-size: 11px; color: var(--mos-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 14px; }
.cal-item > svg { width: 16px; height: 16px; color: var(--tone); }
.cal-item > div { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.cal-item b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.cal-faces { display: flex; }
.cal-faces .studio-profile-avatar + .studio-profile-avatar { margin-left: -8px; }
.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--mos-accent-ink); background: var(--tint); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }

/* diagrams */
.diagram { position: relative; }
.dg-flow { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow: hidden; padding: 4px 0 14px; }
.dg-node {
  display: grid; justify-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 14px 8px;
  border-radius: 18px; background: var(--card-fill); box-shadow: var(--card-shadow); text-align: center;
}
.dg-node-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--tint); color: var(--mos-accent-ink); }
.dg-node-icon svg { width: 19px; height: 19px; }
.dg-node-copy { display: grid; line-height: 1.25; }
.dg-node-copy b { font-size: 13px; }
.dg-node-copy i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.dg-node.is-soon { opacity: 0.75; }
.dg-node.is-soon .dg-node-copy i { color: var(--mos-accent-ink); font-weight: 600; }
.wa-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: #25d366; color: #fff; margin: -0px; }
.dg-node-icon:has(.wa-dot) { background: none; }
.wa-dot svg { width: 20px; height: 20px; }
.dg-link { position: relative; flex: 0 0 22px; height: 2px; background: color-mix(in srgb, var(--mos-accent) 45%, transparent); }
.dg-link-dot { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--mos-accent); animation: ys-travel 2.4s ease-in-out infinite; }
@keyframes ys-travel { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.stack-demo { display: grid; gap: 14px; }
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.kb-card { border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); padding: 16px; display: grid; gap: 8px; }
.kb-head { display: flex; align-items: center; gap: 8px; color: var(--mos-accent-ink); margin-bottom: 4px; }
.kb-head b { color: var(--mos-text); font-size: 14px; }
.kb-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--inset); font-size: 12px; }
.kb-row span { color: var(--mos-muted); font-size: 11px; }

.dg-create { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 0.8fr); align-items: center; }
.dg-create .dg-link { flex: none; width: 22px; }
.dg-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--card-r); background: var(--card-fill); box-shadow: var(--card-shadow); min-width: 0; }
.dg-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--mos-accent-ink); }
.dg-step svg { width: 14px; height: 14px; }
.prompt-text { font-size: 14px; line-height: 1.45; padding: 12px; border-radius: 14px; background: var(--inset); }
.gen-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; }
.gen-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen-frame .studio-shimmer-status { position: absolute; inset: 0; z-index: 2; animation: ys-gen-out 7s ease-in-out infinite; }
.gen-frame .gen-reveal { z-index: 1; }
@keyframes ys-gen-out { 0%, 62% { opacity: 1; } 72%, 92% { opacity: 0; } 100% { opacity: 1; } }
.gen-actions { display: flex; }
.dg-approve { justify-items: start; }

/* workflow canvas */
.wf-canvas { padding: 16px; display: grid; gap: 14px; }
.wf-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wf-title svg { width: 16px; height: 16px; color: var(--mos-accent-ink); }
.wf-run { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mos-muted); font-weight: 600; }
.wf-lane { display: grid; gap: 0; }
.wf-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); }
.wf-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--tint); color: var(--mos-accent-ink); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.wf-copy { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.wf-copy b { font-size: 13px; }
.wf-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mos-muted); }
.wf-who .studio-profile-avatar { --spa-size: 20px; --spa-font: 8px; box-shadow: none; }
.wf-approve { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, #d97706 14%, transparent); color: #b45309; font-size: 11px; font-weight: 600; }
:root[data-appearance="dark"] .wf-approve { color: #f59e0b; }
.wf-approve svg { width: 12px; height: 12px; }
.wf-status { display: inline-grid; place-items: center; width: 22px; }
.wf-join { display: block; width: 2px; height: 14px; margin-left: 26px; background: color-mix(in srgb, var(--mos-accent) 40%, transparent); }

/* files */
.files { padding: 14px; display: grid; gap: 12px; }
.file-folders { display: flex; gap: 6px; flex-wrap: wrap; }
.folder-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--inset); font-size: 12px; font-weight: 600; color: var(--mos-muted); }
.folder-chip svg { width: 14px; height: 14px; }
.folder-chip.is-on { background: var(--tint); color: var(--mos-accent-ink); }
.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.file-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; }
.file-tile img { width: 100%; height: 100%; object-fit: cover; }
.file-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgb(0 0 0 / 0.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.file-play svg { width: 14px; height: 14px; fill: #fff; }

/* grows with you */
.stage-grid { align-items: stretch; }
.stage { display: grid; gap: 10px; align-content: start; }
.stage h3 { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.stage h3 svg { width: 18px; height: 18px; color: var(--mos-accent-ink); }
.stage p { font-size: 14px; }
.stage-demo { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--mos-page); }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.member .mock-lines { flex: 1 1 auto; }
.role-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--inset); color: var(--mos-muted); }
.ws-icon { width: 32px !important; height: 32px !important; padding: 7px; border-radius: 10px; background: var(--tint); color: var(--mos-accent-ink); flex: 0 0 auto; }

/* connectors */
.dg-connect { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.1fr); align-items: center; }
.conn-col { display: grid; gap: 14px; }
.conn-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--card-fill); box-shadow: var(--card-shadow); min-width: 0; }
.conn-node b { flex: 1 1 auto; font-size: 14px; }
.conn-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.conn-state { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--cursor-success, #16a34a); }
.conn-state svg { width: 12px; height: 12px; }
.conn-lines { width: 100%; height: 100%; min-height: 220px; overflow: visible; }
.conn-lines path { fill: none; stroke: var(--mos-accent); stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: ys-dash 1.2s linear infinite; }
@keyframes ys-dash { to { stroke-dashoffset: -20; } }
.conn-office { display: grid; gap: 12px; justify-items: start; padding: 20px; border-radius: var(--card-r); background: var(--studio-card-surface, var(--card-fill)); box-shadow: var(--card-shadow-lg); }
.conn-office > b { font-size: 16px; }
.conn-office-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--tint); }
:root[data-appearance="dark"] .conn-office-mark img { filter: invert(1); }
.conn-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.conn-tools span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--mos-page); font-size: 12px; font-weight: 600; }
.conn-tools svg { width: 14px; height: 14px; color: var(--mos-accent-ink); }

/* academy */
.academy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px; align-items: center; }
.academy-art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.academy-copy { display: grid; gap: 6px; }
.academy-copy b { font-size: 16px; }
.academy-copy i { font-style: normal; font-size: 12px; color: var(--mos-muted); }
.lessons { display: grid; gap: 6px; margin-top: 8px; }
.lessons li { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--mos-plate) 70%, var(--mos-page)); font-size: 12px; font-weight: 600; }

.grid-2.narrow, .narrow-card { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---- responsive ---- */
@media (max-width: 1099px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .dg-create > .dg-link { display: none; }
}
@media (max-width: 760px) {
  .dm-split { grid-template-columns: minmax(0, 1fr); }
  .studio-dm-sidebar { display: none; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .dg-flow { flex-direction: column; align-items: stretch; }
  .dg-flow .dg-node { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .dg-flow .dg-link { flex: 0 0 16px; width: 2px; height: 16px; margin-left: 27px; }
  .dg-flow .dg-link-dot { left: -2px; animation-name: ys-travel-y; }
  .dg-connect { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .conn-lines { display: none; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .office-board { grid-template-columns: minmax(0, 1fr); }
  .dg-create { grid-template-columns: minmax(0, 1fr); }
}
@keyframes ys-travel-y { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gen-frame .studio-shimmer-status { animation: none; opacity: 0; }
  .glyph-flip > .is-pending { animation: none; opacity: 0; }
  .glyph-flip > .is-done { animation: none; opacity: 1; }
  .dg-link-dot { display: none; }
}
@media (min-width: 1000px) { .feature-section.is-flip .feature-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.section-head h2 { text-wrap: balance; }
.dg-create .gen-frame { aspect-ratio: 1 / 1; }
.dg-create { max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { .dm-split { min-height: 0; } }
/* Longer sanity headline: wider copy when stacked, smaller type side by side. */
@media (max-width: 1099px) { .hero-copy { max-width: 980px; } }
@media (min-width: 1100px) { .hero h1 { font-size: clamp(38px, 2.9vw, 52px); } }

.hl { color: var(--mos-accent-ink, var(--mos-accent)); font-weight: 600; }
/* ---- hero: shorter headline, larger type ---- */
.hero { padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 680px; }
.hero h1 { margin-top: 20px; font-size: clamp(44px, 5.4vw + 12px, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.hero .lede { margin-top: 22px; font-size: clamp(16px, 0.45vw + 14px, 20px); max-width: 34em; }
.hero .pill-row { margin-top: 30px; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(56px, 5.2vw, 92px); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hero-copy { max-width: 760px; }
}
/* ---- generation tile (StudioGenerationTile) ---- */
.studio-gen-tile { position: relative; overflow: hidden; border-radius: var(--media-r); background: var(--mos-plate); width: 100%; }
.studio-gen-tile > img, .studio-gen-tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-gen-tile .gen-cover { position: absolute; inset: 0; z-index: 1; animation: ys-gen-cover 7s ease-in-out infinite; }
@keyframes ys-gen-cover { 0%, 45% { opacity: 1; } 55%, 92% { opacity: 0; } 100% { opacity: 1; } }

/* ---- AgentTaskPill strip (agent-steps.css), one horizontal row ---- */
.studio-agent-task-strip { --studio-agent-fill-slant: 7px; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%); }
.studio-agent-task-strip::-webkit-scrollbar { display: none; }
.studio-agent-task-strip-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: max-content; padding: 0 14px 0 0; }
.studio-agent-task-pill { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; max-width: 170px; box-sizing: border-box; overflow: hidden;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 999px; background: var(--mos-plate); color: var(--mos-text); }
.studio-agent-task-pill-fill { position: absolute; inset: 0 auto 0 0; width: 55%; background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--studio-agent-fill-slant)) 100%, 0 100%); animation: ys-fill 4s ease-in-out infinite alternate; }
@keyframes ys-fill { from { width: 30%; } to { width: 85%; } }
.studio-agent-task-pill-label { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 0 8px 0 3px; font-size: 0.6875rem; font-weight: 600; line-height: 1; }
.studio-agent-task-pill-lead { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 12px; height: 12px; margin-left: 3px; }
.studio-agent-task-pill-lead svg { width: 12px; height: 12px; stroke-width: 2.25; }
.studio-agent-task-pill-lead.is-avatar { width: 18px; height: 18px; margin-left: 0; border-radius: 999px; background: color-mix(in srgb, var(--cursor-accent) 26%, var(--mos-plate)); color: var(--cursor-accent-ink, var(--cursor-accent)); }
.studio-agent-task-pill-lead.is-avatar svg { width: 11px; height: 11px; }
.studio-agent-task-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-agent-task-pill-icon { flex: 0 0 auto; --status-glyph-size: 10px; }
.studio-agent-task-pill-icon svg { width: 10px; height: 10px; stroke-width: 3; }

/* ---- DM composer (StudioComposerMenusGallery markup, studio-messages.css sizes) ---- */
.studio-dm-composer.is-split { padding: 0; }
.studio-dm-composer-box { border-radius: 20px; }
.studio-dm-composer.is-split .studio-dm-composer-row { display: flex; align-items: center; width: 100%; min-width: 0; }
.studio-dm-composer.is-split .studio-dm-composer-row.is-message { margin: 0 8px; padding: 12px 6px 4px; width: auto; }
.studio-dm-input { font-size: 14px; line-height: 1.4; color: var(--mos-text); }
.studio-dm-input.is-placeholder { color: var(--mos-muted); }
.studio-dm-composer.is-split .studio-dm-composer-row.is-extras { min-height: 46px; padding: 4px 8px 6px; gap: 8px; }
.studio-dm-composer-mode-cluster { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.studio-dm-extras-spacer { flex: 1 1 auto; min-width: 8px; }
.studio-composer-circle-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--mos-text) 6%, transparent); color: var(--mos-text-soft, var(--mos-muted)); }
.studio-composer-circle-btn svg, .studio-dm-mode-pill svg { width: 15px; height: 15px; }
.studio-composer-send-btn.is-chat-send { background: var(--cursor-accent, var(--mos-accent)); color: var(--cursor-on-accent, #fff); }
.studio-dm-mode-pill { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--mos-text) 6%, transparent); color: var(--mos-muted); }
.studio-dm-mode-pill-preview { display: inline-grid; place-items: center; }

/* ---- Canvas (studio-canvas.css): head pills + rounded page ---- */
.canvas-doc-pane { display: grid; gap: 10px; min-width: 0; }
.canvas-doc-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.canvas-doc-title, .canvas-doc-tools > span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); background: var(--mos-page); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--mos-text); }
.canvas-doc-title { min-width: 0; margin-right: auto; }
.canvas-doc-title > svg { color: var(--mos-muted); width: 14px; height: 14px; }
.canvas-doc-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.canvas-doc-tools { display: flex; gap: 6px; }
.canvas-doc-tools svg { width: 13px; height: 13px; color: var(--mos-muted); }
.canvas-doc-body { display: grid; place-items: center; padding: 18px 0 6px; border-radius: 16px; background: color-mix(in srgb, var(--mos-text) 4%, transparent); }
.canvas-page { width: min(62%, 190px); aspect-ratio: 8.5 / 11; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgb(15 23 42 / 0.14), 0 2px 6px rgb(15 23 42 / 0.08); margin-bottom: 12px; }
.canvas-page img { width: 100%; height: 100%; object-fit: cover; }


/* ---- v13: one contained surface per demo (no box inside a box) ---- */
.demo-window { padding: 0; overflow: hidden; }
.demo-window-head { padding: 10px 10px 4px; }
.demo-window-body { border-radius: 0; background: transparent; }
.studio-dm-chat-column, .studio-dm-sidebar { background: transparent; }
.studio-dm-sidebar { box-shadow: inset -1px 0 0 color-mix(in srgb, var(--mos-text) 7%, transparent); }
.ob-tile { background: transparent; border-radius: 0; padding: 12px; }
.office-board { gap: 0 !important; }
.office-board .ob-tile + .ob-tile { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--mos-text) 7%, transparent); }
.wf-step { background: transparent; border-radius: 0; padding: 12px 6px; }
.wf-step + .wf-join + .wf-step, .wf-join + .wf-step { box-shadow: none; }
.stage-demo { background: transparent; padding: 0 0 6px; border-radius: 0; }
.academy { padding: 0; }
.academy-art { border-radius: 0; }
.academy-copy { padding: 16px 16px 16px 0; }
.dg-card .canvas-doc-body { background: color-mix(in srgb, var(--mos-text) 4%, transparent); }
.dg-card:not(.has-composer) .studio-dm-composer-box { box-shadow: none; background: transparent; }
.dg-card:not(.has-composer) .studio-dm-composer.is-split .studio-dm-composer-row.is-message { margin: 0; padding: 4px 0; }
.dg-card:not(.has-composer) .studio-dm-composer.is-split .studio-dm-composer-row.is-extras { padding: 4px 0 0; }
.studio-dm-chat-column .studio-agent-task-strip { padding: 0 10px; margin-bottom: 6px; }
.studio-dm-chat-column .studio-dm-composer.is-split { padding: 0 8px 10px; }
.gen-frame .gen-reveal, .studio-gen-status-frame img { object-fit: cover; }
.file-grid .studio-gen-tile { aspect-ratio: 9 / 16 !important; }
.ob-gen img { aspect-ratio: 9 / 16; object-fit: cover; }
/* real logos in the v11 connector diagram */
.conn-mark.is-logo { display: grid; place-items: center; background: color-mix(in srgb, var(--mos-text) 7%, transparent); color: var(--mos-text); }
.conn-mark.is-logo svg { width: 18px; height: 18px; }
/* founders: same row layout at every width */
@media (max-width: 480px) { .person { flex-direction: row; align-items: flex-start; } .person img { width: 56px; height: 56px; } }
/* Canvas examples: website + invoice, one surface */
.canvas-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 14px; }
@media (max-width: 760px) { .canvas-duo { grid-template-columns: minmax(0, 1fr); } }
.canvas-duo .canvas-doc-body { padding: 16px 12px 4px; }
.canvas-page.is-site, .canvas-page.is-invoice { width: 100%; height: auto; color: #18181b; font-size: 10px; line-height: 1.35; padding: 12px; display: grid; gap: 10px; align-content: start; }
.canvas-page.is-site { aspect-ratio: 16 / 11; }
.canvas-page.is-invoice { aspect-ratio: 210 / 297; max-width: 220px; }
.canvas-page.is-site img, .canvas-page.is-invoice img { height: auto; }
.cv-nav { display: flex; gap: 10px; align-items: center; font-size: 9px; color: #52525b; }
.cv-nav b { margin-right: auto; color: #18181b; font-size: 11px; }
.cv-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; align-items: center; }
.cv-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cv-hero b { display: block; font-size: 13px; line-height: 1.15; letter-spacing: -0.02em; }
.cv-hero i { display: block; font-style: normal; color: #52525b; margin: 4px 0 8px; }
.cv-btn { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #a16207; color: #fff; font-weight: 600; font-size: 9px; }
.cv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cv-cards span { padding: 6px 8px; border-radius: 8px; background: #f4f1ea; color: #52525b; }
.cv-cards b { color: #18181b; }
.cv-inv-head { display: flex; justify-content: space-between; align-items: baseline; }
.cv-inv-head b { font-size: 15px; letter-spacing: -0.02em; }
.cv-inv-head span, .cv-inv-meta i { color: #71717a; font-style: normal; display: block; }
.cv-inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-weight: 600; }
.cv-inv-rows { display: grid; gap: 0; }
.cv-inv-rows span { display: flex; justify-content: space-between; padding: 5px 0; box-shadow: 0 1px 0 #ececec; }
.cv-inv-total { display: flex; justify-content: space-between; padding-top: 4px; font-size: 12px; }
/* v14: v12 preview content folded into the v13 layout */
.studio-dm-messages .hero-gens { padding-left: 32px; }
.wf-canvas-view { display: grid; gap: 12px; padding: 12px 14px 4px; }
.studio-run-view-switch { display: inline-flex; gap: 4px; justify-self: start; }
.studio-run-view-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--mos-muted); background: color-mix(in srgb, var(--mos-text) 6%, transparent); }
.studio-run-view-tab svg { width: 14px; height: 14px; }
.studio-run-view-tab.is-active { color: var(--mos-text); background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 16%, var(--mos-page)); }
.wf-canvas { display: grid; justify-items: start; padding: 4px 0 8px; background-image: radial-gradient(color-mix(in srgb, var(--mos-text) 12%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
.studio-workflows-node-quiet { display: inline-flex; align-items: center; gap: 6px; }
.studio-workflows-node-quiet .studio-profile-avatar { --spa-size: 18px; --spa-font: 7px; }
.dg-approve .studio-gen-tile { max-width: 120px; aspect-ratio: 9 / 16; margin-top: 6px; }
.lev-ask { margin-top: 16px; }
.lev-ask .studio-agent-task-strip { margin: 4px 0; }
.lev-ask .leverage-grid { max-width: 360px; }
/* Canvas title pill: never truncate in the narrow Create card */
.dg-card .canvas-doc-head { flex-wrap: wrap; }
.dg-card .canvas-doc-title { margin-right: 0; }
.dg-card .canvas-doc-title-text { overflow: visible; }

/* v14: ported v12 rules */
.hero-gens { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.kb-source { display: inline-flex; align-items: center; gap: 6px; margin-left: 32px; font-size: 12px; font-weight: 600; color: var(--mos-accent-ink); }
.kb-source svg { width: 13px; height: 13px; }
/* ---- workflow canvas (WorkflowCanvas.tsx node + gradient edge) ---- */
.wf-canvas { display: grid; justify-items: start; gap: 0; padding: 4px 0; }
.studio-workflows-node { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: min(240px, 100%); min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 12px; background: var(--mos-plate); box-shadow: var(--cursor-shadow-menu, 0 8px 24px rgba(0,0,0,.10)); font-size: 12px; }
.studio-workflows-node-copy { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; min-width: 0; }
.studio-workflows-node-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.studio-workflows-node-step { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--mos-muted); background: var(--mos-page); box-shadow: 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); }
.studio-workflows-node-title { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.studio-workflows-node-meta { display: flex; align-items: center; gap: 4px; }
.studio-workflows-node-quiet { color: var(--mos-muted); }
.studio-workflows-node-meta-end { margin-left: auto; }
.studio-workflows-node-chip { position: absolute; left: 12px; bottom: 8px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
  background: var(--mos-plate-strong); color: var(--mos-muted); }
.wf-edge { display: block; width: 2px; height: 22px; margin-left: 22px; border-radius: 2px; background: linear-gradient(var(--mos-accent), color-mix(in srgb, var(--mos-accent) 30%, transparent)); }

.leverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 300px; }
.leverage-grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; animation: ys-pop 0.6s ease both; }
.leverage-grid img:nth-child(2) { animation-delay: .08s; } .leverage-grid img:nth-child(3) { animation-delay: .16s; }
.leverage-grid img:nth-child(4) { animation-delay: .24s; } .leverage-grid img:nth-child(5) { animation-delay: .32s; } .leverage-grid img:nth-child(6) { animation-delay: .4s; }
@keyframes ys-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) { .hero-gens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wf-canvas { display: grid; justify-items: start; padding: 4px 0 8px; background-image: radial-gradient(color-mix(in srgb, var(--mos-text) 12%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
/* v15: previews show only their main content, full width */
.dm-split { grid-template-columns: minmax(0, 1fr) !important; min-height: 0; }

/* v16: every preview fits in view; flat preview surfaces; no section dividers */
:root { --fit-h: calc(100svh - 36px - 24px - 40px); --media-h: clamp(140px, 30svh, 250px); }
.section, .section + .section, .foot { border: 0 !important; box-shadow: none !important; }
hr { display: none; }
/* flat surfaces: one theme token, no gradients, glows or tints */
.demo-window, .dg-card, .dg-node, .conn-node, .conn-office, .kb-card {
  background: var(--mos-plate) !important; background-image: none !important;
}
:root[data-appearance="light"] .demo-window, :root[data-appearance="light"] .dg-card, :root[data-appearance="light"] .dg-node,
:root[data-appearance="light"] .conn-node, :root[data-appearance="light"] .conn-office, :root[data-appearance="light"] .kb-card { background: #fff !important; }
.wf-canvas { background-image: none !important; }
.canvas-doc-body { background: var(--mos-page) !important; }
.studio-dm-composer-box { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* fit in view */
.demo-window, .diagram.dg-create, .diagram.dg-connect { max-height: var(--fit-h); }
.demo-window { overflow: auto; scrollbar-width: none; }
.demo-window::-webkit-scrollbar { display: none; }
.studio-gen-tile { width: auto !important; height: var(--media-h); max-width: 100%; aspect-ratio: 9 / 16; }
.hero-gens { grid-template-columns: repeat(2, max-content) !important; }
.hero-gens .studio-gen-tile { height: clamp(130px, 24svh, 210px); }
.ob-gen img, .file-grid .studio-gen-tile { max-height: clamp(120px, 24svh, 210px); width: 100%; object-fit: cover; }
.file-grid .studio-gen-tile { height: clamp(120px, 24svh, 210px); width: 100% !important; }
.gen-frame { max-height: var(--media-h); aspect-ratio: auto !important; height: var(--media-h); }
.gen-frame img { width: 100%; height: 100%; object-fit: cover; }
.canvas-page { width: auto; height: clamp(150px, 28svh, 240px); }
.canvas-page.is-site { height: auto; }
.dg-approve .studio-gen-tile { height: clamp(120px, 20svh, 180px); }
.leverage-grid { max-width: none !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.leverage-grid img { max-height: clamp(110px, 20svh, 170px); }
@media (max-width: 760px) { .leverage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .leverage-grid img { max-height: 120px; } }
/* workflows: canvas view and step list side by side; compact nodes */
.demo-window-body:has(> .wf-canvas-view) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; align-items: start; }
@media (max-width: 760px) { .demo-window-body:has(> .wf-canvas-view) { grid-template-columns: minmax(0, 1fr); } }
.studio-workflows-node { min-height: 0; padding: 7px 10px; }
.studio-workflows-node-copy { gap: 3px; padding-bottom: 18px !important; }
.wf-edge { height: 12px; }
.wf-step { padding: 7px 6px; }
.wf-join { height: 6px !important; }
@media (max-width: 760px) {
  .studio-workflows-node-chip { position: static; margin-top: 4px; align-self: flex-start; }
  .studio-workflows-node-copy { padding-bottom: 0 !important; }
  .studio-workflows-node { flex-direction: row; align-items: center; gap: 8px; width: 100%; }
  .studio-workflows-node-copy { flex: 1 1 auto; }
}
@media (max-height: 800px) { .dg-flow .dg-node { padding-top: 8px; padding-bottom: 8px; } }
/* DMs section: the chat list */
.is-dmlist { padding: 8px; display: grid; gap: 6px; }
.dm-list { display: grid; gap: 2px; }
.is-dmlist .studio-dm-row-avatar-wrap { width: 40px; height: 40px; }
.is-dmlist .studio-dm-row-avatar-wrap .studio-profile-avatar { --spa-size: 40px; --spa-font: 13px; }
.dm-group-av { position: relative; width: 40px; height: 40px; display: block; }
.dm-group-av .studio-profile-avatar { position: absolute; --spa-size: 24px !important; --spa-font: 8px !important; box-shadow: 0 0 0 2px var(--mos-plate); }
:root[data-appearance="light"] .dm-group-av .studio-profile-avatar { box-shadow: 0 0 0 2px #fff; }
.dm-group-av .studio-profile-avatar:nth-child(1) { left: 0; top: 0; }
.dm-group-av .studio-profile-avatar:nth-child(2) { right: 0; top: 4px; }
.dm-group-av .studio-profile-avatar:nth-child(3) { left: 8px; bottom: 0; }
.dm-row-glyph { display: inline-flex; margin-left: 2px; }
.is-dmlist .studio-dm-composer.is-split { padding: 0 2px 2px; }
.studio-dm-row.is-active { background: color-mix(in srgb, var(--mos-text) 5%, transparent) !important; box-shadow: none !important; border-color: transparent !important; }
/* diagrams fit by layout, not clipping */
.diagram.dg-create, .diagram.dg-connect { max-height: none; }
@media (max-width: 1099px) {
  .dg-create .gen-frame, .dg-create .canvas-page { height: clamp(120px, 22svh, 190px); }
  .dg-create .dg-card { padding: 10px; gap: 6px; }
}
@media (max-width: 560px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 8px !important; }
  .dg-create .gen-frame, .dg-create .canvas-page { height: 120px; }
  .dg-create .dg-approve .studio-gen-tile { height: 96px; }
  .dg-create .canvas-doc-tools .cursor-select-trigger { display: none; }
  .dg-create .canvas-doc-title, .dg-create .canvas-doc-tools > span { height: 26px; padding: 0 8px; font-size: 11px; }
  .dg-create .canvas-doc-body { padding: 8px 0 2px; }
  .dg-create .dg-card:not(.has-composer) .studio-dm-input { font-size: 12px; }
  .dg-create .dg-card:not(.has-composer) .studio-composer-circle-btn, .dg-create .dg-card:not(.has-composer) .studio-dm-mode-pill { width: 28px; height: 28px; }
  .dg-create .dg-card:not(.has-composer) .studio-dm-mode-pill { width: auto; padding: 0 6px; }
  .dg-create .dg-card:not(.has-composer) .studio-dm-composer.is-split .studio-dm-composer-row.is-extras { gap: 4px; min-height: 0; }
  .dg-create .dg-card:not(.has-composer) .studio-dm-composer-row.is-extras .studio-composer-circle-btn[aria-label="Voice"] { display: none; }
  .dg-connect { gap: 8px !important; }
  .conn-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; }
  .conn-col .conn-node { flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; gap: 6px; }
  .conn-office { padding: 14px; }
}

/* v17: themed scrollbars (thin, accent tinted, transparent track, no arrows) */
:root { --sb-thumb: color-mix(in srgb, var(--mos-accent) 38%, var(--mos-muted)); --sb-thumb-hover: color-mix(in srgb, var(--mos-accent) 70%, var(--mos-muted)); }
:root[data-appearance="dark"] { --sb-thumb: color-mix(in srgb, var(--mos-accent) 45%, transparent); --sb-thumb-hover: color-mix(in srgb, var(--mos-accent) 75%, transparent); }
.home-scroll, .demo-window, .studio-agent-task-strip { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
.home-scroll::-webkit-scrollbar, .demo-window::-webkit-scrollbar { display: block; width: 7px; height: 7px; }
.home-scroll::-webkit-scrollbar-track, .demo-window::-webkit-scrollbar-track, .home-scroll::-webkit-scrollbar-corner { background: transparent; }
.home-scroll::-webkit-scrollbar-thumb, .demo-window::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 1px solid transparent; background-clip: padding-box; }
.home-scroll::-webkit-scrollbar-thumb:hover, .demo-window::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
.home-scroll::-webkit-scrollbar-button, .demo-window::-webkit-scrollbar-button, *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.studio-agent-task-strip::-webkit-scrollbar { display: none; }

/* v17: Choice and simplicity, abstract: tools converging into one workspace */
.converge { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1; max-height: calc(var(--fit-h, 80svh) - 20px); margin: 0 auto; }
.cv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-lines line { stroke: color-mix(in srgb, var(--mos-accent) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: ys-dash 1.6s linear infinite; }
.cv-chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--mos-plate); color: var(--mos-text); font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--pill-shadow);
  animation: cv-float 5s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
:root[data-appearance="light"] .cv-chip { background: #fff; }
.cv-chip svg { width: 15px; height: 15px; color: var(--mos-accent-ink, var(--mos-accent)); }
@keyframes cv-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }
.cv-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; padding: 22px 26px; border-radius: 26px;
  background: var(--tint); color: var(--mos-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--mos-accent) 10%, transparent); animation: cv-breathe 4s ease-in-out infinite; }
.cv-core img { width: 40px; height: 40px; border-radius: 12px; }
.cv-core b { font-size: 13px; font-weight: 600; white-space: nowrap; }
@keyframes cv-breathe { 0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--mos-accent) 10%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--mos-accent) 6%, transparent); } }
@media (max-width: 560px) { .cv-chip { height: 30px; padding: 0 10px; font-size: 12px; gap: 5px; } .cv-core { padding: 16px 18px; } .converge { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cv-chip, .cv-core, .cv-lines line { animation: none; } }
:root[data-appearance="dark"] .cv-core img { filter: invert(1); }
/* v18: Studio source mark (Yatishara π, masked, follows text colour) */
.studio-dm-row-top time .studio-dm-source-mark {
  width: 13px; height: 13px; border-radius: 0; opacity: 1;
  background: var(--color-cursor-text-bright, var(--mos-text)) !important;
  -webkit-mask: url("/brand/yatishara-logo-light-32.webp") center / contain no-repeat;
  mask: url("/brand/yatishara-logo-light-32.webp") center / contain no-repeat;
}
.studio-dm-row-top time .studio-dm-wa-mark { width: 11px; height: 11px; }
/* group stack: separator ring hugs the avatar edge */
.dm-group-av .studio-profile-avatar { border: 0 !important; box-shadow: 0 0 0 1.5px var(--mos-plate) !important; overflow: hidden; }
:root[data-appearance="light"] .dm-group-av .studio-profile-avatar { box-shadow: 0 0 0 1.5px #fff !important; }
.dm-group-av .studio-profile-avatar-fallback { inset: 0; border-radius: 50%; }
/* agent messages: plain bot glyph, no circle */
.studio-dm-bubble-avatar.is-agent-bot { color: var(--cursor-accent-ink, var(--mos-accent)); align-self: flex-end; padding-bottom: 6px; }
.studio-dm-bubble-avatar.is-agent-bot svg { width: 17px; height: 17px; stroke-width: 2; }
/* v19: website Canvas example is a tall landing page, auto-scrolling in its frame */
.canvas-page.is-site { aspect-ratio: auto !important; height: clamp(220px, 34svh, 300px) !important; padding: 0 !important; overflow: hidden; display: block !important; }
.cv-scroll { display: grid; gap: 12px; padding: 12px; animation: cv-autoscroll 16s ease-in-out infinite alternate; }
@keyframes cv-autoscroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + clamp(220px, 34svh, 300px))); } }
.cv-nav .cv-btn { padding: 3px 8px; }
.cv-hero { grid-template-columns: 1.2fr 0.8fr !important; }
.cv-sec { display: grid; gap: 6px; }
.cv-h { font-size: 11px; letter-spacing: -0.01em; }
.cv-cards span { display: grid; gap: 3px; }
.cv-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.cv-rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cv-rev span { display: grid; gap: 3px; padding: 7px; border-radius: 8px; background: #f4f1ea; color: #3f3f46; }
.cv-rev i { font-style: normal; color: #a16207; letter-spacing: 1px; font-size: 9px; }
.cv-rev b { font-size: 9px; color: #18181b; }
.cv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cv-steps span { display: grid; gap: 3px; color: #3f3f46; }
.cv-steps em { font-style: normal; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; background: #a16207; color: #fff; font-size: 9px; font-weight: 700; }
.cv-band { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 10px; background: #a16207; color: #fff; }
.cv-band b { font-size: 12px; }
.cv-btn.is-light { background: #fff; color: #a16207; }
.cv-foot { color: #a1a1aa; font-size: 9px; text-align: center; padding-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .cv-scroll { animation: none; } }

/* ===== v19: workflow canvas, as WorkflowCanvas.tsx renders it (studio-workflows.css values) ===== */
.is-wf { padding: 14px; }
.studio-workflows-canvas { position: relative; height: 380px; background: transparent; }
.is-wf .studio-workflows-node { position: absolute; left: var(--l); top: var(--t); width: 46%; min-height: 84px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--color-cursor-border-soft, var(--mos-border-soft)) 88%, transparent); border-radius: 12px;
  background: var(--mos-plate); box-shadow: 0 1px 2px color-mix(in srgb, #000 14%, transparent); font-size: 12px; z-index: 1; }
:root[data-appearance="light"] .is-wf .studio-workflows-node { background: #fff; }
.is-wf .studio-workflows-node.is-running { border-color: var(--cursor-accent-ink, var(--cursor-accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cursor-accent-ink, var(--cursor-accent)) 28%, transparent); }
.is-wf .studio-workflows-node.is-pending { opacity: 0.78; }
.is-wf .studio-workflows-node-copy { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px !important; }
.is-wf .studio-workflows-node-head { display: flex; align-items: baseline; gap: 8px; }
.is-wf .studio-workflows-node-step { width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  color: var(--mos-muted); background: var(--mos-page); box-shadow: 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); transform: translateY(-0.06em); }
.is-wf .is-passed .studio-workflows-node-step { background: color-mix(in srgb, var(--mos-success, #22c55e) 24%, var(--mos-plate-strong)); color: var(--mos-success, #22c55e); box-shadow: none; }
.is-wf .is-running .studio-workflows-node-step { background: var(--cursor-accent, var(--mos-accent)); color: var(--cursor-on-accent, #fff); box-shadow: none; }
.is-wf .studio-workflows-node-title { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.is-wf .studio-workflows-node-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.is-wf .studio-workflows-node-quiet { width: 100%; color: var(--mos-muted); font-size: 11px; }
.wf-who { display: inline-flex; align-items: center; gap: 5px; color: var(--mos-text-soft, var(--mos-muted)); font-weight: 500; }
.wf-who .studio-profile-avatar { --spa-size: 18px; --spa-font: 7px; border: 0; box-shadow: none; }
.wf-bot { display: inline-grid; place-items: center; color: var(--cursor-accent-ink, var(--mos-accent)); }
.wf-bot svg { width: 15px; height: 15px; }
.is-wf .studio-workflows-node-meta-end { margin-left: auto; }
.studio-status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--mos-plate-strong); color: var(--mos-muted); font-size: 11px; font-weight: 600; line-height: 1.4; text-transform: capitalize; }
.studio-status-pill[data-tone="running"] { background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 20%, var(--mos-plate-strong)); color: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 55%, var(--mos-text)); }
.studio-status-pill[data-tone="passed"] { background: color-mix(in srgb, var(--mos-success, #22c55e) 22%, var(--mos-plate)); color: color-mix(in srgb, var(--mos-success, #22c55e) 88%, var(--mos-text)); }
.is-wf .studio-workflows-node-chip.is-step-kind.is-type-tag { position: absolute; right: 10px; bottom: 10px; left: auto; display: inline-flex; gap: 5px; align-items: center; height: 22px; padding: 1px 8px 1px 5px;
  border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--mos-muted); background: color-mix(in srgb, var(--mos-text) 2%, var(--mos-page)); box-shadow: 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); margin: 0; }
.is-wf .studio-workflows-node-chip svg { width: 12px; height: 12px; color: var(--cursor-accent-ink, var(--cursor-accent)); stroke-width: 2.25; }
.studio-workflows-handle { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 999px; background: var(--mos-plate); box-shadow: 0 0 0 1.5px var(--mos-muted); z-index: 2; }
.studio-workflows-handle.is-target { top: -4px; } .studio-workflows-handle.is-source { bottom: -4px; }
.wf-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.studio-workflows-edge-path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.studio-workflows-edge-path.is-forward { stroke: var(--mos-success, #22c55e); }
.studio-workflows-edge-path.is-loop { stroke: var(--mos-warning, #f59e0b); }
.studio-workflows-edge-path.is-active { stroke-width: 2; stroke-dasharray: 8 6; animation: studio-workflows-edge-flow 0.7s linear infinite; }
@keyframes studio-workflows-edge-flow { to { stroke-dashoffset: -14; } }
.wf-arrow { position: absolute; width: 0; height: 0; margin-left: -5px; margin-top: -8px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--mos-success, #22c55e); z-index: 0; }
.studio-workflows-edge-label { position: absolute; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px; background: var(--mos-plate); color: var(--mos-muted); font-size: 11px; line-height: 16px; white-space: nowrap; z-index: 2;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mos-warning, #f59e0b) 45%, transparent); }
:root[data-appearance="light"] .studio-workflows-edge-label { background: #fff; }
@media (max-width: 560px) {
  .studio-workflows-canvas { height: auto; display: grid; gap: 22px; padding: 4px 0 4px; }
  .is-wf .studio-workflows-node { position: relative; left: auto; top: auto; width: calc(100% - 26px); }
  .wf-edges, .wf-arrow { display: none; }
  .is-wf .studio-workflows-node + .studio-workflows-node::before { content: ""; position: absolute; left: 50%; top: -22px; height: 18px; border-left: 1.5px solid var(--mos-success, #22c55e); }
  .studio-workflows-edge-label { left: auto !important; right: -8px; top: auto !important; bottom: 26px; transform: rotate(90deg); transform-origin: right bottom; }
  .is-wf .studio-workflows-node:last-child::after { content: ""; position: absolute; right: -16px; top: 50%; width: 12px; height: calc(200% + 44px); transform: translateY(-100%); border: 1.5px solid var(--mos-warning, #f59e0b); border-left: 0; border-radius: 0 10px 10px 0; }
}

/* ===== v19: file manager, as desk FileTree preview grid renders it (desk-shell.css values) ===== */
.is-files { position: relative; padding: 12px; display: grid; gap: 10px; }
.studio-files-search-row { display: flex; }
.studio-files-search { display: inline-flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); background: var(--mos-page); color: var(--mos-muted); font-size: 13px; }
.studio-files-search svg { width: 15px; height: 15px; }
.is-files .desk-file-preview-grid { display: grid; gap: 10px; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.is-files .desk-file-preview-grid.is-files { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.desk-file-preview-item { display: flex; flex-direction: column; border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 14px; overflow: hidden; background: transparent; min-width: 0; }
.desk-file-thumb-visual { position: relative; aspect-ratio: 4 / 3; overflow: clip; background: color-mix(in srgb, var(--mos-text) 3.5%, var(--mos-page)); }
.desk-file-thumb-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk-file-thumb-visual.is-folder { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.desk-file-thumb-badge { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.desk-file-thumb-badge svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .4)); }
.desk-folder-peek-stack { position: relative; width: auto; height: 76%; aspect-ratio: 1 / 1; }
.desk-folder-peek-card { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--color-cursor-border-soft, var(--mos-border-soft)); border-radius: 8px; background: var(--mos-plate); }
.desk-folder-peek-card-media, .desk-folder-peek-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk-folder-peek-stack[data-count="2"] .desk-folder-peek-card--0 { z-index: 1; transform: rotate(-13deg) translate(-20%, 2%) scale(0.84); }
.desk-folder-peek-stack[data-count="2"] .desk-folder-peek-card--1 { z-index: 2; transform: rotate(13deg) translate(20%, -2%) scale(0.9); }
.desk-folder-peek-stack[data-count="3"] .desk-folder-peek-card--0 { z-index: 1; transform: rotate(-15deg) translate(-26%, 5%) scale(0.8); }
.desk-folder-peek-stack[data-count="3"] .desk-folder-peek-card--1 { z-index: 2; transform: rotate(14deg) translate(26%, 3%) scale(0.84); }
.desk-folder-peek-stack[data-count="3"] .desk-folder-peek-card--2 { z-index: 3; transform: rotate(-1deg) translate(0, -10%) scale(0.92); }
.desk-file-label { display: grid; gap: 1px; padding: 7px 10px 8px; min-width: 0; }
.desk-file-label b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-file-label i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.desk-file-preview-item.is-peek-src { border-color: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 58%, transparent); }
.desk-file-peek { position: absolute; right: 18px; bottom: 18px; width: min(42%, 220px); display: grid; gap: 0; border-radius: 16px; overflow: hidden; z-index: 3;
  background: var(--mos-plate); box-shadow: 0 12px 32px color-mix(in srgb, #000 22%, transparent), 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft));
  animation: ys-peek 7s ease-in-out infinite; transform-origin: 20% 100%; }
:root[data-appearance="light"] .desk-file-peek { background: #fff; }
.desk-file-peek-media { position: relative; aspect-ratio: 4 / 5; }
.desk-file-peek-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desk-file-peek-meta { display: grid; padding: 8px 12px 10px; }
.desk-file-peek-meta b { font-size: 12px; } .desk-file-peek-meta i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
.desk-file-peek-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: rgb(0 0 0 / .45); color: #fff; }
.desk-file-peek-close svg { width: 12px; height: 12px; }
@keyframes ys-peek { 0%, 8% { opacity: 0; transform: scale(.92) translateY(8px); } 16%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.96) translateY(4px); } }
@media (max-width: 560px) {
  .is-files .desk-file-preview-grid.is-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-files .desk-file-preview-grid.is-files > :nth-child(n+3) { display: none; }
  .desk-file-peek { width: 46%; right: 12px; bottom: 12px; }
  .desk-file-peek-media { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { .desk-file-peek { animation: none; } }

/* ===== v19: For you or your team cards: equal height, text pinned to bottom ===== */
.stage-grid { align-items: stretch; }
.card.stage { display: flex; flex-direction: column; gap: 0; padding: 20px; height: 100%; }
.card.stage .stage-demo { display: grid; gap: 4px; padding: 0; }
.card.stage .member { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; }
.card.stage .member .studio-profile-avatar, .card.stage .member .studio-agent-avatar { --spa-size: 32px; flex: 0 0 auto; }
.card.stage .mock-lines b { font-size: 13px; font-weight: 600; } .card.stage .mock-lines i { font-size: 12px; }
.card.stage .role-pill { background: transparent; color: var(--mos-muted); font-weight: 500; font-size: 11px; padding: 2px 8px; box-shadow: inset 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); }
.card.stage h3 { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -0.015em; }
.card.stage h3 svg { width: 17px; height: 17px; color: var(--mos-accent-ink, var(--mos-accent)); }
.card.stage p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--mos-muted); min-height: 3em; }
/* v19: Academy card: inset rounded banner, course rows */
#academy .demo-window { padding: 12px; }
#academy .academy { padding: 0; gap: 16px; }
#academy .academy-art { border-radius: 14px !important; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; max-height: clamp(160px, 32svh, 300px); }
#academy .academy-copy { padding: 4px 4px 4px 0; }
#academy .lessons li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.lesson-copy { display: grid; gap: 1px; } .lesson-copy b { font-size: 13px; font-weight: 600; } .lesson-copy i { font-style: normal; font-size: 11px; color: var(--mos-muted); }
@media (max-width: 760px) { #academy .academy-copy { padding: 0 4px 4px; } }

/* v20: gen progress, result media, approve card, corner halos */
@property --gp { syntax: "<integer>"; inherits: true; initial-value: 0; }
.gen-frame .studio-shimmer-status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.gen-pct { --gp: 0; counter-reset: gp var(--gp); animation: ys-gp 7s linear infinite; }
.gen-pct::after { content: counter(gp) "%"; }
@keyframes ys-gp { 0% { --gp: 0; } 58%, 100% { --gp: 100; } }
.gen-bar { width: 58%; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--mos-accent) 18%, transparent); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--mos-accent); transform-origin: left; animation: ys-gbar 7s linear infinite; }
@keyframes ys-gbar { 0% { transform: scaleX(0); } 58%, 100% { transform: scaleX(1); } }
.dg-create .dg-card { align-self: stretch; }
.media-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--card-fill); border: 0; outline: 0; box-shadow: none; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.media-tile img, .media-tile video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: inherit; }
.gen-result.media-tile { aspect-ratio: 4 / 5; }
.gen-result-img { width: 100%; height: 100%; }
.dg-approve { display: flex; flex-direction: column; justify-items: stretch; }
.approve-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.approve-pair .media-tile { aspect-ratio: 9 / 14; }
.approve-pair .studio-gen-tile-badge { position: absolute; left: 6px; bottom: 6px; z-index: 1; }
.approve-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.approve-actions .pill { justify-content: center; width: 100%; }
.canvas-page { border: 0 !important; outline: 0; isolation: isolate; }
.gen-frame, .studio-gen-tile, .desk-file-thumb-visual, .academy img, .hero-gens img, .hero-gens video { background: var(--card-fill); border: 0 !important; outline: 0; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.gen-frame img, .studio-gen-tile img, .studio-gen-tile video { border-radius: inherit; }
@media (max-width: 760px) { .approve-pair .media-tile { aspect-ratio: auto; height: 110px; } .gen-result.media-tile { aspect-ratio: auto; height: 120px; } }
.bg-hint { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 550; color: var(--mos-text-muted, currentColor); background: var(--card-fill); box-shadow: var(--card-shadow); opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.bg-hint.is-on { opacity: .92; }
@media (prefers-reduced-motion: reduce) { .bg-hint { transition: none; } }
.approve-pair { align-items: stretch; }
.approve-pair .media-tile { aspect-ratio: auto; height: 100%; min-height: 120px; }
.approve-pair .studio-gen-tile-badge { top: auto; right: auto; width: auto; height: auto; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.4; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: none; filter: none; }

/* v21: connectors target card */
#connectors .feature-grid, .feature-section:has(.dg-connect) .feature-grid { align-items: center; }
.dg-connect { grid-template-columns: minmax(0, .9fr) 72px minmax(0, 1.25fr); }
.conn-office { display: grid; gap: 14px; justify-items: stretch; padding: 18px; }
.conn-office-head { display: flex; align-items: center; gap: 10px; }
.conn-office-mark { width: 36px; height: 36px; flex: none; overflow: hidden; }
.conn-office-mark img { width: 22px; height: 22px; }
.conn-office-title { display: grid; min-width: 0; line-height: 1.25; }
.conn-office-title b { font-size: 15px; }
.conn-office-title i { font-style: normal; font-size: 12px; color: var(--mos-text-muted, var(--muted)); }
.conn-agent { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--mos-accent-ink); padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--mos-accent) 12%, transparent); white-space: nowrap; }
.conn-agent svg { width: 14px; height: 14px; animation: ys-agent-bob 2.4s ease-in-out infinite; }
@keyframes ys-agent-bob { 50% { transform: translateY(-1.5px); } }
.conn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conn-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; row-gap: 3px; align-items: center; padding: 12px; min-height: 74px; border-radius: 14px; background: var(--inset); overflow: hidden; animation: ys-tile-pulse 4.8s ease-in-out infinite; }
.conn-tile b { font-size: 13px; font-weight: 650; }
.conn-tile i { grid-column: 2; font-style: normal; font-size: 11.5px; color: var(--mos-text-muted, var(--muted)); display: inline-flex; align-items: center; gap: 5px; }
.ct-ic { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--mos-accent) 14%, transparent); color: var(--mos-accent-ink); }
.ct-ic svg { width: 15px; height: 15px; }
.conn-tile i.ct-badge { justify-self: start; padding: 1px 7px; border-radius: 999px; background: var(--mos-accent); color: var(--mos-on-accent, #fff); font-weight: 650; }
.ct-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mos-accent); animation: ys-dotp 1.4s ease-in-out infinite; }
@keyframes ys-dotp { 50% { opacity: .35; } }
.ct-thumb { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 34px; height: 46px; object-fit: cover; border-radius: 7px; border: 0; }
.conn-tile.t2 { padding-right: 52px; }
.conn-tile.t2 i { display: none; }
.t1 { animation-delay: 0s; } .t2 { animation-delay: 1.2s; } .t3 { animation-delay: 2.4s; } .t4 { animation-delay: 3.6s; }
@keyframes ys-tile-pulse { 0%, 24%, 100% { box-shadow: inset 0 0 0 0 transparent; } 8% { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mos-accent) 70%, transparent); } }
.conn-mark, .conn-office-mark, .conn-tile, .ct-thumb { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
@media (prefers-reduced-motion: reduce) { .conn-tile, .conn-agent svg, .ct-dot { animation: none; } }
@media (max-width: 760px) { .dg-connect { grid-template-columns: minmax(0, 1fr); } .conn-tile { min-height: 62px; padding: 10px; } }

/* v22: agent avatar replaces bot glyph */
.studio-dm-bubble-avatar.is-agent-bot { width: 20px; height: 20px; background: none; border: 0; box-shadow: none; display: grid; place-items: center; }
.studio-agent-task-pill-lead.is-avatar .studio-agent-avatar, .conn-agent .studio-agent-avatar { flex: 0 0 16px; }
.conn-agent .studio-agent-avatar { animation: ys-agent-bob 2.4s ease-in-out infinite; }
.wf-bot { background: none !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .conn-agent .studio-agent-avatar { animation: none; } }

/* v22: 9:16 tiles in Create flow */
.dg-create { --tile-h: clamp(170px, calc(100svh - 420px), 300px); }
.dg-create .gen-frame, .dg-create .gen-result.media-tile { aspect-ratio: 9 / 16 !important; height: var(--tile-h) !important; width: auto !important; max-width: 100%; justify-self: center; }
.dg-create .gen-frame > img, .dg-create .gen-result img { object-fit: cover; width: 100%; height: 100%; }
.dg-create .approve-pair { flex: none; display: flex; gap: 8px; justify-content: center; }
.dg-create .approve-pair .media-tile { aspect-ratio: 9 / 16 !important; height: var(--tile-h) !important; width: auto; min-height: 0; max-width: calc(50% - 4px); }
@media (max-width: 760px) { .dg-create { --tile-h: 150px; } }
.dg-create .dg-card { container-type: inline-size; }
.dg-create { --tile-w: min(calc((100cqi - 8px) / 2), calc(var(--tile-h) * 9 / 16)); }
.dg-create .gen-frame, .dg-create .gen-result.media-tile, .dg-create .approve-pair .media-tile { width: var(--tile-w) !important; height: auto !important; aspect-ratio: 9 / 16 !important; max-width: none; flex: none; }
.dg-create { --tile-w: 96px; }
@media (min-width: 1280px) { .dg-create { --tile-w: 94px; } }
@media (max-width: 1100px) and (min-width: 761px) { .dg-create { --tile-w: 120px; } }
@media (max-width: 760px) { .dg-create { --tile-w: 66px; } }
.dg-create .gen-frame, .dg-create .gen-result.media-tile, .dg-create .approve-pair .media-tile { max-height: none !important; min-height: 0 !important; }
.dg-create .dg-approve { overflow: hidden; } .gen-frame .studio-shimmer-status-sub { white-space: nowrap; font-size: 11px; }

/* v23: workflow canvas, matched to the real React Flow render (studio-workflows.css, WorkflowGradientEdge, workflowEditorFit) */
.demo-window.is-wf { overflow: hidden !important; padding: 0 !important; }
.wf-fit { position: relative; width: 100%; height: calc(600px * var(--wf-s, .74)); overflow: hidden;
  background-color: var(--mos-page);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--mos-text) 8%, transparent) 1px, transparent 1.4px);
  background-size: 28px 28px; background-position: 14px 14px; }
.wf-fit .studio-workflows-canvas { position: absolute; left: 50%; top: 0; width: 740px; height: 600px; transform: translateX(-50%) scale(var(--wf-s, .74)); transform-origin: top center; background: transparent; }
.wf-fit .wf-edges { position: absolute; left: 0; top: 0; width: 740px; height: 600px; overflow: visible; z-index: 0; }
.wf-fit .studio-workflows-edge-path { fill: none; stroke-width: 1.5; vector-effect: none; }
.wf-fit .studio-workflows-edge-path.is-active { stroke-dasharray: 5; animation: ys-rf-dash .5s linear infinite; stroke-width: 1.5; }
@keyframes ys-rf-dash { to { stroke-dashoffset: -10; } }
.wf-fit .studio-workflows-node { position: absolute; width: 260px; min-height: 99px; padding: 12px 14px; box-sizing: border-box; z-index: 1;
  border: 1px solid color-mix(in srgb, var(--mos-border-soft, var(--mos-border)) 88%, transparent); border-radius: 12px; background: var(--mos-plate); box-shadow: 0 1px 2px color-mix(in srgb, #000 14%, transparent); opacity: 1; }
:root[data-appearance="light"] .wf-fit .studio-workflows-node { background: #fff; }
.wf-fit .studio-workflows-node.is-pending { opacity: 1; }
.wf-fit .studio-workflows-node.is-pending .studio-workflows-node-title { color: var(--mos-muted); }
.wf-fit .studio-workflows-node-copy { gap: 8px; padding-bottom: 24px !important; }
.wf-fit .studio-workflows-node-chip.is-step-kind.is-type-tag { right: 12px; bottom: 12px; }
.wf-fit .studio-workflows-handle { width: 12px; height: 12px; margin-left: -6px; background: var(--mos-plate); box-shadow: none; border: 2px solid var(--mos-success, #22c55e); box-sizing: border-box; }
.wf-fit .studio-workflows-handle.is-target { top: -7px; } .wf-fit .studio-workflows-handle.is-source { bottom: -7px; top: auto; }
.wf-fit .studio-status-pill { background: none; padding: 0; gap: 4px; text-transform: none; font-size: 12px; font-weight: 600; }
.wf-fit .studio-status-pill[data-tone="passed"] { color: var(--mos-success, #22c55e); }
.wf-fit .studio-status-pill[data-tone="running"] { color: var(--mos-text); }
.wf-fit .studio-status-pill[data-tone="running"] svg { animation: ys-spin 1s linear infinite; }
.wf-fit .studio-status-pill[data-tone="pending"] { color: var(--mos-muted); }
@keyframes ys-spin { to { transform: rotate(360deg); } }
.wf-fit .is-passed .studio-workflows-node-step { background: none; color: var(--mos-success, #22c55e); }
.wf-fit .is-running .studio-workflows-node-step { background: var(--mos-success, #22c55e); color: #fff; }
.wf-fit .studio-workflows-node.is-running { border-color: color-mix(in srgb, var(--mos-success, #22c55e) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mos-success, #22c55e) 14%, transparent); }
.wf-fit .studio-workflows-edge-label { position: absolute; transform: translate(-50%, -50%); background: var(--mos-plate); color: var(--mos-muted); box-shadow: none; z-index: 2; }
:root[data-appearance="light"] .wf-fit .studio-workflows-edge-label { background: #fff; }
@media (prefers-reduced-motion: reduce) { .wf-fit .studio-workflows-edge-path.is-active, .wf-fit .studio-status-pill svg { animation: none; } }
/* v23: even ring on the Making it tile, drawn by the clipping wrapper */
.dg-create .gen-frame .studio-shimmer-status, .dg-create .gen-frame .studio-shimmer { border: 0 !important; outline: 0 !important; box-shadow: none !important; border-radius: inherit; }
.dg-create .gen-frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--mos-border-soft, color-mix(in srgb, var(--mos-text) 12%, transparent)); }

/* v24: 3-step Create flow, two generations */
.dg-create .dg-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.dg-create .dg-step { align-self: center; }
.dg-agent-reply { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--mos-text-soft, var(--mos-text)); }
.dg-agent-reply .studio-agent-avatar { flex: 0 0 20px; margin-top: 1px; }
.dg-agent-reply p { padding: 8px 10px; border-radius: 14px; background: var(--inset); margin: 0; }
.dg-create .gen-pair { display: flex; gap: 8px; justify-content: center; }
.dg-create { --tile-w: 104px; }
@media (min-width: 1280px) { .dg-create { --tile-w: 112px; } }
@media (max-width: 1100px) and (min-width: 761px) { .dg-create { --tile-w: 120px; } }
@media (max-width: 760px) { .dg-create { --tile-w: 92px; } }
.dg-create .gen-pair .gen-frame, .dg-create .gen-pair .media-tile { width: var(--tile-w) !important; aspect-ratio: 9 / 16 !important; height: auto !important; max-height: none !important; flex: none; border-radius: 14px; }
.dg-create .gen-pair .media-tile img, .dg-create .gen-pair .media-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-create .gen-pair .studio-gen-tile-badge { position: absolute; left: 6px; bottom: 6px; z-index: 2; width: auto; height: auto; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; line-height: 1.4; background: rgb(0 0 0 / .55); color: #fff; }
.gen-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: rgb(0 0 0 / .45); color: #fff; }
.gen-play svg { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; }
.dg-create .gen-frame .studio-shimmer-status-time { font-size: 1.05rem; }
.dg-create .gen-frame .studio-shimmer-status-sub { font-size: 10.5px; }
.dg-create .gen-frame.is-b .gen-pct, .dg-create .gen-frame.is-b .gen-bar i { animation-duration: 7s; animation-delay: -1.6s; }
.dg-create .gen-frame.is-b .studio-shimmer-status { animation-delay: -1.6s; }
.dg-create .gen-actions { justify-content: center; margin-top: auto; }
.dg-create .gen-pair .media-tile { box-shadow: inset 0 0 0 1px var(--mos-border-soft, transparent); }
@media (max-width: 1099px) and (min-width: 761px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) !important; gap: 0 !important; }
  .dg-create > .dg-link { display: block; }
}
@media (max-width: 760px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .dg-create > .dg-link { display: none; }
}
.dg-create { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.15fr) 22px minmax(0, 1.15fr); }

/* v24: one rounded edge per media tile. Cause of the corner fringe: wrapper background (--card-fill) + inset ring
   + child img carrying its own border-radius, all anti-aliased at slightly different curves. */
.dg-create .gen-pair .gen-frame, .dg-create .gen-pair .media-tile, .hero-gens .studio-gen-tile, .file-grid .studio-gen-tile {
  position: relative; border-radius: 14px; overflow: hidden; clip-path: inset(0 round 14px); isolation: isolate;
  background: transparent !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; -webkit-mask-image: none !important; }
.dg-create .gen-pair .gen-frame > *, .dg-create .gen-pair .media-tile > img, .dg-create .gen-pair .media-tile > video,
.hero-gens .studio-gen-tile > img, .hero-gens .studio-gen-tile > video { border-radius: 0 !important; }
.dg-create .gen-frame .studio-shimmer-status { background: var(--inset); }
.dg-create .gen-frame::after, .dg-create .gen-pair .media-tile::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mos-text) 10%, transparent); }
.dg-create .gen-frame::after, .dg-create .gen-pair .media-tile::after { content: none; }
.dg-create .gen-pair .studio-gen-tile-badge { top: auto !important; right: auto !important; inset: auto auto 6px 6px !important; max-width: calc(100% - 12px); backdrop-filter: none; filter: none; }

/* v25: workflow nodes, tags and status row */
.wf-fit .studio-workflows-node { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wf-fit .studio-workflows-node-copy { padding-bottom: 0 !important; gap: 8px; }
.wf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 3px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--mos-text); background: color-mix(in srgb, var(--mos-text) 6%, transparent); }
.wf-tag .studio-profile-avatar { --spa-size: 16px; --spa-font: 6.5px; border: 0; box-shadow: none; }
.wf-tag .studio-agent-avatar { flex: 0 0 16px; }
.wf-foot { display: flex; align-items: center; justify-content: space-between; }
.wf-fit .wf-kind { position: static !important; display: inline-flex; gap: 5px; align-items: center; height: 22px; padding: 1px 8px 1px 5px; border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--mos-muted); background: color-mix(in srgb, var(--mos-text) 2%, var(--mos-page)); box-shadow: 0 0 0 1px var(--color-cursor-border-soft, var(--mos-border-soft)); }
.wf-fit .wf-kind svg { width: 12px; height: 12px; color: var(--cursor-accent-ink, var(--mos-accent)); }
.wf-status { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; }
.wf-status svg { width: 14px; height: 14px; }
.wf-status[data-tone="passed"] { color: var(--mos-success, #22c55e); }
.wf-status[data-tone="running"] { color: var(--mos-success, #22c55e); }
.wf-status[data-tone="running"] svg { animation: ys-spin 1s linear infinite; }
.wf-status[data-tone="pending"] { color: var(--mos-muted); }
.wf-fit .studio-workflows-edge-label { white-space: nowrap; }

/* v25: Canvas examples, no headers or inner panels */
.canvas-duo { align-items: start; gap: 20px; padding: 16px; }
.cv-col { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.cv-title { justify-self: center; }
.cv-stage { width: 100%; display: grid; place-items: center; background: none; padding: 0; container-type: inline-size; }
.cv-stage .canvas-page { margin: 0; }
.canvas-page.inv2 { width: min(100%, 300px); height: auto !important; aspect-ratio: 210 / 297; background: #fff; color: #18181b; padding: 7.5cqi 6.5cqi; box-sizing: border-box; display: flex; flex-direction: column; gap: 4.2cqi; font-size: clamp(5px, 2.55cqi, 8.5px); line-height: 1.35; overflow: hidden; --inv-accent: var(--mos-accent); }
@container (min-width: 340px) { .canvas-page.inv2 { padding: 26px 22px; gap: 14px; font-size: 8.5px; } }
.inv2 i { font-style: normal; color: #71717a; display: block; }
.inv2 b { color: #18181b; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv-brand { display: flex; gap: 8px; align-items: flex-start; }
.inv-brand b { display: block; font-size: 1.35em; letter-spacing: -0.02em; }
.inv-mark { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 0.8em; background: var(--inv-accent); color: #fff; font-weight: 800; font-size: 1.1em; flex: none; }
.inv-title { text-align: right; display: grid; gap: 1px; color: #52525b; }
.inv-title b { font-size: 2.3em; letter-spacing: 0.06em; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.inv-bill { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid #e4e4e7; color: #52525b; }
.inv-bill i { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85em; }
.inv-bill b { font-size: 1.15em; }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th { text-align: left; font-weight: 600; color: #71717a; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82em; padding: 0 0 4px; border-bottom: 1px solid #e4e4e7; }
.inv-table td { padding: 5px 0; border-bottom: 1px solid #f4f4f5; color: #27272a; }
.inv-table th:not(:first-child), .inv-table td:not(:first-child) { text-align: right; padding-left: 6px; white-space: nowrap; }
.inv-sums { display: grid; gap: 3px; margin-left: auto; width: 62%; color: #52525b; }
.inv-sums span { display: flex; justify-content: space-between; }
.inv-sums .inv-due { margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: var(--inv-accent); color: #fff; font-weight: 700; }
.inv-sums .inv-due b { color: #fff; font-size: 1.2em; }
.inv-pay { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid #e4e4e7; color: #52525b; }
.inv-pay span { display: block; }
.inv-pay i { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85em; margin-bottom: 2px; }
.inv-foot { margin-top: auto; text-align: center; color: #71717a; font-weight: 600; }
.canvas-page.inv2 { width: min(100%, 320px); font-size: clamp(4.6px, 2.05cqi, 6.8px); padding: 6cqi 5.5cqi; gap: 3.2cqi; }
@container (min-width: 340px) { .canvas-page.inv2 { padding: 20px 18px; gap: 11px; font-size: 6.8px; } }
.inv-brand b { letter-spacing: 0; font-size: 1.3em; }
.inv-title b { font-size: 1.9em; letter-spacing: 0.04em; }
.inv-top > * { min-width: 0; }
.inv-table td { padding: 3.5px 0; }
.canvas-page.inv2, .cv-stage .canvas-page.inv2 { width: 240px !important; max-width: 100%; font-size: 5.7px !important; padding: 15px 14px !important; gap: 8px !important; }
.inv2 .inv-pay { gap: 6px; }
.inv2 .inv-table td { padding: 2.5px 0; }

/* v26: Files, one uniform grid (desk-shell.css: auto-fill minmax(168px,1fr), gap 10px) */
.is-files .desk-file-preview-grid, .is-files .desk-file-preview-grid.is-folders { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px; }
.is-files .desk-file-thumb-visual, .is-files .desk-file-thumb-visual.is-folder { aspect-ratio: 4 / 3 !important; }
.is-files .desk-file-preview-grid > * { display: flex !important; }
@media (max-width: 560px) {
  .is-files .desk-file-preview-grid, .is-files .desk-file-preview-grid.is-folders { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .is-files .desk-file-preview-grid > :nth-child(n+7) { display: none !important; }
}

/* v26: orange clocks (Studio --mos-warning) */
.wf-status[data-tone="pending"], .studio-status-glyph.is-pending, .studio-status-glyph.is-waiting,
:where(.demo-window, .diagram) svg:has(> use[href="#i-clock"]):not(.dg-step svg) { color: var(--mos-warning, #f59e0b) !important; }
.dg-step svg:has(> use[href="#i-clock"]) { color: inherit !important; }

/* v26: Documents fan */
.demo-window.is-docs { padding: 0; overflow: hidden; }
.doc-fan { position: relative; height: clamp(330px, calc(100svh - 230px), 440px); display: grid; place-items: center; }
.doc-card { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; gap: 8px; width: 240px; translate: -50% -50%; animation: ys-docfan 12s ease-in-out infinite; }
.doc-card.d2 { animation-delay: -8s; } .doc-card.d3 { animation-delay: -4s; }
@keyframes ys-docfan {
  0%, 28% { transform: translateX(0) scale(1) rotate(0); z-index: 3; opacity: 1; }
  33%, 61% { transform: translateX(42%) scale(.82) rotate(5deg); z-index: 2; opacity: .9; }
  66%, 95% { transform: translateX(-42%) scale(.82) rotate(-5deg); z-index: 1; opacity: .9; }
  100% { transform: translateX(0) scale(1) rotate(0); z-index: 3; opacity: 1; } }
.doc-tab { justify-self: center; font-size: 11.5px; }
.doc-card .canvas-page { margin: 0; box-shadow: 0 10px 30px rgb(15 23 42 / .16), 0 2px 6px rgb(15 23 42 / .08); }
.doc-a4 { width: 240px; aspect-ratio: 210 / 297; background: #fff; color: #18181b; padding: 15px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 9px; font-size: 5.7px; line-height: 1.4; overflow: hidden; border-radius: 10px; }
.doc-a4 i { font-style: normal; color: #71717a; display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .85em; margin-bottom: 2px; }
.doc-a4 p { margin: 0; color: #3f3f46; }
.prop-cover { padding: 14px 12px; border-radius: 8px; background: var(--mos-accent); color: #fff; display: grid; gap: 3px; }
.prop-cover i { color: rgb(255 255 255 / .8); }
.prop-cover b { font-size: 2.2em; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
.prop-cover span { color: rgb(255 255 255 / .85); }
.prop-sec ul { margin: 0; padding-left: 1.2em; color: #3f3f46; display: grid; gap: 1px; }
.prop-sign { margin-top: auto; display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid #e4e4e7; color: #71717a; }
.rep-head { display: grid; gap: 1px; padding-bottom: 6px; border-bottom: 1px solid #e4e4e7; }
.rep-head b { font-size: 2em; letter-spacing: -0.01em; }
.rep-head span { color: #71717a; }
.rep-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.rep-kpis span { padding: 6px; border-radius: 6px; background: #f4f4f5; display: grid; gap: 1px; }
.rep-kpis b { font-size: 1.6em; }
.rep-kpis em { font-style: normal; color: #16a34a; font-weight: 600; }
.rep-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding-bottom: 2px; border-bottom: 1px solid #e4e4e7; }
.rep-bars span { flex: 1; height: var(--v); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--mos-accent) 75%, #fff); }
.rep-bars span:last-child { background: var(--mos-accent); }
@media (max-width: 560px) { .doc-fan { height: 330px; } .doc-card, .doc-a4, .doc-card .canvas-page.inv2 { width: 190px !important; } .doc-a4, .doc-card .inv2 { font-size: 4.6px !important; padding: 12px 11px !important; gap: 7px !important; } }
@media (prefers-reduced-motion: reduce) { .doc-card { animation: none; } .doc-card.d2 { transform: translateX(42%) scale(.82) rotate(5deg); z-index: 2; } .doc-card.d3 { transform: translateX(-42%) scale(.82) rotate(-5deg); z-index: 1; } .doc-card.d1 { z-index: 3; } }

/* v26: Websites grid */
.demo-window.is-sites { padding: 14px; overflow: hidden; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.site-col { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.site-title { font-size: 11.5px; }
.site-col:nth-child(even) { translate: 0 14px; }
.site-frame { --sh: clamp(130px, calc((100svh - 290px) / 2), 190px); position: relative; width: 100%; height: var(--sh); overflow: hidden; border-radius: 10px; clip-path: inset(0 round 10px); isolation: isolate; background: #fff; color: #18181b; font-size: 7px; line-height: 1.35; box-shadow: 0 8px 22px rgb(15 23 42 / .12); }
.site-frame .cv-scroll { gap: 8px; padding: 9px; animation: ys-site-scroll 18s ease-in-out infinite alternate; }
.site-col:nth-child(2) .cv-scroll { animation-delay: -4s; } .site-col:nth-child(3) .cv-scroll { animation-delay: -9s; } .site-col:nth-child(4) .cv-scroll { animation-delay: -13s; }
@keyframes ys-site-scroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + var(--sh))); } }
.site-frame .cv-nav { font-size: 6.5px; gap: 6px; } .site-frame .cv-nav b { font-size: 8px; }
.site-frame .cv-btn { font-size: 6.5px; padding: 2px 7px; background: var(--sx, #a16207); }
.site-frame .cv-btn.is-light { background: #fff; color: var(--sx, #a16207); }
.site-frame .cv-h { font-size: 8px; }
.site-frame .cv-band { background: var(--sx, #a16207); }
.site-frame img { display: block; width: 100%; height: auto; border-radius: 0; }
.site-frame .cv-hero img, .site-frame .cv-cards img { border-radius: 6px; }
.sx-list { display: grid; gap: 4px; }
.sx-list span { display: flex; justify-content: space-between; padding: 5px 7px; border-radius: 6px; background: var(--sx-soft, #f4f4f5); font-weight: 600; }
.sx-list em { font-style: normal; font-weight: 500; opacity: .7; }
.st-gym { --sx: #84cc16; --sx-soft: #1f2937; background: #0b0f14; color: #f4f4f5; }
.st-gym .cv-nav, .st-gym .cv-nav b, .st-gym .cv-h, .st-gym b { color: #f4f4f5; }
.st-gym .cv-btn { color: #0b0f14; }
.st-gym .cv-band .cv-btn.is-light { background: #0b0f14; color: #84cc16; }
.st-gym .cv-band b { color: #0b0f14; }
.sx-hero { padding: 14px 10px; border-radius: 8px; background: #111827; display: grid; gap: 4px; justify-items: start; border-left: 3px solid #84cc16; }
.sx-hero b { font-size: 15px; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.sx-hero i { font-style: normal; opacity: .75; }
.sx-quote { padding: 8px; border-radius: 6px; background: #111827; display: grid; gap: 3px; }
.st-tour { --sx: #0e7490; --sx-soft: #ecfeff; font-family: Georgia, serif; }
.sx-photo { position: relative; border-radius: 8px; overflow: hidden; }
.sx-photo img { height: 86px !important; object-fit: cover; }
.sx-photo > div { position: absolute; left: 8px; bottom: 8px; display: grid; gap: 4px; justify-items: start; }
.sx-photo b { color: #fff; font-size: 12px; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.st-salon { --sx: #be185d; --sx-soft: #fdf2f8; background: #fffaf7; }
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.sx-split > div { display: grid; gap: 4px; justify-items: start; }
.sx-split b { font-size: 13px; font-family: Georgia, serif; font-weight: 400; color: #831843; }
.sx-split i { font-style: normal; color: #6b7280; }
.sx-split img { height: 70px !important; object-fit: cover; border-radius: 40px 40px 6px 6px !important; }
.sx-prod { display: flex; gap: 8px; align-items: center; }
.sx-prod img { width: 44px !important; height: 44px !important; object-fit: cover; border-radius: 6px !important; }
.sx-prod span { display: grid; font-weight: 600; } .sx-prod em { font-style: normal; color: #be185d; }
@media (max-width: 560px) { .site-frame { --sh: 150px; } .site-col:nth-child(even) { translate: none; } .site-grid { gap: 10px 8px; } }
@media (prefers-reduced-motion: reduce) { .site-frame .cv-scroll { animation: none; } }
.is-files .desk-file-preview-grid, .is-files .desk-file-preview-grid.is-folders { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 560px) { .is-files .desk-file-preview-grid, .is-files .desk-file-preview-grid.is-folders { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* v27: 2-step Create flow, header swaps Making it / Result */
.dg-create { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.25fr) !important; gap: 0 !important; max-width: 820px; margin-inline: auto; }
.dg-create > .dg-link { display: block !important; }
.dg-step-swap { display: grid; justify-items: center; align-self: center; }
.dg-step-swap > .dg-step { grid-area: 1 / 1; }
.dg-step.is-making { animation: ys-swap-a 7s ease-in-out infinite; }
.dg-step.is-result { animation: ys-swap-b 7s ease-in-out infinite; }
@keyframes ys-swap-a { 0%, 62% { opacity: 1; transform: none; } 70%, 92% { opacity: 0; transform: translateY(-3px); } 100% { opacity: 1; transform: none; } }
@keyframes ys-swap-b { 0%, 62% { opacity: 0; transform: translateY(3px); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(3px); } }
.dg-create .gen-frame.is-b .gen-pct, .dg-create .gen-frame.is-b .gen-bar i, .dg-create .gen-frame.is-b .studio-shimmer-status { animation-delay: 0s !important; }
.dg-create .gen-frame.is-b .gen-pct { animation-name: ys-gp2; } .dg-create .gen-frame.is-b .gen-bar i { animation-name: ys-gbar2; }
@keyframes ys-gp2 { 0% { --gp: 0; } 52%, 100% { --gp: 100; } }
@keyframes ys-gbar2 { 0% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
.dg-create .gen-frame > video.gen-reveal { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.gen-frame .gen-done { z-index: 1; }
.dg-create .gen-frame .studio-gen-tile-badge { position: absolute; inset: auto auto 6px 6px; width: auto; height: auto; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; line-height: 1.4; background: rgb(0 0 0 / .55); color: #fff; }
.gen-done-row { animation: ys-swap-b 7s ease-in-out infinite; }
.dg-create .dg-gen .gen-actions { justify-content: center; margin-top: 0; }
@media (max-width: 760px) {
  .dg-create { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .dg-create > .dg-link { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .dg-step.is-making { opacity: 0; animation: none; } .dg-step.is-result, .gen-done-row { opacity: 1; animation: none; } }
.gen-frame .gen-done { animation: ys-swap-b 7s ease-in-out infinite; }
.dg-create .gen-frame .studio-gen-tile-badge, .dg-create .gen-frame .gen-play { border-radius: 999px !important; }
@media (prefers-reduced-motion: reduce) { .gen-frame .gen-done { opacity: 1; animation: none; } }

/* v28: calm Studio target node */
.conn-office.is-calm { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 26px 22px; text-align: center; min-height: 0; animation: ys-node-pulse 2.4s ease-in-out infinite; justify-self: center; width: min(100%, 220px); }
.conn-office.is-calm .conn-office-mark { width: 52px; height: 52px; border-radius: 16px; }
.conn-office.is-calm .conn-office-mark img { width: 28px; height: 28px; }
.conn-office.is-calm b { font-size: 17px; letter-spacing: -0.01em; }
.conn-office-sub { font-size: 12px; color: var(--mos-muted); }
@keyframes ys-node-pulse { 0%, 70%, 100% { box-shadow: var(--card-shadow-lg), 0 0 0 0 transparent; } 80% { box-shadow: var(--card-shadow-lg), 0 0 0 6px color-mix(in srgb, var(--mos-accent) 16%, transparent); } }
.dg-connect { grid-template-columns: minmax(0, 1fr) 90px minmax(0, .8fr) !important; align-items: center; }
@media (max-width: 760px) { .dg-connect { grid-template-columns: minmax(0, 1fr) !important; } }
@media (prefers-reduced-motion: reduce) { .conn-office.is-calm { animation: none; } }

/* v28: Websites, designed at 600px and scaled to each frame */
.is-sites-sec .feature-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px; }
.is-sites-sec .feature-copy { max-width: 640px; }
.demo-window.is-sites2 { padding: 16px; overflow: hidden; }
.site-row { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 14px; align-items: end; }
.site-shot { margin: 0; display: grid; gap: 8px; justify-items: center; min-width: 0; }
.site-title { font-size: 11.5px; }
.site-frame2 { --fh: clamp(250px, calc(100svh - 330px), 470px); position: relative; width: 100%; height: var(--fh); border-radius: 12px; overflow: hidden; clip-path: inset(0 round 12px); isolation: isolate; box-shadow: 0 10px 28px rgb(15 23 42 / .14); }
.site-shot:not(.is-feature) .site-frame2 { height: calc(var(--fh) * .82); }
.sp-fit { position: absolute; left: 0; top: 0; width: 600px; transform-origin: 0 0; transform: scale(var(--k, .5)); }
.sp { width: 600px; animation: ys-sp-scroll 22s ease-in-out infinite alternate; }
.site-shot:nth-child(2) .sp { animation-delay: -5s; } .site-shot:nth-child(3) .sp { animation-delay: -11s; } .site-shot:nth-child(4) .sp { animation-delay: -16s; }
@keyframes ys-sp-scroll { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(var(--sp-max, -40%)); } }
.sp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp p, .sp h1, .sp .mh1, .sp ul, .sp figure { margin: 0; } .sp ul { list-style: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { .sp { animation: none; } }

/* Bakery: warm editorial */
.sp-bakery { background: #f6efe4; color: #2a1d14; font: 400 15px/1.5 Geist, system-ui, sans-serif; padding: 0 0 28px; }
.b-nav { display: flex; gap: 22px; align-items: baseline; padding: 22px 36px; font-size: 13px; color: #6b5444; border-bottom: 1px solid #e4d6c3; }
.b-logo { margin-right: auto; font: 600 19px/1 Fraunces, Georgia, serif; color: #2a1d14; letter-spacing: -0.02em; } .b-logo em { font-style: italic; font-weight: 400; margin-left: 4px; }
.b-order { padding: 7px 14px; border-radius: 999px; background: #2a1d14; color: #f6efe4; }
.b-hero { padding: 52px 36px 30px; }
.b-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #9a6b3f; margin-bottom: 18px !important; }
.b-hero .mh1 { font: 400 76px/0.95 Fraunces, Georgia, serif; letter-spacing: -0.045em; }
.b-hero .mh1 em { font-style: italic; color: #9a4a1c; }
.b-photo { height: 330px; position: relative; } .b-photo figcaption { position: absolute; left: 36px; bottom: 16px; font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.b-menu { padding: 44px 36px 10px; }
.b-label, .t-label, .s-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #9a6b3f; margin-bottom: 16px !important; }
.b-menu li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; font: 400 24px/1.2 Fraunces, Georgia, serif; letter-spacing: -0.02em; }
.b-menu li i { flex: 1; border-bottom: 1.5px dotted #c9b296; transform: translateY(-5px); }
.b-menu li b { font: 500 15px Geist, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.b-note { font-size: 12.5px; color: #8a7462; margin-top: 12px !important; }
.b-quote { margin: 34px 36px 0; padding: 30px 0; border-top: 1px solid #e4d6c3; border-bottom: 1px solid #e4d6c3; }
.b-quote p { font: italic 400 26px/1.25 Fraunces, Georgia, serif; letter-spacing: -0.02em; } .b-quote span { display: block; margin-top: 12px; font-size: 12.5px; color: #8a7462; }
.b-foot { display: flex; justify-content: space-between; padding: 22px 36px 0; font-size: 12.5px; color: #6b5444; }

/* Gym: sport brutalist */
.sp-gym { background: #0c0c0c; color: #f2f2f2; font: 500 15px/1.45 Geist, system-ui, sans-serif; padding-bottom: 0; }
.g-nav { display: flex; gap: 22px; align-items: center; padding: 20px 28px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #a3a3a3; }
.g-logo { margin-right: auto; font: 400 26px/1 Anton, Impact, sans-serif; color: #f2f2f2; letter-spacing: .01em; }
.g-cta { padding: 8px 16px; background: #d4ff3a; color: #0c0c0c; font-weight: 700; }
.g-hero { padding: 20px 28px 34px; border-bottom: 2px solid #f2f2f2; }
.g-hero .mh1 { font: 400 120px/0.86 Anton, Impact, sans-serif; letter-spacing: -0.01em; text-transform: uppercase; }
.g-hero .mh1 span { color: #d4ff3a; }
.g-hero p { max-width: 360px; margin-top: 22px !important; color: #bdbdbd; }
.g-photo { position: relative; height: 300px; filter: grayscale(1) contrast(1.1); } .g-photo span { position: absolute; right: 16px; bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: #d4ff3a; color: #0c0c0c; padding: 4px 8px; filter: none; }
.g-sched, .g-price { padding: 34px 28px 10px; }
.g-label { font: 700 12px/1 Geist Mono, ui-monospace, monospace; letter-spacing: .12em; color: #d4ff3a; margin-bottom: 14px !important; }
.g-sched li { display: grid; grid-template-columns: 70px 1fr 80px 70px; align-items: baseline; padding: 14px 0; border-top: 1px solid #2b2b2b; }
.g-sched li b { font: 400 26px/1 Anton, Impact, sans-serif; } .g-sched li span { font-size: 18px; } .g-sched li em { font-style: normal; font-family: Geist Mono, ui-monospace, monospace; color: #a3a3a3; } .g-sched li i { font-style: normal; text-align: right; font-size: 12px; text-transform: uppercase; color: #d4ff3a; }
.g-price div { display: flex; align-items: baseline; gap: 14px; } .g-price b { font: 400 84px/1 Anton, Impact, sans-serif; } .g-price span { color: #a3a3a3; }
.g-foot { margin-top: 30px; padding: 26px 28px; background: #d4ff3a; color: #0c0c0c; font: 400 40px/1 Anton, Impact, sans-serif; display: flex; justify-content: space-between; }

/* Tours: travel magazine */
.sp-tour { background: #fbfaf7; color: #1f2a30; font: 400 15px/1.55 Geist, system-ui, sans-serif; padding-bottom: 28px; }
.t-nav { display: flex; gap: 22px; align-items: baseline; padding: 22px 34px; font-size: 13px; color: #55646b; }
.t-logo { margin-right: auto; font: italic 400 24px/1 "Instrument Serif", Georgia, serif; color: #1f2a30; }
.t-cta { color: #0f5e6b; border-bottom: 1px solid #0f5e6b; }
.t-hero { position: relative; height: 420px; margin: 0 16px !important; border-radius: 6px; overflow: hidden; }
.t-hero figcaption { position: absolute; inset: auto 28px 28px; color: #fff; }
.t-hero figcaption span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.t-hero .mh1 { font: 400 72px/0.95 "Instrument Serif", Georgia, serif; letter-spacing: -0.03em; margin-top: 8px !important; text-shadow: 0 2px 24px rgb(0 0 0 / .25); } .t-hero .mh1 em { font-style: italic; }
.t-intro { padding: 36px 34px 6px; font: 400 23px/1.35 "Instrument Serif", Georgia, serif; color: #2b3a40; max-width: 520px; }
.t-trips { padding: 30px 34px 0; } .t-label { color: #0f5e6b; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-grid article { display: grid; gap: 4px; } .t-grid img { height: 200px; border-radius: 4px; }
.t-grid b { font: 400 24px/1.1 "Instrument Serif", Georgia, serif; margin-top: 8px; } .t-grid span { font-size: 12.5px; color: #6b7a80; } .t-grid em { font-style: normal; font-size: 13px; color: #0f5e6b; }
.t-foot { display: flex; justify-content: space-between; margin: 34px 34px 0; padding-top: 16px; border-top: 1px solid #e3e1da; font-size: 12.5px; color: #55646b; }

/* Salon: soft luxury */
.sp-salon { background: #f4eeea; color: #3b2f2c; font: 400 15px/1.55 Geist, system-ui, sans-serif; padding-bottom: 30px; }
.s-nav { display: flex; gap: 24px; align-items: center; padding: 24px 34px; font-size: 13px; color: #7a6a65; }
.s-logo { margin-right: auto; font: italic 400 30px/1 "Cormorant Garamond", Georgia, serif; color: #3b2f2c; letter-spacing: .01em; }
.s-book { padding: 7px 16px; border-radius: 999px; border: 1px solid #3b2f2c; color: #3b2f2c; }
.s-book.is-lg { display: inline-block; margin-top: 26px; padding: 10px 22px; background: #3b2f2c; color: #f4eeea; }
.s-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 30px 34px 0; align-items: end; }
.s-hero .mh1 { font: 400 64px/0.98 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.02em; } .s-hero .mh1 em { font-style: italic; color: #9c5b55; }
.s-hero figure { height: 360px; border-radius: 200px 200px 6px 6px; overflow: hidden; transform: translateY(30px); }
.s-label { color: #9c5b55; }
.s-list { padding: 70px 34px 0; }
.s-list li { display: grid; grid-template-columns: 1fr 80px 60px; align-items: baseline; padding: 14px 0; border-top: 1px solid #e2d6d0; font: 400 24px/1.2 "Cormorant Garamond", Georgia, serif; }
.s-list li i { font: normal 400 12.5px Geist, system-ui, sans-serif; color: #8d7c76; } .s-list li b { font: 500 14px Geist, system-ui, sans-serif; text-align: right; }
.s-prod { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; margin: 36px 34px 0; }
.s-prod img { height: 160px; border-radius: 4px; } .s-prod b { display: block; font: 400 28px/1.1 "Cormorant Garamond", Georgia, serif; } .s-prod span { font-size: 12.5px; color: #8d7c76; }
.s-foot { margin: 34px 34px 0; padding-top: 16px; border-top: 1px solid #e2d6d0; font: italic 400 16px "Cormorant Garamond", Georgia, serif; color: #7a6a65; }

@media (max-width: 1099px) { .site-row { grid-template-columns: 1fr 1fr; } .site-shot:not(.is-feature) .site-frame2, .site-frame2 { height: clamp(220px, calc((100svh - 300px) / 2), 300px); } }
@media (max-width: 560px) {
  .demo-window.is-sites2 { padding: 12px 0 12px 12px; }
  .site-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 12px; scrollbar-width: none; }
  .site-row::-webkit-scrollbar { display: none; }
  .site-shot { flex: 0 0 74%; scroll-snap-align: start; }
  .site-frame2, .site-shot:not(.is-feature) .site-frame2 { height: 380px; }
}
/* v28 iteration */
.site-frame2 { --fh: clamp(240px, calc(100svh - 420px), 440px); }
.demo-window.is-sites2 { padding: 16px 16px 18px; }
.dg-connect { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 220px) !important; justify-content: center; }
.conn-office.is-calm { justify-self: start; }
.g-hero .mh1 { font-size: 112px; }
.t-grid article:nth-child(2) img { object-position: 30% 50%; }
@media (max-width: 1099px) and (min-width: 561px) { .site-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; } .site-frame2 { height: clamp(240px, calc(100svh - 380px), 400px) !important; } .site-shot:not(.is-feature) .site-frame2 { height: calc(clamp(240px, calc(100svh - 380px), 400px) * .82) !important; } }
.dg-connect { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 200px) !important; }
.conn-office.is-calm { width: 100%; }

/* v28.3 mobile pass: connectors stack, touch targets */
@media (max-width: 560px) {
  .dg-connect { grid-template-columns: minmax(0, 1fr) !important; justify-items: stretch; gap: 12px !important; }
  .dg-connect .conn-lines { display: none !important; }
  .dg-connect .conn-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
  .dg-connect .conn-col .conn-node { flex-direction: column; align-items: center; text-align: center; padding: 12px 6px; gap: 6px; min-width: 0; }
  .dg-connect .conn-col .conn-node b { font-size: 13px; }
  .dg-connect .conn-office.is-calm { justify-self: center; width: min(100%, 220px); }
}
@media (pointer: coarse), (max-width: 760px) {
  .blog-header-btn, .blog-brand-link { min-height: 40px; }
  .pill { min-height: 44px; }
  .pill.sm { min-height: 40px; }
  .blog-brand-mark { position: relative; }
  .blog-brand-mark::after { content: ""; position: absolute; inset: -8px; }
  .foot-links { gap: 4px 6px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
}

/* v29 mobile: page scrolls as a whole, no inner scrollers, sections redesigned for phones */
@media (max-width: 768px) {
  :root { --fit-h: none; }
  html, body { height: auto; overflow-x: clip; }
  /* one page scroller: the shell grows with content */
  .blog-shell { height: auto; max-height: none; min-height: 100dvh; overflow: visible; padding: 6px 8px 8px; }
  .home-scroll { overflow: visible; overscroll-behavior: auto; scroll-behavior: auto; }
  /* nav: compact */
  .blog-header { margin: 0 0 6px; }
  .blog-brand { padding-right: 10px; }
  /* sections: tighter rhythm */
  .feature-section { padding: 36px 0; }
  .section { padding: 28px 0; }
  .wrap { padding: 0 16px; }
  .feature-grid { gap: 20px !important; }
  .feature-section h2, .section h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .lede.sm { font-size: 15px; margin-top: 10px; }
  /* hero: tight */
  .hero { padding: 20px 0 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.05; }
  .hero .lede { font-size: 15.5px; margin-top: 12px; }
  .hero .pill-row { margin-top: 16px; }
  /* previews fit fully, nothing scrolls inside them */
  .demo-window, .diagram.dg-create, .diagram.dg-connect { max-height: none; overflow: hidden; }
  .feature-demo, .converge { max-width: 100%; }
  .studio-agent-task-strip { overflow: visible; flex-wrap: wrap; row-gap: 6px; }
  .studio-agent-task-strip .studio-agent-task-pill { max-width: 100%; }
  /* workspace diagram: chips stay inside */
  .converge { width: 100%; aspect-ratio: 1 / 1.02; }
  .cv-chip { height: 28px; padding: 0 9px; font-size: 11.5px; gap: 4px; }
  .cv-chip svg { width: 13px; height: 13px; }
  /* documents: static fan sized to the phone */
  .doc-fan { height: 270px; }
  .doc-card { animation: none !important; }
  .doc-card, .doc-a4, .doc-card .canvas-page.inv2 { width: 150px !important; }
  .doc-a4, .doc-card .inv2 { font-size: 3.6px !important; padding: 9px 8px !important; gap: 5px !important; }
  .doc-card.d1 { z-index: 3; transform: none; }
  .doc-card.d2 { z-index: 2; transform: translateX(36%) scale(.82) rotate(5deg); }
  .doc-card.d3 { z-index: 1; transform: translateX(-36%) scale(.82) rotate(-5deg); }
  /* websites: 2 x 2 grid of still previews, no side scroller */
  .demo-window.is-sites2 { padding: 12px !important; }
  .site-row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; overflow: visible !important; padding: 0 !important; scroll-snap-type: none; }
  .site-shot { flex: none; min-width: 0; }
  .site-frame2, .site-shot:not(.is-feature) .site-frame2 { height: 200px !important; }
  .sp { animation: none !important; transform: none !important; }
  /* workflows: steps stack vertically instead of a scaled-down canvas */
  .wf-fit { height: auto !important; padding: 16px 12px; background-image: none; }
  .wf-fit .studio-workflows-canvas { position: static; width: auto; height: auto; transform: none; display: grid; gap: 22px; }
  .wf-fit .wf-edges, .wf-fit .studio-workflows-edge-label, .wf-fit .studio-workflows-handle { display: none; }
  .wf-fit .studio-workflows-node { position: relative; left: auto !important; top: auto !important; width: 100%; min-height: 0; }
  .wf-fit .studio-workflows-node + .studio-workflows-node::before { content: ""; position: absolute; left: 50%; top: -22px; height: 22px; border-left: 1.5px solid var(--mos-success, #22c55e); }
  .wf-fit .studio-workflows-node.is-pending + .studio-workflows-node::before, .wf-fit .studio-workflows-node.is-running + .studio-workflows-node::before { border-left-style: dashed; border-color: var(--mos-border, #d4d4d8); }
  /* files: no floating quick look over the grid */
  .desk-file-peek { display: none !important; }
  .desk-folder-peek-stack { height: 70%; }
  .studio-agent-task-strip-track { flex-wrap: wrap; width: auto; max-width: 100%; row-gap: 6px; padding-right: 0; }
  .cv-chip[style*="--x:88%"] { --x: 79% !important; }
  .cv-chip[style*="--x:12%"] { --x: 21% !important; }
  .wf-fit .studio-workflows-node .studio-workflows-handle { display: none !important; }
  .desk-folder-peek-stack .desk-folder-peek-card { inset: 17%; }
  .site-frame2, .site-shot:not(.is-feature) .site-frame2 { height: auto !important; aspect-ratio: 3 / 4; }
  .is-wf .studio-workflows-node:last-child::after { display: none; }
  /* working ring: spin the gradient, not the box, so nothing pokes out */
  .studio-agent-working-aura { animation: ys-aura-turn 2.4s linear infinite; background: conic-gradient(from var(--ys-aura-a, 0deg), transparent, color-mix(in srgb, var(--cursor-accent) 70%, transparent), transparent 60%); }
  .studio-agent-working-aura { inset: 0; }
  .dg-flow .dg-link { width: 6px; margin-left: 25px; background: linear-gradient(to right, transparent 2px, color-mix(in srgb, var(--mos-accent) 45%, transparent) 2px 4px, transparent 4px); }
  .dg-flow .dg-link-dot { left: 0; }
}
@property --ys-aura-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ys-aura-turn { to { --ys-aura-a: 360deg; } }
@media (max-width: 768px) {
  .doc-card.d2 > .doc-tab, .doc-card.d3 > .doc-tab { visibility: hidden; }
}
@media (min-width: 561px) and (max-width: 768px) {
  .doc-fan { height: 330px; }
  .doc-card, .doc-a4, .doc-card .canvas-page.inv2 { width: 200px !important; }
  .doc-a4, .doc-card .inv2 { font-size: 4.8px !important; padding: 12px 11px !important; gap: 7px !important; }
  .site-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) { html { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
/* v29.1 mobile: centered copy (headings, eyebrows, intros, CTAs); mockups keep their own alignment */
@media (max-width: 768px) {
  .hero-copy, .feature-copy, .section > .wrap > h2, .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-copy .chip, .feature-copy .chip { margin-left: auto; margin-right: auto; }
  .hero-copy .lede, .feature-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-copy .pill-row, .feature-copy .pill-row { justify-content: center; }
  .feature-copy .mini-list { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .feature-demo, .mock { text-align: left; }
}

/* v30.2 mobile: workflows as a zoomed-out canvas; WhatsApp flow centered */
@media (max-width: 768px) {
  .demo-window.is-wf { padding: 0 !important; overflow: hidden !important; }
  .wf-fit { height: auto !important; padding: 28px 22px 30px !important; overflow: visible !important;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--mos-text) 10%, transparent) 1px, transparent 1.4px) !important;
    background-size: 18px 18px !important; background-position: 9px 9px !important; }
  .wf-fit .studio-workflows-canvas { position: static !important; width: 100% !important; max-width: 340px; height: auto !important; transform: none !important; display: grid !important; gap: 14px !important; padding: 0 !important; margin: 0; }
  .wf-fit .studio-workflows-node { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px;
    position: relative !important; left: auto !important; top: auto !important; width: 100% !important; min-height: 0 !important; padding: 8px 10px !important; border-radius: 10px; }
  .wf-fit .studio-workflows-node-copy { gap: 5px !important; padding: 0 !important; min-width: 0; }
  .wf-fit .studio-workflows-node-head { align-items: center; gap: 6px; min-width: 0; }
  .wf-fit .studio-workflows-node-step { width: 18px; height: 18px; font-size: 10px; flex: 0 0 18px; }
  .wf-fit .studio-workflows-node-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wf-fit .wf-tags { padding-left: 24px; }
  .wf-fit .wf-tag { height: 18px; font-size: 10px; padding: 0 7px 0 2px; }
  .wf-fit .wf-tag .studio-profile-avatar { --spa-size: 14px; --spa-font: 6px; }
  .wf-fit .wf-tag .studio-agent-avatar { flex: 0 0 14px; width: 14px; height: 14px; --studio-agent-avatar-size: 14px; }
  .wf-fit .wf-foot { gap: 4px; justify-content: flex-end; }
  .wf-fit .wf-kind { height: 18px !important; font-size: 9.5px !important; padding: 0 6px 0 4px !important; gap: 3px !important; }
  .wf-fit .wf-kind svg { width: 10px; height: 10px; }
  .wf-fit .wf-status { width: 18px; height: 18px; } .wf-fit .wf-status svg { width: 13px; height: 13px; }
  .wf-fit .studio-workflows-node.is-running { border-color: var(--cursor-accent-ink, var(--mos-accent)) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cursor-accent-ink, var(--mos-accent)) 22%, transparent) !important; }
  .wf-fit .studio-workflows-node.is-running .studio-workflows-node-step { background: var(--cursor-accent, var(--mos-accent)); color: var(--cursor-on-accent, #fff); }
  .wf-fit .studio-workflows-node + .studio-workflows-node::before { left: 19px !important; top: -15px !important; height: 14px !important; }
  .wf-fit .studio-workflows-node::after, .is-wf .studio-workflows-node:last-child::after { display: none !important; content: none !important; }
  .wf-fit .studio-workflows-edge-label, .wf-fit .wf-edges, .wf-fit .studio-workflows-handle { display: none !important; }

  .dg-flow { align-items: center !important; overflow: visible !important; padding: 4px 6px 14px !important; }
  .dg-flow .dg-node { width: 100%; max-width: 300px; box-sizing: border-box; grid-template-columns: auto auto !important; justify-content: center !important; justify-items: start; text-align: left; column-gap: 12px; }
  .dg-flow .dg-link { margin-left: 0 !important; align-self: center; }
}
/* v30.2: app-mockup buttons keep app sizing; tap-target min-heights are for real page controls only */
:is(.feature-demo, .hero-demo, .demo-window, .dg-card, .mock) :is(.pill, button) { min-height: 0 !important; }
.pill.xs { min-height: 0 !important; height: 28px; box-sizing: border-box; }
/* v30.2: Create prompt reads as a sent message */
.dg-card .prompt-text { align-self: flex-end; justify-self: end; margin-left: auto; width: fit-content; max-width: 85%; padding: 9px 13px; border-radius: 18px 18px 6px 18px;
  background: var(--cursor-accent, var(--mos-accent)); color: var(--mos-accent-fg, #fff); text-align: left; }
/* v30.2: flyer art has a light edge; crop it inside the rounded frame so corners match the video tile */
.gen-frame { overflow: hidden !important; border: 0 !important; }
.gen-frame > img, .gen-frame > video { object-fit: cover; border: 0; background: none; }
.gen-frame > img[src*="banana-flyer"] { transform: scale(1.06); transform-origin: center; border-radius: 0; }
/* v30.2: composer pinned to the bottom of the Create prompt panel */
.dg-create > .dg-card.has-composer { display: flex; flex-direction: column; gap: 10px; }
.dg-create > .dg-card.has-composer > .studio-dm-composer { margin-top: auto; width: 100%; }
/* v30.2: document titles sit in the shared section-tag pill */
.doc-tab.chip { height: 26px; padding: 0 11px; white-space: nowrap; position: relative; z-index: 3; }
/* v30.2: websites mockup is an even 2 x 2 grid at every width; no raised feature card */
.site-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; align-items: start !important; overflow: visible !important; padding: 0 !important; scroll-snap-type: none !important; }
.site-shot, .site-shot.is-feature { flex: none !important; min-width: 0; transform: none !important; }
.site-frame2, .site-shot.is-feature .site-frame2, .site-shot:not(.is-feature) .site-frame2 { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; transform: none !important; }
@media (max-width: 560px) { .site-row { gap: 10px !important; } .site-frame2, .site-shot.is-feature .site-frame2, .site-shot:not(.is-feature) .site-frame2 { aspect-ratio: 3 / 4; } }
/* v30.2: Files mockup: more file types, no quick-look pop-up, gentle looping auto-scroll */
.desk-file-peek { display: none !important; }
.demo-window.is-files { height: 400px; overflow: hidden !important; align-content: start; grid-template-rows: auto minmax(0, 1fr); }
.is-files .studio-files-search-row { position: relative; z-index: 2; }
.is-files .fs-viewport { overflow: hidden; min-height: 0; border-radius: 10px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%); }
.is-files .fs-viewport > .desk-file-preview-grid { padding: 6px 0 14px; animation: ys-files-scroll var(--fs-dur, 16s) ease-in-out infinite; will-change: transform; }
.is-files .desk-file-preview-grid > :nth-child(n+3), .is-files .desk-file-preview-grid > :nth-child(n+7) { display: flex !important; }
@keyframes ys-files-scroll { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(calc(-1 * var(--fs-dist, 0px))); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .is-files .fs-viewport > .desk-file-preview-grid { animation: none; } }
@media (max-width: 768px) { .demo-window.is-files { height: 360px; } }
.desk-file-thumb-visual.is-kind-visual { display: grid; place-items: center; background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 9%, var(--mos-page)); }
.desk-kind-badge { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--mos-plate); color: var(--cursor-accent-ink, var(--mos-accent-ink)); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.desk-kind-badge svg { width: 13px; height: 13px; }
.kv-site, .kv-table, .kv-doc { display: grid; gap: 4px; width: 62%; padding: 8px; border-radius: 6px; background: var(--mos-plate); box-shadow: 0 2px 6px rgb(0 0 0 / .10); box-sizing: border-box; }
.kv-site i { height: 4px; width: 40%; border-radius: 2px; background: color-mix(in srgb, var(--mos-text) 30%, transparent); }
.kv-site b { height: 18px; border-radius: 3px; background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 45%, transparent); }
.kv-site em, .kv-doc i { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--mos-text) 18%, transparent); }
.kv-site em:last-child { width: 70%; }
.kv-table { gap: 0; padding: 0; overflow: hidden; }
.kv-table i { height: 8px; border-bottom: 1px solid color-mix(in srgb, var(--mos-text) 12%, transparent); background: linear-gradient(to right, transparent 33%, color-mix(in srgb, var(--mos-text) 12%, transparent) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, color-mix(in srgb, var(--mos-text) 12%, transparent) 66% calc(66% + 1px), transparent calc(66% + 1px)); }
.kv-table i:first-child { background-color: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 22%, transparent); }
.kv-doc { width: 48%; aspect-ratio: 3 / 4; align-content: start; }
.kv-doc b { height: 5px; width: 50%; border-radius: 2px; background: color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 55%, transparent); margin-bottom: 3px; }
.kv-doc em { height: 6px; width: 40%; justify-self: end; margin-top: 4px; border-radius: 2px; background: color-mix(in srgb, var(--mos-text) 28%, transparent); }
/* v30.2: Academy card: narrower, banner on top, inviting course rows, one CTA */
#academy .demo-window:has(.academy.is-v2) { max-width: 440px; width: 100%; margin-inline: auto; padding: 10px; }
#academy .academy.is-v2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; }
#academy .academy.is-v2 .academy-art { aspect-ratio: 16 / 7; max-height: none; border-radius: 12px !important; }
#academy .academy.is-v2 .academy-copy { padding: 0 6px 6px; gap: 2px; }
#academy .academy.is-v2 .lessons { gap: 4px; margin-top: 10px; }
#academy .academy.is-v2 .lessons li { height: auto; min-height: 0; padding: 8px 10px 8px 8px; border-radius: 12px; gap: 12px; background: transparent; transition: background .15s; }
#academy .academy.is-v2 .lessons li:hover { background: color-mix(in srgb, var(--mos-text) 5%, transparent); }
#academy .academy.is-v2 .lesson-copy { flex: 1 1 auto; min-width: 0; }
.lesson-thumb { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--mos-accent-ink); }
.lesson-thumb svg { width: 16px; height: 16px; }
#academy .academy.is-v2 .studio-status-glyph { flex: 0 0 auto; opacity: .75; }
#academy .academy-cta { justify-self: start; margin-top: 12px; text-decoration: none; }
@media (max-width: 768px) { #academy .academy-cta { justify-self: center; } }
/* v30.2: FAQ accordion */
.faq-wrap { max-width: 720px; }
.faq-wrap .section-head { text-align: center; display: grid; justify-items: center; gap: 12px; margin-bottom: 20px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border-radius: 14px; background: var(--card-fill); box-shadow: var(--card-shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; text-decoration: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--mos-muted); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 16px 16px; font-size: 14px; line-height: 1.55; color: var(--mos-muted); }
@media (prefers-reduced-motion: reduce) { .faq-item summary svg { transition: none; } }
@media (min-width: 769px) { .site-row { max-width: 640px; margin-inline: auto; } }
.site-title.chip { height: 26px; padding: 0 11px; }

/* v30.8: websites sits beside its copy like other sections */
.is-sites-sec .feature-grid { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 1000px) { .is-sites-sec .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; } .site-row { max-width: none; } }
.is-sites-sec .feature-copy { max-width: 520px; }
/* v30.8: Files tiles follow Studio FileEntryThumb: icon-only fallback for non-media; title row = 11px type glyph + name */
.is-files .desk-file-thumb-visual.desk-file-thumb-fallback { display: grid; place-items: center; background: var(--studio-grid-folder-tile-bg, var(--mos-plate)); }
.is-files .desk-file-thumb-fallback > svg { width: 36px; height: 36px; color: var(--mos-muted); stroke-width: 2; }
.is-files .desk-file-thumb-title { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-width: 0; margin: 0; padding: 6px 7px 7px; box-sizing: border-box; font-size: 11px; line-height: 1.25; }
.is-files .desk-file-thumb-title-icon { flex: 0 0 auto; width: 11px; height: 11px; color: var(--mos-text-soft, var(--mos-muted)); }
.is-files .desk-file-thumb-peek-label { min-width: 0; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v30.8: no preview scrolls internally; every preview grows to fit its content */
.demo-window, .diagram.dg-create, .diagram.dg-connect { max-height: none !important; overflow: hidden !important; }
.studio-agent-task-strip { overflow: hidden !important; }
/* v30.10: websites preview sized like Files on desktop and always fits its section */
@media (min-width: 1000px) {
  #websites .demo-window.is-sites2 { width: 100%; max-width: min(560px, calc((100svh - 220px) * 1.3)); margin-inline: auto; padding: 12px !important; }
  #websites .site-row { gap: 8px 10px !important; }
  #websites .site-frame2, #websites .site-shot.is-feature .site-frame2, #websites .site-shot:not(.is-feature) .site-frame2 { aspect-ratio: 16 / 10 !important; }
}
/* v30.11: FAQ centred, grouped, with search */
#faq .faq-wrap { max-width: 720px; margin-inline: auto; text-align: center; }
#faq .section-head { justify-items: center; text-align: center; margin-inline: auto; }
#faq .section-head .lede { margin-inline: auto; }
.faq-search { position: relative; display: flex; align-items: center; max-width: 520px; margin: 0 auto 10px; }
.faq-search svg { position: absolute; left: 16px; width: 16px; height: 16px; color: var(--mos-muted); pointer-events: none; }
.faq-search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 0; border-radius: 999px; background: var(--card-fill); box-shadow: var(--card-shadow), inset 0 0 0 1px var(--mos-border-soft, transparent); color: var(--mos-text); font: inherit; font-size: 15px; outline: none; }
.faq-search input:focus-visible { box-shadow: var(--card-shadow), 0 0 0 2px var(--cursor-accent, var(--mos-accent)); }
.faq-status { margin: 0 auto 14px; font-size: 13px; color: var(--mos-muted); }
.faq-status a, .faq-item p a { color: var(--mos-accent-ink); text-decoration: none; font-weight: 600; }
.faq-list { display: grid; gap: 22px; text-align: left; }
.faq-group { display: grid; gap: 8px; }
.faq-group-title { margin: 0 0 2px; text-align: center; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--mos-muted); }
.faq-item.is-match { box-shadow: var(--card-shadow), 0 0 0 2px color-mix(in srgb, var(--cursor-accent, var(--mos-accent)) 55%, transparent); }
.faq-list.is-filtering .faq-item:not(.is-match), .faq-list.is-filtering .faq-group:not(:has(.is-match)) { display: none; }
.faq-item p { max-width: 62ch; }
/* v30.12: FAQ shows a flat top 5; the rest appear only as search results */
.faq-group-title { display: none !important; }
.faq-list { gap: 8px; }
.faq-list .faq-group { display: contents; }
.faq-list:not(.is-filtering) .faq-item:not(.is-top) { display: none; }
/* v30.15: founder cards as centred profiles (avatar on top, text centred, LinkedIn pinned to the bottom) */
#founders .grid { align-items: stretch; }
#founders .card.person, #founders .card.person:is(*) { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; gap: 14px; height: 100%; box-sizing: border-box; }
#founders .card.person img { width: 72px !important; height: 72px !important; }
#founders .card.person > div { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; width: 100%; }
#founders .card.person .role { max-width: 34ch; margin-inline: auto; }
#founders .card.person .pill-row { justify-content: center; margin-top: auto; padding-top: 14px; }
