@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #0f0d0c;
  --muted: rgba(15, 13, 12, 0.62);
  --faint: rgba(15, 13, 12, 0.36);
  --line: rgba(15, 20, 35, 0.12);
  --line-strong: rgba(15, 20, 35, 0.2);
  --blue: #2f5cff;
  --blue-hover: #2549d8;
  --blue-soft: #e7edff;
  --shadow: 0 30px 80px rgba(15, 20, 35, 0.1);
  --font-inter: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-dm-sans: var(--font-inter);
  --font-instrument-serif: var(--font-inter);
  --button-radius: 14px;
  --button-bg: #163493;
  --button-bg-hover: #1b3aa0;
  --button-shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}

.site-shell {
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  padding: 12px 24px 0;
  pointer-events: none;
}

.home-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 12px 8px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, border-radius 0.2s, backdrop-filter 0.2s;
}

.home-nav.is-scrolled .home-nav-inner,
.home-nav.mobile-open .home-nav-inner,
.home-nav.usecases-open .home-nav-inner {
  border-color: rgba(15, 20, 35, 0.07);
  border-radius: 22px;
  background: rgba(244, 246, 250, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-nav.is-scrolled .home-nav-inner {
  box-shadow: 0 12px 32px rgba(15, 20, 35, 0.075);
}

.home-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f0d0c;
  text-decoration: none;
}

.home-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.home-brand span {
  font-family: var(--font-instrument-serif), serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-nav-link,
.usecase-trigger {
  color: rgba(15, 13, 12, 0.55);
  font-family: var(--font-dm-sans);
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.home-nav-link:hover,
.home-nav-link:focus-visible,
.usecase-trigger:hover,
.usecase-trigger:focus-visible {
  color: #0f0d0c;
}

.usecase-menu {
  position: relative;
  padding: 24px 0;
}

.usecase-menu::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 42px;
  height: 18px;
}

.usecase-dropdown {
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(8px);
  display: block;
  padding: 12px 14px 14px;
  background: rgba(252, 251, 248, 0.98);
  border: 1px solid rgba(28, 27, 24, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 20, 35, 0.11);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(16px);
  z-index: 80;
}

.usecase-menu:hover .usecase-dropdown,
.usecase-menu:focus-within .usecase-dropdown,
.usecase-menu.preview-open .usecase-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.usecase-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 6px;
  text-decoration: none;
  color: #0f0d0c;
  min-width: 0;
  overflow: hidden;
}

.usecase-item > span:not(.doodle-icon) {
  min-width: 0;
  overflow: hidden;
}

.usecase-item:hover,
.usecase-item:focus-visible {
  color: #163493;
  background: rgba(22, 52, 147, 0.055);
  border-radius: 10px;
}

.usecase-title {
  display: block;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usecase-copy {
  display: block;
  color: rgba(15, 13, 12, 0.56);
  font-size: 10.75px;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usecase-trigger {
  font-weight: 500;
}

.usecase-chevron {
  transition: transform 160ms ease;
}

.usecase-menu:hover .usecase-chevron,
.usecase-menu:focus-within .usecase-chevron,
.usecase-menu.preview-open .usecase-chevron {
  transform: rotate(180deg);
}

.mega-heading {
  display: none;
  margin: 0;
  color: rgba(15, 13, 12, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-usecase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 2px;
}

.doodle-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.doodle-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usecase-item:hover .doodle-icon svg,
.usecase-item:focus-visible .doodle-icon svg {
  transform: rotate(-2deg) translateY(-1px);
}

.doodle-icon svg {
  transition: transform 160ms ease;
}

.home-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.home-nav .nav-cta {
  min-height: 0;
  padding: 9px 22px;
  font-size: 13px;
}

.home-nav .nav-cta:hover,
.home-nav .nav-cta:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.home-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #0b1120;
}

.menu-icon-close,
.home-nav.mobile-open .menu-icon-open {
  display: none;
}

.home-nav.mobile-open .menu-icon-close {
  display: block;
}

.home-mobile-drawer {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 72rem;
  margin: 8px auto 0;
  background: #f4f6fa;
  border: 1px solid rgba(15, 20, 35, 0.07);
  border-radius: 22px;
  padding: 16px 24px 28px;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(15, 20, 35, 0.075);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-mobile-drawer a {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(15, 13, 12, 0.7);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 13, 12, 0.06);
  display: block;
}

.home-mobile-drawer .home-mobile-subitem {
  padding-left: 16px;
  font-size: 14px;
  color: rgba(15, 13, 12, 0.55);
}

.home-mobile-drawer .home-mobile-cta {
  margin-top: 16px;
  padding: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 250, 0.86);
  border-bottom: 1px solid rgba(15, 20, 35, 0.07);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.nav-links button {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-button {
  cursor: default;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 540px;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 13px;
  border-radius: 8px;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: var(--surface-soft);
}

.dropdown-title {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 4px;
}

.dropdown-copy {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--blue-hover);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
}

.hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 42px;
  text-align: center;
}

.kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  max-width: 880px;
  margin: 0 auto;
  color: #0b1120;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(15, 13, 12, 0.7);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.mac-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13px;
}

.screen-stage {
  width: min(1120px, calc(100% - 48px));
  margin: 22px auto 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent calc(25% - 1px), rgba(15, 20, 35, 0.1) calc(25% - 1px), rgba(15, 20, 35, 0.1) 25%, transparent 25%),
    linear-gradient(to right, transparent calc(50% - 1px), rgba(15, 20, 35, 0.1) calc(50% - 1px), rgba(15, 20, 35, 0.1) 50%, transparent 50%),
    linear-gradient(to right, transparent calc(75% - 1px), rgba(15, 20, 35, 0.1) calc(75% - 1px), rgba(15, 20, 35, 0.1) 75%, transparent 75%),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(15, 20, 35, 0.1) calc(50% - 1px), rgba(15, 20, 35, 0.1) 50%, transparent 50%);
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
}

.stage-copy {
  align-self: start;
  padding: 58px 36px 40px;
}

.stage-copy h2 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  font-weight: 480;
  letter-spacing: -0.045em;
}

.stage-copy p {
  margin: 24px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.stage-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px;
}

.stage-visual img {
  width: min(540px, 100%);
  display: block;
}

.hero-seo h1 {
  max-width: 1020px;
}

.hero-seo .hero-copy {
  max-width: 820px;
}

.meeting-demo {
  align-items: stretch;
  min-height: 560px;
}

.meeting-demo-copy {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}

.meeting-demo-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.meeting-demo-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.stage-tabs {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 32px;
}

.stage-tab {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 13px 14px;
  line-height: 1.35;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.stage-tab span {
  display: inline-flex;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
}

.stage-tab:hover,
.stage-tab:focus-visible,
.stage-tab.active {
  background: #fff;
  border-color: rgba(22, 52, 147, 0.34);
  color: var(--ink);
  transform: translateY(-1px);
}

.meeting-demo-visual {
  position: relative;
  min-height: 560px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meeting-scroll {
  padding-top: 78px;
}

.meeting-scroll-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.meeting-steps {
  display: grid;
  gap: 24px;
}

.scroll-step {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  opacity: 0.52;
  cursor: pointer;
  transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.scroll-step::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: var(--step-accent, var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.scroll-step.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(22, 52, 147, 0.42);
  transform: translateY(-2px);
}

.scroll-step.active::before {
  transform: scaleY(1);
}

.scroll-step[data-stage="before"] {
  --step-accent: #163493;
}

.scroll-step[data-stage="during"] {
  --step-accent: #0e766e;
}

.scroll-step[data-stage="after"] {
  --step-accent: #b65c12;
}

.scroll-step[data-stage="schedule"] {
  --step-accent: #7c3aed;
}

.scroll-step span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-step h3 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.scroll-step p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.step-command {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.74);
  color: rgba(15, 13, 12, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.meeting-sticky-demo {
  --stage: #163493;
  --stage-soft: rgba(22, 52, 147, 0.14);
  --stage-glow: rgba(22, 52, 147, 0.2);
  position: sticky;
  top: 104px;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(to right, transparent calc(33.333% - 1px), rgba(15, 20, 35, 0.1) calc(33.333% - 1px), rgba(15, 20, 35, 0.1) 33.333%, transparent 33.333%),
    linear-gradient(to right, transparent calc(66.666% - 1px), rgba(15, 20, 35, 0.1) calc(66.666% - 1px), rgba(15, 20, 35, 0.1) 66.666%, transparent 66.666%),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(15, 20, 35, 0.1) calc(50% - 1px), rgba(15, 20, 35, 0.1) 50%, transparent 50%);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.meeting-sticky-demo[data-stage="during"] {
  --stage: #0e766e;
  --stage-soft: rgba(14, 118, 110, 0.15);
  --stage-glow: rgba(14, 118, 110, 0.22);
}

.meeting-sticky-demo[data-stage="after"] {
  --stage: #b65c12;
  --stage-soft: rgba(182, 92, 18, 0.15);
  --stage-glow: rgba(182, 92, 18, 0.22);
}

.meeting-sticky-demo[data-stage="schedule"] {
  --stage: #7c3aed;
  --stage-soft: rgba(124, 58, 237, 0.13);
  --stage-glow: rgba(124, 58, 237, 0.2);
}

.meeting-sticky-demo::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 28% 26%, var(--stage-glow), transparent 32%),
    radial-gradient(circle at 74% 72%, rgba(15, 20, 35, 0.08), transparent 34%);
  transform: translate3d(0, 0, 0) scale(1);
  transition: background 260ms ease, transform 420ms ease;
}

.meeting-sticky-demo::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.45) 48%, transparent 52% 100%);
  transform: translateX(-18%);
  animation: demoSweep 5.6s ease-in-out infinite;
}

.meeting-sticky-demo.is-switching::before {
  transform: translate3d(1%, -1%, 0) scale(1.05);
}

.meeting-progress {
  position: absolute;
  top: 22px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.meeting-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.12);
  overflow: hidden;
}

.meeting-progress span::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--stage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.meeting-progress span.active::before {
  transform: scaleX(1);
}

.meeting-sticky-demo .context-window {
  transform: translateY(-38px);
}

.meeting-sticky-demo[data-stage="during"] .context-window {
  transform: translate(-16px, -46px) rotate(-1deg);
}

.meeting-sticky-demo[data-stage="after"] .context-window {
  transform: translate(10px, -34px) rotate(0.7deg);
}

.meeting-sticky-demo[data-stage="schedule"] .context-window {
  transform: translate(-6px, -54px) rotate(1.1deg);
}

.context-window {
  width: min(520px, 100%);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  transition: transform 360ms ease;
}

.context-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.context-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.context-bar strong {
  margin-left: 8px;
  font-weight: 600;
  color: rgba(15, 13, 12, 0.66);
}

.context-body {
  padding: 22px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 700;
}

.context-row {
  position: relative;
  overflow: hidden;
  height: 12px;
  width: 72%;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.1);
  margin-bottom: 12px;
}

.context-row::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-120%);
  animation: rowScan 2.8s ease-in-out infinite;
}

.context-row.wide {
  width: 94%;
}

.context-row.short {
  width: 48%;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 13, 12, 0.68);
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(15, 20, 35, 0.06);
}

.signal-chip:nth-child(2) {
  transform: translateY(6px);
}

.signal-chip:nth-child(3) {
  transform: translateY(-4px);
}

