﻿:root {
  --bloom-bg: #0a0a0a;
  --bloom-bg-alt: #0f0f0f;
  --bloom-surface: #141414;
  --bloom-surface-2: #1b1b1b;
  --bloom-border: #2b2b2b;
  --bloom-border-soft: rgba(255, 255, 255, 0.09);
  --bloom-text: #f5f5f2;
  --bloom-text-soft: #c4c4c7;
  --bloom-text-muted: #99999f;
  --bloom-text-faint: #898990;
  --bloom-white: #ffffff;
  --bloom-green: #46d98b;
  --bloom-blue: #74b2ff;
  --bloom-radius-sm: 8px;
  --bloom-radius-md: 12px;
  --bloom-radius-lg: 18px;
  --bloom-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bloom-shell: 1240px;
}

body.bloom-page {
  margin: 0;
  overflow-x: clip;
  background: var(--bloom-bg);
  color: var(--bloom-text);
  font-family: "Inter", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bloom-page[dir="rtl"],
body.bloom-page[dir="rtl"] * {
  font-family: "Zain", "Inter", sans-serif;
}

body.bloom-page a,
body.bloom-page button,
body.bloom-page textarea {
  font: inherit;
}

body.bloom-page a:focus-visible,
body.bloom-page button:focus-visible,
body.bloom-page textarea:focus-visible {
  outline: 2px solid var(--bloom-white);
  outline-offset: 4px;
}

body.bloom-page .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  color: #0a0a0a;
  background: #ffffff;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

body.bloom-page .skip-link:focus {
  transform: translateY(0);
}

body.bloom-page .b-nav {
  display: flex;
  position: fixed;
  inset: 0 0 auto;
  height: 68px;
  z-index: 120;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--bloom-border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.bloom-page .b-nav-inner {
  width: min(100%, var(--bloom-shell));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.bloom-page .b-nav-brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

body.bloom-page .b-nav-wordmark {
  display: block;
  width: auto;
  height: 21px;
}

body.bloom-page .b-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
}

body.bloom-page .b-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--bloom-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

body.bloom-page .b-nav-links a:hover {
  color: var(--bloom-text);
}

body.bloom-page .b-nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #0a0a0a;
  background: var(--bloom-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

body.bloom-page.wd-has-sidebar .b-nav { display: none; }

.bloom-shell {
  width: min(100%, var(--bloom-shell));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.bloom-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--bloom-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bloom-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bloom-text);
}

.bloom-section {
  padding-block: clamp(74px, 9vw, 126px);
  border-top: 1px solid var(--bloom-border-soft);
}

.bloom-section--flush {
  border-top: 0;
}

.bloom-section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 8vw, 104px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.bloom-section-header h2 {
  margin: 0;
  max-width: 760px;
  color: var(--bloom-text);
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.bloom-section-header p,
.bloom-reveal-text {
  margin: 0;
  color: var(--bloom-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.72;
}

.bloom-section-header .bloom-header-copy {
  justify-self: end;
  max-width: 570px;
}

.bloom-eyebrow {
  color: var(--bloom-text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bloom-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bloom-text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.bloom-link svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms var(--bloom-ease);
}

.bloom-link:hover svg {
  transform: translateX(3px);
}

body.bloom-page[dir="rtl"] .bloom-link:hover svg {
  transform: translateX(-3px) scaleX(-1);
}

body.bloom-page[dir="rtl"] .bloom-link svg {
  transform: scaleX(-1);
}

.bloom-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #0a0a0a;
  background: var(--bloom-white);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.bloom-btn:hover {
  background: #e8e8e4;
  transform: translateY(-1px);
}

.bloom-btn:active {
  transform: translateY(0);
}

.bloom-btn--quiet {
  color: var(--bloom-text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.bloom-btn--quiet:hover {
  color: var(--bloom-white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.38);
}

.bloom-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Hero */
.bloom-hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-block: clamp(118px, 15vh, 180px) clamp(68px, 9vh, 110px);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.055), transparent 31%),
    var(--bloom-bg);
}

.bloom-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
}

.bloom-hero-copy {
  position: relative;
  z-index: 1;
  animation: bloom-rise 650ms var(--bloom-ease) both;
}

.bloom-hero-title {
  margin: 0 0 28px;
  max-width: 780px;
  color: var(--bloom-text);
  font-size: clamp(3.25rem, 5.1vw, 5.1rem);
  font-weight: 670;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.bloom-hero-title span {
  display: block;
  color: #b8b8bd;
  font-weight: 420;
}

.bloom-hero-lede {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--bloom-text-soft);
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.65;
}

.bloom-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.bloom-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--bloom-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.bloom-hero-proof li {
  position: relative;
}

.bloom-hero-proof li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #69696f;
  transform: translateY(-50%);
}

body.bloom-page[dir="rtl"] .bloom-hero-proof li + li::before {
  left: auto;
  right: -13px;
}

.bloom-hero-preview {
  position: relative;
  min-height: 500px;
  padding: 18px;
  border: 1px solid var(--bloom-border);
  border-radius: var(--bloom-radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #0d0d0d;
  background-size: 26px 26px;
  overflow: hidden;
  animation: bloom-rise 700ms var(--bloom-ease) 100ms both;
}

.bloom-preview-window {
  height: 100%;
  min-height: 462px;
  display: flex;
  flex-direction: column;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  background: #111111;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.bloom-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid #272727;
  color: var(--bloom-text-muted);
  font-size: 0.68rem;
}

.bloom-preview-bar img {
  width: auto;
  height: 15px;
}

.bloom-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bloom-preview-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bloom-green);
}

.bloom-preview-board {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  padding: 26px;
}

.bloom-preview-board::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.bloom-mini-card {
  position: relative;
  z-index: 1;
  min-height: 116px;
  padding: 13px;
  border: 1px solid #333333;
  border-radius: 9px;
  background: #191919;
}

.bloom-mini-card--media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bloom-mini-card--signal {
  border-color: rgba(255, 255, 255, 0.42);
  background: #222222;
}

.bloom-mini-label {
  display: block;
  color: var(--bloom-text-faint);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bloom-mini-card strong {
  display: block;
  margin-top: 9px;
  color: var(--bloom-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.bloom-mini-card p {
  margin: 8px 0 0;
  color: var(--bloom-text-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.bloom-mini-still {
  height: 40px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 79% 24%, rgba(255, 219, 173, 0.78) 0 10%, transparent 10.5%),
    linear-gradient(145deg, #5d3a2a 0%, #261912 52%, #0f0d0c 100%);
}

.bloom-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: #c7c7ca;
  font-size: 0.58rem;
  font-weight: 600;
}

.bloom-mini-card--wide {
  grid-column: 1 / -1;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bloom-mini-card--wide strong {
  font-size: 0.94rem;
}

.bloom-agent-peek {
  position: absolute;
  right: -20px;
  bottom: 16px;
  width: min(82%, 320px);
  padding: 13px 14px;
  border: 1px solid #363636;
  border-radius: 11px;
  background: #171717;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

body.bloom-page[dir="rtl"] .bloom-agent-peek {
  right: auto;
  left: -20px;
}

.bloom-agent-peek-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--bloom-text);
  font-size: 0.7rem;
  font-weight: 700;
}

.bloom-agent-peek-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--bloom-blue);
}

.bloom-agent-peek p {
  margin: 0;
  color: var(--bloom-text-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.bloom-hero-note {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--bloom-text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

body.bloom-page[dir="rtl"] .bloom-hero-note {
  left: auto;
  right: 24px;
}

@keyframes bloom-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product thesis */
.bloom-thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(44px, 8vw, 108px);
  align-items: start;
}

.bloom-thesis-statement {
  margin: 0;
  max-width: 820px;
  color: var(--bloom-text);
  font-size: clamp(2.15rem, 4.7vw, 4.7rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.bloom-thesis-statement em {
  color: var(--bloom-text-muted);
  font-style: normal;
}

.bloom-thesis-copy {
  padding-top: 8px;
}

.bloom-thesis-copy p {
  margin: 0 0 22px;
  color: var(--bloom-text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.bloom-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(50px, 7vw, 86px);
  border-top: 1px solid var(--bloom-border-soft);
}

.bloom-principle {
  min-height: 230px;
  padding: 26px 28px 0 0;
  border-right: 1px solid var(--bloom-border-soft);
}

.bloom-principle:last-child {
  border-right: 0;
}

.bloom-principle + .bloom-principle {
  padding-inline-start: 28px;
}

body.bloom-page[dir="rtl"] .bloom-principle {
  border-right: 0;
  border-left: 1px solid var(--bloom-border-soft);
  padding: 26px 0 0 28px;
}

body.bloom-page[dir="rtl"] .bloom-principle:last-child {
  border-left: 0;
}

body.bloom-page[dir="rtl"] .bloom-principle + .bloom-principle {
  padding-inline-start: 0;
  padding-inline-end: 28px;
}

.bloom-principle-index {
  display: block;
  margin-bottom: 30px;
  color: var(--bloom-text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bloom-principle h3 {
  margin: 0 0 12px;
  color: var(--bloom-text);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bloom-principle p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Interactive demo */
.bloom-demo-section {
  background: var(--bloom-bg-alt);
}

.bloom-demo-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.bloom-demo-intro h2 {
  max-width: 800px;
  margin: 0;
  color: var(--bloom-text);
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.bloom-demo-intro p {
  max-width: 390px;
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.bloom-demo {
  border: 1px solid var(--bloom-border);
  border-radius: 18px;
  background: #090909;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--bloom-border);
  background: #101010;
}

.demo-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--bloom-text-muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.demo-tab:hover {
  color: var(--bloom-text);
  background: #171717;
}

.demo-tab[aria-selected="true"] {
  color: #0a0a0a;
  background: var(--bloom-white);
}

.demo-tab-note {
  margin-inline-start: auto;
  padding-inline: 10px;
  color: var(--bloom-text-faint);
  font-size: 0.68rem;
}

.demo-panel[hidden] {
  display: none !important;
}

.demo-scenario-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #242424;
  background: #0d0d0d;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo-scenario-bar::-webkit-scrollbar {
  display: none;
}

.demo-scenario-label {
  flex: 0 0 auto;
  margin-inline-end: 4px;
  color: var(--bloom-text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-scenario {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #303030;
  border-radius: 7px;
  color: var(--bloom-text-muted);
  background: #151515;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-scenario:hover,
.demo-scenario[aria-pressed="true"] {
  color: var(--bloom-text);
  border-color: #5a5a5a;
  background: #1d1d1d;
}

.demo-window {
  position: relative;
  margin: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #0c0c0c;
  overflow: hidden;
}

.demo-appbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid #252525;
  background: #111111;
}

.demo-appbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-appbar-brand img {
  width: auto;
  height: 16px;
}

.demo-project-name {
  padding-inline-start: 12px;
  border-inline-start: 1px solid #303030;
  color: var(--bloom-text-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-appbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bloom-text-faint);
  font-size: 0.64rem;
}

.demo-appbar-pill {
  padding: 5px 8px;
  border: 1px solid #303030;
  border-radius: 5px;
}

.demo-board {
  position: relative;
  min-height: 560px;
  padding: 40px 34px 170px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.025), transparent 40%),
    radial-gradient(rgba(255,255,255,0.12) 0.75px, transparent 0.75px),
    #0b0b0b;
  background-size: auto, 18px 18px, auto;
  overflow: hidden;
}

.demo-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.demo-connections path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.demo-node {
  position: absolute;
  z-index: 1;
  width: 190px;
  border: 1px solid #353535;
  border-radius: 9px;
  background: #181818;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.demo-node--media {
  top: 56px;
  left: 44px;
  padding: 8px;
}

body.bloom-page[dir="rtl"] .demo-node--media {
  left: auto;
  right: 44px;
}

.demo-node--prompt {
  top: 62px;
  right: 44px;
  padding: 13px;
}

body.bloom-page[dir="rtl"] .demo-node--prompt {
  right: auto;
  left: 44px;
}

.demo-node--operation {
  top: 205px;
  left: 50%;
  width: 210px;
  padding: 13px;
  border-color: rgba(255, 255, 255, 0.45);
  background: #222222;
  transform: translateX(-50%);
}

.demo-node--output {
  top: 205px;
  right: 38px;
  width: 188px;
  padding: 8px;
  border-color: rgba(70, 217, 139, 0.38);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 350ms var(--bloom-ease), transform 350ms var(--bloom-ease);
}

body.bloom-page[dir="rtl"] .demo-node--output {
  right: auto;
  left: 38px;
}

.demo-node--output.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.demo-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.demo-node-kind {
  color: var(--bloom-text-faint);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-node-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: #74747b;
}

.demo-node strong {
  display: block;
  color: var(--bloom-text);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.demo-node p {
  margin: 7px 0 0;
  color: var(--bloom-text-muted);
  font-size: 0.67rem;
  line-height: 1.52;
}

.demo-node-prompt-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.demo-scene-art {
  position: relative;
  height: 92px;
  margin-bottom: 8px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 76% 25%, rgba(255, 221, 174, 0.9) 0 8%, rgba(255, 221, 174, 0.11) 8.5% 17%, transparent 17.5%),
    linear-gradient(142deg, #69452f 0%, #2a1c15 48%, #0f0d0c 100%);
  overflow: hidden;
}

.demo-scene-art::before {
  content: "";
  position: absolute;
  left: 24%;
  bottom: 10%;
  width: 37%;
  height: 35%;
  border-radius: 3px 3px 12px 12px;
  background: #0f0c0b;
  box-shadow: inset 0 5px 0 #2e1d16, 9px 3px 14px rgba(0, 0, 0, 0.38);
}

.demo-scene-art::after {
  content: "";
  position: absolute;
  left: 34%;
  bottom: 45%;
  width: 20%;
  height: 25%;
  border-left: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  transform: rotate(8deg);
}

.demo-scene-art--shots {
  height: 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: none;
}

.demo-scene-art--shots::before,
.demo-scene-art--shots::after {
  display: none;
}

.demo-shot-frame {
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 221, 174, 0.7) 0 12%, transparent 12.5%),
    linear-gradient(150deg, #5a3928, #15100d);
}

.demo-shot-frame:nth-child(2) { filter: brightness(0.8); }
.demo-shot-frame:nth-child(3) { filter: brightness(0.62); }

.demo-node-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.demo-node-badge {
  padding: 3px 5px;
  border: 1px solid #3b3b3b;
  border-radius: 4px;
  color: var(--bloom-text-muted);
  font-size: 0.55rem;
  font-weight: 600;
}

.demo-dock {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(260px, 1.45fr) minmax(180px, 0.8fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #343434;
  border-radius: 11px;
  background: rgba(25, 25, 25, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}

.demo-tool-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-tool-switch span,
.demo-field-label {
  color: var(--bloom-text-faint);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-tool-pill {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #414141;
  border-radius: 6px;
  color: var(--bloom-text);
  background: #202020;
  font-size: 0.68rem;
  font-weight: 650;
}

.demo-tool-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bloom-text);
}

.demo-prompt-field { min-width: 0; }

.demo-prompt-field textarea {
  width: 100%;
  height: 64px;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #383838;
  border-radius: 6px;
  color: var(--bloom-text);
  background: #111111;
  font-size: 0.7rem;
  line-height: 1.45;
  resize: none;
}

.demo-prompt-field textarea::placeholder { color: #6e6e74; }

.demo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.demo-setting {
  padding: 4px 6px;
  border: 1px solid #373737;
  border-radius: 4px;
  color: var(--bloom-text-muted);
  font-size: 0.56rem;
  font-weight: 600;
}

.demo-create {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  color: #0a0a0a;
  background: var(--bloom-white);
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.demo-create:hover { background: #e8e8e5; }
.demo-create:disabled { cursor: wait; opacity: 0.7; }

.demo-create-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: bloom-spin 700ms linear infinite;
}

.demo-create.is-generating .demo-create-spinner { display: block; }

@keyframes bloom-spin { to { transform: rotate(360deg); } }

.demo-status {
  min-height: 18px;
  margin: 12px 16px 0;
  color: var(--bloom-text-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.demo-status.is-success { color: var(--bloom-green); }

.demo-footnotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid #262626;
  background: #262626;
}

.demo-footnote {
  padding: 18px 20px;
  background: #0d0d0d;
}

.demo-footnote span {
  display: block;
  margin-bottom: 6px;
  color: var(--bloom-text-faint);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-footnote p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.demo-disclaimer {
  margin: 14px 2px 0;
  color: var(--bloom-text-faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* Chat demo */
.chat-demo-window {
  margin: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #0c0c0c;
  overflow: hidden;
}

.chat-demo-appbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid #252525;
  background: #111111;
}

.chat-demo-appbar img {
  width: auto;
  height: 16px;
}

.chat-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #303030;
  border-radius: 7px;
  background: #0a0a0a;
}

.chat-mode-btn {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  color: var(--bloom-text-muted);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 650;
  cursor: pointer;
}

.chat-mode-btn[aria-pressed="true"] {
  color: #0a0a0a;
  background: var(--bloom-white);
}

.chat-demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 500px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 18px;
}

.chat-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.chat-scenario {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #333333;
  border-radius: 7px;
  color: var(--bloom-text-soft);
  background: #141414;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-scenario:hover,
.chat-scenario.is-active {
  border-color: #5b5b5b;
  background: #1d1d1d;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.chat-message {
  max-width: min(90%, 660px);
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--bloom-text-soft);
  background: #171717;
  font-size: 0.76rem;
  line-height: 1.6;
}

.chat-message--user {
  align-self: flex-end;
  color: #0d0d0d;
  background: #e6e6e2;
}

body.bloom-page[dir="rtl"] .chat-message--user {
  align-self: flex-start;
}

.chat-message--agent {
  border: 1px solid #2d2d2d;
  background: #111111;
}

.chat-agent-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--bloom-text);
  font-size: 0.63rem;
  font-weight: 700;
}

.chat-agent-head::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bloom-blue);
}

.chat-activity {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.chat-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bloom-text-muted);
  font-size: 0.68rem;
}

.chat-activity-row span {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #454545;
  border-radius: 50%;
  color: var(--bloom-text-soft);
  font-size: 0.5rem;
}

.chat-plan {
  margin-top: 12px;
  border: 1px solid #363636;
  border-radius: 8px;
  overflow: hidden;
}

.chat-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #2c2c2c;
  background: #1b1b1b;
}

.chat-plan-head strong {
  color: var(--bloom-text);
  font-size: 0.69rem;
}

.chat-plan-head span {
  color: var(--bloom-text-faint);
  font-size: 0.57rem;
}

.chat-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2a2a;
}

.chat-shot {
  min-height: 124px;
  padding: 9px;
  background: #141414;
}

.chat-shot-frame {
  height: 52px;
  margin-bottom: 8px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 220, 174, 0.75) 0 12%, transparent 12.5%),
    linear-gradient(145deg, #5b3927, #15100e);
}

.chat-shot:nth-child(2) .chat-shot-frame { filter: brightness(0.78); }
.chat-shot:nth-child(3) .chat-shot-frame { filter: brightness(0.6); }

.chat-shot strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bloom-text-soft);
  font-size: 0.61rem;
}

.chat-shot p {
  margin: 0;
  color: var(--bloom-text-faint);
  font-size: 0.58rem;
  line-height: 1.45;
}

.chat-handoff {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #3b3b3b;
  border-radius: 7px;
  background: #191919;
}

.chat-handoff strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bloom-text);
  font-size: 0.7rem;
}

.chat-handoff p {
  margin: 0 0 9px;
  color: var(--bloom-text-muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.chat-handoff button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #4b4b4b;
  border-radius: 5px;
  color: var(--bloom-text);
  background: #252525;
  font-size: 0.61rem;
  font-weight: 650;
  cursor: pointer;
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 11px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #151515;
}

.chat-composer span {
  flex: 1;
  color: #74747b;
  font-size: 0.7rem;
}

.chat-composer-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #373737;
  border-radius: 5px;
  color: var(--bloom-text-muted);
  background: #1c1c1c;
  font-size: 0.7rem;
}

.chat-side {
  padding: 20px 16px;
  border-inline-start: 1px solid #252525;
  background: #0e0e0e;
}

.chat-side h4 {
  margin: 0 0 14px;
  color: var(--bloom-text);
  font-size: 0.7rem;
}

.chat-side-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-side-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid #242424;
}

.chat-side-list li:last-child { border-bottom: 0; }

.chat-side-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bloom-text-soft);
  font-size: 0.64rem;
}

.chat-side-list span {
  color: var(--bloom-text-faint);
  font-size: 0.59rem;
  line-height: 1.45;
}

/* Handoff / relationship */
.bloom-relationship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bloom-border-soft);
  border: 1px solid var(--bloom-border-soft);
}