.context-card {
  margin-top: 28px;
  padding: 20px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.context-card span {
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.context-card strong {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.meeting-output-panel {
  left: auto;
  right: 20px;
  bottom: 54px;
  width: min(420px, 82%);
  transition: right 360ms ease, bottom 360ms ease, transform 360ms ease;
}

.meeting-sticky-demo[data-stage="during"] .meeting-output-panel {
  right: 54px;
  bottom: 76px;
}

.meeting-sticky-demo[data-stage="after"] .meeting-output-panel {
  right: 28px;
  bottom: 36px;
}

.meeting-sticky-demo[data-stage="schedule"] .meeting-output-panel {
  right: 70px;
  bottom: 92px;
}

.meeting-sticky-demo.is-switching .context-card,
.meeting-sticky-demo.is-switching .meeting-output-panel {
  animation: panelIn 420ms ease both;
}

.meeting-sticky-demo.is-switching .signal-chip {
  animation: chipIn 360ms ease both;
}

.meeting-sticky-demo.is-switching .signal-chip:nth-child(2) {
  animation-delay: 50ms;
}

.meeting-sticky-demo.is-switching .signal-chip:nth-child(3) {
  animation-delay: 100ms;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey-card {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.journey-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.journey-card h3 {
  margin: 36px 0 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 11px 15px;
  color: rgba(15, 13, 12, 0.72);
  font-size: 14px;
}

.usecase-flow {
  padding-top: 40px;
}

.flow-header {
  max-width: none;
  text-align: center;
  margin-bottom: 72px;
}

.flow-stack {
  display: grid;
  gap: 18px;
}

.flow-panel {
  --stage: #163493;
  --stage-soft: rgba(22, 52, 147, 0.12);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(to right, transparent calc(33.333% - 1px), rgba(15, 20, 35, 0.08) calc(33.333% - 1px), rgba(15, 20, 35, 0.08) 33.333%, transparent 33.333%),
    linear-gradient(to right, transparent calc(66.666% - 1px), rgba(15, 20, 35, 0.08) calc(66.666% - 1px), rgba(15, 20, 35, 0.08) 66.666%, transparent 66.666%),
    rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.flow-panel[data-flow="2"] {
  --stage: #0e766e;
  --stage-soft: rgba(14, 118, 110, 0.13);
}

.flow-panel[data-flow="3"] {
  --stage: #b65c12;
  --stage-soft: rgba(182, 92, 18, 0.14);
}

.flow-panel[data-flow="4"] {
  --stage: #7c3aed;
  --stage-soft: rgba(124, 58, 237, 0.12);
}

.flow-copy {
  align-self: center;
  max-width: 500px;
}

.flow-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-copy h3 {
  margin: 22px 0 14px;
  color: #0b1120;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.flow-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.flow-demo {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-shell {
  position: relative;
  width: min(560px, 100%);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 18%, var(--stage-soft), transparent 30%),
    rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.flow-shell::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(110deg, transparent 0 43%, rgba(255, 255, 255, 0.5) 48%, transparent 53% 100%);
  animation: demoSweep 5.8s ease-in-out infinite;
}

.flow-source {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 1;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-source span {
  display: block;
  margin-bottom: 8px;
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-source strong {
  display: block;
  color: #0b1120;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.flow-lines {
  position: absolute;
  top: 154px;
  left: 48px;
  right: 48px;
  display: grid;
  gap: 13px;
}

.flow-lines i {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.1);
  overflow: hidden;
}

.flow-lines i:nth-child(2) {
  width: 78%;
}

.flow-lines i:nth-child(3) {
  width: 54%;
}

.flow-lines i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: rowScan 2.9s ease-in-out infinite;
}

.flow-answer {
  position: absolute;
  left: 72px;
  right: 30px;
  bottom: 34px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 20, 35, 0.16);
  overflow: hidden;
}

.flow-answer .panel-top {
  background: rgba(255, 255, 255, 0.72);
}

.flow-answer .command {
  padding-bottom: 12px;
}

.flow-answer .panel-result {
  padding-bottom: 20px;
}

.invoke-panel {
  position: absolute;
  left: 5%;
  bottom: 34px;
  width: min(390px, 90%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 20, 35, 0.18);
  overflow: hidden;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.panel-dots {
  display: flex;
  gap: 5px;
}

.panel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.command {
  margin: 0;
  padding: 18px;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 18px 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
}

.panel-result {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.result-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.meeting-sticky-demo.is-switching .result-line {
  animation: resultIn 300ms ease both;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(2) {
  animation-delay: 45ms;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(3) {
  animation-delay: 90ms;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(4) {
  animation-delay: 135ms;
}

.result-line::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--stage, var(--blue));
}

@keyframes demoSweep {
  0%, 34% {
    transform: translateX(-35%);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  100% {
    transform: translateX(35%);
    opacity: 0;
  }
}

@keyframes rowScan {
  0%, 25% {
    transform: translateX(-120%);
  }
  72%, 100% {
    transform: translateX(260%);
  }
}

@keyframes panelIn {
  from {
    opacity: 0.55;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
  }
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
  scroll-margin-top: 110px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 18px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 20, 35, 0.18) transparent;
}

.case-rail::-webkit-scrollbar {
  height: 8px;
}

.case-rail::-webkit-scrollbar-track {
  background: transparent;
}

.case-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.16);
}

.case-rail .case-card {
  flex: 0 0 clamp(286px, 31vw, 342px);
  scroll-snap-align: start;
}

.case-card {
  min-height: 198px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(15, 48, 138, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(15, 20, 35, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.case-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.78) 52%, #f8fafc 100%);
  pointer-events: none;
}

.case-card-art {
  position: absolute;
  top: 10px;
  left: 18px;
  z-index: 0;
  width: calc(100% - 36px);
  height: 76%;
  object-fit: contain;
  object-position: center top;
  opacity: 0.9;
  transform: scale(0.96);
  transform-origin: center top;
  transition: transform 220ms ease, opacity 220ms ease;
}

.case-card:hover,
.case-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(22, 52, 147, 0.35);
}

.case-card:hover .case-card-art,
.case-card:focus-visible .case-card-art {
  opacity: 1;
  transform: scale(0.99);
}

.case-card-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  color: #0b1120;
}

.case-card-icon svg {
  width: 50px;
  height: 50px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(15, 48, 138, 0.08));
  transition: transform 160ms ease, color 160ms ease;
}

.case-card:hover .case-card-icon svg,
.case-card:focus-visible .case-card-icon svg {
  color: var(--blue);
  transform: rotate(-2deg) translateY(-2px);
}

.case-card-copy {
  position: relative;
  z-index: 2;
  width: min(86%, 360px);
  margin-top: auto;
}

.card-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card h3 {
  margin: 0 0 10px;
  color: #0b1120;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 530;
  letter-spacing: -0.035em;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card-foot {
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 900px) {
  .case-card {
    min-height: 178px;
  }

  .case-card-copy {
    width: min(82%, 360px);
  }
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 106px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.task-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.task-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.output-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.output-card,
.compare-box,
.trust-box,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.output-card {
  padding: 20px;
}

.output-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.output-card ul,
.trust-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.output-card li,
.trust-box li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 20px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 750;
  margin-bottom: 28px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.compare-box,
.trust-box {
  padding: 24px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare-box h3,
.trust-box h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.compare-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  min-height: 190px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.audience-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.approval-section {
  width: 100%;
  max-width: none;
  padding: 86px 0;
  background: transparent;
  border-block: 0;
}

.approval-panel {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.approval-panel > div:first-child {
  position: relative;
  padding-top: 34px;
}

.approval-ip-accent {
  position: absolute;
  top: -52px;
  right: 8px;
  width: clamp(74px, 7vw, 108px);
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

.approval-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.approval-panel > div > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.approval-card {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.approval-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.approval-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta-band {
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto 72px;
  padding: 58px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1120;
  color: #fff;
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.68);
  margin: 18px auto 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
}

.cta-band .button-primary {
  background: #fff;
  color: #0b1120;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer a {
  text-decoration: none;
}

/* Footer (verbatim port of homepage footer — all visual styles inline in markup).
   The snapshot from /home-footer.html uses Tailwind utility classes that don't resolve
   here (no Tailwind compiler). Translate the exact ones used in the footer to real CSS
   so the layout matches production. */
.home-footer .flex { display: flex; }
.home-footer .flex-col { flex-direction: column; }
.home-footer .items-start { align-items: flex-start; }
.home-footer .gap-6 { gap: 1.5rem; }

@media (max-width: 768px) {
  .home-footer .max-md\:\!px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .home-footer .max-md\:\!grid-cols-1 { grid-template-columns: 1fr !important; }
  .home-footer .max-md\:\!gap-10 { gap: 2.5rem !important; }
  .home-footer .max-md\:\!px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .home-footer .max-md\:\!py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .home-footer .max-md\:\!min-h-\[210px\] { min-height: 210px !important; }
  .home-footer .max-md\:\!flex-col { flex-direction: column !important; }
  .home-footer .max-md\:\!items-start { align-items: flex-start !important; }
}

.home-footer-link:hover,
.home-footer-link:focus-visible {
  color: #0b1120 !important;
}

.home-footer .home-footer-bottom a:hover,
.home-footer .home-footer-bottom a:focus-visible {
  color: #0b1120 !important;
}

@media (max-width: 768px) {
  .home-nav-links {
    display: none;
  }

  .home-menu-button {
    display: flex;
  }

  .home-mobile-drawer:not([hidden]) {
    display: flex;
  }

  .home-footer-inner {
    padding: 18px 20px 38px !important;
  }

  .home-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 48px 8px 40px !important;
  }

  .home-footer-wordmark {
    min-height: 210px !important;
  }

  .home-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    width: min(100% - 32px, 1120px);
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links > .nav-link:not(.nav-cta) {
    display: none;
  }

  .dropdown {
    display: block;
    padding: 24px 0;
  }

  .dropdown-panel {
    left: auto;
    right: -112px;
    width: min(360px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    transform: translateY(8px);
  }

  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel {
    transform: translateY(0);
  }

  .hero,
  .screen-stage,
  .section,
  .cta-band,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .screen-stage,
  .flow-panel,
  .meeting-scroll-layout,
  .split,
  .output-wrap,
  .compare-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .stage-copy {
    padding: 36px 22px 0;
  }

  .meeting-demo-copy {
    padding: 34px 22px 8px;
  }

  .meeting-demo-visual {
    min-height: 500px;
    padding: 18px 14px 32px;
  }

  .meeting-sticky-demo {
    position: relative;
    top: auto;
    min-height: 560px;
    order: -1;
  }

  .scroll-step {
    min-height: auto;
    padding: 22px;
  }

  .meeting-output-panel {
    right: 22px;
    bottom: 28px;
    width: min(390px, calc(100% - 44px));
  }

  .usecase-flow {
    padding-top: 66px;
  }

  .flow-panel {
    min-height: auto;
    padding: 22px;
    gap: 24px;
  }

  .flow-copy {
    align-self: start;
  }

  .flow-demo {
    min-height: 430px;
  }

  .flow-source {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .flow-lines {
    top: 140px;
    left: 34px;
    right: 34px;
  }

  .flow-answer {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .stage-visual {
    min-height: 350px;
  }

  .sticky-copy {
    position: static;
  }

  .footer {
    flex-direction: column;
  }
}

/* Scenario cards: CSV-driven playbook panels */
.flow-copy h3 {
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.say-this {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--stage);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.say-this span {
  display: block;
  margin-bottom: 8px;
  color: var(--stage);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.say-this p {
  margin: 0;
  color: #0b1120;
  font-size: 16px;
  line-height: 1.5;
}

.needs-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.needs-chips .needs-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.needs-chips .chip {
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.flow-copy .scenario-fallback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.flow-safety {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 35, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Scenario demo playback */
.notch-scene .result-line,
.notch-scene .flow-safety {
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.notch-scene.demo-waiting .result-line {
  opacity: 0;
  transform: translateY(8px);
}

.notch-scene.demo-waiting .result-line.shown {
  opacity: 1;
  transform: none;
}

.notch-scene.demo-waiting .flow-safety {
  opacity: 0;
}

.notch-scene.demo-waiting .flow-safety.shown {
  opacity: 1;
}

.notch-panel .command.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #111827;
  vertical-align: -0.15em;
  animation: caretBlink 0.8s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.panel-dots.thinking span {
  animation: dotPulse 0.9s ease-in-out infinite;
}

.panel-dots.thinking span:nth-child(2) {
  animation-delay: 0.15s;
}

.panel-dots.thinking span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  50% {
    background: var(--stage, #163493);
    transform: translateY(-2px);
  }
}

/* Scroll-in reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Hover feedback */
.step,
.output-card,
.compare-box,
.trust-box,
.faq-item {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.step:hover,
.output-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 52, 147, 0.3);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 20, 35, 0.08);
}

.compare-box:hover,
.trust-box:hover {
  border-color: rgba(22, 52, 147, 0.3);
  box-shadow: 0 14px 34px rgba(15, 20, 35, 0.08);
}

.case-card:hover,
.case-card:focus-visible {
  box-shadow: 0 16px 40px rgba(15, 20, 35, 0.1);
}

.flow-panel {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.flow-panel:hover {
  border-color: rgba(15, 20, 35, 0.18);
  box-shadow: 0 18px 50px var(--stage-soft);
}

.source-chip {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.source-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 52, 147, 0.3);
  background: #fff;
}

.needs-chips .chip {
  transition: transform 160ms ease, filter 160ms ease;
}

.needs-chips .chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.button-primary,
.button-secondary,
.nav-cta {
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.button-primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(22, 52, 147, 0.28);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 52, 147, 0.35);
  background: #fff;
}

/* ----- Bold toC layer ----- */

/* Warmer, rounder shapes */
.case-card,
.step,
.output-card,
.compare-box,
.trust-box,
.faq-item,
.flow-panel,
.invoke-panel {
  border-radius: 20px;
}

.flow-shell {
  border-radius: 26px;
}

.flow-source,
.flow-answer,
.say-this {
  border-radius: 14px;
}

.button-primary,
.button-secondary,
.nav-cta {
  border-radius: 999px;
}

/* Hero: glow, mascot, pill kicker */
.hero {
  position: relative;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow-a {
  width: 440px;
  height: 440px;
  top: -80px;
  right: 4%;
  background: radial-gradient(circle, rgba(122, 162, 255, 0.55), transparent 65%);
  animation: glowDrift 11s ease-in-out infinite alternate;
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  bottom: -90px;
  left: -70px;
  background: radial-gradient(circle, rgba(140, 196, 255, 0.45), transparent 65%);
  animation: glowDrift 14s 1s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  to {
    transform: translate(44px, 26px) scale(1.08);
  }
}

.hero-usecase-art {
  width: clamp(96px, 11vw, 144px);
  height: auto;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
  animation: usecaseArtBreathe 4.8s ease-in-out infinite;
  filter: drop-shadow(0 20px 36px rgba(47, 92, 255, 0.18));
  pointer-events: none;
  user-select: none;
}

@keyframes usecaseArtBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

.hero-ip {
  position: absolute;
  width: 140px;
  top: 40px;
  right: calc(50% - 620px);
  animation: ipFloat 4.6s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(47, 92, 255, 0.22));
  pointer-events: none;
}

@media (max-width: 1300px) {
  .hero-ip {
    display: none;
  }
}

@keyframes ipFloat {
  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 92, 255, 0.18);
  color: var(--blue);
}

/* Brighter per-card theme colors */
.flow-panel {
  --stage: #2f5cff;
  --stage-soft: rgba(47, 92, 255, 0.12);
}

.flow-panel[data-flow="2"] {
  --stage: #0ea5a0;
  --stage-soft: rgba(14, 165, 160, 0.14);
}

.flow-panel[data-flow="3"] {
  --stage: #e0760c;
  --stage-soft: rgba(224, 118, 12, 0.14);
}

.flow-panel[data-flow="4"] {
  --stage: #8b5cf6;
  --stage-soft: rgba(139, 92, 246, 0.13);
}

/* Mascot status line in the demo panel */
.flow-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.flow-status img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.flow-status.working img {
  animation: ipWiggle 1.1s ease-in-out infinite;
}

@keyframes ipWiggle {
  50% {
    transform: translateY(-3px) rotate(-7deg);
  }
}

/* Section rhythm: rounded color blocks */
.section:has(.how-grid),
.section:has(.faq-grid) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px 56px;
  box-shadow: 0 18px 60px rgba(15, 20, 35, 0.05);
}

.section:has(.output-wrap) {
  background: linear-gradient(135deg, #ecf1ff 0%, #f7f9ff 100%);
  border-radius: 32px;
  padding: 64px 56px;
}

/* Gradient CTA band with mascot */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(125deg, #2b59ff 0%, #6d8dff 55%, #a78bfa 100%);
}

.cta-ip {
  position: absolute;
  right: 40px;
  bottom: -16px;
  width: 150px;
  animation: ipFloat 5s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 900px) {
  .section:has(.how-grid),
  .section:has(.faq-grid),
  .section:has(.output-wrap) {
    padding: 40px 22px;
    border-radius: 24px;
  }

  .cta-ip {
    width: 96px;
    right: 18px;
  }
}

/* ----- Open layout: fewer boxes, more typography ----- */

h1 em,
h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* How it works: open columns, ghost numbers, hairlines */
.section:has(.how-grid) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.how-grid {
  gap: 36px;
}

.step,
.step:hover {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 26px 0 0;
  transform: none;
  box-shadow: none;
}

.step-number {
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  color: rgba(47, 92, 255, 0.32);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

/* Scenario panels: shed the shell, zigzag, tilted demo windows */
.flow-stack {
  gap: 100px;
}

.flow-panel,
.flow-panel:hover {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.flow-panel:nth-child(even) {
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
}

.flow-panel:nth-child(even) .flow-copy {
  order: 2;
}

.flow-panel:nth-child(even) .flow-demo {
  order: 1;
}

.say-this {
  border: 0;
  border-left: 3px solid var(--stage);
  border-radius: 0;
  background: transparent;
  padding: 6px 0 6px 20px;
}

.say-this p {
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1c1916;
}

.flow-shell {
  box-shadow: 0 30px 70px rgba(15, 20, 35, 0.13);
  transition: transform 320ms ease;
}

.flow-panel:nth-child(odd) .notch-scene {
  transform: rotate(0.7deg);
}

.flow-panel:nth-child(even) .notch-scene {
  transform: rotate(-0.7deg);
}

.flow-panel:hover .notch-scene {
  transform: rotate(0deg);
}

/* What you get: open checklist + chips inside the color band */
.output-card,
.output-card:hover {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transform: none;
}

.output-card li {
  font-size: 16px;
  color: rgba(15, 13, 12, 0.78);
}

.output-card:first-child li {
  display: flex;
  gap: 10px;
}

.output-card:first-child li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex: 0 0 auto;
}

.output-card:last-child ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.output-card:last-child li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Compare / trust: two open columns, one divider */
.compare-grid {
  gap: 0;
}

.compare-box,
.trust-box,
.compare-box:hover,
.trust-box:hover {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.compare-box {
  padding: 8px 48px 8px 0;
}

.trust-box {
  padding: 8px 0 8px 48px;
  border-left: 1px solid var(--line-strong);
}

/* FAQ: hairline-divided list */
.section:has(.faq-grid) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.faq-grid {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 860px;
}

.faq-item,
.faq-item:hover {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 24px 0;
  transform: none;
  box-shadow: none;
}

/* Springier reveals */
.reveal {
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1100px) {
  .flow-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .flow-panel:nth-child(even) .flow-copy {
    order: 0;
  }

  .flow-panel:nth-child(even) .flow-demo {
    order: 0;
  }

  .flow-stack {
    gap: 64px;
  }

  .compare-grid {
    gap: 28px;
  }

  .compare-box {
    padding: 0;
  }

  .trust-box {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .audience-grid,
  .approval-panel,
  .approval-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 0;
  }

  .approval-panel {
    gap: 32px;
  }

  .approval-card {
    min-height: 0;
  }
}

/* ----- Notch demo scene: replica of the real Invoko overlay ----- */
.notch-scene {
  position: relative;
  width: min(560px, 100%);
  border-radius: 26px;
  padding: 28px 28px 104px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 8%, rgba(255, 255, 255, 0.5), transparent 55%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.14) 0 70px, rgba(255, 255, 255, 0) 70px 150px),
    linear-gradient(140deg, #9db4f6 0%, #7593ee 45%, #a9c0f8 100%);
  box-shadow: 0 30px 70px rgba(15, 20, 35, 0.13);
  transition: transform 320ms ease;
}

.notch-ip {
  position: absolute;
  bottom: 14px;
  right: 34px;
  width: 88px;
  animation: ipFloat 4.6s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(20, 35, 90, 0.25));
  pointer-events: none;
}

.notch-panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 20, 35, 0.28);
  overflow: hidden;
  text-align: left;
}

.notch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
}

.notch-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14.5px;
  color: #0b1120;
}

.notch-app i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #5b8cff, #2f5cff);
  flex: 0 0 auto;
}

.notch-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
}

.notch-panel .flow-status {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  gap: 10px;
  font-size: 13px;
  color: rgba(15, 13, 12, 0.72);
}

.spark {
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
}

.flow-status.working .spark {
  animation: sparkPulse 1s ease-in-out infinite;
}

@keyframes sparkPulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8) rotate(20deg);
  }
}

.notch-result {
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 20, 35, 0.22);
  overflow: hidden;
  text-align: left;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.notch-scene.demo-waiting .notch-result {
  opacity: 0;
  transform: translateY(10px);
}

.notch-scene.demo-waiting .notch-result.shown {
  opacity: 1;
  transform: none;
}

.notch-result .panel-result {
  padding: 14px 16px 12px;
}

.notch-scene .flow-safety {
  padding: 10px 16px 12px;
  font-size: 12px;
}

.notch-input {
  position: relative;
  margin: 10px 14px 14px;
  border: 1.5px solid rgba(47, 92, 255, 0.5);
  border-radius: 14px;
  padding: 13px 46px 13px 14px;
  background: #fff;
}

.notch-panel .command {
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #0b1120;
}

.notch-panel .command:empty::before {
  content: "Tell me what you want…";
  color: var(--faint);
}

.notch-send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

/* Messages focused scene: static thread canvas with Invoko floating beside it. */
body[data-page="messages"] .message-focused-scene {
  --message-focused-cycle: 12s;
  position: relative;
  width: min(560px, 100%);
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  isolation: isolate;
}

body[data-page="messages"] .message-focused-frame {
  position: relative;
  width: min(450px, calc(100% - 58px));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: #ff9058;
  box-shadow: 0 34px 90px rgba(39, 49, 75, 0.18);
  isolation: isolate;
}

body[data-page="messages"] .message-focused-thread {
  position: absolute;
  z-index: 2;
  top: 50px;
  left: 34px;
  right: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body[data-page="messages"] .message-focused-bubble {
  margin: 0;
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(31, 24, 20, 0.12);
}

body[data-page="messages"] .message-focused-bubble.is-light {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  background: rgba(255, 252, 245, 0.94);
  color: #1c1c1d;
}

body[data-page="messages"] .message-focused-bubble.is-dark {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: #2f2f31;
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="messages"] .message-focused-bubble.is-short {
  max-width: 67%;
}

body[data-page="messages"] .message-focused-bubble.is-sent,
body[data-page="messages"] .message-focused-bubble.is-positive {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.22;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-bubble.is-sent {
  animation: messageFocusedSentBubble var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-bubble.is-positive {
  max-width: 66%;
  animation: messageFocusedPositiveBubble var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -1px 0 1px 3px;
}

body[data-page="messages"] .message-focused-files span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 174px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(27, 28, 31, 0.72);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(31, 24, 20, 0.08);
}

body[data-page="messages"] .message-focused-files span::before {
  content: "";
  width: 8px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: rgba(63, 104, 255, 0.72);
}

body[data-page="messages"] .message-focused-input {
  position: absolute;
  z-index: 5;
  left: 34px;
  right: 34px;
  bottom: 34px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px 9px 19px;
  border: 2px solid rgba(63, 94, 186, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(47, 33, 24, 0.16);
  overflow: hidden;
  animation: messageFocusedInputHandoff var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-caret {
  width: 2px;
  height: 27px;
  border-radius: 999px;
  background: #202023;
}

body[data-page="messages"] .message-focused-placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(20, 24, 36, 0.45);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  animation: messageFocusedPlaceholder var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-draft-text {
  position: absolute;
  left: 51px;
  right: 66px;
  top: 50%;
  min-width: 0;
  overflow: hidden;
  color: rgba(20, 24, 36, 0.78);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
  animation: messageFocusedDraftText var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-send {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #315bff;
  color: #fff;
  box-shadow: 0 8px 18px rgba(49, 91, 255, 0.22);
  animation: messageFocusedSend var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-ip {
  position: absolute;
  z-index: 4;
  right: -4px;
  bottom: 64px;
  width: 132px;
  height: 106px;
  pointer-events: none;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

body[data-page="messages"] .message-focused-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-ip-note {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 184px;
  width: 252px;
  padding: 12px 14px 13px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #17181c;
  font-size: 13px;
  line-height: 1.26;
  box-shadow: 0 18px 34px rgba(31, 24, 20, 0.15);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-ip-note strong {
  font-weight: 600;
}

body[data-page="messages"] .message-focused-ip-note span {
  display: block;
  margin-top: 6px;
  color: rgba(23, 24, 28, 0.68);
  font-size: 12px;
  font-weight: 600;
}

body[data-page="messages"] .message-focused-ip-note.is-reading {
  right: 58px;
  width: 188px;
  animation: messageFocusedNoteReading var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-ip-note.is-result {
  right: -8px;
  animation: messageFocusedNoteResult var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-use-reply {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  height: 30px;
  margin-top: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #315bff;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(49, 91, 255, 0.18);
  animation: messageFocusedUseButton var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-use-reply span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body[data-page="messages"] .message-focused-use-reply .use-label {
  animation: messageFocusedUseLabel var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-use-reply .used-label {
  opacity: 0;
  animation: messageFocusedUsedLabel var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-weight: 600;
}

body[data-page="messages"] .message-focused-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 1px;
}

body[data-page="messages"] .message-focused-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #315bff;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

body[data-page="messages"] .message-focused-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

body[data-page="messages"] .message-focused-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

body[data-page="messages"] .message-focused-ip-idle {
  animation: messageFocusedIpIdle var(--message-focused-cycle) ease-in-out infinite;
}

body[data-page="messages"] .message-focused-ip-thinking {
  animation: messageFocusedIpThinking var(--message-focused-cycle) ease-in-out infinite;
}

@keyframes messageFocusedIpFloat {
  from { transform: translateY(3.5px) rotate(-1.5deg); }
  to { transform: translateY(-3.5px) rotate(1.5deg); }
}

@keyframes messageFocusedNoteReading {
  0%, 23% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  28%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes messageFocusedNoteResult {
  0%, 28% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  34%, 53% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedIpIdle {
  0%, 29% {
    opacity: 0;
    transform: scale(0.96);
  }
  35%, 96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes messageFocusedIpThinking {
  0%, 24% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  30%, 100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@keyframes messageFocusedUseButton {
  0%, 38% {
    transform: scale(1);
    background: #315bff;
  }
  42% {
    transform: scale(0.94);
    background: #2449d8;
  }
  45%, 56% {
    transform: scale(1);
    background: #1f8f58;
  }
  60%, 100% {
    transform: scale(0.98);
    background: #1f8f58;
  }
}

@keyframes messageFocusedUseLabel {
  0%, 41% { opacity: 1; transform: translateY(0); }
  44%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes messageFocusedUsedLabel {
  0%, 43% { opacity: 0; transform: translateY(4px); }
  46%, 56% { opacity: 1; transform: translateY(0); }
  60%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes messageFocusedInputHandoff {
  0%, 49% {
    border-color: rgba(63, 94, 186, 0.72);
  }
  54%, 72% {
    border-color: rgba(49, 91, 255, 0.95);
    box-shadow: 0 18px 38px rgba(47, 33, 24, 0.14), 0 0 0 5px rgba(49, 91, 255, 0.08);
  }
  78%, 100% {
    border-color: rgba(63, 94, 186, 0.72);
  }
}

@keyframes messageFocusedPlaceholder {
  0%, 51% {
    opacity: 1;
    transform: translateY(0);
  }
  56%, 75% {
    opacity: 0;
    transform: translateY(-4px);
  }
  80%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageFocusedDraftText {
  0%, 51% {
    opacity: 0;
    transform: translateY(calc(-50% + 6px));
  }
  56%, 72% {
    opacity: 1;
    transform: translateY(-50%);
  }
  78%, 100% {
    opacity: 0;
    transform: translateY(calc(-50% - 5px));
  }
}

@keyframes messageFocusedSend {
  0%, 64% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(49, 91, 255, 0.22);
  }
  70% {
    transform: scale(0.9);
    box-shadow: 0 6px 12px rgba(49, 91, 255, 0.18);
  }
  74%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(49, 91, 255, 0.22);
  }
}

@keyframes messageFocusedSentBubble {
  0%, 69% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  75%, 96% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedPositiveBubble {
  0%, 80% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  86%, 96% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedDot {
  0%, 80%, 100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  38% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Static workspace canvas for the meetings use case. */
.flow-panel:has(.meeting-canvas-image-frame) {
  grid-template-columns: minmax(250px, 0.52fr) minmax(560px, 1.48fr);
  gap: 40px;
  align-items: center;
  min-height: 580px;
}

.flow-panel:has(.meeting-canvas-image-frame):nth-child(even) {
  grid-template-columns: minmax(560px, 1.48fr) minmax(250px, 0.52fr);
}

.flow-panel:has(.meeting-canvas-image-frame) .flow-copy {
  max-width: 350px;
}

.meeting-canvas-image-frame {
  position: relative;
  width: min(860px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 24px;
  background: #eef4f8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(15, 20, 35, 0.16),
    0 4px 14px rgba(15, 20, 35, 0.06);
}

.meeting-canvas-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.meeting-canvas-image {
  display: block;
  width: 100%;
  height: auto;
}

.meeting-schedule-interaction-frame {
  width: min(860px, 100%);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meeting-schedule-interaction-frame::after {
  display: none;
}

.meeting-schedule-scene {
  --schedule-cycle: 7.8s;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.9;
  overflow: visible;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 13% 16%, rgba(255, 255, 255, 0.76), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(255, 255, 255, 0.58), transparent 23%),
    linear-gradient(135deg, #d9eff1 0%, #eef9f9 42%, #9acbd3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(15, 20, 35, 0.16),
    0 4px 14px rgba(15, 20, 35, 0.06);
  isolation: isolate;
}

.meeting-schedule-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 22%, rgba(255, 255, 255, 0.24) 22% 23.4%, transparent 23.4% 43%, rgba(255, 255, 255, 0.16) 43% 44.4%, transparent 44.4% 100%),
    radial-gradient(ellipse at 20% 46%, rgba(255, 255, 255, 0.45), transparent 21%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.32), transparent 18%);
  opacity: 0.75;
  pointer-events: none;
}

.meeting-schedule-window {
  position: absolute;
  inset: 10% 7.5% 11% 6.2%;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1.12fr) minmax(220px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(32, 48, 76, 0.12);
}

.meeting-schedule-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-right: 1px solid rgba(15, 20, 35, 0.08);
  background: #f6f8fb;
}

.meeting-schedule-rail span {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: rgba(15, 20, 35, 0.16);
}

.meeting-schedule-rail .is-active {
  background: #dfe7ff;
  box-shadow: 0 0 0 7px rgba(49, 91, 255, 0.08);
}

.meeting-schedule-thread,
.meeting-schedule-calendar {
  min-width: 0;
  color: #151923;
}

.meeting-schedule-thread {
  border-right: 1px solid rgba(15, 20, 35, 0.08);
}

.meeting-schedule-topbar,
.meeting-schedule-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 19px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
}

.meeting-schedule-topbar strong,
.meeting-schedule-calendar-head strong {
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: 0;
}

.meeting-schedule-topbar span,
.meeting-schedule-calendar-head span {
  color: rgba(21, 25, 35, 0.52);
  font-size: 10px;
  font-weight: 660;
}

.meeting-schedule-message-list {
  display: grid;
  grid-template-columns: 25px 1fr;
  column-gap: 10px;
  row-gap: 11px;
  padding: 18px 20px 20px;
}

.meeting-schedule-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffe0ca;
  color: rgba(21, 25, 35, 0.72);
  font-size: 8.2px;
  font-weight: 800;
}

.meeting-schedule-avatar.is-blue {
  background: #dbe7ff;
}

.meeting-schedule-avatar.is-green {
  background: #daf4d5;
}

.meeting-schedule-message,
.meeting-schedule-reply {
  min-width: 0;
}

.meeting-schedule-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 760;
}

.meeting-schedule-message p,
.meeting-schedule-reply {
  margin: 0;
  color: rgba(21, 25, 35, 0.69);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 590;
}

.meeting-schedule-selected-text {
  position: relative;
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 4px 6px;
  width: 94%;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(49, 91, 255, 0.14);
  color: #2449d8;
  font-size: 9.5px;
  line-height: 1.25;
  font-weight: 720;
  animation: meetingScheduleSelectionPulse var(--schedule-cycle) ease-in-out infinite;
}

.meeting-schedule-selected-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%);
  animation: meetingScheduleSelectionSweep var(--schedule-cycle) ease-in-out infinite;
}

.meeting-schedule-reply {
  width: fit-content;
  max-width: 78%;
  padding: 9px 10px;
  border-radius: 11px;
  background: #f4f6fa;
}

.meeting-schedule-calendar {
  background: rgba(255, 255, 255, 0.78);
}

.meeting-schedule-day-grid {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px 8px;
  padding: 17px 18px;
}

.meeting-schedule-day-grid span {
  color: rgba(21, 25, 35, 0.48);
  font-size: 8.5px;
  font-weight: 700;
  text-align: right;
}

.meeting-schedule-day-grid i {
  min-height: 28px;
  border-top: 1px solid rgba(15, 20, 35, 0.08);
  color: rgba(21, 25, 35, 0.58);
  font-size: 8.6px;
  font-style: normal;
  font-weight: 700;
}

.meeting-schedule-day-grid .is-event,
.meeting-schedule-day-grid .is-draft {
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
}

.meeting-schedule-day-grid .is-event {
  background: rgba(49, 91, 255, 0.08);
}

.meeting-schedule-day-grid .is-draft {
  position: relative;
  background: rgba(15, 48, 138, 0.12);
  color: #0f308a;
  box-shadow: inset 0 0 0 1px rgba(15, 48, 138, 0.36);
  opacity: 0;
  transform: translateX(8px) scaleX(0.94);
  transform-origin: left center;
  animation: meetingScheduleDraftSlot var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-invoko-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.meeting-schedule-selection-glow {
  position: absolute;
  left: 31.5%;
  top: 43%;
  width: 28%;
  height: 9.5%;
  border-radius: 8px;
  background: rgba(15, 48, 138, 0.16);
  opacity: 0;
  animation: meetingScheduleSelectionGlow var(--schedule-cycle) ease-in-out infinite;
  display: none;
}

.meeting-schedule-ip {
  position: absolute;
  right: -4.1%;
  bottom: 10.8%;
  width: 12.8%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.meeting-schedule-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

.meeting-schedule-ip-bubble {
  position: absolute;
  right: -2.2%;
  bottom: 27.2%;
  width: min(270px, 35%);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.meeting-schedule-ip-card {
  position: relative;
  padding: 16px 12px;
  border: 1px solid rgba(120, 126, 138, 0.34);
  border-radius: 12px;
  background: #ffffff;
  color: #151923;
  font-size: clamp(10px, 0.86vw, 14px);
  line-height: 1.2;
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.meeting-schedule-ip-card::after,
.meeting-schedule-ip-card::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.meeting-schedule-ip-card::before {
  background: rgba(120, 126, 138, 0.34);
  transform: translateY(1px);
}

.meeting-schedule-ip-card::after {
  background: #ffffff;
}

.meeting-schedule-ip-card strong {
  display: block;
  margin: 0 0 4px;
  color: #151923;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.1;
  font-weight: 650;
}

.meeting-schedule-ip-card > span:not(.meeting-schedule-dots) {
  display: block;
  color: rgba(21, 25, 35, 0.68);
  font-size: 0.92em;
  font-weight: 560;
}

.meeting-schedule-ip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.meeting-schedule-ip-actions span {
  display: inline-flex;
  align-items: center;
  min-width: 36px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(120, 126, 138, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(21, 25, 35, 0.62);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.meeting-schedule-ip-actions .is-primary {
  color: rgba(21, 25, 35, 0.72);
}

.meeting-schedule-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.meeting-schedule-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f308a;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.meeting-schedule-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.meeting-schedule-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.meeting-schedule-ip-bubble.is-reading {
  width: min(210px, 29%);
  animation: meetingScheduleReadingBubble var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-bubble.is-result {
  animation: meetingScheduleResultBubble var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-idle {
  animation: meetingScheduleIpIdle var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-thinking {
  animation: meetingScheduleIpThinking var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes meetingScheduleSelectionPulse {
  0%, 18% {
    box-shadow: inset 0 0 0 1px rgba(49, 91, 255, 0.10);
  }
  24%, 62% {
    box-shadow: inset 0 0 0 1px rgba(49, 91, 255, 0.34), 0 0 0 3px rgba(49, 91, 255, 0.06);
  }
  76%, 100% {
    box-shadow: inset 0 0 0 1px rgba(49, 91, 255, 0.10);
  }
}

@keyframes meetingScheduleSelectionSweep {
  0%, 10% {
    transform: translateX(-120%);
  }
  22%, 38% {
    transform: translateX(120%);
  }
  39%, 100% {
    transform: translateX(120%);
  }
}

@keyframes meetingScheduleSelectionGlow {
  0%, 16%, 78%, 100% {
    opacity: 0;
    transform: scale(0.96);
  }
  23%, 52% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes meetingScheduleReadingBubble {
  0%, 18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes meetingScheduleResultBubble {
  0%, 24% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  32%, 92% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  98%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes meetingScheduleDraftSlot {
  0%, 26% {
    opacity: 0;
    transform: translateX(8px) scaleX(0.94);
  }
  34%, 94% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  99%, 100% {
    opacity: 0;
    transform: translateX(6px) scaleX(0.98);
  }
}

@keyframes meetingScheduleIpIdle {
  0%, 24% {
    opacity: 0;
    transform: scale(0.96);
  }
  32%, 96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes meetingScheduleIpThinking {
  0%, 20% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  28%, 100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

.meeting-prep-interaction-frame {
  width: min(560px, 100%);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meeting-prep-interaction-frame::after {
  display: none;
}

.meeting-prep-scene {
  --meeting-prep-cycle: 8.5s;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 6%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 76% 90%, rgba(255, 255, 255, 0.62), transparent 26%),
    linear-gradient(135deg, #cce7ea 0%, #eef8f9 48%, #9ccdd6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(15, 20, 35, 0.16),
    0 4px 14px rgba(15, 20, 35, 0.06);
  isolation: isolate;
}

.meeting-prep-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(255, 255, 255, 0.24) 18% 19%, transparent 19% 34%, rgba(255, 255, 255, 0.18) 34% 35%, transparent 35% 100%),
    radial-gradient(ellipse at 16% 40%, rgba(255, 255, 255, 0.52), transparent 22%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.34), transparent 18%);
  opacity: 0.75;
  pointer-events: none;
}

.meeting-prep-app {
  position: absolute;
  inset: 11% 10% 12%;
  z-index: 1;
  display: grid;
  grid-template-columns: 44% 1fr;
  grid-template-rows: minmax(118px, 0.88fr) 1fr;
  gap: 12px;
}

.meeting-prep-calendar-card,
.meeting-prep-agenda-card,
.meeting-prep-source-card {
  min-width: 0;
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(32, 48, 76, 0.1);
}

.meeting-prep-calendar-card {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 18px;
  color: #141821;
}

.meeting-prep-kicker,
.meeting-prep-label,
.meeting-prep-source-card span {
  display: block;
  color: rgba(23, 27, 37, 0.52);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.meeting-prep-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(49, 91, 255, 0.11);
  color: #2449d8;
}

.meeting-prep-calendar-card strong {
  display: block;
  margin-bottom: 6px;
  color: #141821;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
}

.meeting-prep-calendar-card > span:not(.meeting-prep-kicker) {
  color: rgba(20, 24, 33, 0.58);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0;
}

.meeting-prep-attendees {
  display: flex;
  margin-top: 14px;
}

.meeting-prep-attendees i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: -6px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #dbe7ff;
  color: rgba(23, 27, 37, 0.72);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 780;
}

.meeting-prep-attendees i:nth-child(2) {
  background: #ffe4ca;
}

.meeting-prep-attendees i:nth-child(3) {
  background: #d8f4d5;
}

.meeting-prep-attendees i:nth-child(4) {
  background: #ead7ff;
}

.meeting-prep-agenda-card {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 18px 18px 16px;
  color: #171b25;
}

.meeting-prep-agenda-card ul {
  margin: 0 0 18px;
  padding-left: 15px;
  color: rgba(23, 27, 37, 0.72);
  font-size: 10.5px;
  line-height: 1.65;
  font-weight: 610;
}

.meeting-prep-highlight {
  display: inline-block;
  margin: 0 0 22px;
  max-width: 92%;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(49, 91, 255, 0.14);
  color: #2449d8;
  font-size: 10px;
  font-weight: 700;
}

.meeting-prep-lines {
  display: grid;
  gap: 9px;
  margin-left: 2px;
}

.meeting-prep-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(94, 108, 128, 0.14);
}

.meeting-prep-lines span:nth-child(1) {
  width: 56%;
  background: rgba(94, 108, 128, 0.22);
}

.meeting-prep-lines span:nth-child(2) {
  width: 78%;
}

.meeting-prep-lines span:nth-child(3) {
  width: 64%;
}

.meeting-prep-source-stack {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
}

.meeting-prep-source-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.meeting-prep-source-card strong {
  display: block;
  color: rgba(23, 27, 37, 0.78);
  font-size: 9.6px;
  line-height: 1.12;
  font-weight: 730;
}

.meeting-prep-source-card p {
  margin: 0;
  color: rgba(23, 27, 37, 0.68);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 650;
}

.meeting-prep-ip-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.meeting-prep-ip {
  position: absolute;
  right: -5.8%;
  bottom: 10%;
  width: 16.2%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.meeting-prep-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

.meeting-prep-ip-note {
  position: absolute;
  right: -7.2%;
  bottom: 27%;
  width: 34%;
  padding: 2.2% 2.35%;
  border: 1px solid rgba(15, 20, 35, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  color: #17181c;
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.22;
  box-shadow: 0 12px 24px rgba(15, 20, 35, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.meeting-prep-ip-note::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.meeting-prep-ip-note::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  background: rgba(15, 20, 35, 0.14);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(1px);
}

.meeting-prep-ip-note strong {
  display: block;
  margin: 0 0 0.28em;
  font-weight: 760;
}

.meeting-prep-ip-note span {
  display: block;
  color: rgba(23, 24, 28, 0.72);
  font-size: 0.95em;
  font-weight: 620;
}

.meeting-prep-ip-note.is-reading {
  right: -1.2%;
  width: 27%;
  animation: meetingPrepNoteReading var(--meeting-prep-cycle) ease-in-out infinite;
}

.meeting-prep-ip-note.is-result {
  animation: meetingPrepNoteResult var(--meeting-prep-cycle) ease-in-out infinite;
}

.meeting-prep-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.meeting-prep-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 1px;
}

.meeting-prep-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #315bff;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.meeting-prep-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.meeting-prep-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.meeting-prep-ip-idle {
  animation: meetingPrepIpIdle var(--meeting-prep-cycle) ease-in-out infinite;
}

.meeting-prep-ip-thinking {
  animation: meetingPrepIpThinking var(--meeting-prep-cycle) ease-in-out infinite;
}

@keyframes meetingPrepNoteReading {
  0%, 25% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  31%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes meetingPrepNoteResult {
  0%, 31% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  38%, 80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  88%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes meetingPrepIpIdle {
  0%, 31% {
    opacity: 0;
    transform: scale(0.96);
  }
  38%, 96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes meetingPrepIpThinking {
  0%, 26% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  34%, 100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meeting-schedule-selected-text,
  .meeting-schedule-selected-text::after,
  .meeting-schedule-selection-glow,
  .meeting-schedule-day-grid .is-draft,
  .meeting-schedule-ip,
  .meeting-schedule-ip-bubble,
  .meeting-schedule-ip img,
  .meeting-schedule-dots i,
  .meeting-prep-ip,
  .meeting-prep-ip-note,
  .meeting-prep-ip img,
  .meeting-prep-dots i {
    animation: none !important;
  }

  .meeting-schedule-ip-bubble.is-reading,
  .meeting-schedule-ip-thinking,
  .meeting-prep-ip-note.is-reading,
  .meeting-prep-ip-thinking {
    opacity: 0 !important;
  }

  .meeting-schedule-ip-bubble.is-result,
  .meeting-schedule-ip-idle,
  .meeting-schedule-day-grid .is-draft,
  .meeting-prep-ip-note.is-result,
  .meeting-prep-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .flow-panel:has(.meeting-canvas-image-frame),
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.meeting-canvas-image-frame) .flow-copy,
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) .flow-copy,
  .flow-panel:has(.meeting-canvas-image-frame) .flow-demo,
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) .flow-demo {
    order: 0;
  }

  .meeting-canvas-image-frame {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.meeting-canvas-image-frame) {
    width: 100%;
    overflow: hidden;
  }

  .flow-panel:has(.meeting-canvas-image-frame) .flow-demo {
    min-height: auto;
    width: 100%;
    overflow: hidden;
    justify-content: center;
  }

  .meeting-canvas-image-frame {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    border-radius: 18px;
  }

  .meeting-prep-ip-note {
    font-size: 11px;
  }
}

/* Workflows query scene: product canvas plus Invoko guidance overlay. */
.flow-panel:has(.workflow-query-scene) {
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1.42fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
}

.flow-panel:has(.workflow-query-scene) .flow-copy {
  max-width: 360px;
}

.workflow-query-scene {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 780 / 468;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.05), transparent 42%),
    #eef2f6;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 30px 70px rgba(15, 20, 35, 0.14),
    0 2px 8px rgba(15, 20, 35, 0.05);
  isolation: isolate;
}

.workflow-app-window {
  position: absolute;
  inset: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.11);
  border-radius: 18px;
  background: #f8fafc;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 46px rgba(15, 20, 35, 0.12);
}

.workflow-window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(15, 20, 35, 0.52);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.workflow-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-window-bar strong {
  margin-left: auto;
  color: rgba(15, 20, 35, 0.44);
  font-weight: 700;
}

.workflow-app-body {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 190px;
  background: #f3f5f9;
}

.workflow-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 16px 0;
  border-right: 1px solid rgba(15, 20, 35, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.workflow-logo-mark,
.workflow-sidebar i {
  display: block;
  border-radius: 12px;
}

.workflow-logo-mark {
  width: 26px;
  height: 26px;
  background:
    linear-gradient(135deg, #111827, #1f5fbf);
}

.workflow-sidebar i {
  width: 28px;
  height: 28px;
  background: rgba(15, 20, 35, 0.08);
}

.workflow-sidebar i.is-active {
  background: rgba(22, 52, 147, 0.14);
  box-shadow: inset 0 0 0 1px rgba(22, 52, 147, 0.16);
}

.workflow-page {
  min-width: 0;
  padding: 18px;
}

.workflow-page-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.workflow-page-head span,
.workflow-field-label,
.workflow-field-card span,
.workflow-side-panel > span {
  color: rgba(15, 20, 35, 0.48);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.workflow-page-head strong {
  color: #0b1120;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.1;
}

.workflow-progress-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.workflow-progress-rail span {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 999px;
  background: #fff;
  color: rgba(15, 20, 35, 0.52);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.workflow-progress-rail span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(38, 132, 92, 0.16);
  transform-origin: left center;
}

.workflow-progress-rail .is-done::before,
.workflow-progress-rail .is-current::before {
  width: 100%;
}

.workflow-progress-rail .is-current {
  color: #123b2a;
  box-shadow: 0 0 0 3px rgba(38, 132, 92, 0.08);
}

.workflow-form-card,
.workflow-field-card,
.workflow-side-panel {
  border: 1px solid rgba(15, 20, 35, 0.09);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.workflow-form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
}

.workflow-form-card.is-selected {
  border-color: rgba(38, 132, 92, 0.35);
  box-shadow:
    0 0 0 3px rgba(38, 132, 92, 0.10),
    0 12px 26px rgba(15, 20, 35, 0.06);
  animation: workflowSelectedPulse 3.4s ease-in-out infinite;
}

.workflow-form-card strong,
.workflow-field-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 6px;
  color: #0b1120;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-form-card button,
.workflow-side-panel button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #163493;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.workflow-form-card button {
  padding: 0 14px;
}

.workflow-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workflow-field-card {
  min-width: 0;
  min-height: 74px;
  padding: 13px;
  border-radius: 15px;
}

.workflow-field-card.has-warning {
  border-color: rgba(176, 112, 22, 0.24);
  background: #fffaf0;
}

.workflow-side-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
}

.workflow-check {
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 12px;
  background: #fff;
  color: rgba(15, 20, 35, 0.62);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-check.is-done {
  color: #226446;
  background: #effaf4;
}

.workflow-check.is-risk {
  color: #8a520f;
  background: #fff7e8;
}

.workflow-side-panel button {
  width: 100%;
  margin-top: 4px;
  background: rgba(15, 20, 35, 0.16);
  color: rgba(15, 20, 35, 0.48);
}

.workflow-invoko-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.workflow-query-card,
.workflow-result-card,
.workflow-context-tabs {
  position: absolute;
  border: 1px solid rgba(15, 20, 35, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 56px rgba(15, 20, 35, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(16px);
}

.workflow-query-card {
  left: 64px;
  top: 62px;
  width: min(384px, calc(100% - 128px));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: workflowQueryIn 7.2s ease-in-out infinite;
}

.workflow-query-card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(15, 20, 35, 0.12);
  border-bottom: 1px solid rgba(15, 20, 35, 0.12);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.workflow-query-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.workflow-query-card p {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.workflow-context-tabs {
  right: 58px;
  top: 74px;
  width: 230px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  animation: workflowTabsIn 7.2s ease-in-out infinite;
}

.workflow-context-tabs span {
  position: relative;
  overflow: hidden;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(15, 20, 35, 0.50);
  font-size: 11px;
  font-weight: 800;
}

.workflow-context-tabs span i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(22, 52, 147, 0.12);
  animation: workflowTabProgress 7.2s linear infinite;
}

.workflow-context-tabs span.is-active {
  color: #163493;
  background: rgba(22, 52, 147, 0.07);
}

.workflow-context-tabs span:nth-child(2) i { animation-delay: 1.7s; }
.workflow-context-tabs span:nth-child(3) i { animation-delay: 3.2s; }

.workflow-result-card {
  right: 48px;
  bottom: 48px;
  width: min(390px, calc(100% - 96px));
  padding: 16px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: workflowResultIn 7.2s ease-in-out infinite;
}

.workflow-result-card strong {
  display: block;
  color: #0b1120;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.workflow-result-card ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 13px;
  padding: 0;
  list-style: none;
}

.workflow-result-card li {
  display: flex;
  gap: 8px;
  color: rgba(15, 20, 35, 0.70);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.36;
}

.workflow-result-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #26845c;
}

.workflow-result-card b {
  color: #0b1120;
}

.workflow-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.workflow-action-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 999px;
  color: rgba(15, 20, 35, 0.60);
  font-size: 11px;
  font-weight: 800;
}

.workflow-action-row span.is-primary {
  border-color: #163493;
  background: #163493;
  color: #fff;
}

@keyframes workflowSelectedPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(38, 132, 92, 0.10),
      0 12px 26px rgba(15, 20, 35, 0.06);
  }
  45% {
    box-shadow:
      0 0 0 6px rgba(38, 132, 92, 0.13),
      0 14px 30px rgba(15, 20, 35, 0.08);
  }
}

@keyframes workflowQueryIn {
  0%, 8% { opacity: 0; transform: translateY(12px) scale(0.98); }
  16%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(8px) scale(0.99); }
}

@keyframes workflowTabsIn {
  0%, 22% { opacity: 0; transform: translateY(8px); }
  32%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(5px); }
}

@keyframes workflowResultIn {
  0%, 42% { opacity: 0; transform: translateY(14px) scale(0.98); }
  52%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(8px) scale(0.99); }
}

@keyframes workflowTabProgress {
  0%, 18% { width: 0; }
  42%, 100% { width: 100%; }
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-query-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workflow-query-scene {
    width: 100%;
    min-height: 520px;
    aspect-ratio: auto;
  }

  .workflow-app-window {
    inset: 14px;
  }

  .workflow-app-body {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .workflow-side-panel {
    display: none;
  }

  .workflow-page {
    padding: 14px;
  }

  .workflow-progress-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-form-grid {
    grid-template-columns: 1fr;
  }

  .workflow-field-card:nth-child(n+3) {
    display: none;
  }

  .workflow-query-card {
    left: 26px;
    top: 56px;
    width: calc(100% - 52px);
  }

  .workflow-context-tabs {
    left: 26px;
    right: auto;
    top: 154px;
    width: min(230px, calc(100% - 52px));
  }

  .workflow-result-card {
    left: 26px;
    right: auto;
    bottom: 28px;
    width: calc(100% - 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-form-card.is-selected,
  .workflow-query-card,
  .workflow-context-tabs,
  .workflow-context-tabs span i,
  .workflow-result-card {
    animation: none;
  }

  .workflow-query-card,
  .workflow-context-tabs,
  .workflow-result-card {
    opacity: 1;
    transform: none;
  }
}

/* Workflows query scene v2: closer to the focused messages demo and Intercom-style product scene. */
.flow-panel:has(.workflow-query-scene) {
  grid-template-columns: minmax(260px, 0.54fr) minmax(560px, 1.46fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
}

.flow-panel:has(.workflow-query-scene) .flow-copy {
  max-width: 360px;
}

.workflow-query-scene {
  --workflow-cycle: 12s;
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.workflow-workspace-frame {
  position: absolute;
  inset: 24px 22px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(23, 31, 48, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 10%, rgba(45, 91, 255, 0.06), transparent 30%),
    #f6f7f9;
  box-shadow:
    0 34px 90px rgba(39, 49, 75, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  isolation: isolate;
}

.workflow-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.workflow-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-window-bar strong {
  margin-left: auto;
  color: rgba(17, 24, 39, 0.42);
  font-weight: 700;
}

.workflow-app-shell {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
}

.workflow-app-nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 13px;
  padding: 16px 0;
  border-right: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.workflow-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.15);
}

.workflow-app-nav i {
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 11px;
  background: rgba(17, 24, 39, 0.08);
}

.workflow-app-nav i.is-active {
  background: #315bff;
  box-shadow:
    0 9px 18px rgba(49, 91, 255, 0.22),
    0 0 0 4px rgba(49, 91, 255, 0.10);
}

.workflow-page-surface {
  min-width: 0;
  padding: 18px 18px 20px;
  background:
    linear-gradient(90deg, #f7f8fb, #f1f3f7);
}

.workflow-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.workflow-page-top span,
.workflow-card-head span,
.workflow-risk-card span,
.workflow-detail-card label span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.workflow-page-top strong {
  display: block;
  margin-top: 6px;
  color: #0b1120;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.05;
}

.workflow-top-actions {
  display: flex;
  gap: 8px;
}

.workflow-top-actions button,
.workflow-row button,
.workflow-note-actions button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 760;
  white-space: nowrap;
}

.workflow-top-actions button {
  height: 32px;
  padding: 0 14px;
  background: #fff;
  color: rgba(17, 24, 39, 0.66);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.10);
}

.workflow-top-actions button.is-disabled {
  background: rgba(17, 24, 39, 0.10);
  color: rgba(17, 24, 39, 0.38);
}

.workflow-step-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.workflow-step-track span {
  position: relative;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(17, 24, 39, 0.56);
  font-size: 11px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.workflow-step-track b {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.18);
}

.workflow-step-track .is-done {
  color: #226446;
  background: rgba(238, 250, 244, 0.86);
}

.workflow-step-track .is-done b,
.workflow-step-track .is-current b {
  background: #248354;
}

.workflow-step-track .is-current {
  color: #143f2c;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(36, 131, 84, 0.24),
    0 0 0 4px rgba(36, 131, 84, 0.08);
}

.workflow-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(205px, 0.75fr);
  grid-auto-rows: min-content;
  gap: 12px;
}

.workflow-main-card,
.workflow-detail-card,
.workflow-activity-card,
.workflow-risk-card {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 32px rgba(39, 49, 75, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.workflow-main-card {
  padding: 14px;
}

.workflow-detail-card,
.workflow-activity-card,
.workflow-risk-card {
  padding: 14px;
}

.workflow-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.workflow-card-head strong {
  color: #0b1120;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
}

.workflow-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #111827;
}

.workflow-row + .workflow-row {
  margin-top: 8px;
}

.workflow-row-status {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.20);
}

.workflow-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(17, 24, 39, 0.52);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-row em {
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.workflow-row.is-complete {
  background: rgba(240, 250, 245, 0.58);
}

.workflow-row.is-complete .workflow-row-status {
  background: #248354;
}

.workflow-row.is-selected {
  border-color: rgba(49, 91, 255, 0.34);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(49, 91, 255, 0.09),
    0 13px 26px rgba(39, 49, 75, 0.06);
  animation: workflowFocusPulse var(--workflow-cycle) ease-in-out infinite;
}

.workflow-row.is-selected .workflow-row-status {
  background: #315bff;
}

.workflow-row.is-warning {
  background: #fff8ed;
}

.workflow-row.is-warning .workflow-row-status {
  background: #bf7a18;
}

.workflow-row button {
  height: 30px;
  padding: 0 12px;
  background: #315bff;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 8px 16px rgba(49, 91, 255, 0.18);
}

.workflow-detail-card {
  display: grid;
  gap: 10px;
}

.workflow-detail-card label {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 13px;
  background: #fff;
}

.workflow-detail-card label i {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-detail-card label.is-muted {
  background: #fff8ed;
}

.workflow-activity-card p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  color: rgba(17, 24, 39, 0.58);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.workflow-activity-card b {
  color: #111827;
}

.workflow-risk-card {
  background: #fff8ed;
}

.workflow-risk-card strong {
  display: block;
  margin-top: 8px;
  color: #8a520f;
  font-size: 14px;
  font-weight: 780;
}

.workflow-risk-card p {
  margin: 7px 0 0;
  color: rgba(92, 58, 13, 0.68);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.workflow-invoko-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.workflow-selection-ring {
  position: absolute;
  left: 94px;
  top: 368px;
  width: 386px;
  height: 74px;
  border: 2px solid rgba(49, 91, 255, 0.44);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px rgba(49, 91, 255, 0.08),
    0 18px 42px rgba(49, 91, 255, 0.10);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip {
  position: absolute;
  z-index: 7;
  right: 2px;
  bottom: 110px;
  width: 128px;
  height: 104px;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.workflow-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(45, 72, 143, 0.22));
}

.workflow-ip-idle {
  animation: workflowIpIdle var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip-thinking {
  animation: workflowIpThinking var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip-note,
.workflow-query-bubble,
.workflow-result-note {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(23, 31, 48, 0.10);
  background: rgba(255, 255, 255, 0.94);
  color: #17181c;
  box-shadow: 0 20px 44px rgba(31, 34, 46, 0.15);
  backdrop-filter: blur(16px);
}

.workflow-ip-note {
  right: 82px;
  bottom: 205px;
  width: 178px;
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  animation: workflowNoteReading var(--workflow-cycle) ease-in-out infinite;
}

.workflow-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workflow-dots {
  display: inline-flex;
  gap: 3px;
}

.workflow-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #315bff;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.workflow-dots i:nth-child(2) { animation-delay: 0.16s; }
.workflow-dots i:nth-child(3) { animation-delay: 0.32s; }

.workflow-query-bubble {
  left: 74px;
  top: 74px;
  width: 348px;
  padding: 15px 18px;
  border-radius: 20px;
  border-bottom-left-radius: 7px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: 10% 100%;
  animation: workflowQueryBubble var(--workflow-cycle) ease-in-out infinite;
}

.workflow-query-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(23, 31, 48, 0.10);
  border-bottom: 1px solid rgba(23, 31, 48, 0.10);
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
}

.workflow-query-bubble p {
  margin: 0;
  color: #101422;
  font-size: 14px;
  font-weight: 690;
  line-height: 1.34;
}

.workflow-result-note {
  right: -10px;
  bottom: 210px;
  width: 304px;
  padding: 14px 15px 15px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  opacity: 0;
  transform: translateY(9px) scale(0.96);
  transform-origin: 92% 100%;
  animation: workflowResultNote var(--workflow-cycle) ease-in-out infinite;
}

.workflow-result-note strong {
  display: block;
  color: #101422;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

.workflow-result-note > span {
  display: block;
  margin-top: 7px;
  color: rgba(17, 24, 39, 0.66);
  font-size: 12.5px;
  font-weight: 630;
  line-height: 1.36;
}

.workflow-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
}

.workflow-note-actions button {
  height: 29px;
  padding: 0 12px;
  background: #fff;
  color: rgba(17, 24, 39, 0.62);
  font-size: 11.5px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.10);
}

.workflow-note-actions button.is-primary {
  background: #315bff;
  color: #fff;
  box-shadow: 0 8px 16px rgba(49, 91, 255, 0.18);
}

@keyframes workflowFocusPulse {
  0%, 30%, 100% {
    box-shadow:
      0 0 0 4px rgba(49, 91, 255, 0.09),
      0 13px 26px rgba(39, 49, 75, 0.06);
  }
  40%, 62% {
    box-shadow:
      0 0 0 6px rgba(49, 91, 255, 0.13),
      0 16px 34px rgba(39, 49, 75, 0.08);
  }
}

@keyframes workflowSelectionRing {
  0%, 21% {
    opacity: 0;
    transform: translateY(5px) scale(0.99);
  }
  28%, 70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78%, 100% {
    opacity: 0;
    transform: translateY(3px) scale(0.995);
  }
}

@keyframes workflowQueryBubble {
  0%, 9% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  16%, 82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(7px) scale(0.99);
  }
}

@keyframes workflowNoteReading {
  0%, 26% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  32%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes workflowResultNote {
  0%, 34% {
    opacity: 0;
    transform: translateY(9px) scale(0.96);
  }
  42%, 72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes workflowIpIdle {
  0%, 31% {
    opacity: 0;
    transform: scale(0.96);
  }
  38%, 94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes workflowIpThinking {
  0%, 28% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  34%, 100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-query-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workflow-query-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  .workflow-workspace-frame {
    inset: 18px 0 18px 0;
    border-radius: 22px;
  }

  .workflow-app-shell {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .workflow-app-nav {
    gap: 11px;
  }

  .workflow-logo-mark {
    width: 30px;
    height: 30px;
  }

  .workflow-app-nav i {
    width: 28px;
    height: 28px;
  }

  .workflow-page-surface {
    padding: 15px 14px 18px;
  }

  .workflow-page-top {
    display: grid;
    gap: 12px;
  }

  .workflow-page-top strong {
    font-size: 18px;
  }

  .workflow-step-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-page-grid {
    grid-template-columns: 1fr;
  }

  .workflow-detail-card,
  .workflow-activity-card,
  .workflow-risk-card {
    display: none;
  }

  .workflow-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .workflow-row button,
  .workflow-row em {
    grid-column: 2;
    justify-self: start;
  }

  .workflow-selection-ring {
    left: 67px;
    top: 400px;
    width: calc(100% - 96px);
    height: 102px;
  }

  .workflow-query-bubble {
    left: 44px;
    top: 76px;
    width: calc(100% - 82px);
  }

  .workflow-ip {
    right: -2px;
    bottom: 64px;
    width: 112px;
    height: 92px;
  }

  .workflow-ip-note {
    right: 48px;
    bottom: 146px;
    width: 174px;
  }

  .workflow-result-note {
    left: 34px;
    right: auto;
    bottom: 136px;
    width: calc(100% - 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-row.is-selected,
  .workflow-selection-ring,
  .workflow-ip,
  .workflow-ip-idle,
  .workflow-ip-thinking,
  .workflow-ip-note,
  .workflow-dots i,
  .workflow-query-bubble,
  .workflow-result-note {
    animation: none;
  }

  .workflow-selection-ring,
  .workflow-query-bubble,
  .workflow-result-note {
    opacity: 1;
    transform: none;
  }

  .workflow-ip-note,
  .workflow-ip-thinking {
    opacity: 0;
  }

  .workflow-ip-idle {
    opacity: 1;
  }
}

/* Workflows automation builder demo: n8n-like canvas, execution state, and Invoko guidance. */
.wf-auto-frame {
  position: absolute;
  inset: 24px 22px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(23, 31, 48, 0.11);
  border-radius: 24px;
  background: #f7f8fb;
  box-shadow:
    0 34px 90px rgba(39, 49, 75, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  isolation: isolate;
}

.wf-auto-browserbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wf-auto-browserbar span:not(.window-dot) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-auto-browserbar strong {
  margin-left: auto;
  color: #a74820;
  font-weight: 800;
  white-space: nowrap;
}

.wf-auto-shell {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
}

.wf-auto-nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 15px 0;
  border-right: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.wf-auto-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.15);
}

.wf-auto-nav i {
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 11px;
  background: rgba(17, 24, 39, 0.08);
}

.wf-auto-nav i.is-active {
  background: #ff6b35;
  box-shadow:
    0 9px 18px rgba(255, 107, 53, 0.20),
    0 0 0 4px rgba(255, 107, 53, 0.11);
}

.wf-auto-builder {
  min-width: 0;
  display: grid;
  grid-template-rows: 68px 46px 44px minmax(0, 1fr);
  background: #f4f5f8;
}

.wf-auto-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.wf-auto-topbar span,
.wf-node-type,
.wf-run-status span,
.wf-sample-data span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-auto-topbar strong {
  display: block;
  margin-top: 6px;
  color: #0b1120;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.08;
}

.wf-auto-actions {
  display: flex;
  gap: 8px;
}

.wf-auto-actions button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: rgba(17, 24, 39, 0.66);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.10);
}

.wf-auto-actions button.is-disabled {
  background: #fff0eb;
  color: #a63e24;
  box-shadow: inset 0 0 0 1px rgba(166, 62, 36, 0.18);
}

.wf-story-rail {
  display: grid;
  grid-template-columns: 0.9fr 1.18fr 1fr 1.05fr;
  gap: 1px;
  align-items: stretch;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(17, 24, 39, 0.08);
}

.wf-story-rail span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(17, 24, 39, 0.62);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
}

.wf-story-rail b {
  flex: 0 0 auto;
  color: #0b1120;
  font-size: 9px;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wf-run-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.wf-run-path span {
  position: relative;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(17, 24, 39, 0.54);
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-run-path span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(17, 24, 39, 0.16);
}

.wf-run-path span:last-child::after {
  display: none;
}

.wf-run-path .is-done {
  background: #e8f7ee;
  color: #1f883d;
}

.wf-run-path .is-failed {
  background: #fff0eb;
  color: #a63e24;
  animation: wfPathFailed 12s ease-in-out infinite;
}

.wf-run-path .is-next {
  background: #eef4ff;
  color: #315bff;
}

.wf-auto-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.wf-auto-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 34%, rgba(255, 107, 53, 0.08), transparent 26%),
    #f9fafb;
}

.wf-auto-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 44% 50%, #000 0 58%, transparent 86%);
}

.wf-node {
  position: absolute;
  z-index: 2;
  width: 170px;
  min-height: 82px;
  padding: 12px 13px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 34px rgba(39, 49, 75, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-node::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #248354;
}

.wf-node-type {
  padding-left: 17px;
}

.wf-node strong {
  display: block;
  margin-top: 10px;
  color: #0b1120;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.12;
}

.wf-node small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 24, 39, 0.54);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
}

.wf-node-trigger {
  left: 34px;
  top: 118px;
}

.wf-node-enrich {
  left: 240px;
  top: 118px;
}

.wf-node-gmail {
  left: 240px;
  top: 250px;
}

.wf-node-slack {
  left: 444px;
  top: 250px;
}

.wf-node-ok {
  border-color: rgba(36, 131, 84, 0.18);
}

.wf-node-selected {
  border-color: rgba(255, 107, 53, 0.46);
  box-shadow:
    0 0 0 4px rgba(255, 107, 53, 0.11),
    0 18px 36px rgba(39, 49, 75, 0.13);
  animation: wfNodePulse 12s ease-in-out infinite;
}

.wf-node-selected::before {
  background: #d84b2a;
}

.wf-node-muted {
  opacity: 0.74;
}

.wf-node-muted::before {
  background: rgba(17, 24, 39, 0.24);
}

.wf-connector {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: rgba(36, 131, 84, 0.36);
  transform-origin: left center;
}

.wf-connector i {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #248354;
}

.wf-connector-a {
  left: 204px;
  top: 161px;
  width: 46px;
}

.wf-connector-b {
  left: 324px;
  top: 202px;
  width: 82px;
  transform: rotate(90deg);
}

.wf-connector-c {
  left: 410px;
  top: 293px;
  width: 46px;
}

.wf-connector.is-muted {
  background: rgba(216, 75, 42, 0.28);
}

.wf-connector.is-muted i {
  background: #d84b2a;
}

.wf-auto-minimap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 108px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(39, 49, 75, 0.08);
}

.wf-auto-minimap span {
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.10);
}

.wf-auto-minimap span.is-active {
  background: rgba(255, 107, 53, 0.48);
}

.wf-failure-chip {
  position: absolute;
  z-index: 3;
  left: 254px;
  top: 352px;
  padding: 7px 10px;
  border: 1px solid rgba(166, 62, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 240, 235, 0.96);
  color: #a63e24;
  font-size: 10.5px;
  font-weight: 840;
  box-shadow: 0 12px 26px rgba(166, 62, 36, 0.10);
}

.wf-auto-inspector {
  min-width: 0;
  border-left: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.wf-inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
}

.wf-inspector-tabs span {
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(17, 24, 39, 0.46);
  font-size: 10.5px;
  font-weight: 800;
}

.wf-inspector-tabs span.is-active {
  background: rgba(255, 107, 53, 0.12);
  color: #9f3e20;
}

.wf-run-status,
.wf-decision-card,
.wf-sample-data {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  background: #fff;
  padding: 12px;
}

.wf-decision-card {
  margin-top: 12px;
  border-color: rgba(166, 62, 36, 0.17);
  background: #fffaf7;
}

.wf-decision-card span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-run-status strong {
  display: block;
  margin-top: 8px;
  color: #a63e24;
  font-size: 14px;
  font-weight: 820;
}

.wf-decision-card strong {
  display: block;
  margin-top: 8px;
  color: #8f3a1d;
  font-size: 13px;
  font-weight: 840;
}

.wf-run-status p,
.wf-decision-card p {
  margin: 7px 0 0;
  color: rgba(17, 24, 39, 0.58);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.35;
}

.wf-run-log {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.wf-run-log p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.045);
  color: rgba(17, 24, 39, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.wf-run-log b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.12);
  color: rgba(17, 24, 39, 0.62);
  font-size: 10px;
}

.wf-run-log .is-ok b {
  background: #e8f7ee;
  color: #248354;
}

.wf-run-log .is-fail {
  background: #fff0eb;
  color: #9f3e20;
}

.wf-run-log .is-fail b {
  background: #ffd9cc;
  color: #9f3e20;
}

.wf-run-log .is-skip {
  color: rgba(17, 24, 39, 0.42);
}

.wf-sample-data strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 8px;
  color: #0b1120;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-node-ring {
  position: absolute;
  left: 298px;
  top: 274px;
  width: 178px;
  height: 90px;
  border: 2px solid rgba(255, 107, 53, 0.50);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px rgba(255, 107, 53, 0.10),
    0 18px 42px rgba(255, 107, 53, 0.10);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.wf-auto-frame ~ .workflow-invoko-layer .workflow-query-bubble {
  left: 86px;
  top: 52px;
  width: 374px;
}

.wf-auto-frame ~ .workflow-invoko-layer .workflow-result-note {
  right: 2px;
  bottom: 154px;
  width: 326px;
}

.wf-auto-frame ~ .workflow-invoko-layer .workflow-ip {
  right: -2px;
  bottom: 66px;
}

.wf-auto-frame ~ .workflow-invoko-layer .workflow-ip-note {
  right: 84px;
  bottom: 166px;
}

@keyframes wfNodePulse {
  0%, 30%, 100% {
    box-shadow:
      0 0 0 4px rgba(255, 107, 53, 0.11),
      0 18px 36px rgba(39, 49, 75, 0.13);
  }
  42%, 64% {
    box-shadow:
      0 0 0 7px rgba(255, 107, 53, 0.15),
      0 20px 40px rgba(39, 49, 75, 0.15);
  }
}

@keyframes wfPathFailed {
  0%, 30%, 100% {
    box-shadow: none;
  }
  42%, 64% {
    box-shadow: 0 0 0 4px rgba(166, 62, 36, 0.10);
  }
}

@media (max-width: 900px) {
  .wf-auto-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-auto-browserbar {
    height: 48px;
  }

  .wf-auto-shell {
    height: calc(100% - 48px);
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wf-auto-builder {
    grid-template-rows: 78px 92px 80px minmax(0, 1fr);
  }

  .wf-auto-topbar {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
  }

  .wf-auto-topbar strong {
    font-size: 15px;
  }

  .wf-auto-actions {
    display: none;
  }

  .wf-run-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
  }

  .wf-story-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-story-rail span {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .wf-run-path span::after {
    display: none;
  }

  .wf-auto-content {
    grid-template-columns: 1fr;
  }

  .wf-auto-inspector {
    display: none;
  }

  .wf-node {
    width: 168px;
  }

  .wf-node-trigger {
    left: 32px;
    top: 108px;
  }

  .wf-node-enrich {
    left: 154px;
    top: 228px;
  }

  .wf-node-gmail {
    left: 32px;
    top: 344px;
  }

  .wf-node-slack {
    left: 154px;
    top: 456px;
  }

  .wf-connector-a {
    left: 114px;
    top: 196px;
    width: 74px;
    transform: rotate(55deg);
  }

  .wf-connector-b {
    left: 172px;
    top: 314px;
    width: 92px;
    transform: rotate(126deg);
  }

  .wf-connector-c {
    left: 114px;
    top: 432px;
    width: 76px;
    transform: rotate(54deg);
  }

  .wf-auto-minimap {
    display: none;
  }

  .wf-node-ring {
    left: 49px;
    top: 400px;
    width: 170px;
    height: 88px;
  }

  .wf-failure-chip {
    left: 48px;
    top: 494px;
  }

  .wf-auto-frame ~ .workflow-invoko-layer .workflow-query-bubble {
    left: 42px;
    top: 42px;
    width: calc(100% - 76px);
  }

  .wf-auto-frame ~ .workflow-invoko-layer .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 118px;
    width: calc(100% - 64px);
  }

  .wf-auto-frame ~ .workflow-invoko-layer .workflow-ip {
    right: -2px;
    bottom: 42px;
  }

  .wf-auto-frame ~ .workflow-invoko-layer .workflow-ip-note {
    right: 48px;
    bottom: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-node-selected,
  .wf-node-ring {
    animation: none;
  }

  .wf-node-ring {
    opacity: 1;
    transform: none;
  }
}

/* Workflows PR review demo: GitHub-like diff plus draft-only Invoko risk review. */
.flow-panel:has(.workflow-pr-scene) {
  grid-template-columns: minmax(560px, 1.46fr) minmax(260px, 0.54fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
}

.flow-panel:has(.workflow-pr-scene) .flow-copy {
  max-width: 420px;
}

.workflow-pr-scene {
  --workflow-cycle: 12s;
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  isolation: isolate;
}

.wf-pr-frame {
  position: absolute;
  inset: 24px 0 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 31, 48, 0.12);
  border-radius: 24px;
  background: #f6f8fa;
  box-shadow:
    0 34px 90px rgba(39, 49, 75, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-pr-browserbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
  color: rgba(17, 24, 39, 0.50);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.wf-pr-browserbar span:not(.window-dot) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-browserbar strong {
  margin-left: auto;
  color: #1f883d;
  font-weight: 800;
  white-space: nowrap;
}

.wf-pr-page {
  height: calc(100% - 42px);
  display: grid;
  grid-template-rows: 70px 40px 38px minmax(0, 1fr);
  background: #f6f8fa;
}

.wf-pr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.wf-pr-header span,
.wf-pr-files > span,
.wf-pr-inline-risk strong {
  display: block;
  color: rgba(17, 24, 39, 0.50);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-pr-header strong {
  display: block;
  margin-top: 6px;
  color: #0b1120;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.08;
}

.wf-pr-checks {
  display: flex;
  gap: 8px;
}

.wf-pr-checks span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 800;
}

.wf-pr-checks .is-pass {
  background: #e8f7ee;
  color: #1f883d;
}

.wf-pr-checks .is-warn {
  background: #fff1e8;
  color: #a54820;
}

.wf-pr-tabs {
  display: flex;
  align-items: end;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.wf-pr-tabs span {
  height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.wf-pr-tabs span.is-active {
  border-bottom-color: #fd8c73;
  color: #0b1120;
}

.wf-pr-causal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.wf-pr-causal-strip span {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-pr-causal-strip span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(17, 24, 39, 0.16);
}

.wf-pr-causal-strip span:last-child::after {
  display: none;
}

.wf-pr-causal-strip .is-source {
  background: #eef4ff;
  color: #315bff;
}

.wf-pr-causal-strip .is-risk {
  background: #fff0eb;
  color: #a63e24;
  animation: wfPathFailed 12s ease-in-out infinite;
}

.wf-pr-causal-strip .is-next {
  background: #e8f7ee;
  color: #1f883d;
}

.wf-pr-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.wf-pr-files,
.wf-pr-diff {
  min-width: 0;
  border: 1px solid rgba(23, 31, 48, 0.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(39, 49, 75, 0.055);
}

.wf-pr-files {
  padding: 13px;
}

.wf-pr-files strong {
  display: block;
  margin: 8px 0 12px;
  color: #0b1120;
  font-size: 14px;
  font-weight: 800;
}

.wf-pr-files p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 11px;
  font-weight: 730;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-files p.is-selected {
  background: #eef4ff;
  color: #1f4bb8;
}

.wf-pr-diff {
  position: relative;
  overflow: hidden;
}

.wf-pr-filebar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: #f6f8fa;
}

.wf-pr-filebar strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1120;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-filebar span {
  color: #1f883d;
  font-size: 11px;
  font-weight: 800;
}

.wf-pr-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.wf-pr-code p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0;
  min-height: 34px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.04);
  color: rgba(17, 24, 39, 0.72);
  font-size: 11px;
  line-height: 34px;
}

.wf-pr-code b {
  display: block;
  padding-right: 9px;
  background: #f6f8fa;
  color: rgba(17, 24, 39, 0.38);
  font-weight: 600;
  text-align: right;
}

.wf-pr-code span {
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-code .is-add {
  background: #e6ffec;
}

.wf-pr-code .is-remove {
  background: #ffebe9;
}

.wf-pr-code .is-risk-line span {
  background: #fff1e8;
  color: #8f3a1d;
  font-weight: 800;
}

.wf-pr-inline-risk {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 210px;
  padding: 12px;
  border: 1px solid rgba(165, 72, 32, 0.20);
  border-radius: 14px;
  background: rgba(255, 248, 241, 0.96);
  box-shadow: 0 16px 34px rgba(39, 49, 75, 0.11);
}

.wf-pr-inline-risk span {
  display: block;
  margin-top: 7px;
  color: #8f3a1d;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.wf-pr-risk-ring {
  position: absolute;
  left: 424px;
  top: 320px;
  width: 324px;
  height: 38px;
  border: 2px solid rgba(255, 107, 53, 0.52);
  border-radius: 9px;
  box-shadow:
    0 0 0 5px rgba(255, 107, 53, 0.10),
    0 18px 42px rgba(255, 107, 53, 0.10);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.workflow-pr-scene .workflow-query-bubble {
  left: 70px;
  top: 74px;
  width: 392px;
}

.workflow-pr-scene .workflow-result-note {
  right: 8px;
  bottom: 112px;
  width: 324px;
}

.workflow-pr-scene .workflow-ip {
  right: 0;
  bottom: 34px;
}

.workflow-pr-scene .workflow-ip-note {
  right: 84px;
  bottom: 132px;
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-pr-scene),
  .flow-panel:has(.workflow-pr-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.workflow-pr-scene) .flow-copy,
  .flow-panel:has(.workflow-pr-scene):nth-child(even) .flow-copy,
  .flow-panel:has(.workflow-pr-scene) .flow-demo,
  .flow-panel:has(.workflow-pr-scene):nth-child(even) .flow-demo {
    grid-column: auto;
    grid-row: auto;
  }

  .workflow-pr-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  .wf-pr-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-pr-page {
    grid-template-rows: 76px 42px 80px minmax(0, 1fr);
  }

  .wf-pr-header {
    display: grid;
    align-content: center;
    gap: 8px;
  }

  .wf-pr-header strong {
    font-size: 16px;
  }

  .wf-pr-checks {
    display: none;
  }

  .wf-pr-tabs {
    gap: 14px;
    overflow: hidden;
  }

  .wf-pr-causal-strip {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 7px 12px;
  }

  .wf-pr-causal-strip span::after {
    display: none;
  }

  .wf-pr-body {
    grid-template-columns: 1fr;
  }

  .wf-pr-files {
    display: none;
  }

  .wf-pr-code p {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .wf-pr-inline-risk {
    left: 52px;
    right: auto;
    bottom: 20px;
    width: calc(100% - 78px);
  }

  .wf-pr-risk-ring {
    left: 53px;
    top: 376px;
    width: calc(100% - 75px);
  }

  .workflow-pr-scene .workflow-query-bubble {
    left: 42px;
    top: 84px;
    width: calc(100% - 76px);
  }

  .workflow-pr-scene .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 82px;
    width: calc(100% - 64px);
  }

  .workflow-pr-scene .workflow-ip {
    right: -2px;
    bottom: 28px;
  }

  .workflow-pr-scene .workflow-ip-note {
    right: 48px;
    bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-pr-risk-ring {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Meeting intervention demo: June Notch V3-inspired overlay. */
.invoko-intervention-scene {
  --invoko-notch-bg: #000;
  --invoko-notch-surface: #111;
  --invoko-notch-surface-elevated: #191919;
  --invoko-notch-border: #2a2a2a;
  --invoko-notch-border-strong: #484848;
  --invoko-notch-text: #eee;
  --invoko-notch-text-secondary: #b4b4b4;
  --invoko-notch-text-tertiary: #606060;
  --invoko-notch-accent: #0090ff;
  --invoko-notch-compact: 290px;
  --invoko-notch-horizontal: 300px;
  --invoko-notch-wide: 480px;
  --invoko-notch-height: 38px;
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 720 / 424;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f6f8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 60px rgba(15, 20, 35, 0.12),
    0 2px 6px rgba(15, 20, 35, 0.06);
  isolation: isolate;
}

.flow-panel:has(.invoko-intervention-scene) {
  grid-template-columns: minmax(260px, 0.62fr) minmax(480px, 1.38fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
}

.flow-panel:has(.invoko-intervention-scene) .flow-copy {
  max-width: 360px;
}

.meeting-work-canvas {
  position: absolute;
  inset: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 48, 138, 0.07), transparent 38%),
    radial-gradient(circle at 8% 96%, rgba(15, 48, 138, 0.05), transparent 42%),
    #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.meet-window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
  background: #f8fafc;
  color: rgba(15, 20, 35, 0.48);
  font-size: 11px;
  line-height: 1;
}

.meet-window-bar strong {
  margin-left: auto;
  color: rgba(15, 20, 35, 0.42);
  font-weight: 600;
}

.meet-lock {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 14px 0 #fbbc04, 28px 0 #ea4335;
  margin-right: 28px;
}

.meet-app-top {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
}

.meet-app-top div {
  display: grid;
  gap: 4px;
}

.meet-product,
.meet-live {
  color: rgba(15, 20, 35, 0.52);
  font-size: 11px;
  font-weight: 650;
}

.meet-app-top strong {
  color: #0b1120;
  font-size: 15px;
  font-weight: 650;
}

.meet-live {
  border: 1px solid rgba(15, 20, 35, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

.meet-layout {
  height: calc(100% - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 10px;
  padding: 12px;
  background: #f4f6fa;
}

.meet-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(98px, 1fr);
  gap: 10px;
}

.meet-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 48, 138, 0.12), rgba(15, 20, 35, 0.04)),
    #e8edf6;
}

.meet-tile-main {
  grid-row: span 2;
  background:
    radial-gradient(circle at 70% 20%, rgba(66, 133, 244, 0.2), transparent 36%),
    linear-gradient(135deg, #e4e8ef, #d7dfeb);
}

.meet-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0f308a;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(15, 20, 35, 0.12);
}

.meet-tile span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: rgba(15, 20, 35, 0.62);
  font-size: 11px;
  font-weight: 650;
}

.meet-context-panel {
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  color: rgba(15, 20, 35, 0.58);
  font-size: 11px;
  line-height: 1.4;
}

.meet-context-panel strong {
  display: block;
  color: rgba(15, 20, 35, 0.78);
  font-size: 12px;
  margin-bottom: 6px;
}

.meet-context-panel p {
  margin: 0 0 12px;
}

.meet-note-line {
  height: 8px;
  width: 72%;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.09);
}

.meet-note-line.wide {
  width: 92%;
}

.meet-note-line.short {
  width: 48%;
  margin-bottom: 14px;
}

.meet-controls {
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(15, 20, 35, 0.08);
  background: #fff;
}

.meet-controls span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 20, 35, 0.08);
}

.meet-controls span:nth-child(3) {
  background: #ea4335;
}

.meet-highlight {
  display: none;
}

.meet-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--invoko-notch-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 0 0 2px #fff,
    0 8px 20px rgba(0, 144, 255, 0.32);
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.meet-badge-1 { top: 240px; left: 30px; }
.meet-badge-2 { top: 108px; right: 32px; }
.meet-badge-3 { top: 200px; right: 32px; }

.highlight-title,
.highlight-attendees,
.highlight-notes {
  display: none;
}

.invoko-v3-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.invoko-v3-island {
  --current-notch-width: var(--invoko-notch-compact);
  --current-notch-radius: 9px;
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px) scale(0.96);
  transform-origin: top center;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.28));
  transition:
    opacity 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invoko-v3-ear {
  width: 9px;
  height: 9px;
  background: var(--invoko-notch-bg);
  flex: 0 0 auto;
}

.invoko-v3-ear-left {
  clip-path: path("M 9 9 C 9 4.03 4.97 0 0 0 L 9 0 L 9 9 Z");
}

.invoko-v3-ear-right {
  clip-path: path("M 0 9 C 0 4.03 4.03 0 9 0 L 0 0 L 0 9 Z");
}

.invoko-v3-body {
  width: min(var(--current-notch-width), calc(100vw - 72px));
  min-height: var(--invoko-notch-height);
  overflow: hidden;
  border-radius: 0 0 var(--current-notch-radius) var(--current-notch-radius);
  background: var(--invoko-notch-bg);
  color: var(--invoko-notch-text);
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invoko-v3-status {
  height: var(--invoko-notch-height);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}

.invoko-v3-cloud {
  width: 23px;
  height: 15px;
  border-radius: 50% 50% 48% 48% / 72% 72% 42% 42%;
  background: #fff;
  transform-origin: bottom center;
}

.invoko-v3-title {
  min-width: 0;
  overflow: hidden;
  color: var(--invoko-notch-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.invoko-v3-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 238, 238, 0.25);
  border-top-color: var(--invoko-notch-text);
  opacity: 0;
}

.invoko-v3-card {
  margin: 0 8px 8px;
  padding: 10px;
  border: 1px solid var(--invoko-notch-border);
  border-radius: 11px;
  background: var(--invoko-notch-surface);
  color: var(--invoko-notch-text);
}

.invoko-v3-card-label,
.invoko-v3-card-head span,
.invoko-v3-safety {
  color: var(--invoko-notch-text-secondary);
  font-size: 11px;
}

.invoko-v3-query,
.invoko-v3-context,
.invoko-v3-result {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invoko-v3-query p {
  margin: 5px 0 0;
  color: var(--invoko-notch-text);
  font-size: 13px;
  line-height: 1.42;
}

.stream-cursor {
  color: rgba(238, 238, 238, 0.95);
  animation: streamCursorBlink 0.86s steps(1) infinite;
}

.invoko-v3-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 10px 9px;
}

.invoko-v3-context .ctx-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--invoko-notch-border);
  border-radius: 999px;
  background: var(--invoko-notch-surface-elevated);
  color: var(--invoko-notch-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.invoko-v3-context .ctx-emoji {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a2a2a;
  font-size: 11px;
  line-height: 1;
}

.invoko-v3-context .ctx-num {
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--invoko-notch-accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.invoko-v3-card-head {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.invoko-v3-card-head strong {
  font-size: 13px;
  font-weight: 600;
}

.invoko-v3-result ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.invoko-v3-result li {
  display: flex;
  gap: 8px;
  color: var(--invoko-notch-text);
  font-size: 14px;
  line-height: 1.35;
}

.invoko-v3-result li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--invoko-notch-accent);
}

.invoko-v3-safety {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.45;
}

.invoko-intervention-scene.stage-invoked .invoko-v3-island,
.invoko-intervention-scene.stage-result .invoko-v3-island {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.invoko-intervention-scene.stage-query .invoko-v3-island,
.invoko-intervention-scene.stage-reading .invoko-v3-island,
.invoko-intervention-scene.stage-result .invoko-v3-island {
  --current-notch-width: var(--invoko-notch-wide);
  --current-notch-radius: 18px;
}

.invoko-intervention-scene.stage-query .invoko-v3-query,
.invoko-intervention-scene.stage-reading .invoko-v3-query,
.invoko-intervention-scene.stage-result .invoko-v3-query,
.invoko-intervention-scene.stage-reading .invoko-v3-context,
.invoko-intervention-scene.stage-result .invoko-v3-context,
.invoko-intervention-scene.stage-result .invoko-v3-result {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.invoko-intervention-scene.stage-reading .invoko-v3-spinner,
.invoko-intervention-scene.stage-result .invoko-v3-spinner {
  opacity: 1;
  animation: v3Spinner 0.8s linear infinite;
}

.invoko-intervention-scene.stage-reading .meet-badge,
.invoko-intervention-scene.stage-result .meet-badge {
  opacity: 1;
  transform: scale(1);
}

.invoko-intervention-scene.stage-reading .meet-badge-1,
.invoko-intervention-scene.stage-result .meet-badge-1 { transition-delay: 80ms; }
.invoko-intervention-scene.stage-reading .meet-badge-2,
.invoko-intervention-scene.stage-result .meet-badge-2 { transition-delay: 220ms; }
.invoko-intervention-scene.stage-reading .meet-badge-3,
.invoko-intervention-scene.stage-result .meet-badge-3 { transition-delay: 360ms; }

.invoko-intervention-scene.stage-reading .invoko-v3-context .ctx-chip,
.invoko-intervention-scene.stage-result .invoko-v3-context .ctx-chip {
  animation: chipPop 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.invoko-intervention-scene.stage-reading .invoko-v3-context .ctx-chip[data-ctx-num="1"],
.invoko-intervention-scene.stage-result .invoko-v3-context .ctx-chip[data-ctx-num="1"] { animation-delay: 80ms; }
.invoko-intervention-scene.stage-reading .invoko-v3-context .ctx-chip[data-ctx-num="2"],
.invoko-intervention-scene.stage-result .invoko-v3-context .ctx-chip[data-ctx-num="2"] { animation-delay: 220ms; }
.invoko-intervention-scene.stage-reading .invoko-v3-context .ctx-chip[data-ctx-num="3"],
.invoko-intervention-scene.stage-result .invoko-v3-context .ctx-chip[data-ctx-num="3"] { animation-delay: 360ms; }

@keyframes chipPop {
  0% { opacity: 0; transform: translateY(4px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.invoko-intervention-scene.stage-reading .invoko-v3-cloud,
.invoko-intervention-scene.stage-result .invoko-v3-cloud {
  animation: cloudBounce 0.9s ease-in-out 2;
}

@keyframes streamCursorBlink {
  50% { opacity: 0; }
}

@keyframes v3Spinner {
  to { transform: rotate(360deg); }
}

@keyframes contextPulse {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  28%, 70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@keyframes cloudBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.06);
  }
}

@media (max-width: 900px) {
  .notch-scene {
    padding: 16px 16px 84px;
  }

  .notch-ip {
    width: 66px;
    right: 20px;
  }

  .invoko-intervention-scene {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .meeting-work-canvas {
    inset: 14px;
  }

  .meet-layout {
    grid-template-columns: 1fr;
  }

  .meet-context-panel {
    display: none;
  }

  .invoko-v3-body {
    width: min(var(--current-notch-width), calc(100vw - 56px));
  }

  .meet-badge-2,
  .meet-badge-3 {
    display: none;
  }
}

/* Static workspace canvas for the meetings use case. */
.flow-panel:has(.meeting-canvas-scene) {
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1.42fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
}

.flow-panel:has(.meeting-canvas-scene):nth-child(even) {
  grid-template-columns: minmax(520px, 1.42fr) minmax(260px, 0.58fr);
}

.flow-panel:has(.meeting-canvas-scene) .flow-copy {
  max-width: 360px;
}

.meeting-canvas-scene {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 780 / 468;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f6fa;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px rgba(15, 20, 35, 0.14),
    0 2px 8px rgba(15, 20, 35, 0.05);
  isolation: isolate;
}

.meeting-canvas-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 48, 138, 0.08), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.20), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(52, 211, 153, 0.10), transparent 36%),
    #eef2f8;
}

.meeting-canvas-bg::before,
.meeting-canvas-bg::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.meeting-canvas-bg::before {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(4px);
}

.meeting-canvas-bg::after {
  width: 420px;
  height: 260px;
  right: -140px;
  top: -86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(-12deg);
}

.meeting-workspace-window {
  position: absolute;
  inset: 26px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.11);
  border-radius: 18px;
  background: #f8fafc;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 46px rgba(15, 20, 35, 0.12);
}

.workspace-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 20, 35, 0.52);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.workspace-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-time {
  margin-left: auto;
  color: rgba(15, 20, 35, 0.42);
}

.workspace-body {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: 14px;
  padding: 14px;
}

.workspace-meeting-panel,
.workspace-file-board {
  min-width: 0;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.workspace-meeting-panel {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 48px;
  overflow: hidden;
}

.workspace-panel-head,
.file-board-top {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.workspace-panel-head {
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.07);
}

.workspace-panel-head span,
.file-board-top span {
  color: rgba(15, 20, 35, 0.46);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.workspace-panel-head strong,
.file-board-top strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1120;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meeting-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(96px, 0.65fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f2f5fa;
}

.meeting-video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 76% 20%, rgba(66, 133, 244, 0.16), transparent 34%),
    linear-gradient(135deg, #edf1f7, #dfe6f0);
}

.meeting-video-main {
  grid-row: 1 / span 3;
  background:
    radial-gradient(circle at 66% 24%, rgba(15, 48, 138, 0.15), transparent 35%),
    linear-gradient(135deg, #e9edf5, #d3dce8);
}

.speaker-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0f308a;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(15, 20, 35, 0.12);
}

.meeting-video-main .speaker-avatar {
  width: 58px;
  height: 58px;
  font-size: 15px;
}

.meeting-video-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  overflow: hidden;
  color: rgba(15, 20, 35, 0.62);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meeting-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(15, 20, 35, 0.07);
  background: #fff;
}

.meeting-control-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 20, 35, 0.08);
}

.meeting-control-row span:nth-child(3) {
  background: #ef4444;
}

.workspace-file-board {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.file-board-top {
  margin-bottom: 4px;
}

.source-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 20, 35, 0.05);
}

.source-card strong,
.workspace-floating-doc strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0b1120;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.source-card p,
.workspace-floating-doc p,
.workspace-transcript-card p {
  margin: 4px 0 0;
  color: rgba(15, 20, 35, 0.55);
  font-size: 11px;
  line-height: 1.35;
}

.source-icon {
  width: 30px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(135deg, rgba(15, 48, 138, 0.4), rgba(96, 165, 250, 0.26)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(15, 20, 35, 0.06);
}

.source-card-1 .source-icon {
  background:
    linear-gradient(to bottom, #0f308a 0 8px, #fff 8px 100%) padding-box,
    linear-gradient(135deg, rgba(15, 48, 138, 0.36), rgba(96, 165, 250, 0.22)) border-box;
}

.source-card-2 .source-icon {
  background:
    repeating-linear-gradient(to bottom, transparent 0 8px, rgba(15, 20, 35, 0.10) 8px 9px, transparent 9px 14px),
    #fff;
}

.source-card-3 .source-icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 38%, #fff 0 22%, transparent 23%),
    #dbeafe;
}

.message-thread-board {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 48, 138, 0.08), transparent 32%),
    #f2f5fa;
}

.thread-row {
  display: flex;
  max-width: 82%;
}

.thread-row span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(15, 20, 35, 0.08);
  border-radius: 14px;
  background: #fff;
  color: rgba(15, 20, 35, 0.70);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(15, 20, 35, 0.05);
}

.thread-row-outgoing {
  justify-self: end;
}

.thread-row-outgoing span {
  background: #edf4ff;
  color: #0f308a;
}

.thread-row.is-active span {
  border-color: rgba(0, 144, 255, 0.34);
  box-shadow:
    0 0 0 3px rgba(0, 144, 255, 0.08),
    0 10px 24px rgba(15, 20, 35, 0.05);
}

.workspace-floating-doc {
  position: absolute;
  left: 37%;
  bottom: 28px;
  z-index: 2;
  width: 238px;
  padding: 14px;
  border: 1px solid rgba(15, 20, 35, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 24px 48px rgba(15, 20, 35, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  transform: rotate(-1.6deg);
}

.floating-doc-toolbar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.floating-doc-toolbar span {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.12);
}

.doc-line {
  width: 74%;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(15, 20, 35, 0.10);
}

.doc-line.wide { width: 92%; }
.doc-line.short { width: 46%; }

.workspace-transcript-card {
  position: absolute;
  right: 42px;
  bottom: 42px;
  z-index: 3;
  width: 218px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 48, 138, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(15, 20, 35, 0.12);
}

.workspace-transcript-card span {
  color: rgba(15, 48, 138, 0.75);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .flow-panel:has(.meeting-canvas-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .meeting-canvas-scene {
    width: 100%;
    min-height: 430px;
  }

  .meeting-workspace-window {
    inset: 16px;
  }

  .workspace-body {
    grid-template-columns: 1fr;
  }

  .workspace-file-board {
    display: none;
  }

  .workspace-floating-doc {
    left: 30px;
    bottom: 28px;
    width: min(230px, calc(100% - 60px));
  }

  .workspace-transcript-card {
    right: 28px;
    bottom: 34px;
    width: min(210px, calc(100% - 56px));
  }
}

/* Use-case page rhythm: align with the main site typography and button system. */
.button-primary,
.button-secondary,
.nav-cta,
.home-nav .nav-cta,
.home-mobile-drawer .home-mobile-cta {
  border-radius: var(--button-radius);
  letter-spacing: 0;
}

.button-primary,
.button-secondary {
  min-height: 46px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta,
.home-nav .nav-cta {
  min-height: 40px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(15, 20, 35, 0.18);
}

.hero {
  min-height: min(760px, 78vh);
  padding: 132px 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(50px, 5.25vw, 76px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 em {
  display: block;
  font-style: normal;
}

.hero-copy {
  max-width: 700px;
  margin-top: 28px;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  margin-top: 36px;
}

.section {
  padding-block: 112px;
  scroll-margin-top: 132px;
}

.section-header {
  margin-bottom: 54px;
}

.section h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-header.has-ip-accent {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.section-header.has-ip-accent h2 {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.section-ip-accent {
  display: block;
  width: clamp(78px, 8vw, 118px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(47, 92, 255, 0.14));
  pointer-events: none;
  user-select: none;
}

.section-header > .section-ip-accent {
  position: absolute;
  top: -44px;
  right: -10px;
  z-index: 0;
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

.section-header.ip-accent-left > .section-ip-accent {
  right: auto;
  left: -12px;
}

@keyframes sectionIpFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

.section:has(.how-grid),
.section:has(.faq-grid) {
  padding: 84px 56px 92px;
}

.section:has(.output-wrap) {
  padding: 92px 56px;
}

.usecase-flow {
  padding-block: 136px;
}

.audience-section {
  padding-block: 128px;
}

.approval-section {
  padding-block: 122px;
}

.approval-panel h2 {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 112px 0 72px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 60px);
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button-primary,
  .button-secondary {
    min-height: 44px;
    padding: 0 20px;
  }

  .section-header.has-ip-accent {
    min-height: 0;
    display: block;
  }

  .section-header.has-ip-accent h2 {
    max-width: 100%;
  }

  .section-header > .section-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
    animation: sectionIpFloat 6.4s ease-in-out infinite;
  }

  .section {
    padding-block: 82px;
  }

  .section:has(.how-grid),
  .section:has(.faq-grid),
  .section:has(.output-wrap) {
    padding: 54px 22px 62px;
  }

  .usecase-flow,
  .audience-section,
  .approval-section {
    padding-block: 92px;
  }

  .approval-panel > div:first-child {
    padding-top: 0;
  }

  .approval-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
  }
}

/* Messages feature page: Littlebird-inspired pacing and short, task-led copy. */
body[data-page="messages"] .hero {
  min-height: min(720px, 74vh);
  padding: 132px 0 116px;
}

body[data-page="messages"] .hero h1 {
  max-width: 900px;
  font-size: clamp(50px, 5.25vw, 76px);
  line-height: 1.05;
}

body[data-page="messages"] .hero-copy {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(18px, 1.45vw, 21px);
}

body[data-page="messages"] .feature-story-section {
  width: min(1040px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.72fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding-block: clamp(132px, 14vw, 188px);
  border-top: 1px solid rgba(11, 17, 32, 0.1);
}

body[data-page="messages"] .feature-story-section:first-child {
  border-top: 0;
}

body[data-page="messages"] .feature-story-section.is-alt {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.98fr);
}

body[data-page="messages"] .feature-story-section.is-alt .feature-story-copy {
  grid-column: 2;
}

body[data-page="messages"] .feature-story-section.is-alt .feature-story-points {
  grid-column: 1;
  grid-row: 1;
}

body[data-page="messages"] .feature-story-copy {
  max-width: 520px;
}

body[data-page="messages"] .feature-story-copy.has-feature-ip-accent {
  position: relative;
  isolation: isolate;
}

body[data-page="messages"] .feature-story-ip-accent {
  position: absolute;
  top: -92px;
  right: -18px;
  width: clamp(72px, 7vw, 104px);
  z-index: 0;
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

body[data-page="messages"] .feature-story-section.is-alt .feature-story-ip-accent {
  right: auto;
  left: -18px;
}

body[data-page="messages"] .feature-story-copy h2 {
  max-width: 460px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.03;
  font-weight: 560;
}

body[data-page="messages"] .feature-story-copy > p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

body[data-page="messages"] .feature-story-points {
  display: grid;
  gap: 0;
}

body[data-page="messages"] .feature-story-point {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  min-height: 78px;
  border-top: 1px solid rgba(11, 17, 32, 0.12);
}

body[data-page="messages"] .feature-story-point:last-child {
  border-bottom: 1px solid rgba(11, 17, 32, 0.12);
}

body[data-page="messages"] .feature-story-point span {
  color: rgba(37, 94, 255, 0.42);
  font-size: 14px;
  font-weight: 750;
}

body[data-page="messages"] .feature-story-point strong {
  color: #0b1120;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 560;
  letter-spacing: 0;
}

body[data-page="messages"] .feature-steps-section,
body[data-page="messages"] .feature-output-section {
  padding-block: 132px;
}

body[data-page="messages"] .feature-steps-section .how-grid {
  gap: 32px;
  border-top: 1px solid rgba(11, 17, 32, 0.12);
}

body[data-page="messages"] .feature-steps-section .step {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 30px 0 0;
}

body[data-page="messages"] .feature-steps-section .step:hover {
  transform: none;
  background: transparent;
}

body[data-page="messages"] .feature-steps-section .step-number {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 28px;
  border-radius: 0;
  background: transparent;
  color: rgba(37, 94, 255, 0.3);
  font-size: 58px;
  line-height: 0.95;
  font-weight: 650;
}

body[data-page="messages"] .feature-steps-section .step h3 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 620;
}

body[data-page="messages"] .feature-steps-section .step p {
  max-width: 300px;
  font-size: 17px;
  line-height: 1.5;
}

body[data-page="messages"] .feature-example-section {
  padding-block: 140px;
}

body[data-page="messages"] .feature-example-section .section-header,
body[data-page="messages"] .feature-output-section .section-header,
body[data-page="messages"] .feature-steps-section .section-header {
  max-width: 520px;
}

body[data-page="messages"] .message-timeline-section {
  width: min(1080px, calc(100% - 56px));
  padding-block: 4px 122px;
}

body[data-page="messages"] .message-timeline-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
}

body[data-page="messages"] .message-timeline-copy {
  max-width: 360px;
}

body[data-page="messages"] .message-timeline-copy h2 {
  max-width: 340px;
  margin: 0;
  color: #0b1120;
  font-size: clamp(34px, 3.45vw, 46px);
  line-height: 1.05;
  font-weight: 540;
  letter-spacing: -0.035em;
}

body[data-page="messages"] .message-timeline-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

body[data-page="messages"] .message-timeline-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 17, 32, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(47, 92, 255, 0.075), transparent 34%),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 52px rgba(15, 20, 35, 0.07);
}

body[data-page="messages"] .message-timeline-screen::before {
  content: "";
  position: absolute;
  top: 82px;
  bottom: 38px;
  left: 60px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 92, 255, 0.08), rgba(47, 92, 255, 0.28), rgba(47, 92, 255, 0.06));
}

body[data-page="messages"] .message-timeline-topbar {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(11, 17, 32, 0.065);
  color: rgba(11, 17, 32, 0.64);
  font-size: 13px;
  font-weight: 650;
}

body[data-page="messages"] .message-timeline-topbar em {
  margin-left: auto;
  color: rgba(11, 17, 32, 0.46);
  font-size: 12px;
  font-style: normal;
  font-weight: 660;
}

body[data-page="messages"] .message-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #315bff;
  box-shadow: 0 8px 16px rgba(49, 91, 255, 0.16);
}

body[data-page="messages"] .message-timeline-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 14px 26px 20px;
  list-style: none;
}

body[data-page="messages"] .message-timeline-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(11, 17, 32, 0.065);
}

body[data-page="messages"] .message-timeline-list li:last-child {
  border-bottom: 0;
}

body[data-page="messages"] .message-timeline-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(49, 91, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #315bff;
  font-size: 11px;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(49, 91, 255, 0.06);
}

body[data-page="messages"] .message-timeline-list h3 {
  margin: 0;
  color: #0b1120;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.018em;
}

body[data-page="messages"] .message-timeline-list p {
  max-width: 540px;
  margin: 7px 0 0;
  color: rgba(11, 17, 32, 0.62);
  font-size: 14.5px;
  line-height: 1.48;
}

@media (max-width: 900px) {
  body[data-page="messages"] .hero {
    min-height: auto;
    padding: 108px 0 98px;
  }

  body[data-page="messages"] .hero h1 {
    max-width: 310px;
    font-size: clamp(42px, 12.5vw, 54px);
  }

  body[data-page="messages"] .hero-copy {
    max-width: 310px;
    margin-top: 24px;
    font-size: 16.5px;
    line-height: 1.48;
  }

  body[data-page="messages"] .feature-story-section,
  body[data-page="messages"] .feature-story-section.is-alt {
    width: min(100% - 48px, 620px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 108px;
  }

  body[data-page="messages"] .feature-story-section.is-alt .feature-story-copy,
  body[data-page="messages"] .feature-story-section.is-alt .feature-story-points {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-page="messages"] .feature-story-copy h2 {
    max-width: 300px;
    font-size: clamp(34px, 10vw, 42px);
  }

  body[data-page="messages"] .feature-story-ip-accent,
  body[data-page="messages"] .feature-story-section.is-alt .feature-story-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
  }

  body[data-page="messages"] .feature-story-copy > p {
    font-size: 17px;
    line-height: 1.52;
  }

  body[data-page="messages"] .feature-story-point {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 72px;
  }

  body[data-page="messages"] .feature-story-point strong {
    font-size: 20px;
  }

  body[data-page="messages"] .feature-steps-section,
  body[data-page="messages"] .feature-output-section,
  body[data-page="messages"] .feature-example-section {
    padding-block: 104px;
  }

  body[data-page="messages"] .feature-steps-section .how-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body[data-page="messages"] .feature-steps-section .step-number {
    font-size: 52px;
  }

  body[data-page="messages"] .feature-steps-section .step p {
    max-width: 100%;
  }

  body[data-page="messages"] .message-timeline-section {
    width: min(100% - 48px, 620px);
    padding-block: 0 96px;
  }

  body[data-page="messages"] .message-timeline-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body[data-page="messages"] .message-timeline-copy h2 {
    max-width: 280px;
    font-size: clamp(32px, 8.9vw, 38px);
  }

  body[data-page="messages"] .message-timeline-copy > p {
    font-size: 16px;
  }

  body[data-page="messages"] .message-timeline-screen {
    border-radius: 18px;
  }

  body[data-page="messages"] .message-timeline-screen::before {
    left: 40px;
    top: 72px;
    bottom: 28px;
  }

  body[data-page="messages"] .message-timeline-topbar {
    min-height: 56px;
    padding: 0 18px;
  }

  body[data-page="messages"] .message-timeline-list {
    padding: 10px 18px 16px;
  }

  body[data-page="messages"] .message-timeline-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  body[data-page="messages"] .message-timeline-number {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 11px;
  }

  body[data-page="messages"] .message-timeline-list h3 {
    font-size: 18px;
  }

  body[data-page="messages"] .message-timeline-list p {
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-scene {
    width: min(520px, 100%);
    min-height: 590px;
  }

  body[data-page="messages"] .message-focused-frame {
    width: calc(100% - 16px);
    aspect-ratio: 3 / 4.8;
  }

  body[data-page="messages"] .message-focused-thread {
    top: 36px;
    left: 23px;
    right: 23px;
    gap: 8px;
  }

  body[data-page="messages"] .message-focused-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-bubble.is-short {
    max-width: 72%;
  }

  body[data-page="messages"] .message-focused-bubble.is-sent,
  body[data-page="messages"] .message-focused-bubble.is-positive {
    max-width: 84%;
    padding: 9px 11px;
    font-size: 12.2px;
  }

  body[data-page="messages"] .message-focused-bubble.is-positive {
    max-width: 70%;
  }

  body[data-page="messages"] .message-focused-files span {
    max-width: 150px;
    padding: 6px 9px;
    font-size: 11px;
  }

  body[data-page="messages"] .message-focused-input {
    left: 22px;
    right: 22px;
    bottom: 30px;
    min-height: 60px;
    border-radius: 20px;
  }

  body[data-page="messages"] .message-focused-placeholder {
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-draft-text {
    left: 48px;
    right: 62px;
    font-size: 12.5px;
  }

  body[data-page="messages"] .message-focused-send {
    width: 38px;
    height: 38px;
  }

  body[data-page="messages"] .message-focused-ip {
    right: -6px;
    bottom: 92px;
    width: 116px;
    height: 94px;
  }

  body[data-page="messages"] .message-focused-ip-note {
    right: 24px;
    bottom: 160px;
    width: 222px;
    padding: 11px 12px 12px;
    font-size: 12.5px;
  }

  body[data-page="messages"] .message-focused-ip-note.is-reading {
    right: 48px;
    width: 176px;
  }

  body[data-page="messages"] .message-focused-ip-note.is-result {
    right: 16px;
  }

  body[data-page="messages"] .message-focused-use-reply {
    min-width: 76px;
    height: 28px;
    font-size: 11.5px;
  }
}

/* Workflows final pass: multi-scenario, product-native demos instead of a single illustration. */
body[data-page="workflows"] .flow-panel:has(.workflow-query-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene) {
  grid-template-columns: minmax(280px, 0.56fr) minmax(560px, 1.44fr);
  gap: 38px;
  min-height: 610px;
  align-items: center;
}

body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene):nth-child(even),
body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene):nth-child(even),
body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene):nth-child(even) {
  grid-template-columns: minmax(560px, 1.44fr) minmax(280px, 0.56fr);
}

body[data-page="workflows"] .flow-copy {
  max-width: 390px;
}

body[data-page="workflows"] .wf-node-ring,
body[data-page="workflows"] .wf-pr-risk-ring {
  display: none;
}

body[data-page="workflows"] .wf-auto-builder {
  grid-template-rows: 68px 44px minmax(0, 1fr);
}

body[data-page="workflows"] .wf-story-rail {
  display: none;
}

body[data-page="workflows"] .workflow-query-bubble {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 20, 35, 0.10);
}

body[data-page="workflows"] .wf-auto-frame ~ .workflow-invoko-layer .workflow-query-bubble {
  left: 96px;
  top: 66px;
  width: 270px;
}

body[data-page="workflows"] .wf-auto-frame ~ .workflow-invoko-layer .workflow-result-note {
  right: 20px;
  bottom: 132px;
  width: 290px;
}

body[data-page="workflows"] .wf-auto-frame ~ .workflow-invoko-layer .workflow-ip-note {
  right: 102px;
  bottom: 150px;
}

body[data-page="workflows"] .wf-node-selected {
  border-color: rgba(216, 75, 42, 0.28);
  box-shadow: 0 18px 36px rgba(39, 49, 75, 0.11);
  animation: none;
}

body[data-page="workflows"] .wf-failure-chip {
  left: 252px;
  top: 342px;
  box-shadow: none;
}

.workflow-mail-scene,
.workflow-admin-scene {
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  isolation: isolate;
}

.wf-mail-frame,
.wf-admin-frame {
  position: absolute;
  inset: 24px 0 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 31, 48, 0.11);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 34px 90px rgba(39, 49, 75, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-mail-topbar,
.wf-admin-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 720;
}

.wf-mail-topbar strong,
.wf-admin-topbar strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-mail-topbar em,
.wf-admin-topbar em {
  margin-left: auto;
  color: #1f883d;
  font-style: normal;
  font-weight: 840;
  white-space: nowrap;
}

.wf-mail-layout {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 218px;
  background: #f6f8fa;
}

.wf-mail-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 12px;
  border-right: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.wf-mail-sidebar button {
  height: 34px;
  border: 0;
  border-radius: 16px;
  background: #c2e7ff;
  color: #10354f;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-mail-sidebar span {
  padding: 8px 10px;
  border-radius: 11px;
  color: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.wf-mail-sidebar span.is-active {
  background: #e8f0fe;
  color: #174ea6;
}

.wf-mail-thread {
  min-width: 0;
  padding: 15px;
  overflow: hidden;
}

.wf-mail-subject {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(23, 31, 48, 0.08);
}

.wf-mail-subject span,
.wf-mail-policy span,
.wf-mail-compose span,
.wf-admin-grid span,
.wf-admin-check span,
.wf-admin-record header span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.wf-mail-subject strong {
  display: block;
  margin-top: 7px;
  color: #0b1120;
  font-size: 18px;
  font-weight: 820;
}

.wf-mail-message,
.wf-mail-compose,
.wf-mail-policy,
.wf-mail-invoko,
.wf-admin-grid > div,
.wf-admin-audit,
.wf-admin-check {
  border: 1px solid rgba(23, 31, 48, 0.09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(39, 49, 75, 0.055);
}

.wf-mail-message {
  margin-top: 12px;
  padding: 13px;
}

.wf-mail-message b,
.wf-admin-audit b {
  color: #0b1120;
  font-size: 12px;
}

.wf-mail-message p,
.wf-mail-compose p,
.wf-mail-policy p,
.wf-mail-invoko p,
.wf-admin-audit p,
.wf-admin-check p {
  margin: 7px 0 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.wf-mail-message.is-internal {
  background: #fff8e8;
  border-color: rgba(170, 121, 22, 0.18);
}

.wf-mail-compose {
  margin-top: 12px;
  padding: 13px;
  border-color: rgba(47, 92, 255, 0.18);
}

.wf-mail-compose div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.wf-mail-compose button,
.wf-admin-record header button,
.wf-admin-check button {
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(17, 24, 39, 0.08);
  color: rgba(17, 24, 39, 0.64);
  font: inherit;
  font-size: 11px;
  font-weight: 820;
}

.wf-mail-compose button.is-primary,
.wf-admin-record header button {
  background: #fff0eb;
  color: #a63e24;
  box-shadow: inset 0 0 0 1px rgba(166, 62, 36, 0.16);
}

.wf-mail-sidepanel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 15px;
  border-left: 1px solid rgba(23, 31, 48, 0.08);
  background: #fff;
}

.wf-mail-policy,
.wf-mail-invoko,
.wf-admin-check {
  padding: 13px;
}

.wf-mail-policy strong,
.wf-mail-invoko strong,
.wf-admin-grid strong,
.wf-admin-check strong,
.wf-admin-record header strong {
  display: block;
  margin-top: 8px;
  color: #0b1120;
  font-size: 14px;
  font-weight: 840;
}

.wf-mail-policy {
  background: #f2fbf5;
  border-color: rgba(31, 136, 61, 0.16);
}

.wf-mail-invoko {
  background: #f7f9ff;
}

.wf-mail-invoko img,
.wf-admin-check img {
  width: 54px;
  height: auto;
  float: right;
  margin: -4px -2px 6px 8px;
}

.wf-admin-body {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr) 232px;
  background: #f6f8fa;
}

.wf-admin-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 12px;
  border-right: 1px solid rgba(23, 31, 48, 0.08);
  background: #111827;
}

.wf-admin-nav span {
  padding: 9px 10px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.wf-admin-nav span.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wf-admin-record {
  min-width: 0;
  padding: 16px;
}

.wf-admin-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.wf-admin-record header strong {
  font-size: 20px;
}

.wf-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wf-admin-grid > div {
  padding: 14px;
}

.wf-admin-audit {
  margin-top: 14px;
  padding: 14px;
}

.wf-admin-check {
  margin: 16px 16px 16px 0;
  border-color: rgba(166, 62, 36, 0.17);
  background: #fffaf7;
  align-self: start;
}

.wf-admin-check strong {
  color: #8f3a1d;
}

.wf-admin-check button {
  margin-top: 13px;
  width: 100%;
  background: #111827;
  color: #fff;
}

@media (max-width: 900px) {
  body[data-page="workflows"] .flow-panel:has(.workflow-query-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene):nth-child(even),
  body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene):nth-child(even),
  body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="workflows"] .workflow-query-scene,
  body[data-page="workflows"] .workflow-pr-scene,
  .workflow-mail-scene,
  .workflow-admin-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  body[data-page="workflows"] .wf-auto-builder {
    grid-template-rows: 78px 80px minmax(0, 1fr);
  }

  body[data-page="workflows"] .wf-auto-frame ~ .workflow-invoko-layer .workflow-query-bubble {
    left: 42px;
    top: 62px;
    width: calc(100% - 76px);
  }

  body[data-page="workflows"] .wf-auto-frame ~ .workflow-invoko-layer .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 104px;
    width: calc(100% - 64px);
  }

  .wf-mail-frame,
  .wf-admin-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-mail-layout,
  .wf-admin-body {
    grid-template-columns: 1fr;
  }

  .wf-mail-sidebar,
  .wf-admin-nav {
    display: none;
  }

  .wf-mail-sidepanel,
  .wf-admin-check {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0;
    border-left: 1px solid rgba(23, 31, 48, 0.09);
    box-shadow: 0 18px 38px rgba(39, 49, 75, 0.13);
  }

  .wf-mail-thread,
  .wf-admin-record {
    padding: 14px;
    padding-bottom: 190px;
  }

  .wf-admin-grid {
    grid-template-columns: 1fr;
  }

  .wf-admin-record header {
    display: grid;
  }

  .wf-admin-record header button {
    justify-self: start;
  }
}

body[data-page="workflows"] .approval-section {
  background: transparent;
  border-block: 0;
  padding-block: 112px;
}

body[data-page="workflows"] .approval-panel {
  width: min(1120px, calc(100% - 48px));
}

body[data-page="workflows"] .approval-card {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(15, 20, 35, 0.10);
  box-shadow: none;
}

body[data-page="workflows"] .workflow-showcase-section {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  padding-block: 118px 96px;
}

.workflow-showcase-copy {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.workflow-showcase-copy h2 {
  margin: 0;
  color: #0b1120;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: 0;
}

.workflow-showcase-copy p {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(15, 13, 12, 0.62);
  font-size: 18px;
  line-height: 1.5;
}

.workflow-showcase-shell {
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.12);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 20, 35, 0.12);
}

.wf-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(15, 20, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.wf-showcase-tab {
  position: relative;
  min-width: 0;
  height: 68px;
  border: 0;
  border-right: 1px solid rgba(15, 20, 35, 0.10);
  background: transparent;
  color: rgba(15, 13, 12, 0.46);
  font: inherit;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0;
  text-align: left;
  padding: 0 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-showcase-tab:last-child {
  border-right: 0;
}

.wf-showcase-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: #245cff;
  transition: width 220ms ease;
}

.wf-showcase-tab.is-active {
  color: #0b1120;
  background: rgba(255, 255, 255, 0.76);
}

.wf-showcase-tab.is-active::before {
  width: 100%;
}

.wf-showcase-stage {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 184, 205, 0.48), transparent 31%),
    radial-gradient(circle at 18% 72%, rgba(156, 190, 255, 0.48), transparent 33%),
    linear-gradient(135deg, #e8ecff 0%, #fff4f4 52%, #eff8ff 100%);
}

.wf-showcase-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.44) 48%, rgba(255, 255, 255, 0.0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 160px);
  opacity: 0.72;
  pointer-events: none;
}

.wf-showcase-frame {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition: none;
}

.wf-showcase-frame.is-active {
  display: block;
  pointer-events: auto;
}

.wf-showcase-frame.is-pr {
  background:
    radial-gradient(circle at 78% 20%, rgba(115, 187, 255, 0.40), transparent 32%),
    linear-gradient(160deg, rgba(15, 117, 196, 0.92), rgba(222, 242, 255, 0.34) 58%, transparent);
}

.wf-showcase-frame.is-mail {
  background:
    radial-gradient(circle at 24% 22%, rgba(194, 231, 255, 0.62), transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(255, 221, 142, 0.46), transparent 32%);
}

.wf-showcase-frame.is-admin {
  background:
    radial-gradient(circle at 28% 26%, rgba(17, 24, 39, 0.13), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(255, 195, 164, 0.48), transparent 34%);
}

.wf-stage-main {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  width: min(650px, 58%);
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 35, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 34px 78px rgba(15, 20, 35, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translate(-50%, -50%);
}

.wf-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.wf-window-bar b {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef4444;
}

.wf-window-bar b:nth-child(2) {
  background: #f59e0b;
}

.wf-window-bar b:nth-child(3) {
  background: #22c55e;
}

.wf-window-bar span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-window-bar em {
  margin-left: auto;
  color: #1f883d;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.wf-stage-card {
  position: absolute;
  z-index: 4;
  width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 20, 35, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 54px rgba(15, 20, 35, 0.13);
  backdrop-filter: blur(16px);
}

.wf-stage-card span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.wf-stage-card strong {
  display: block;
  margin-top: 9px;
  color: #0b1120;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.12;
}

.wf-stage-card p {
  margin: 8px 0 0;
  color: rgba(17, 24, 39, 0.58);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.wf-stage-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wf-stage-card li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.055);
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.wf-stage-card li.is-ok {
  background: #e8f7ee;
  color: #1f883d;
}

.wf-stage-card li.is-risk {
  background: #fff0eb;
  color: #a63e24;
}

.wf-stage-instruction {
  left: 9%;
  top: 92px;
}

.wf-stage-runlog {
  right: 9%;
  bottom: 92px;
}

.wf-builder-body,
.wf-pr-workspace,
.wf-mail-workspace,
.wf-admin-workspace {
  height: calc(100% - 42px);
  display: grid;
  min-height: 0;
}

.wf-builder-body {
  grid-template-columns: 54px minmax(0, 1fr) 210px;
  background: #f7f8fb;
}

.wf-builder-sidebar,
.wf-mail-workspace > aside:first-child,
.wf-admin-workspace > aside:first-child {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 10px;
  border-right: 1px solid rgba(15, 20, 35, 0.08);
  background: #fff;
}

.wf-builder-sidebar i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.10);
}

.wf-builder-sidebar i.is-active {
  background: #ff6b35;
}

.wf-builder-canvas {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.wf-builder-node {
  position: absolute;
  width: 168px;
  padding: 14px;
  border: 1px solid rgba(31, 136, 61, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(39, 49, 75, 0.09);
}

.wf-builder-node span,
.wf-builder-inspector span,
.wf-pr-copilot span,
.wf-mail-draft span,
.wf-mail-copilot span,
.wf-admin-workspace main > span,
.wf-admin-copilot span,
.wf-admin-metrics span {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 820;
}

.wf-builder-node strong,
.wf-builder-inspector strong,
.wf-pr-copilot strong,
.wf-mail-copilot strong,
.wf-admin-copilot strong {
  display: block;
  margin-top: 7px;
  color: #0b1120;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.12;
}

.wf-builder-node small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 24, 39, 0.58);
  font-size: 11px;
  font-weight: 690;
}

.wf-builder-node:first-child {
  left: 30px;
  top: 132px;
}

.wf-builder-node.is-mid {
  left: 202px;
  top: 132px;
}

.wf-builder-node.is-low {
  left: 202px;
  top: 292px;
}

.wf-builder-node.is-muted {
  left: 30px;
  top: 292px;
  opacity: 0.62;
}

.wf-builder-node.is-risk {
  border-color: rgba(166, 62, 36, 0.30);
}

.wf-builder-line {
  position: absolute;
  left: 198px;
  top: 172px;
  width: 24px;
  height: 2px;
  background: rgba(31, 136, 61, 0.42);
}

.wf-builder-line.is-down {
  left: 286px;
  top: 226px;
  width: 2px;
  height: 84px;
}

.wf-builder-inspector,
.wf-pr-copilot,
.wf-mail-copilot,
.wf-admin-copilot {
  padding: 16px;
  border-left: 1px solid rgba(15, 20, 35, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.wf-builder-inspector p,
.wf-pr-copilot p,
.wf-mail-copilot p,
.wf-admin-copilot p {
  margin: 9px 0 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.45;
}

.wf-builder-inspector button {
  width: 100%;
  height: 32px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-pr-workspace {
  grid-template-columns: 155px minmax(0, 1fr) 220px;
  background: #f6f8fa;
}

.wf-pr-workspace > aside:first-child {
  padding: 15px;
  border-right: 1px solid rgba(15, 20, 35, 0.08);
  background: #fff;
}

.wf-pr-workspace aside strong {
  font-size: 12px;
}

.wf-pr-workspace aside p,
.wf-mail-workspace aside p,
.wf-admin-workspace aside p {
  margin: 10px 0 0;
  padding: 8px 9px;
  border-radius: 9px;
  color: rgba(17, 24, 39, 0.58);
  font-size: 11px;
  font-weight: 760;
}

.wf-pr-workspace aside p.is-active,
.wf-mail-workspace aside p.is-active,
.wf-admin-workspace aside p.is-active {
  background: #eef4ff;
  color: #1f4bb8;
}

.wf-pr-workspace main {
  min-width: 0;
  overflow: hidden;
}

.wf-pr-filebar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 20, 35, 0.08);
  font-size: 12px;
  font-weight: 820;
}

.wf-pr-filebar span {
  color: #1f883d;
}

.wf-pr-workspace pre {
  margin: 0;
  padding: 14px 0;
  color: rgba(17, 24, 39, 0.74);
  font: 12px/2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

.wf-pr-workspace pre span {
  display: inline-block;
  width: 40px;
  margin-right: 10px;
  color: rgba(17, 24, 39, 0.36);
  text-align: right;
}

.wf-pr-workspace pre span:nth-of-type(3) {
  color: #a63e24;
}

.wf-mail-workspace {
  grid-template-columns: 118px minmax(0, 1fr) 218px;
  background: #f6f8fa;
}

.wf-mail-workspace aside button {
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #c2e7ff;
  color: #10354f;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-mail-workspace main {
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.wf-mail-workspace h3,
.wf-admin-workspace h3 {
  margin: 0 0 14px;
  color: #0b1120;
  font-size: 18px;
  font-weight: 840;
}

.wf-mail-message,
.wf-mail-draft {
  padding: 13px;
  border: 1px solid rgba(15, 20, 35, 0.09);
  border-radius: 14px;
  background: #fff;
}

.wf-mail-message p,
.wf-mail-draft p {
  margin: 7px 0 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.42;
}

.wf-mail-draft {
  margin-top: 12px;
  border-color: rgba(47, 92, 255, 0.18);
}

.wf-mail-copilot img,
.wf-admin-copilot img {
  width: 58px;
  float: right;
  margin: -6px -4px 6px 8px;
}

.wf-admin-workspace {
  grid-template-columns: 126px minmax(0, 1fr) 220px;
  background: #f6f8fa;
}

.wf-admin-workspace > aside:first-child {
  background: #111827;
}

.wf-admin-workspace > aside:first-child p {
  color: rgba(255, 255, 255, 0.62);
}

.wf-admin-workspace > aside:first-child p.is-active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.wf-admin-workspace main {
  padding: 16px;
}

.wf-admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wf-admin-metrics div {
  padding: 13px;
  border: 1px solid rgba(15, 20, 35, 0.09);
  border-radius: 14px;
  background: #fff;
}

.wf-admin-metrics strong {
  display: block;
  margin-top: 7px;
  color: #0b1120;
  font-size: 13px;
  font-weight: 820;
}

@media (max-width: 900px) {
  body[data-page="workflows"] .approval-section {
    padding-block: 84px;
  }

  body[data-page="workflows"] .approval-panel {
    width: min(100%, calc(100% - 32px));
  }

  body[data-page="workflows"] .workflow-showcase-section {
    width: min(100%, calc(100% - 28px));
    padding-block: 82px 70px;
  }

  .workflow-showcase-copy {
    text-align: left;
    margin-bottom: 22px;
  }

  .workflow-showcase-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .workflow-showcase-copy p {
    margin-left: 0;
    font-size: 16px;
  }

  .wf-showcase-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .wf-showcase-tab {
    height: 54px;
    padding: 0 12px;
    font-size: 13px;
  }

  .wf-showcase-stage {
    min-height: 720px;
  }

  .wf-stage-main {
    left: 50%;
    top: 50%;
    width: calc(100% - 28px);
    height: 520px;
  }

  .wf-stage-card {
    display: none;
  }

  .wf-builder-body,
  .wf-pr-workspace,
  .wf-mail-workspace,
  .wf-admin-workspace {
    grid-template-columns: 1fr;
  }

  .wf-builder-sidebar,
  .wf-pr-workspace > aside:first-child,
  .wf-mail-workspace > aside:first-child,
  .wf-admin-workspace > aside:first-child {
    display: none;
  }

  .wf-builder-inspector,
  .wf-pr-copilot,
  .wf-mail-copilot,
  .wf-admin-copilot {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid rgba(15, 20, 35, 0.10);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(15, 20, 35, 0.12);
  }

  .wf-builder-node:first-child {
    left: 30px;
    top: 90px;
  }

  .wf-builder-node.is-mid {
    left: 118px;
    top: 212px;
  }

  .wf-builder-node.is-low {
    left: 30px;
    top: 336px;
  }

  .wf-builder-node.is-muted {
    display: none;
  }
}

/* Documents: same query-card structure, but grounded in real document tasks. */
.flow-panel:has(.document-scene) {
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 36px;
  min-height: 600px;
  align-items: center;
}

.flow-panel:has(.document-scene):nth-child(even) {
  grid-template-columns: minmax(560px, 1.42fr) minmax(280px, 0.58fr);
}

body[data-page="documents"] .flow-copy {
  max-width: 390px;
}

.document-scene {
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  isolation: isolate;
}

.doc-window {
  position: absolute;
  inset: 18px 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 28, 45, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 253, 0.96)),
    #fff;
  box-shadow:
    0 36px 90px rgba(39, 49, 75, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.doc-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(22, 28, 45, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 24, 39, 0.52);
  font-size: 12px;
  font-weight: 750;
}

.doc-window-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-window-bar em {
  margin-left: auto;
  color: rgba(17, 24, 39, 0.5);
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.doc-layout {
  height: calc(100% - 42px);
}

.doc-pdf-layout {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 246px;
  background: linear-gradient(180deg, #f4f6fb 0%, #eef2f8 100%);
}

.doc-thumb-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid rgba(22, 28, 45, 0.08);
  background: rgba(244, 246, 250, 0.9);
}

.doc-thumb-rail span {
  height: 62px;
  border: 1px solid rgba(22, 28, 45, 0.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: rgba(17, 24, 39, 0.56);
  font-size: 12px;
  font-weight: 820;
  box-shadow: 0 8px 20px rgba(39, 49, 75, 0.05);
}

.doc-thumb-rail span.is-active {
  border-color: rgba(47, 92, 255, 0.26);
  background: #eef3ff;
  color: #2348b8;
}

.doc-page-stack {
  padding: 22px;
  display: grid;
  align-items: center;
}

.doc-page {
  position: relative;
  width: min(100%, 430px);
  min-height: 430px;
  margin: 0 auto;
  padding: 28px 28px 30px;
  border: 1px solid rgba(22, 28, 45, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(252, 252, 253, 1), rgba(248, 249, 251, 1)),
    #fff;
  box-shadow:
    0 22px 44px rgba(39, 49, 75, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.doc-page-header span,
.doc-mini-card span,
.doc-tax-header span,
.doc-tax-row span,
.doc-tax-footer span,
.doc-site-chip {
  display: block;
  color: rgba(17, 24, 39, 0.48);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.1;
}

.doc-page-header strong,
.doc-mini-card strong,
.doc-tax-header strong,
.doc-article-card strong {
  display: block;
  margin-top: 8px;
  color: #0b1120;
  font-size: 17px;
  font-weight: 840;
  line-height: 1.25;
}

.doc-copy-block {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.doc-copy-block p,
.doc-mini-card p,
.doc-tax-footer p,
.doc-article-card p {
  margin: 0;
  color: rgba(17, 24, 39, 0.66);
  font-size: 13px;
  font-weight: 630;
  line-height: 1.5;
}

.doc-copy-block b {
  color: #0b1120;
}

.doc-copy-block mark {
  padding: 0 5px;
  border-radius: 6px;
  background: #fff2a6;
  color: inherit;
}

.doc-highlight {
  position: absolute;
  left: 22px;
  right: 22px;
  border-radius: 12px;
  pointer-events: none;
}

.doc-highlight-deadline {
  top: 136px;
  height: 38px;
  background: rgba(255, 233, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 36, 0.2);
}

.doc-highlight-risk {
  top: 312px;
  height: 46px;
  background: rgba(255, 216, 214, 0.32);
  box-shadow: inset 0 0 0 1px rgba(205, 80, 61, 0.12);
}

.doc-sidecards,
.doc-tax-rail,
.doc-brief-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid rgba(22, 28, 45, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.doc-mini-card {
  padding: 14px;
  border: 1px solid rgba(22, 28, 45, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(39, 49, 75, 0.05);
}

.doc-mini-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.doc-mini-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(17, 24, 39, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.doc-mini-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2f5cff;
}

.doc-mini-card.is-reading {
  background: #f7f9ff;
}

.doc-mini-card.is-checklist {
  background: #f5fbf7;
  border-color: rgba(31, 136, 61, 0.14);
}

.doc-mini-card.is-risk {
  background: #fff8f3;
  border-color: rgba(197, 101, 53, 0.14);
}

.doc-tax-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  background: linear-gradient(180deg, #f5f7fb 0%, #edf1f7 100%);
}

.doc-tax-main {
  padding: 18px;
  min-width: 0;
}

.doc-tax-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.doc-tax-state {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.doc-tax-state span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
}

.doc-tax-state .is-warn {
  background: #fff3e8;
  color: #a54b1d;
}

.doc-tax-state .is-muted {
  background: rgba(17, 24, 39, 0.08);
  color: rgba(17, 24, 39, 0.58);
}

.doc-tax-sheet {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(22, 28, 45, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(39, 49, 75, 0.06);
}

.doc-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f8fafc;
}

.doc-tax-row strong {
  color: #0b1120;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.doc-tax-row.is-missing {
  background: #fff3f0;
}

.doc-tax-row.is-missing strong {
  color: #b34826;
}

.doc-tax-row.is-review {
  background: #fff8ec;
}

.doc-tax-row.is-review strong {
  color: #8b5a10;
}

.doc-tax-footer {
  margin-top: 14px;
  padding: 13px 14px 0;
}

.doc-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f8 100%);
}

.doc-article-column {
  padding: 18px;
  min-width: 0;
}

.doc-site-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.07);
  color: rgba(17, 24, 39, 0.58);
}

.doc-article-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(22, 28, 45, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(39, 49, 75, 0.06);
}

.doc-article-card p + p {
  margin-top: 12px;
}

.doc-transcript-strip {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.doc-transcript-strip span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: rgba(17, 24, 39, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.doc-transcript-strip span.is-active {
  background: #eef3ff;
  color: #2245ac;
}

.doc-mini-card.is-brief {
  background: #f7f9ff;
  border-color: rgba(47, 92, 255, 0.14);
}

.doc-mini-card.is-next {
  background: #f6fbf5;
  border-color: rgba(31, 136, 61, 0.14);
}

@media (max-width: 900px) {
  .flow-panel:has(.document-scene),
  .flow-panel:has(.document-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .document-scene {
    width: 100%;
    min-height: 680px;
    aspect-ratio: auto;
  }

  .doc-window {
    inset: 12px 0;
  }

  .doc-pdf-layout,
  .doc-tax-layout,
  .doc-brief-layout {
    grid-template-columns: 1fr;
  }

  .doc-thumb-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 28, 45, 0.08);
  }

  .doc-thumb-rail span {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .doc-sidecards,
  .doc-tax-rail,
  .doc-brief-rail {
    border-left: 0;
    border-top: 1px solid rgba(22, 28, 45, 0.08);
  }

  .doc-tax-header {
    display: grid;
    gap: 10px;
  }

  .doc-tax-state {
    justify-items: start;
  }

  .doc-page {
    min-height: 380px;
    width: 100%;
  }
}

/* ============================================================
 * Documents · PDF scene v4
 * Photo backdrop · PDF page in cream window · Invoko reads → Invoko Brief
 * Animation cycle: 0–28% PDF idle · 28–48% mark pulse + IP thinking + Reading bubble
 *                  48–98% brief card slides up + IP idle · 98–100% reset
 * ============================================================ */

.document-pdf-scene {
  --doc-cycle: 8.4s;
  width: min(940px, 100%);
  aspect-ratio: 940 / 640;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 14% 24%, rgba(214, 196, 232, 0.55), transparent 58%),
    radial-gradient(ellipse 50% 48% at 86% 32%, rgba(252, 220, 214, 0.5), transparent 62%),
    radial-gradient(ellipse 70% 55% at 78% 88%, rgba(204, 220, 240, 0.55), transparent 60%),
    radial-gradient(ellipse 55% 45% at 22% 82%, rgba(228, 215, 240, 0.5), transparent 60%),
    linear-gradient(155deg, #f0eaf3 0%, #f5eee6 38%, #ecedf5 70%, #e3e6f0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 30px 70px rgba(15, 20, 35, 0.14),
    0 4px 14px rgba(15, 20, 35, 0.06);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.document-pdf-scene .doc-scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0.6px, transparent 1.4px),
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1.2px),
    radial-gradient(circle at 64% 12%, rgba(255, 255, 255, 0.8) 0.6px, transparent 1.4px),
    radial-gradient(circle at 84% 56%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1.2px),
    radial-gradient(circle at 8% 72%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1.3px),
    radial-gradient(circle at 92% 80%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1.2px),
    radial-gradient(circle at 46% 88%, rgba(255, 255, 255, 0.5) 0.4px, transparent 1.1px);
  background-size: 100% 100%;
  opacity: 0.85;
}

/* --- The PDF page (no application chrome — just a sheet of paper on the canvas) --- */

.document-pdf-scene .doc-pdf-paper {
  position: absolute;
  inset: 3% 24% 2.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 18px;
  border-radius: 4px;
  background: #fdfcf6;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.02) 100%);
  color: #1a1814;
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
  font-size: 11px;
  line-height: 1.55;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(15, 20, 35, 0.18),
    0 4px 10px rgba(15, 20, 35, 0.06);
  -webkit-font-smoothing: antialiased;
}

.document-pdf-scene .doc-pdf-letterhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.document-pdf-scene .doc-pdf-seal svg {
  display: block;
  width: 28px;
  height: 28px;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-letterhead-text {
  display: grid;
  gap: 1px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
}

.document-pdf-scene .doc-pdf-letterhead-text strong {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-letterhead-text span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(28, 24, 20, 0.6);
}

.document-pdf-scene .doc-pdf-letterhead-date {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
}

.document-pdf-scene .doc-pdf-rule {
  margin: 14px 0 18px;
  height: 1px;
  background: rgba(28, 24, 20, 0.16);
}

.document-pdf-scene .doc-pdf-doctitle {
  margin: 0 0 6px;
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(16px, 1.65vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: #1a1814;
  text-wrap: balance;
}

.document-pdf-scene .doc-pdf-subtitle {
  margin: 0 0 14px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

.document-pdf-scene .doc-pdf-body {
  flex: 1;
  display: grid;
  gap: 7px;
}

.document-pdf-scene .doc-pdf-body p {
  margin: 0;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: 0;
  color: #1a1814;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

.document-pdf-scene .doc-pdf-body b {
  font-weight: 700;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-pagefoot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 18px;
  border-top: 1px solid rgba(28, 24, 20, 0.14);
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.5);
}

/* --- Scene 2: 1040 form layout --- */

.document-pdf-scene .doc-pdf-paper.is-form {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
}

.document-pdf-scene .doc-pdf-letterhead.is-form {
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1814;
}

.document-pdf-scene .doc-pdf-formno strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-formno span {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
  margin-top: 2px;
}

.document-pdf-scene .doc-pdf-formyear {
  text-align: right;
}

.document-pdf-scene .doc-pdf-formyear strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-formyear span {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
  margin-top: 2px;
}

.document-pdf-scene .doc-pdf-paper.is-form .doc-pdf-doctitle {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: -0.004em;
  margin: 14px 0 12px;
}

.document-pdf-scene .doc-pdf-formrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(28, 24, 20, 0.14);
  margin-top: -1px;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.35;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-formrow b {
  font-weight: 700;
  margin-right: 6px;
  color: rgba(28, 24, 20, 0.7);
}

.document-pdf-scene .doc-pdf-formrow-head {
  background: #f0ece1;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(28, 24, 20, 0.66);
  padding: 6px 12px;
}

.document-pdf-scene .doc-pdf-formrow.is-flagged {
  background: #fdfaef;
}

.document-pdf-scene .doc-pdf-formnote {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px dashed rgba(28, 24, 20, 0.22);
  background: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(28, 24, 20, 0.74);
}

.document-pdf-scene .doc-pdf-formnote b {
  font-weight: 700;
  color: #1a1814;
}

/* --- Scene 3: Article layout --- */

.document-pdf-scene .doc-pdf-paper.is-article {
  background: #ffffff;
}

.document-pdf-scene .doc-pdf-articlehead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.12);
}

.document-pdf-scene .doc-pdf-articlepub {
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  color: #1a1814;
}

.document-pdf-scene .doc-pdf-articlesection {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

.document-pdf-scene .doc-pdf-paper.is-article .doc-pdf-doctitle {
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.18;
  margin: 16px 0 10px;
}

.document-pdf-scene .doc-pdf-byline {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.58);
}

.document-pdf-scene .doc-pdf-byline span:first-child {
  color: #1a1814;
  font-weight: 600;
}

.document-pdf-scene .doc-pdf-lede {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: #1a1814;
  text-align: left;
}

.document-pdf-scene .doc-pdf-pagefoot.is-article {
  font-style: italic;
}

.document-pdf-scene .doc-mark {
  position: relative;
  padding: 1px 4px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Cycle only starts when the scene is scrolled into view.
   Default = NO animation attached → idle PDF (no marks, no brief, IP idle visible).
   IntersectionObserver in site.js adds .is-playing which mounts the animations. */

.document-pdf-scene.is-playing .doc-mark.is-deadline {
  animation: documentMarkPulse var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .doc-mark.is-fee {
  animation: documentMarkPulseFee var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .doc-mark.is-risk {
  animation: documentMarkPulseRisk var(--doc-cycle) ease-in-out infinite;
}

/* --- Invoko overlay layer --- */

.document-invoko-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Reading bubble — sits next to IP, visible during the "reading" phase. */
.doc-reading-bubble {
  position: absolute;
  right: 4.5%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(120, 126, 138, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #161412;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 6px rgba(15, 20, 35, 0.08),
    0 14px 28px rgba(15, 20, 35, 0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: 100% 100%;
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .doc-reading-bubble {
  animation: documentReadingBubble var(--doc-cycle) ease-in-out infinite;
}

.doc-reading-bubble-text {
  color: #161412;
}

.doc-reading-dots {
  display: inline-flex;
  gap: 3px;
}

.doc-reading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f308a;
  opacity: 0.36;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.doc-reading-dots i:nth-child(2) { animation-delay: 0.16s; }
.doc-reading-dots i:nth-child(3) { animation-delay: 0.32s; }

/* Brief card — Invoko output, slides in during the "result" phase. */
.document-pdf-scene .doc-brief-card {
  position: absolute;
  right: 3%;
  bottom: 18%;
  z-index: 3;
  width: min(340px, 42%);
  padding: 14px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(15, 20, 35, 0.05),
    0 2px 6px rgba(15, 20, 35, 0.06),
    0 26px 56px rgba(15, 20, 35, 0.18);
  color: #161412;
  opacity: 0;
  transform: translateY(20px);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .doc-brief-card {
  animation: documentBriefCard var(--doc-cycle) ease-out infinite;
}

.document-pdf-scene .doc-brief-card::after,
.document-pdf-scene .doc-brief-card::before {
  content: "";
  position: absolute;
  right: 64px;
  bottom: -8px;
  width: 16px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.document-pdf-scene .doc-brief-card::before {
  background: rgba(15, 20, 35, 0.05);
  transform: translateY(1px);
}

.document-pdf-scene .doc-brief-card::after {
  background: #ffffff;
}

.doc-brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
}

.doc-brief-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 20, 0.08);
}

.doc-brief-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center 30%;
  filter: drop-shadow(0 1px 1px rgba(45, 72, 143, 0.18));
}

.doc-brief-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.006em;
  color: #1d1c1a;
}

.doc-brief-mark {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: #1a1814;
  opacity: 0.78;
}

.doc-brief-mark svg {
  display: block;
}

.document-pdf-scene .doc-brief-lede {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 580;
  line-height: 1.42;
  letter-spacing: -0.006em;
  color: #161412;
  text-wrap: pretty;
}

.document-pdf-scene .doc-brief-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -2px;
  margin-right: 4px;
  color: #0a66c2;
}

.document-pdf-scene .doc-brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.document-pdf-scene .doc-brief-list li {
  position: relative;
  padding-left: 13px;
  color: rgba(22, 20, 18, 0.78);
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.42;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}

.document-pdf-scene .doc-brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(22, 20, 18, 0.42);
}

.document-pdf-scene .doc-brief-source-tag {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 24, 20, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: rgba(28, 24, 20, 0.46);
}

/* IP avatar — bottom-right corner, swaps idle ↔ thinking on the cycle. */
.document-ip {
  position: absolute;
  right: 4.5%;
  bottom: 6%;
  width: 12%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 100%;
  animation: messageFocusedIpFloat 2.8s ease-in-out infinite alternate;
}

.document-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(45, 72, 143, 0.22));
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .document-ip-idle {
  animation: documentIpIdle var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .document-ip-thinking {
  animation: documentIpThinking var(--doc-cycle) ease-in-out infinite;
}

/* When paused (no .is-playing), force the IP to its idle state: idle face visible, thinking hidden. */
.document-pdf-scene:not(.is-playing) .document-ip-idle {
  opacity: 1;
}
.document-pdf-scene:not(.is-playing) .document-ip-thinking {
  opacity: 0;
}

/* --- Keyframes (one master cycle = 8.4s) --- */

/* Marks appear ONLY after Invoko reads. Initial state: transparent (not yet annotated).
   Staggered fade-in during reading phase, then stay visible while brief is shown. */
@keyframes documentMarkPulse {
  0%, 26% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
  32% {
    background: rgba(255, 220, 110, 0.62);
    box-shadow: 0 0 0 4px rgba(255, 191, 36, 0.18);
  }
  40%, 94% {
    background: rgba(255, 220, 110, 0.42);
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
}

@keyframes documentMarkPulseFee {
  0%, 30% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(47, 92, 255, 0);
  }
  36% {
    background: rgba(160, 196, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(47, 92, 255, 0.16);
  }
  44%, 94% {
    background: rgba(160, 196, 255, 0.42);
    box-shadow: 0 0 0 0 rgba(47, 92, 255, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(47, 92, 255, 0);
  }
}

@keyframes documentMarkPulseRisk {
  0%, 34% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
  40% {
    background: rgba(255, 170, 158, 0.62);
    box-shadow: 0 0 0 4px rgba(205, 80, 61, 0.16);
  }
  48%, 94% {
    background: rgba(255, 170, 158, 0.42);
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
}

@keyframes documentReadingBubble {
  0%, 20% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  28%, 46% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  54%, 100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
}

@keyframes documentBriefCard {
  0%, 46% {
    opacity: 0;
    transform: translateY(28px);
  }
  54%, 96% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes documentIpIdle {
  0%, 22% {
    opacity: 1;
    transform: scale(1);
  }
  30%, 46% {
    opacity: 0;
    transform: scale(0.96);
  }
  54%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes documentIpThinking {
  0%, 24% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
  30%, 46% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  54%, 100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-pdf-scene .doc-mark,
  .doc-reading-bubble,
  .doc-reading-dots i,
  .document-pdf-scene .doc-brief-card,
  .document-ip,
  .document-ip img {
    animation: none !important;
  }
  .doc-reading-bubble,
  .document-ip-thinking {
    opacity: 0 !important;
  }
  .document-pdf-scene .doc-brief-card,
  .document-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
  .document-pdf-scene .doc-mark.is-deadline {
    background: rgba(255, 220, 110, 0.42) !important;
  }
  .document-pdf-scene .doc-mark.is-fee {
    background: rgba(160, 196, 255, 0.42) !important;
  }
  .document-pdf-scene .doc-mark.is-risk {
    background: rgba(255, 170, 158, 0.42) !important;
  }
}

@media (max-width: 1100px) {
  .flow-panel:has(.document-pdf-scene),
  .flow-panel:has(.document-pdf-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.document-pdf-scene) .flow-copy,
  .flow-panel:has(.document-pdf-scene) .flow-demo {
    order: 0;
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.document-pdf-scene) {
    width: 100%;
    overflow: hidden;
  }

  .flow-panel:has(.document-pdf-scene) .flow-demo {
    min-height: auto;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    padding: 0 12px;
  }

  .document-pdf-scene {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    aspect-ratio: 4 / 5.6;
    border-radius: 22px;
  }

  .document-pdf-scene .doc-pdf-paper {
    inset: 3% 4% 26% 4%;
    padding: 18px 18px 14px;
  }

  .document-pdf-scene .doc-pdf-doctitle {
    font-size: clamp(14px, 4.4vw, 18px);
  }

  .document-pdf-scene .doc-pdf-body p {
    font-size: 10.5px;
    line-height: 1.55;
  }

  .document-pdf-scene .doc-pdf-formrow {
    font-size: 10px;
    padding: 6px 10px;
  }

  .doc-reading-bubble {
    right: 6%;
    bottom: 26%;
    font-size: 11.5px;
    padding: 7px 12px 7px 10px;
  }

  .document-pdf-scene .doc-brief-card {
    right: 4%;
    left: auto;
    bottom: 22%;
    width: min(86%, 340px);
    padding: 14px 18px 16px;
  }

  .document-pdf-scene .doc-brief-card::after,
  .document-pdf-scene .doc-brief-card::before {
    right: 48px;
  }

  .document-pdf-scene .doc-brief-lede {
    font-size: 13.5px;
  }

  .document-pdf-scene .doc-brief-list li {
    font-size: 12.5px;
  }

  .document-ip {
    right: 5%;
    bottom: 2%;
    width: 18%;
  }
}

/* ============================================================
 * Memory canvases (scene 1: Gmail thread / scene 2: semantic search)
 * Same cosmic backdrop + Invoko overlay + scroll-trigger pattern as documents v8.
 * ============================================================ */

body[data-page="memory"] .memory-scene {
  --doc-cycle: 8.4s;
  position: relative;
  width: min(940px, 100%);
  aspect-ratio: 940 / 640;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 14% 24%, rgba(214, 196, 232, 0.55), transparent 58%),
    radial-gradient(ellipse 50% 48% at 86% 32%, rgba(252, 220, 214, 0.5), transparent 62%),
    radial-gradient(ellipse 70% 55% at 78% 88%, rgba(204, 220, 240, 0.55), transparent 60%),
    radial-gradient(ellipse 55% 45% at 22% 82%, rgba(228, 215, 240, 0.5), transparent 60%),
    linear-gradient(155deg, #f0eaf3 0%, #f5eee6 38%, #ecedf5 70%, #e3e6f0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 30px 70px rgba(15, 20, 35, 0.14),
    0 4px 14px rgba(15, 20, 35, 0.06);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body[data-page="memory"] .memory-scene .doc-scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0.6px, transparent 1.4px),
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1.2px),
    radial-gradient(circle at 64% 12%, rgba(255, 255, 255, 0.8) 0.6px, transparent 1.4px),
    radial-gradient(circle at 84% 56%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1.2px),
    radial-gradient(circle at 8% 72%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1.3px),
    radial-gradient(circle at 92% 80%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1.2px);
  opacity: 0.85;
}

/* === Scene 1 — Gmail thread === */

body[data-page="memory"] .memory-mail {
  position: absolute;
  inset: 4% 24% 4.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: #1a1814;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(15, 20, 35, 0.16),
    0 4px 10px rgba(15, 20, 35, 0.06);
}

body[data-page="memory"] .memory-mail-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  background: linear-gradient(180deg, #f6f7f9, #eef1f4);
}

body[data-page="memory"] .memory-mail-tabs {
  display: inline-flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 620;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-mail-tabs .is-active {
  color: #c5221f;
}

body[data-page="memory"] .memory-mail-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.06);
  color: rgba(28, 24, 20, 0.55);
  font-size: 11px;
  font-weight: 500;
}

body[data-page="memory"] .memory-mail-thread {
  flex: 1;
  padding: 20px 24px;
  overflow: hidden;
}

body[data-page="memory"] .memory-mail-subject {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  margin-bottom: 16px;
}

body[data-page="memory"] .memory-mail-subject strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1814;
  letter-spacing: -0.005em;
}

body[data-page="memory"] .memory-mail-label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-mail-message {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 24, 20, 0.06);
}

body[data-page="memory"] .memory-mail-message:last-child {
  border-bottom: 0;
}

body[data-page="memory"] .memory-mail-message.is-prior {
  opacity: 0.66;
}

body[data-page="memory"] .memory-mail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fbe0c4;
  color: #8a4d0e;
  font-size: 10.5px;
  font-weight: 700;
  grid-row: span 2;
}

body[data-page="memory"] .memory-mail-avatar.is-muted {
  background: #dde4f0;
  color: rgba(28, 24, 20, 0.55);
}

body[data-page="memory"] .memory-mail-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
}

body[data-page="memory"] .memory-mail-meta strong {
  font-weight: 700;
  color: #1a1814;
}

body[data-page="memory"] .memory-mail-meta span {
  color: rgba(28, 24, 20, 0.5);
  font-weight: 500;
}

body[data-page="memory"] .memory-mail-meta em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: rgba(28, 24, 20, 0.46);
}

body[data-page="memory"] .memory-mail-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(28, 24, 20, 0.78);
}

body[data-page="memory"] .memory-mail-quote {
  font-style: italic;
  color: rgba(28, 24, 20, 0.5);
}

/* === Scene 2 — Notes archive + semantic search === */

body[data-page="memory"] .memory-notebook {
  position: absolute;
  inset: 4% 24% 4.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fbf9f3;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: #1a1814;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(15, 20, 35, 0.16),
    0 4px 10px rgba(15, 20, 35, 0.06);
}

body[data-page="memory"] .memory-notebook-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 236, 0.95));
}

body[data-page="memory"] .memory-notebook-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(28, 24, 20, 0.7);
}

body[data-page="memory"] .memory-notebook-count {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-notebook-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.06);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

body[data-page="memory"] .memory-search-icon {
  color: rgba(28, 24, 20, 0.5);
  display: inline-flex;
  align-items: center;
}

body[data-page="memory"] .memory-search-query {
  font-family: "Charter", Georgia, serif;
  font-style: italic;
  color: #1a1814;
  font-weight: 500;
}

body[data-page="memory"] .memory-search-meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: rgba(28, 24, 20, 0.42);
}

body[data-page="memory"] .memory-notebook-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow: hidden;
}

body[data-page="memory"] .memory-notebook-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px dashed rgba(28, 24, 20, 0.06);
  font-size: 12px;
  color: rgba(28, 24, 20, 0.4);
  transition: background 200ms ease;
}

body[data-page="memory"] .memory-notebook-list li.is-hit {
  background: rgba(255, 236, 188, 0.42);
  color: #1a1814;
}

body[data-page="memory"] .memory-note-date {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="memory"] .memory-note-title {
  font-weight: 500;
}

body[data-page="memory"] .memory-notebook-list li.is-hit .memory-note-title {
  font-weight: 700;
  color: #1a1814;
}

body[data-page="memory"] .memory-note-fade {
  font-size: 10px;
  font-weight: 500;
  font-style: italic;
  color: rgba(28, 24, 20, 0.34);
}

body[data-page="memory"] .memory-note-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a87410;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 220, 110, 0.42);
}

/* === Invoko overlay layer (shared by both memory scenes) === */

body[data-page="memory"] .memory-invoko-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body[data-page="memory"] .memory-reading-bubble {
  position: absolute;
  right: 4.5%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(120, 126, 138, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #161412;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 6px rgba(15, 20, 35, 0.08),
    0 14px 28px rgba(15, 20, 35, 0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: 100% 100%;
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-reading-bubble {
  animation: documentReadingBubble var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-reading-dots {
  display: inline-flex;
  gap: 3px;
}

body[data-page="memory"] .memory-reading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0f308a;
  opacity: 0.36;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

body[data-page="memory"] .memory-reading-dots i:nth-child(2) { animation-delay: 0.16s; }
body[data-page="memory"] .memory-reading-dots i:nth-child(3) { animation-delay: 0.32s; }

body[data-page="memory"] .memory-brief-card {
  position: absolute;
  right: 3%;
  bottom: 22%;
  z-index: 3;
  width: min(360px, 44%);
  padding: 16px 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  color: #161412;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(15, 20, 35, 0.05),
    0 2px 6px rgba(15, 20, 35, 0.06),
    0 26px 56px rgba(15, 20, 35, 0.18);
  opacity: 0;
  transform: translateY(20px);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-brief-card {
  animation: documentBriefCard var(--doc-cycle) ease-out infinite;
}

body[data-page="memory"] .memory-brief-card::after,
body[data-page="memory"] .memory-brief-card::before {
  content: "";
  position: absolute;
  right: 64px;
  bottom: -8px;
  width: 16px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

body[data-page="memory"] .memory-brief-card::before {
  background: rgba(15, 20, 35, 0.05);
  transform: translateY(1px);
}

body[data-page="memory"] .memory-brief-card::after {
  background: #ffffff;
}

body[data-page="memory"] .memory-brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

body[data-page="memory"] .memory-brief-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 20, 0.08);
}

body[data-page="memory"] .memory-brief-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center 30%;
  filter: drop-shadow(0 1px 1px rgba(45, 72, 143, 0.18));
}

body[data-page="memory"] .memory-brief-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.006em;
  color: #1a1814;
}

body[data-page="memory"] .memory-brief-mark {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: #1a1814;
  opacity: 0.78;
}

body[data-page="memory"] .memory-brief-mark svg {
  display: block;
}

body[data-page="memory"] .memory-brief-lede {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: #161412;
  text-wrap: pretty;
}

body[data-page="memory"] .memory-brief-lede em {
  font-style: italic;
  color: #1a1814;
  font-weight: 660;
}

body[data-page="memory"] .memory-brief-evidence {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body[data-page="memory"] .memory-brief-evidence li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(232, 234, 240, 0.4);
  display: grid;
  gap: 2px;
}

body[data-page="memory"] .memory-evidence-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-brief-evidence li strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #1a1814;
  letter-spacing: -0.003em;
}

body[data-page="memory"] .memory-evidence-source {
  font-size: 10px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.52);
}