.relationship-step {
  min-height: 250px;
  padding: 27px;
  background: var(--bloom-bg);
}

.relationship-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 36px;
}

.relationship-index span:first-child {
  color: var(--bloom-text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.relationship-index svg {
  width: 17px;
  height: 17px;
  color: var(--bloom-text-muted);
}

.relationship-step h3 {
  margin: 0 0 12px;
  color: var(--bloom-text);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.relationship-step p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.relationship-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--bloom-border-soft);
}

.relationship-note p {
  margin: 0;
  color: var(--bloom-text-soft);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* Capability explorer */
.bloom-tools-shell {
  border: 1px solid var(--bloom-border);
  border-radius: 16px;
  background: #0d0d0d;
  overflow: hidden;
}

.tool-tabs {
  display: flex;
  gap: 2px;
  padding: 10px;
  border-bottom: 1px solid #282828;
  background: #111111;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-tabs::-webkit-scrollbar { display: none; }

.tool-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--bloom-text-muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.tool-tab:hover {
  color: var(--bloom-text);
  background: #181818;
}

.tool-tab[aria-selected="true"] {
  color: var(--bloom-text);
  border-color: #3f3f3f;
  background: #202020;
}

.tool-panel[hidden] { display: none !important; }

.tool-panel-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: 0;
}

.tool-panel-intro {
  padding: 34px;
  border-inline-end: 1px solid #262626;
  background: #101010;
}

.tool-panel-intro span {
  display: block;
  margin-bottom: 13px;
  color: var(--bloom-text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-panel-intro h3 {
  margin: 0 0 14px;
  color: var(--bloom-text);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.tool-panel-intro p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1.45fr) auto;
  gap: 18px;
  align-items: start;
  padding: 17px 24px;
  border-bottom: 1px solid #242424;
}

.tool-item:last-child { border-bottom: 0; }
.tool-item:hover { background: #111111; }

.tool-item h4 {
  margin: 0;
  color: var(--bloom-text);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
}

.tool-item p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.tool-output {
  padding: 3px 6px;
  border: 1px solid #373737;
  border-radius: 4px;
  color: var(--bloom-text-faint);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Models */
.models-section {
  padding-block: clamp(68px, 8vw, 100px);
  border-top: 1px solid var(--bloom-border-soft);
}

.models-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.models-head h2 {
  margin: 0;
  color: var(--bloom-text);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.models-head p {
  justify-self: end;
  max-width: 520px;
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--bloom-border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}

.model-cell {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-right: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.model-cell:nth-child(4n) { border-right: 0; }
.model-cell:nth-last-child(-n+4) { border-bottom: 0; }

.model-cell img {
  width: auto;
  max-width: 96px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(1.7);
  opacity: 0.83;
}

body.bloom-page[dir="rtl"] .model-cell img { object-position: right center; }

.model-cell span {
  color: var(--bloom-text-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.model-note {
  margin: 15px 0 0;
  color: var(--bloom-text-faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* About quote */
.bloom-quote-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(44px, 8vw, 104px);
  align-items: start;
}

.bloom-quote {
  margin: 0;
  color: var(--bloom-text);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.bloom-quote em {
  color: var(--bloom-text-muted);
  font-style: normal;
}

.bloom-about-copy h2 {
  margin: 0 0 18px;
  color: var(--bloom-text-soft);
  font-size: 1.15rem;
  line-height: 1.3;
}

.bloom-about-copy p {
  margin: 0 0 18px;
  color: var(--bloom-text-muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--bloom-border-soft);
}

.process-step {
  min-height: 245px;
  padding: 25px 30px 0 0;
  border-right: 1px solid var(--bloom-border-soft);
}

.process-step:last-child { border-right: 0; }
.process-step + .process-step { padding-inline-start: 30px; }

body.bloom-page[dir="rtl"] .process-step {
  border-right: 0;
  border-left: 1px solid var(--bloom-border-soft);
  padding: 25px 0 0 30px;
}

body.bloom-page[dir="rtl"] .process-step:last-child { border-left: 0; }

body.bloom-page[dir="rtl"] .process-step + .process-step {
  padding-inline-start: 0;
  padding-inline-end: 30px;
}

.process-step span {
  display: block;
  margin-bottom: 38px;
  color: var(--bloom-text-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin: 0 0 12px;
  color: var(--bloom-text);
  font-size: 1.3rem;
  font-weight: 650;
}

.process-step p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* Creators */
.creators-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(38px, 7vw, 80px);
  align-items: start;
}

.creators-intro {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--bloom-text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.creator-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--bloom-border-soft);
}

.creator-flow-step {
  min-width: 0;
  padding: 14px 10px 0 0;
  border-right: 1px solid var(--bloom-border-soft);
}

.creator-flow-step:last-child { border-right: 0; }
.creator-flow-step + .creator-flow-step { padding-inline-start: 10px; }

body.bloom-page[dir="rtl"] .creator-flow-step {
  border-right: 0;
  border-left: 1px solid var(--bloom-border-soft);
  padding: 14px 0 0 10px;
}

body.bloom-page[dir="rtl"] .creator-flow-step:last-child { border-left: 0; }

body.bloom-page[dir="rtl"] .creator-flow-step + .creator-flow-step {
  padding-inline-start: 0;
  padding-inline-end: 10px;
}

.creator-flow-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: var(--bloom-text-muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.creator-flow-step strong {
  display: block;
  color: var(--bloom-text-soft);
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.4;
}

.creator-verification {
  display: grid;
  gap: 12px;
}

.creator-card {
  padding: 22px;
  border: 1px solid var(--bloom-border);
  border-radius: 10px;
  background: #111111;
}

.creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--bloom-text-soft);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creator-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bloom-green);
}

.creator-card--unverified .creator-badge::before { background: #8d8d93; }

.creator-card h3 {
  margin: 0 0 9px;
  color: var(--bloom-text);
  font-size: 1rem;
  font-weight: 650;
}

.creator-card p {
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* Download */
.bloom-download-section {
  padding-block: clamp(74px, 9vw, 118px);
  border-top: 1px solid var(--bloom-border-soft);
  background: #0d0d0d;
}

.bloom-download-panel {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #303030;
  border-radius: 16px;
  background: #111111;
}

.bloom-download-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.bloom-download-copy h2 {
  margin: 0 0 10px;
  color: var(--bloom-text);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.bloom-download-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--bloom-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.bloom-store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.store-link {
  min-width: 172px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid #3b3b3b;
  border-radius: 9px;
  color: var(--bloom-text);
  background: #181818;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.store-link:hover {
  border-color: #5c5c5c;
  background: #202020;
}

.store-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-link span { display: block; line-height: 1.15; }

.store-link small {
  display: block;
  margin-bottom: 3px;
  color: var(--bloom-text-faint);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.store-link strong {
  display: block;
  color: var(--bloom-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.bloom-download-note {
  margin: 18px 2px 0;
  color: var(--bloom-text-faint);
  font-size: 0.7rem;
  line-height: 1.55;
}

.bloom-download-note a {
  color: var(--bloom-text-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Bloom footer bridge */
body.bloom-page .footer {
  background: #080808;
  color: var(--bloom-text-soft);
  border-top-color: var(--bloom-border-soft);
}

body.bloom-page .footer h4,
body.bloom-page .footer h5 { color: var(--bloom-text); }

body.bloom-page .footer p,
body.bloom-page .footer a,
body.bloom-page .footer li,
body.bloom-page .footer-bottom p { color: var(--bloom-text-muted); }

body.bloom-page .footer a:hover { color: var(--bloom-text); }

/* Responsive */
@media (max-width: 1160px) {
  .bloom-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 52px;
  }

  .bloom-hero-title { font-size: clamp(3.2rem, 6.7vw, 5.2rem); }

  .demo-dock {
    grid-template-columns: minmax(120px, 0.55fr) minmax(220px, 1.35fr) minmax(160px, 0.8fr);
  }
}

@media (max-width: 980px) {
  .bloom-hero {
    min-height: auto;
    padding-top: 112px;
  }

  .bloom-hero-grid,
  .bloom-thesis-grid,
  .bloom-quote-grid,
  .creators-grid { grid-template-columns: 1fr; }

  .bloom-hero-preview { min-height: 430px; }
  .bloom-preview-window { min-height: 392px; }

  .bloom-section-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bloom-section-header .bloom-header-copy { justify-self: start; }
  .bloom-thesis-copy { max-width: 670px; }

  .bloom-principles { grid-template-columns: 1fr; }

  .bloom-principle,
  .bloom-principle + .bloom-principle {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--bloom-border-soft);
  }

  body.bloom-page[dir="rtl"] .bloom-principle,
  body.bloom-page[dir="rtl"] .bloom-principle + .bloom-principle {
    padding: 24px 0;
    border-left: 0;
    border-right: 0;
  }

  .bloom-principle:last-child { border-bottom: 0; }
  .bloom-principle-index { margin-bottom: 16px; }

  .bloom-demo-intro,
  .models-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .models-head p { justify-self: start; }

  .demo-board {
    min-height: 680px;
    padding-bottom: 250px;
  }

  .demo-dock { grid-template-columns: 0.55fr 1.45fr; }

  .demo-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .demo-create { min-width: 160px; }
  .demo-node--operation { top: 235px; }

  .demo-node--output {
    top: 270px;
    right: 44px;
  }

  body.bloom-page[dir="rtl"] .demo-node--output { left: 44px; }

  .chat-demo-body { grid-template-columns: 1fr; }

  .chat-side {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
    border-inline-start: 0;
    border-top: 1px solid #252525;
  }

  .chat-side h4 { margin: 0; }

  .bloom-relationship-grid { grid-template-columns: 1fr; }
  .relationship-step { min-height: 0; }
  .relationship-index { margin-bottom: 22px; }

  .tool-panel-inner { grid-template-columns: 1fr; }

  .tool-panel-intro {
    border-inline-end: 0;
    border-bottom: 1px solid #262626;
  }

  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .model-cell:nth-child(4n) { border-right: 1px solid #262626; }
  .model-cell:nth-child(3n) { border-right: 0; }
  .model-cell:nth-last-child(-n+4) { border-bottom: 1px solid #262626; }
  .model-cell:nth-last-child(-n+3) { border-bottom: 0; }

  .process-grid { grid-template-columns: 1fr; }

  .process-step,
  .process-step + .process-step {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--bloom-border-soft);
  }

  body.bloom-page[dir="rtl"] .process-step,
  body.bloom-page[dir="rtl"] .process-step + .process-step {
    padding: 24px 0;
    border-left: 0;
    border-right: 0;
  }

  .process-step:last-child { border-bottom: 0; }
  .process-step span { margin-bottom: 16px; }

  .creator-flow { grid-template-columns: repeat(4, 1fr); }
  .creator-flow-step:nth-child(4) { border-right: 0; }
  .creator-flow-step:nth-child(n+5) {
    padding-top: 16px;
    border-top: 1px solid var(--bloom-border-soft);
  }

  body.bloom-page[dir="rtl"] .creator-flow-step:nth-child(4) { border-left: 0; }

  .bloom-download-panel { grid-template-columns: 84px 1fr; }

  .bloom-download-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  .bloom-store-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }
}

@media (max-width: 720px) {
  .bloom-section { padding-block: 72px; }

  .bloom-hero {
    padding-top: 96px;
    padding-bottom: 62px;
  }

  .bloom-hero-title {
    font-size: clamp(3rem, 13vw, 4.6rem);
    letter-spacing: -0.062em;
  }

  .bloom-hero-lede { font-size: 1rem; }
  .bloom-hero-actions .bloom-btn { flex: 1 1 180px; }

  .bloom-hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
  }

  .bloom-hero-proof li + li::before { display: none; }

  .bloom-hero-preview {
    min-height: 390px;
    padding: 12px;
  }

  .bloom-preview-window { min-height: 366px; }

  .bloom-preview-board {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 18px;
  }

  .bloom-mini-card {
    min-height: 100px;
    padding: 10px;
  }

  .bloom-mini-card--wide { min-height: 92px; }

  .bloom-agent-peek {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  body.bloom-page[dir="rtl"] .bloom-agent-peek {
    right: auto;
    left: 14px;
  }

  .bloom-hero-note { display: none; }
  .demo-window,
  .chat-demo-window { margin: 10px; }

  .demo-appbar {
    align-items: flex-start;
    padding-block: 12px;
  }

  .demo-appbar-tools { display: none; }

  .demo-board {
    min-height: 700px;
    padding: 20px 16px 330px;
  }

  .demo-connections { display: none; }

  .demo-node {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    transform: none !important;
  }

  .demo-node + .demo-node { margin-top: 9px; }
  .demo-node--media { max-width: 220px; }

  .demo-node--operation {
    max-width: 230px;
    margin-inline: auto;
  }

  .demo-node--output {
    max-width: 220px;
    margin-inline-start: auto;
  }

  .demo-node--output.is-visible { transform: none; }
  .demo-scene-art { height: 76px; }

  .demo-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .demo-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .demo-create {
    min-width: 0;
    padding-inline: 14px;
  }

  .demo-footnotes { grid-template-columns: 1fr; }
  .chat-thread { padding: 16px 14px; }
  .chat-scenarios { display: grid; }
  .chat-scenario { text-align: start; }
  .chat-shots { grid-template-columns: 1fr; }

  .chat-shot {
    min-height: 0;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 9px;
  }

  .chat-shot-frame {
    height: 56px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .chat-shot p { grid-column: 2; }
  .chat-side { grid-template-columns: 1fr; }

  .relationship-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-item {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 15px 16px;
  }

  .tool-item p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .model-cell:nth-child(3n) { border-right: 0; }
  .model-cell:nth-child(odd) { border-right: 1px solid #262626; }
  .model-cell:nth-child(even) { border-right: 0; }
  .model-cell:nth-last-child(-n+3) { border-bottom: 1px solid #262626; }
  .model-cell:nth-last-child(-n+2) { border-bottom: 0; }

  .creator-flow { grid-template-columns: repeat(2, 1fr); }

  .creator-flow-step,
  .creator-flow-step + .creator-flow-step {
    padding: 14px 10px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--bloom-border-soft);
  }

  .creator-flow-step:nth-child(odd) {
    border-inline-end: 1px solid var(--bloom-border-soft);
  }

  .bloom-download-panel { grid-template-columns: 1fr; }

  .bloom-download-icon {
    width: 72px;
    height: 72px;
  }

  .bloom-store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-link { min-width: 0; }
}

@media (max-width: 480px) {
  .bloom-shell { padding-inline: 18px; }
  .demo-tab-note { display: none; }
  .demo-tab { padding-inline: 12px; }

  .demo-project-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-status { margin-inline: 10px; }
  .bloom-preview-board { grid-template-columns: 1fr; }
  .bloom-mini-card--wide { grid-column: auto; }
  .bloom-preview-board::before { display: none; }
  .bloom-hero-preview { min-height: 560px; }
  .bloom-preview-window { min-height: 536px; }
  .bloom-agent-peek { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  body.bloom-page *,
  body.bloom-page *::before,
  body.bloom-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


@media (max-width: 720px) {
  body.bloom-page .b-nav-links { display: none; }
}

.bloom-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 24px;
}

/* =========================================================
   Second-pass Bloom refinements: real reference media,
   calmer spacing, clearer demo proportions, visible logos.
   ========================================================= */

.bloom-section {
  padding-block: clamp(68px, 7.5vw, 104px);
}

.bloom-section-header {
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.bloom-demo-intro {
  margin-bottom: 26px;
}

.demo-tabs {
  padding: 10px;
}

.demo-scenario-bar {
  padding: 11px 14px;
}

.demo-window {
  margin: 16px;
}

.demo-appbar {
  min-height: 48px;
}

.demo-board {
  min-height: 560px;
  padding: 40px 34px 150px;
}

.demo-node--media {
  top: 46px;
  left: 40px;
}

body.bloom-page[dir="rtl"] .demo-node--media {
  right: 40px;
}

.demo-node--prompt {
  top: 52px;
  right: 40px;
}

body.bloom-page[dir="rtl"] .demo-node--prompt {
  left: 40px;
}

.demo-node--operation {
  top: 205px;
}

.demo-node--output {
  top: 160px;
  right: 38px;
}

body.bloom-page[dir="rtl"] .demo-node--output {
  left: 38px;
}

.demo-dock {
  left: 18px;
  right: 18px;
  bottom: 16px;
  grid-template-columns: minmax(130px, .55fr) minmax(250px, 1.4fr) minmax(190px, .85fr);
  gap: 14px;
}

.demo-prompt-field textarea {
  height: 60px;
}

.demo-actions {
  justify-content: space-between;
}

.demo-create {
  min-height: 40px;
}

.demo-footnotes {
  margin-top: 0;
}

/* The hero and workspace use one real, licensed reference image. */
.bloom-mini-reference {
  display: block;
  width: 100%;
  height: 70px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center 58%;
}

.demo-scene-media {
  position: relative;
  height: 124px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #343434;
  border-radius: 5px;
  background: #111;
}

.demo-scene-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.demo-scene-media.is-shot-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  border: 0;
  background: transparent;
}

.demo-shot-token {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  border: 1px solid #383838;
  border-radius: 5px;
  background: #141414;
}

.demo-shot-token strong {
  color: var(--bloom-text-soft);
  font-size: .68rem;
}

.demo-shot-token span {
  color: var(--bloom-text-faint);
  font-size: .55rem;
  line-height: 1.35;
}

.demo-result-placeholder {
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  border: 1px solid #353535;
  border-radius: 5px;
  color: var(--bloom-text-muted);
  background: #101010;
  font-size: .62rem;
  letter-spacing: .04em;
}

.demo-result-play {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: var(--bloom-text);
  font-size: .65rem;
}

/* Chat shot plan cards are text-only; no fabricated thumbnails. */
.chat-shot {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
}

.chat-shot-index {
  display: block;
  margin-bottom: 20px;
  color: #d7bf9a;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.chat-shot strong {
  margin-top: auto;
}

.chat-demo-body {
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 470px;
}

.chat-thread {
  padding: 20px;
}

/* Preserve provider brand colours and place every mark on a legible tile. */
.model-cell {
  min-height: 112px;
  gap: 14px;
  background: #0f0f0f;
}

.model-cell img {
  width: auto;
  max-width: 136px;
  height: 42px;
  padding: 8px 10px;
  border-radius: 5px;
  background: #f3f0e9;
  object-fit: contain;
  object-position: left center;
  filter: none;
  opacity: 1;
  box-sizing: content-box;
}

body.bloom-page[dir="rtl"] .model-cell img {
  object-position: right center;
}

/* Compact the hero preview on phones without removing its content. */
@media (max-width: 720px) {
  .bloom-hero-preview {
    min-height: 0;
    padding: 12px;
  }

  .bloom-preview-window {
    min-height: 0;
  }

  .bloom-preview-board {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 16px;
  }

  .bloom-mini-card--wide {
    grid-column: 1 / -1;
  }

  .bloom-agent-peek {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
  }

  .bloom-hero-note {
    display: none;
  }

  .demo-window,
  .chat-demo-window {
    margin: 10px;
  }

  .demo-board {
    min-height: 680px;
    padding: 20px 16px 305px;
  }

  .demo-node--output {
    display: none;
  }

  .demo-node--output.is-visible {
    display: block;
  }

  .demo-dock {
    gap: 9px;
  }

  .chat-demo-body {
    min-height: 0;
  }

  .chat-shot {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    min-height: 0;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
  }

  .chat-shot:last-child {
    border-bottom: 0;
  }

  .chat-shot-index {
    grid-row: 1 / 3;
    margin: 0;
    font-size: 1.1rem;
  }

  .chat-shot strong {
    margin-top: 0;
  }

  .chat-shot p {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .bloom-preview-board {
    grid-template-columns: 1fr 1fr;
  }

  .bloom-mini-card--wide {
    grid-column: 1 / -1;
  }

  .bloom-hero-preview {
    min-height: 0;
  }

  .bloom-preview-window {
    min-height: 0;
  }
}

/* Static entrance: content should never wait on decorative motion. */
.bloom-hero-copy,
.bloom-hero-preview {
  animation: none !important;
}

@media (min-width: 721px) and (max-width: 980px) {
  .demo-board {
    min-height: 680px;
  }
}

@media (max-width: 720px) {
  .demo-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .demo-prompt-field,
  .demo-prompt-field textarea,
  .demo-tool-switch,
  .demo-actions {
    min-width: 0;
    width: 100%;
  }

  .demo-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .demo-settings {
    min-width: 0;
  }

  .demo-create {
    min-width: 0;
    padding-inline: 14px;
  }
}

@media (max-width: 480px) {
  .bloom-hero {
    padding-top: 82px;
    padding-bottom: 52px;
  }

  .bloom-hero-grid {
    gap: 30px;
  }

  .bloom-hero-title {
    margin-bottom: 20px;
  }

  .bloom-hero-lede {
    margin-bottom: 22px;
  }

  .bloom-hero-proof {
    margin-top: 26px;
  }

  .bloom-mini-card {
    min-height: 0;
    padding: 8px;
  }

  .bloom-mini-card strong {
    margin-top: 6px;
    font-size: .72rem;
  }

  .bloom-mini-card p {
    margin-top: 6px;
    font-size: .61rem;
    line-height: 1.4;
  }

  .bloom-mini-reference {
    height: 56px;
  }

  .bloom-agent-peek {
    padding: 10px 11px;
  }
}

/* =========================================================
   Third-pass corrective review: honest product map,
   clearer Workspace inputs and unboxed model marks.
   ========================================================= */

/* Workspace scenarios must describe their real input type. */
.demo-node[hidden] {
  display: none !important;
}

.demo-board[data-scenario="text"] .demo-connections path:nth-child(2),
.demo-board[data-scenario="shots"] .demo-connections path:nth-child(2) {
  display: none;
}

.demo-board[data-scenario="text"] .demo-node--media {
  width: 230px;
}

.demo-board[data-scenario="shots"] .demo-node--media {
  width: 250px;
}

.demo-scene-media.is-text-input {
  border: 0;
  background: transparent;
}

.demo-text-source {
  min-height: 124px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 9px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #343434;
  border-radius: 6px;
  background: #111111;
}

.demo-text-source-mark {
  grid-row: 1 / span 2;
  color: var(--bloom-text-soft);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.demo-text-source p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--bloom-text-soft);
  font-size: 0.68rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.demo-text-source > span:last-child {
  color: var(--bloom-text-faint);
  font-size: 0.55rem;
  line-height: 1.35;
}

.demo-result-placeholder[data-kind="sequence"]::before {
  content: "";
  width: min(76%, 132px);
  height: 25px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #262626 0 31%, transparent 31% 34.5%, #262626 34.5% 65.5%, transparent 65.5% 69%, #262626 69% 100%);
}

.demo-result-placeholder[data-kind="video"]::after {
  content: "";
  width: min(62%, 108px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #73737a 0 38%, #2e2e2e 38% 100%);
}

/* Use the genuine app assets at their native proportions, transparently. */
.model-grid {
  border-radius: 0;
}

.model-cell img {
  width: auto;
  max-width: 150px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.model-cell img[src$="gemini.svg"] {
  height: 34px;
  filter: none;
  opacity: 1;
}

body.bloom-page[dir="rtl"] .model-cell img {
  object-position: right center;
}

@media (max-width: 720px) {
    .demo-board[data-scenario="text"] .demo-node--media,
  .demo-board[data-scenario="shots"] .demo-node--media {
    width: 200px;
  }
}

/* Final spacing corrections for the Workspace board. */
.demo-node--output {
  top: 205px;
}

body.bloom-page[dir="rtl"] .demo-connections {
  transform: scaleX(-1);
}

@media (min-width: 721px) and (max-width: 980px) {
  .demo-node--output {
    top: 205px;
  }
}

@media (max-width: 720px) {
  .demo-scenario-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .demo-scenario-label {
    flex-basis: 100%;
  }

  .demo-scenario {
    flex: 1 1 auto;
  }
}

/* Mobile Chat uses the full width instead of squeezing the thread beside the sidebar. */
@media (max-width: 720px) {
  .chat-demo-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-thread {
    width: 100%;
    padding: 18px 16px;
  }

  .chat-messages,
  .chat-message {
    width: 100%;
    max-width: 100%;
  }

  .chat-side {
    display: block;
    width: 100%;
    padding: 18px 16px;
    border-inline-start: 0;
    border-top: 1px solid #252525;
  }

  .chat-shots {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
  }

  .chat-shot {
    border-bottom: 1px solid #2a2a2a;
  }

  .chat-shot:last-child {
    border-bottom: 0;
  }

  .chat-scenario,
  .chat-mode-btn,
  .chat-handoff button,
  .demo-scenario {
    min-height: 42px;
  }
}

/* =========================================================
   Fourth-pass Bloom Workspace and Chat
   ========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.workspace-demo,
.bloom-chat {
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  background: #0d0d0d;
  overflow: hidden;
}

.workspace-demo-bar,
.bloom-chat-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid #292929;
  background: #111111;
}

.workspace-brand-line,
.bloom-chat-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-menu-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  color: #a7a7ad;
}

.workspace-menu-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.workspace-brand-line img,
.bloom-chat-brand img {
  width: auto;
  height: 17px;
}

.workspace-project,
.bloom-chat-brand > span:last-child {
  padding-inline-start: 12px;
  border-inline-start: 1px solid #353535;
  color: #cfcfd2;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-shot-count {
  padding: 3px 7px;
  border: 1px solid #3a3a3a;
  border-radius: 20px;
  color: #96969c;
  font-size: 0.6rem;
  font-weight: 600;
}

.workspace-account {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #85858c;
  font-size: 0.62rem;
}

.workspace-credit-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #383838;
  border-radius: 7px;
  color: #d7d7d9;
  background: #181818;
  font-size: 0.64rem;
  font-weight: 700;
}

.workspace-credit-pill span {
  color: #d7b97e;
  font-size: 0.5rem;
}

.workspace-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) minmax(165px, 0.8fr);
  grid-template-areas:
    "source operation"
    "prompt operation";
  gap: 16px clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: 440px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(rgba(255, 255, 255, 0.11) 0.65px, transparent 0.65px),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 44%),
    #0a0a0a;
  background-size: 18px 18px, auto, auto;
}

.workspace-canvas::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 29%;
  right: 29%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  pointer-events: none;
}

.workspace-canvas.has-output {
  grid-template-columns: minmax(180px, .95fr) minmax(150px, .7fr) minmax(180px, .95fr);
  grid-template-areas: "source operation output" "prompt operation output";
}

.workspace-canvas[data-tool="text"],
.workspace-canvas[data-tool="shots"] {
  grid-template-areas: "source operation";
}

.workspace-canvas[data-tool="text"].has-output,
.workspace-canvas[data-tool="shots"].has-output {
  grid-template-columns: minmax(180px, .95fr) minmax(150px, .7fr) minmax(180px, .95fr);
  grid-template-areas: "source operation output";
}

.workspace-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid #353535;
  border-radius: 10px;
  background: #171717;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.workspace-node--source { grid-area: source; align-self: start; }
.workspace-node--prompt { grid-area: prompt; align-self: start; }
.workspace-node--operation { grid-area: operation; align-self: center; }
.workspace-node--output { grid-area: output; align-self: center; }

.workspace-node--operation {
  border-color: #555;
  background: #202020;
}

.workspace-node--output {
  border-color: rgba(80, 205, 139, .42);
}

.workspace-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #94949a;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.workspace-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77777d;
}

.workspace-node strong {
  display: block;
  color: #f0f0ed;
  font-size: 0.79rem;
  line-height: 1.4;
}

.workspace-node > p {
  margin: 6px 0 0;
  color: #9c9ca2;
  font-size: 0.68rem;
  line-height: 1.52;
}

.workspace-source-media {
  height: 148px;
  margin-bottom: 10px;
  border: 1px solid #343434;
  border-radius: 6px;
  background: #101010;
  overflow: hidden;
}

.workspace-source-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.workspace-reference-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.workspace-reference-picker[hidden] {
  display: none !important;
}

.workspace-reference-option {
  min-width: 0;
  padding: 4px;
  border: 1px solid #343434;
  border-radius: 6px;
  color: #99999f;
  background: #111;
  cursor: pointer;
}

.workspace-reference-option img {
  width: 100%;
  height: 42px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.workspace-reference-option span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.52rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-reference-option:hover,
.workspace-reference-option:focus-visible,
.workspace-reference-option.is-selected {
  color: #f2f2ef;
  border-color: #8b8b91;
  background: #202020;
}

.workspace-text-brief {
  min-height: 148px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px 12px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #343434;
  border-radius: 6px;
  background: #111;
}

.workspace-text-brief > span:first-child {
  grid-row: 1 / span 2;
  color: #d1d1d3;
  font-size: 1.2rem;
  font-weight: 600;
}

.workspace-text-brief p {
  margin: 0;
  color: #c1c1c5;
  font-size: 0.72rem;
  line-height: 1.55;
}

.workspace-text-brief > span:last-child {
  color: #808087;
  font-size: 0.56rem;
}

.workspace-shot-preview {
  display: grid;
  gap: 5px;
}

.workspace-shot-preview > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid #323232;
  border-radius: 5px;
  background: #111;
}

.workspace-shot-preview span {
  color: #aaaab0;
  font-size: 0.58rem;
  font-weight: 700;
}

.workspace-shot-preview p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #b8b8bc;
  font-size: 0.62rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-prompt-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.workspace-node-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.workspace-node-badges span {
  padding: 3px 6px;
  border: 1px solid #3b3b3b;
  border-radius: 4px;
  color: #a4a4aa;
  font-size: 0.55rem;
  font-weight: 600;
}

.workspace-output-visual {
  margin-bottom: 10px;
}

.workspace-output-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 6px;
  background: #0b0b0b;
  overflow: hidden;
}

.workspace-output-frame[data-ratio="9:16"] {
  max-width: 128px;
  aspect-ratio: 9 / 16;
}

.workspace-output-frame[data-ratio="1:1"] {
  max-width: 174px;
  aspect-ratio: 1;
}

.workspace-output-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.workspace-output-duration,
.workspace-output-end {
  position: absolute;
  bottom: 6px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  background: rgba(0,0,0,.68);
  font-size: 0.52rem;
  font-weight: 600;
}

.workspace-output-duration { left: 6px; }
.workspace-output-end { right: 6px; }
body.bloom-page[dir="rtl"] .workspace-output-duration { left: auto; right: 6px; }
body.bloom-page[dir="rtl"] .workspace-output-end { right: auto; left: 6px; }

.workspace-output-sequence {
  display: grid;
  gap: 0;
}

.workspace-output-sequence > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #303030;
}

.workspace-output-sequence > div:last-child { border-bottom: 0; }
.workspace-output-sequence span { color: #aaaab0; font-size: 0.56rem; font-weight: 700; }
.workspace-output-sequence p { margin: 0; color: #c0c0c3; font-size: 0.62rem; line-height: 1.42; }

.workspace-output-prompt {
  display: -webkit-box;
  overflow: hidden;
  color: #85858c !important;
  font-size: 0.6rem !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-dock {
  display: grid;
  grid-template-columns: minmax(115px, .55fr) minmax(240px, 1.45fr) minmax(260px, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #292929;
  background: #111;
}

.workspace-select-control,
.workspace-prompt-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.workspace-select-control > span,
.workspace-prompt-field > span {
  color: #87878e;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workspace-select-control select,
.workspace-prompt-field textarea,
.workspace-shot-row input,
.workspace-shot-row select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #373737;
  border-radius: 6px;
  color: #ededeb;
  background: #191919;
  font: inherit;
  font-size: 0.68rem;
}

.workspace-select-control select { padding: 0 8px; }

.workspace-prompt-field textarea {
  min-height: 76px;
  padding: 9px 10px;
  line-height: 1.45;
  resize: vertical;
}

.workspace-prompt-field[hidden],
.workspace-shot-editor[hidden],
.workspace-select-control[hidden] {
  display: none !important;
}

.workspace-shot-editor {
  display: grid;
  gap: 5px;
}

.workspace-shot-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 6px;
}

.workspace-shot-row > span {
  color: #818188;
  font-size: 0.57rem;
  font-weight: 700;
}

.workspace-shot-row input { min-height: 32px; padding: 0 8px; }
.workspace-shot-row select { min-height: 32px; padding: 0 5px; }

.workspace-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-content: end;
}

.workspace-generate {
  min-height: 38px;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  color: #0b0b0b;
  background: #f4f4f1;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.workspace-generate:hover { background: #e7e7e3; }
.workspace-generate:disabled { cursor: wait; opacity: .72; }

.workspace-generate-spinner {
  width: 12px;
  height: 12px;
  display: none;
  border: 1.5px solid rgba(0,0,0,.22);
  border-top-color: #0b0b0b;
  border-radius: 50%;
  animation: bloom-spin 700ms linear infinite;
}

.workspace-generate.is-generating .workspace-generate-spinner { display: block; }

.workspace-status {
  min-height: 20px;
  margin: 0;
  padding: 9px 16px 12px;
  border-top: 1px solid #242424;
  color: #8d8d94;
  background: #0f0f0f;
  font-size: 0.67rem;
  line-height: 1.45;
}

.workspace-status.is-error { color: #ff9b8f; }

/* Chat */
.bloom-chat-content {
  width: min(100%, 760px);
  min-height: 590px;
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 30px) 18px;
  display: flex;
  flex-direction: column;
}

.bloom-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 18px;
}

.bloom-chat-prompts button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #373737;
  border-radius: 20px;
  color: #b9b9be;
  background: #151515;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
}

.bloom-chat-prompts button:hover,
.bloom-chat-prompts button:focus-visible {
  color: #f3f3f0;
  border-color: #75757b;
  background: #1f1f1f;
}

.bloom-chat-reset {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #aaaab0;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
}

.bloom-chat-reset:hover { color: #f3f3f0; border-color: #68686e; }

.bloom-chat-messages {
  flex: 1;
  min-height: 370px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 18px 2px 28px;
  scrollbar-width: thin;
  scrollbar-color: #3f3f45 transparent;
}

.bloom-chat-message {
  width: 100%;
  max-width: 100%;
}

.bloom-chat-message--user {
  width: fit-content;
  max-width: min(78%, 580px);
  align-self: flex-start;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  color: #f1f1ee;
  background: #202020;
}

body.bloom-page[dir="rtl"] .bloom-chat-message--user { align-self: flex-start; }

.bloom-chat-message--user p {
  margin: 0;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1.58;
}

.bloom-chat-message--assistant {
  padding: 0;
  color: #eeeeeb;
  background: transparent;
}

.bloom-chat-role {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #bdbdc1;
  font-size: 0.62rem;
  font-weight: 700;
}

.bloom-chat-role-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5c78d;
}

.bloom-chat-response {
  max-width: 690px;
  color: #ceced1;
  font-size: 0.86rem;
  line-height: 1.66;
}

body.bloom-page[dir="rtl"] .bloom-chat-response,
body.bloom-page[dir="rtl"] .bloom-chat-message--user { margin-inline-end: auto; margin-inline-start: 0; }

.bloom-chat-response p { margin: 0 0 11px; color: inherit; }
.bloom-chat-response p:last-child { margin-bottom: 0; }

.bloom-chat-plan,
.bloom-chat-guidance {
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #303030;
}

.bloom-chat-plan li,
.bloom-chat-guidance li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #2c2c2c;
}

.bloom-chat-plan li > span {
  color: #9c9cA2;
  font-size: 0.62rem;
  font-weight: 700;
}

.bloom-chat-plan p,
.bloom-chat-guidance p { margin: 0; color: #b8b8bd; font-size: 0.78rem; line-height: 1.55; }
.bloom-chat-guidance strong { color: #ededeb; font-size: 0.78rem; }

.bloom-chat-recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 10px 0 10px 12px;
  border-left: 2px solid #d8ba80;
}

body.bloom-page[dir="rtl"] .bloom-chat-recommendation {
  padding-left: 0;
  padding-right: 12px;
  border-left: 0;
  border-right: 2px solid #d8ba80;
}

.bloom-chat-recommendation strong { color: #f2f2ef; font-size: 0.8rem; }
.bloom-chat-recommendation span { color: #919197; font-size: 0.65rem; }

.bloom-chat-handoff {
  min-height: 34px;
  margin-top: 13px;
  padding: 0 11px;
  border: 1px solid #515151;
  border-radius: 6px;
  color: #f3f3f0;
  background: #262626;
  font-size: 0.67rem;
  font-weight: 650;
  cursor: pointer;
}

.bloom-chat-handoff:hover { background: #303030; }

.bloom-chat-thinking { min-height: 34px; }
.bloom-chat-typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.bloom-chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9b9ba1;
  animation: bloom-chat-pulse 800ms infinite alternate ease-in-out;
}
.bloom-chat-typing i:nth-child(2) { animation-delay: 120ms; }
.bloom-chat-typing i:nth-child(3) { animation-delay: 240ms; }

@keyframes bloom-chat-pulse {
  from { opacity: .35; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-2px); }
}

.bloom-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid #2c2c2c;
}

.bloom-chat-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 132px;
  padding: 11px 12px;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  color: #f0f0ed;
  background: #171717;
  font-size: 0.8rem;
  line-height: 1.48;
  resize: none;
}

.bloom-chat-composer textarea::placeholder { color: #77777e; }

.bloom-chat-send {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #f0f0ed;
  border-radius: 12px;
  color: #0b0b0b;
  background: #f0f0ed;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.bloom-chat-send:disabled { cursor: wait; opacity: .55; }
.bloom-chat-send svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .workspace-dock { grid-template-columns: minmax(105px, .55fr) minmax(0, 1.45fr); }
  .workspace-settings { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .workspace-generate { grid-column: auto; min-width: 120px; }
}

@media (max-width: 720px) {
  .workspace-canvas,
  .workspace-canvas.has-output,
  .workspace-canvas[data-tool="text"],
  .workspace-canvas[data-tool="shots"],
  .workspace-canvas[data-tool="text"].has-output,
  .workspace-canvas[data-tool="shots"].has-output {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "source" "prompt" "operation" "output";
    gap: 10px;
    min-height: 0;
    padding: 18px 14px 22px;
  }

  .workspace-canvas::before { display: none; }
  .workspace-node { width: 100%; }
  .workspace-node--source { max-width: none; }
  .workspace-node--prompt { display: block; }
  .workspace-node--prompt[hidden] { display: none !important; }
  .workspace-dock { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .workspace-settings { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-generate { grid-column: 1 / -1; min-height: 42px; }
  .workspace-prompt-field textarea { min-height: 74px; }
  .workspace-reference-option img { height: 50px; }
  .workspace-demo-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .workspace-account { width: 100%; justify-content: space-between; }
  .bloom-chat-bar { align-items: center; }
  .bloom-chat-content { min-height: 0; }
  .bloom-chat-messages { min-height: 300px; max-height: 460px; }
  .bloom-chat-prompts { display: grid; grid-template-columns: 1fr; }
  .bloom-chat-prompts button { width: 100%; text-align: start; border-radius: 8px; }
  .bloom-chat-composer { grid-template-columns: minmax(0, 1fr) 44px; }
  .bloom-chat-send { width: 44px; padding: 0; }
  .bloom-chat-send span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-generate-spinner,
  .bloom-chat-typing i { animation: none !important; }
}

/* Bloom hero: the product demonstrations below are the visual focus. */
.bloom-hero {
  min-height: 0;
  padding-block: clamp(118px, 14vh, 166px) clamp(70px, 9vh, 108px);
}

.bloom-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.bloom-hero-copy {
  width: 100%;
  max-width: 880px;
}


/* Brand marks keep their original artwork. Extra whitespace in the Runway SVG
   is cropped through a derivative viewBox so its wordmark is readable. */
.model-cell img[src$="seedance.png"] {
  height: 38px;
  max-width: 120px;
  filter: none;
  opacity: 1;
}

.model-cell img[src$="runway-wordmark.svg"] {
  height: 27px;
  max-width: 150px;
  filter: brightness(0) invert(1);
}

/* Balanced canvas proportions: the nodes read as a connected graph rather than
   two oversized panels stretched across the full width. */
.workspace-canvas,
.workspace-canvas[data-tool="text"],
.workspace-canvas[data-tool="shots"] {
  grid-template-columns: minmax(220px, 340px) minmax(180px, 250px);
  justify-content: center;
}

.workspace-canvas.has-output,
.workspace-canvas[data-tool="text"].has-output,
.workspace-canvas[data-tool="shots"].has-output {
  grid-template-columns: minmax(200px, 300px) minmax(170px, 220px) minmax(200px, 300px);
  justify-content: center;
}

@media (max-width: 720px) {
  .workspace-canvas,
  .workspace-canvas.has-output,
  .workspace-canvas[data-tool="text"],
  .workspace-canvas[data-tool="shots"],
  .workspace-canvas[data-tool="text"].has-output,
  .workspace-canvas[data-tool="shots"].has-output {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }
}


.bloom-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .bloom-chat-bar {
    flex-wrap: wrap;
  }

  .bloom-chat-actions {
    width: 100%;
    justify-content: space-between;
  }
}

body.bloom-page select:focus-visible,
body.bloom-page input:focus-visible {
  outline: 2px solid var(--bloom-white);
  outline-offset: 3px;
}

/* =========================================================
   Fifth-pass Workspace tool library and dynamic controls
   ========================================================= */

@font-face {
  font-family: "BloomToolIcons";
  src: url("assets/bloom/fonts/material-icons-tools.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.material-tool-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: currentColor;
  font-family: "BloomToolIcons" !important;
  font-size: 19px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: never;
  -webkit-font-smoothing: antialiased;
}

.workspace-tool-trigger {
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid #353535;
  border-radius: 7px;
  color: #ececea;
  background: #181818;
  text-align: start;
  cursor: pointer;
}

.workspace-tool-trigger:hover,
.workspace-tool-trigger:focus-visible,
.workspace-tool-trigger[aria-expanded="true"] {
  border-color: #66666d;
  background: #202020;
}

.workspace-tool-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  flex: 1;
}

.workspace-tool-trigger-copy small {
  color: #8e8e95;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.workspace-tool-trigger-copy strong {
  overflow: hidden;
  color: #ededeb;
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tool-trigger > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: #8f8f95;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-tool-picker {
  position: absolute;
  z-index: 20;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  width: min(580px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  border: 1px solid #424248;
  border-radius: 10px;
  background: #111214;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.workspace-tool-picker[hidden] {
  display: none !important;
}

.workspace-tool-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid #292a2d;
}

.workspace-tool-picker-head > div {
  display: grid;
  gap: 3px;
}

.workspace-tool-picker-head span {
  color: #8f9097;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.workspace-tool-picker-head strong {
  color: #f2f2ef;
  font-size: 0.9rem;
  font-weight: 700;
}

.workspace-tool-close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #37383c;
  border-radius: 6px;
  color: #b7b8bd;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
}

.workspace-tool-close:hover { color: #fff; border-color: #66676d; }

.workspace-tool-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 8px;
}

.workspace-tool-search-row input {
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #36373b;
  border-radius: 6px;
  color: #eeeeec;
  background: #191a1c;
  font-size: 0.72rem;
}

.workspace-tool-search-row input::placeholder { color: #77787f; }

.workspace-tool-search-row > span {
  min-width: 74px;
  color: #888990;
  font-size: 0.57rem;
  text-align: end;
  white-space: nowrap;
}

.workspace-tool-categories {
  display: flex;
  gap: 5px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.workspace-tool-categories::-webkit-scrollbar { display: none; }

.workspace-tool-categories button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #323337;
  border-radius: 20px;
  color: #a9aaaf;
  background: transparent;
  font-size: 0.6rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.workspace-tool-categories button:hover,
.workspace-tool-categories button.is-active {
  color: #111;
  border-color: #e8e5dd;
  background: #e8e5dd;
}

.workspace-tool-results {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-top: 1px solid #292a2d;
  background: #292a2d;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #45464b #111214;
}

.workspace-tool-result {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 10px;
  padding: 13px 12px;
  border: 0;
  color: #b8b9be;
  background: #151619;
  text-align: start;
  cursor: pointer;
}

.workspace-tool-result:hover,
.workspace-tool-result:focus-visible {
  color: #f0f0ed;
  background: #1c1d20;
}

.workspace-tool-result.is-selected {
  color: #f4f1e9;
  background: #25231f;
  box-shadow: inset 2px 0 0 #d7b97e;
}

body.bloom-page[dir="rtl"] .workspace-tool-result.is-selected {
  box-shadow: inset -2px 0 0 #d7b97e;
}

.workspace-tool-result .material-tool-icon {
  margin-top: 1px;
  color: #bfc0c5;
}

.workspace-tool-result.is-selected .material-tool-icon { color: #e4c98f; }

.workspace-tool-result-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-tool-result-copy strong {
  color: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.3;
}

.workspace-tool-result-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #8f9097;
  font-size: 0.58rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-tool-result-check {
  color: #e4c98f;
  font-size: 0.65rem;
  font-weight: 800;
}

.workspace-tool-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 18px;
  color: #9b9ca2;
  background: #151619;
  font-size: 0.72rem;
  text-align: center;
}

.workspace-node--source {
  max-width: 350px;
}

.workspace-node--source > .workspace-input-list {
  display: grid;
  gap: 9px;
}

.workspace-input-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #303136;
  border-radius: 7px;
  background: #111214;
}

.workspace-input-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.workspace-input-card-head strong {
  color: #e6e6e3;
  font-size: 0.62rem;
  font-weight: 700;
}

.workspace-input-card-head span {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 3px;
  color: #a4a5aa;
  background: #242529;
  font-size: 0.48rem;
  font-weight: 650;
}

.workspace-input-card-head span.is-required { color: #e5c88d; }

.workspace-input-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.workspace-input-media-grid[data-count="1"] { grid-template-columns: 1fr; }

.workspace-input-media-grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 5px;
  background: #0b0c0e;
  overflow: hidden;
}

.workspace-input-media-grid[data-count="1"] figure { aspect-ratio: 16 / 9; }

.workspace-input-media-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.workspace-input-media-grid figcaption {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-start: 4px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #f2f2ef;
  background: rgba(0, 0, 0, .62);
  font-size: 0.47rem;
  font-weight: 700;
}

.workspace-input-empty {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed #3c3d42;
  border-radius: 5px;
  color: #77787f;
  font-size: 1rem;
}

.workspace-reference-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 7px;
}

.workspace-reference-option {
  min-width: 0;
  padding: 3px;
  border: 1px solid #303136;
  border-radius: 5px;
  color: #9b9ca2;
  background: #17181b;
  cursor: pointer;
}

.workspace-reference-option img {
  width: 100%;
  height: 34px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.workspace-reference-option span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.46rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-reference-option:hover,
.workspace-reference-option:focus-visible,
.workspace-reference-option.is-selected {
  color: #f2f2ef;
  border-color: #8b8c92;
  background: #242528;
}

.workspace-input-card > p {
  margin: 7px 0 0;
  color: #85868d;
  font-size: 0.57rem;
  line-height: 1.45;
}

.workspace-video-source {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: #0b0c0e;
  overflow: hidden;
}

.workspace-video-source img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .78;
}

.workspace-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 0.68rem;
  transform: translate(-50%, -50%);
}

.workspace-video-meta {
  position: absolute;
  inset-block-end: 5px;
  inset-inline-start: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #e4e4e1;
  background: rgba(0,0,0,.66);
  font-size: 0.48rem;
}

.workspace-audio-source {
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 5px;
  background: #0d0e10;
}

.workspace-audio-source > span {
  color: #8d8e95;
  font-size: 0.48rem;
}

.workspace-waveform,
.workspace-output-waveform {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.workspace-waveform i,
.workspace-output-waveform i {
  width: 2px;
  min-height: 3px;
  display: block;
  flex: 1;
  border-radius: 2px;
  background: #b6b7bb;
}

.workspace-dynamic-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.workspace-dynamic-field > span,
.workspace-setting-field > span:first-child {
  color: #85868d;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-text-fields {
  display: grid;
  gap: 6px;
}

.workspace-text-fields[hidden] { display: none !important; }

.workspace-dynamic-field textarea {
  width: 100%;
  min-height: 70px;
  padding: 8px 9px;
  border: 1px solid #35363a;
  border-radius: 6px;
  color: #ececea;
  background: #191a1c;
  font-size: 0.66rem;
  line-height: 1.45;
  resize: vertical;
}

.workspace-dynamic-field textarea::placeholder { color: #74757c; }

.workspace-prompt-control {
  min-width: 0;
}

.workspace-shot-editor {
  display: grid;
  gap: 5px;
}

.workspace-shot-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 5px;
}

.workspace-shot-row > span {
  color: #85868d;
  font-size: 0.53rem;
  font-weight: 700;
}

.workspace-shot-row input,
.workspace-shot-row select {
  width: 100%;
  min-height: 31px;
  border: 1px solid #35363a;
  border-radius: 5px;
  color: #ececea;
  background: #191a1c;
  font-size: 0.61rem;
}

.workspace-shot-row input { padding: 0 7px; }
.workspace-shot-row select { padding: 0 4px; }

.workspace-shot-actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
}

.workspace-shot-actions button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #36373b;
  border-radius: 5px;
  color: #aeb0b5;
  background: transparent;
  font-size: 0.55rem;
  cursor: pointer;
}

.workspace-shot-actions button:hover:not(:disabled) { color: #fff; border-color: #67686e; }
.workspace-shot-actions button:disabled { opacity: .38; cursor: default; }

.workspace-setting-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.workspace-setting-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-setting-field select {
  width: 100%;
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid #37383c;
  border-radius: 5px;
  color: #ececea;
  background: #191a1c;
  font-size: 0.61rem;
}

.workspace-model-control {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding-inline-start: 7px;
  border: 1px solid #37383c;
  border-radius: 5px;
  background: #191a1c;
}

.workspace-model-control select {
  min-width: 0;
  padding-inline: 0 5px;
  border: 0;
  background: transparent;
}

.workspace-model-logo {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
  opacity: .9;
}

.workspace-model-logo.is-wide {
  width: 18px;
  object-fit: contain;
}

.workspace-model-fallback {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #4a4b50;
  border-radius: 3px;
  color: #c7c8cc;
  font-size: 0.48rem;
  font-weight: 800;
}

.workspace-settings {
  grid-template-columns: minmax(0, 1fr);
  align-content: stretch;
}

.workspace-generate {
  min-height: 35px;
}

.workspace-output-type,
.workspace-output-play {
  position: absolute;
  z-index: 1;
}

.workspace-output-type {
  inset-block-start: 6px;
  inset-inline-start: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #f5f5f2;
  background: rgba(0,0,0,.64);
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.workspace-output-play {
  inset: 50% auto auto 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 0.68rem;
  transform: translate(-50%, -50%);
}

.workspace-output-frame[data-ratio="4:3"] { max-width: 210px; aspect-ratio: 4 / 3; }
.workspace-output-frame[data-ratio="3:2"] { max-width: 210px; aspect-ratio: 3 / 2; }
.workspace-output-frame[data-ratio="2:3"] { max-width: 130px; aspect-ratio: 2 / 3; }
.workspace-output-frame[data-ratio="3:4"] { max-width: 136px; aspect-ratio: 3 / 4; }
.workspace-output-frame[data-ratio="21:9"] { max-width: 230px; aspect-ratio: 21 / 9; }

.workspace-output-audio {
  display: grid;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid #303136;
  border-radius: 6px;
  background: #0e0f11;
}

.workspace-output-waveform {
  height: 58px;
  padding-inline: 2px;
}

.workspace-output-waveform i {
  background: #cfb27c;
}

.workspace-output-audio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspace-output-audio-meta strong {
  color: #ededeb;
  font-size: 0.66rem;
}

.workspace-output-audio-meta span {
  color: #8e8f95;
  font-size: 0.54rem;
}

.workspace-output-element {
  position: relative;
  aspect-ratio: 1;
  max-width: 180px;
  margin-inline: auto;
  border-radius: 7px;
  background: #0c0d0f;
  overflow: hidden;
}

.workspace-output-element img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.workspace-output-element span {
  position: absolute;
  inset-block-end: 7px;
  inset-inline-start: 7px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #f3f3ef;
  background: rgba(0,0,0,.65);
  font-size: 0.5rem;
  font-weight: 650;
}

.workspace-node--prompt[hidden] { display: none !important; }

@media (max-width: 980px) {
  .workspace-dock {
    grid-template-columns: minmax(135px, .65fr) minmax(220px, 1.35fr);
  }

  .workspace-settings {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .workspace-setting-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace-generate {
    min-width: 116px;
    min-height: 35px;
  }
}

@media (max-width: 720px) {
  .workspace-tool-picker {
    position: fixed;
    z-index: 400;
    inset: auto 10px 10px;
    width: auto;
    max-height: min(82vh, 720px);
    border-radius: 12px;
  }

  .workspace-tool-results {
    grid-template-columns: 1fr;
  }

  .workspace-tool-result {
    min-height: 78px;
  }

  .workspace-node--source {
    max-width: none;
  }

  .workspace-setting-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-generate {
    grid-column: 1 / -1;
  }

  .workspace-shot-row {
    grid-template-columns: 19px minmax(0, 1fr) 50px;
  }
}

@media (max-width: 460px) {
  .workspace-tool-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-tool-search-row > span {
    text-align: start;
  }

  .workspace-tool-categories {
    padding-inline: 12px;
  }

  .workspace-input-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-tool-trigger,
  .workspace-tool-result,
  .workspace-reference-option,
  .workspace-tool-categories button {
    transition: none !important;
  }
}

/* Keep original model marks transparent and proportionally sized. */
.model-cell {
  min-height: 95px;
  align-items: center;
}

.model-cell img {
  width: 46px;
  height: 40px;
  max-width: 100px;
  object-fit: contain;
  filter: none;
}

.model-cell img[src$="runway-wordmark.svg"] {
  width: 72px;
  height: 28px;
  max-width: 100px;
  filter: brightness(0) invert(1);
}

.model-cell img[src$="seedance.png"] {
  width: 102px;
  height: auto;
  max-height: 34px;
}

.model-cell img[src$="gemini.svg"],
.model-cell img[src$="elevenlabs.svg"],
.model-cell img[src$="seed-audio.svg"],
.model-cell img[src$="grok.svg"],
.model-cell img[src$="hailuo.svg"],
.model-cell img[src$="happy-horse.svg"] {
  width: 72px;
  max-width: 92px;
}

.model-cell .model-cell-more {
  width: 100%;
}

@media (max-width: 720px) {
  .model-cell img[src$="runway-wordmark.svg"] { width: 66px; }
  .model-cell img[src$="seedance.png"] { width: 92px; }
}
.model-letter-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid #4b4c51;
  border-radius: 7px;
  color: #d6d6d2;
  background: #18191b;
  font-family: "Inter", sans-serif !important;
  font-size: 1rem;
  font-weight: 700;
}
/* Monochrome brand marks use their official white-on-dark treatment where the
   original artwork is a currentColor silhouette. Multicolour marks stay intact. */
.workspace-model-logo[src$="kling.svg"],
.workspace-model-logo[src$="veo.svg"],
.workspace-model-logo[src$="seed-audio.svg"],
.workspace-model-logo[src$="elevenlabs.svg"],
.workspace-model-logo[src$="grok.svg"],
.workspace-model-logo[src$="runway-wordmark.svg"],
.model-cell img[src$="kling.svg"],
.model-cell img[src$="veo.svg"],
.model-cell img[src$="seed-audio.svg"],
.model-cell img[src$="elevenlabs.svg"],
.model-cell img[src$="grok.svg"] {
  filter: brightness(0) invert(1);
}

.model-cell img[src$="gemini.svg"],
.model-cell img[src$="hailuo.svg"],
.model-cell img[src$="happy-horse.svg"],
.model-cell img[src$="seedance.png"],
.workspace-model-logo[src$="gemini.svg"],
.workspace-model-logo[src$="hailuo.svg"],
.workspace-model-logo[src$="happy-horse.svg"],
.workspace-model-logo[src$="seedance.png"] {
  filter: none;
}