body[data-page="memory"] .memory-brief-card.memory-brief-excerpt .memory-brief-excerpt-quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid rgba(255, 191, 36, 0.5);
  background: rgba(255, 248, 222, 0.42);
  font-family: "Charter", Georgia, serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1a1814;
  font-style: italic;
}

body[data-page="memory"] .memory-brief-source-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(28, 24, 20, 0.08);
  font-size: 11px;
}

body[data-page="memory"] .memory-brief-source-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-brief-source-name {
  font-weight: 600;
  color: rgba(28, 24, 20, 0.78);
}

body[data-page="memory"] .memory-mark {
  padding: 1px 4px;
  border-radius: 3px;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body[data-page="memory"] .memory-scene.is-playing .memory-mark.is-deadline {
  animation: documentMarkPulse var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene.is-playing .memory-mark.is-fee {
  animation: documentMarkPulseFee var(--doc-cycle) ease-in-out infinite;
}

/* IP avatar — bottom-right (mirrors documents pattern) */

body[data-page="memory"] .memory-ip {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 12%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 100%;
  animation: messageFocusedIpFloat 2.8s ease-in-out infinite alternate;
}

body[data-page="memory"] .memory-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(45, 72, 143, 0.22));
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-ip-idle {
  animation: documentIpIdle var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene.is-playing .memory-ip-thinking {
  animation: documentIpThinking var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene:not(.is-playing) .memory-ip-idle { opacity: 1; }
body[data-page="memory"] .memory-scene:not(.is-playing) .memory-ip-thinking { opacity: 0; }

/* Flow-panel column for memory scenes */
body[data-page="memory"] .flow-panel:has(.memory-scene),
body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 36px;
  min-height: 600px;
  align-items: center;
}

body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
  grid-template-columns: minmax(520px, 1.28fr) minmax(320px, 0.72fr);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="memory"] .memory-reading-bubble,
  body[data-page="memory"] .memory-brief-card,
  body[data-page="memory"] .memory-ip,
  body[data-page="memory"] .memory-ip img,
  body[data-page="memory"] .memory-reading-dots i,
  body[data-page="memory"] .memory-mark {
    animation: none !important;
  }
  body[data-page="memory"] .memory-reading-bubble,
  body[data-page="memory"] .memory-ip-thinking {
    opacity: 0 !important;
  }
  body[data-page="memory"] .memory-brief-card,
  body[data-page="memory"] .memory-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
  body[data-page="memory"] .memory-mark.is-deadline { background: rgba(255, 220, 110, 0.42) !important; }
  body[data-page="memory"] .memory-mark.is-fee { background: rgba(160, 196, 255, 0.42) !important; }
}

@media (max-width: 1100px) {
  body[data-page="memory"] .flow-panel:has(.memory-scene),
  body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  body[data-page="memory"] .flow-panel:has(.memory-scene) {
    width: 100%;
    overflow: hidden;
  }
  body[data-page="memory"] .memory-scene {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    aspect-ratio: 4 / 5.4;
    border-radius: 22px;
  }
  body[data-page="memory"] .memory-mail,
  body[data-page="memory"] .memory-notebook {
    inset: 4% 4% 28% 4%;
    font-size: 11px;
  }
  body[data-page="memory"] .memory-brief-card {
    right: 4%;
    bottom: 4%;
    width: min(82%, 330px);
    padding: 14px 16px;
  }
  body[data-page="memory"] .memory-reading-bubble {
    right: 5%;
    bottom: 26%;
    font-size: 11px;
  }
  body[data-page="memory"] .memory-ip {
    right: 5%;
    bottom: 2%;
    width: 18%;
  }
}

/* ============================================================
 * FAQ accordion — native <details>+<summary>, no section title.
 * Toki-style: light card per question, chevron on right, expands inline.
 * ============================================================ */

.faq-section {
  padding: 56px 0 72px;
}

.section.faq-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.faq-section .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-section .faq-item {
  border: 0;
  border-radius: 16px;
  background: rgba(244, 246, 250, 0.78);
  padding: 0;
  margin: 0;
  transition: background 180ms ease;
  overflow: hidden;
}

.faq-section .faq-item:hover {
  background: rgba(241, 243, 248, 1);
  transform: none;
  border: 0;
  box-shadow: none;
}

.faq-section .faq-item[open] {
  background: rgba(241, 243, 248, 1);
}

.faq-section .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-section .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-section .faq-item summary::marker {
  content: "";
}

.faq-section .faq-item summary h3 {
  margin: 0;
  font-family: var(--font-dm-sans);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: #0b1120;
}

.faq-section .faq-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: rgba(11, 17, 32, 0.62);
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), color 200ms ease;
}

.faq-section .faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  color: #0b1120;
}

.faq-section .faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.faq-section .faq-answer p {
  margin: 0;
  color: rgba(11, 17, 32, 0.72);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.faq-section .faq-answer p + p {
  margin-top: 12px;
}

.faq-section .faq-answer a {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

.faq-section .faq-answer a:hover {
  color: #1e40af;
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  .faq-section .faq-grid { padding: 0 16px; gap: 10px; }
  .faq-section .faq-item summary { padding: 18px 20px; gap: 16px; }
  .faq-section .faq-item summary h3 { font-size: 15.5px; }
  .faq-section .faq-answer { padding: 0 20px 20px; font-size: 14.5px; }
}

/* ============================================================
 * Reports canvases — reuse documents v8 paper + Invoko overlay.
 * Scene 1 (competitor): research draft with comparison table
 * Scene 2 (contract):  reuses doc-pdf-* clauses + risk marks
 * ============================================================ */

/* Reports paper: slightly wider for table breathing room */
body[data-page="reports"] .document-pdf-scene .doc-pdf-paper {
  padding: 26px 32px 18px;
}

body[data-page="reports"] .document-pdf-scene .doc-pdf-paper.is-reports {
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
}

body[data-page="reports"] .reports-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10.5px;
  line-height: 1.45;
  color: #1a1814;
  table-layout: fixed;
}

body[data-page="reports"] .reports-table thead th {
  text-align: left;
  padding: 8px 10px 7px;
  border-bottom: 1.5px solid rgba(28, 24, 20, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.6);
}

body[data-page="reports"] .reports-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.12);
  vertical-align: top;
  color: rgba(28, 24, 20, 0.82);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

body[data-page="reports"] .reports-cell-meta {
  display: inline-block;
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
  white-space: nowrap;
}

body[data-page="reports"] .reports-table tbody tr:last-child td {
  border-bottom: 0;
}

body[data-page="reports"] .reports-table tbody td strong {
  color: #1a1814;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="reports"] .reports-table tbody td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Article-mode footer color a touch lighter on reports */
body[data-page="reports"] .document-pdf-scene .doc-pdf-byline {
  font-size: 10px;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  body[data-page="reports"] .reports-table {
    font-size: 9.5px;
  }
  body[data-page="reports"] .reports-table thead th,
  body[data-page="reports"] .reports-table tbody td {
    padding: 6px 7px;
  }
}

/* ============================================================
 * Trigger demo — shows how to invoke Invoko (Fn key + notch)
 * Sits between hero and how-it-works on every use-case page.
 * ============================================================ */

.trigger-demo {
  width: 100%;
  padding: 24px 0 56px;
  background: transparent;
}

.trigger-demo-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 56px;
  align-items: center;
}

.trigger-demo-title {
  margin: 0 0 18px;
  font-family: var(--font-dm-sans);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: #0b1120;
  text-wrap: pretty;
}

.trigger-demo-open,
.trigger-demo-action {
  margin: 0 0 12px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(11, 17, 32, 0.72);
  text-wrap: pretty;
}

.trigger-demo-action {
  margin-bottom: 0;
  color: #0b1120;
}

.fn-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  margin: 0 2px;
  padding: 0 8px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(11, 17, 32, 0.16),
    0 1px 0 rgba(11, 17, 32, 0.12),
    0 2px 4px rgba(15, 20, 35, 0.06);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #0b1120;
  vertical-align: -2px;
}

.trigger-demo-shot {
  position: relative;
  margin: 0;
  min-height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
  box-shadow:
    0 0 0 1px rgba(15, 20, 35, 0.06),
    0 24px 60px rgba(34, 46, 70, 0.1),
    0 4px 12px rgba(15, 20, 35, 0.04);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.trigger-demo-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .trigger-demo-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trigger-demo-shot {
    min-height: 260px;
  }
}
