/* Variant B is a separate visual layer. Variant A uses the existing styles. */
:root[data-design="B"] {
  --flw-design-b-ready: 1;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --border-radius: 14px;
  --shadow-md: 0 2px 6px rgb(15 23 42 / .05);
  --shadow-lg: 0 6px 22px rgb(15 23 42 / .08);
}
:root[data-design="B"]:not(.dark-mode):not(.lava-mode) {
  --brand: #e76a00;
  --brand-2: #f07812;
  --brand-strong: #b94f00;
  --primary: #c45500;
  --primary-hover: #a74700;
  --primary-rgb: 196, 85, 0;
  --bg-color: #fafaf9;
  --grid-color: #eceeF0;
  --text-color: #18202e;
  --text-muted: #586477;
  --surface: #fafaf9;
  --surface-2: #f3f4f5;
  --divider: #dfe3e8;
  --toolbar-bg: #fff;
  --edge-color: #88919e;
  --ai-text: #435268;
  --ai-button-bg: #435268;
}
:root[data-design="B"] body { font-family: var(--font-family); }
:root[data-design="B"] .toolbar { padding: 12px 20px; gap: 12px; box-shadow: none; }
:root[data-design="B"] .brand { font-size: 1.9rem; }
:root[data-design="B"] .tb-name input { font-size: .9rem; font-weight: 650; width: 160px; }
:root[data-design="B"] .workflow-save-status { font-size: .7rem; }
:root[data-design="B"] .tb-btn { min-height: 36px; padding: 9px 13px; font-size: .78rem; letter-spacing: 0; font-weight: 600; }
:root[data-design="B"] .tb-btn-vibe,
:root[data-design="B"] .tb-btn-add,
:root[data-design="B"] #workflow-save-button {
  color: var(--text-color); background: var(--surface-1); border: 1px solid var(--divider); box-shadow: none;
}
:root[data-design="B"] .tb-btn-export,
:root[data-design="B"] .btn-gradient,
:root[data-design="B"] .btn-gradient:hover,
:root[data-design="B"] .chat-send-build,
:root[data-design="B"] .mobile-export-main,
:root[data-design="B"] .mobile-add-node { background: var(--primary) !important; color: var(--primary-foreground) !important; box-shadow: none; }
:root[data-design="B"] .tb-btn:hover { transform: none; filter: brightness(.97); }
:root[data-design="B"] .dropbtn { font-size: .78rem; }
:root[data-design="B"] .account-btn-guest { background: var(--surface-1); color: var(--text-color); border: 1px solid var(--divider); box-shadow: none; }
:root[data-design="B"] .node:not(.note) { border-width: 1px; border-radius: 15px; }
:root[data-design="B"]:not(.dark-mode):not(.lava-mode) .node.has-domain:not(.node-dimmed) {
  --node-bg: #fff; --node-border: #dfe3e8; --input-bg: #fff; --surface-2: #f5f6f7; --divider: #e1e5e9; --text-muted: #586477;
}
:root[data-design="B"] .node:not(.note):not(.has-heatmap) { border-color: var(--node-border); }
:root[data-design="B"] .node:not(.note) .node-header { border-bottom-style: solid; padding: 14px 16px; }
:root[data-design="B"] .node-header input:not(.layer-input) { min-width: 0; font-size: 1rem; font-weight: 650; }
:root[data-design="B"] .node-body { padding: 16px; gap: 12px; }
:root[data-design="B"] .node-body label { font-size: .72rem; text-transform: none; letter-spacing: 0; font-weight: 650; }
:root[data-design="B"] .node-summary,
:root[data-design="B"] .rule-row textarea,
:root[data-design="B"] .tools-input { font-size: .8rem; line-height: 1.55; border-radius: 7px; padding: 8px; }
:root[data-design="B"] .domain-badge,
:root[data-design="B"] .heatmap-badge { font-size: .68rem; border-radius: 6px; }
:root[data-design="B"] .node-actions button { color: var(--text-muted); }
:root[data-design="B"] .btn-add-rule { font-size: .7rem; }
:root[data-design="B"] .port { width: 18px; height: 18px; border-width: 2px; }
:root[data-design="B"] .node-navigator.domain-panel { border-radius: 12px; box-shadow: var(--shadow-md); }
:root[data-design="B"] .navigator-header h2 { font-size: 1.05rem; }
:root[data-design="B"] .node-index-title { font-size: .85rem; }
:root[data-design="B"] .navigator-tabs button,
:root[data-design="B"] .node-index-search-wrap input { font-size: .8rem; }
:root[data-design="B"] .vibe-chat { border-radius: 14px; box-shadow: var(--shadow-lg); }
:root[data-design="B"] .chat-header { background: var(--surface-1); }
:root[data-design="B"] .chat-header h3 { font-size: .9rem; }
:root[data-design="B"] .chat-msg { font-size: .88rem; line-height: 1.6; }
:root[data-design="B"] .chat-input-area textarea { font-family: var(--font-family); }
:root[data-design="B"] .welcome-card { width: min(610px, calc(100vw - 40px)); padding: 44px; border-radius: 20px; box-shadow: 0 12px 70px rgb(15 23 42 / .09); }
:root[data-design="B"] .welcome-content { gap: 20px; }
:root[data-design="B"] .welcome-content h2 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.12; }
:root[data-design="B"] .welcome-content .welcome-intro { font-size: 1.05rem; line-height: 1.6; }
:root[data-design="B"] .welcome-content label { font-size: 1rem; }
:root[data-design="B"] .welcome-content textarea { min-height: 114px; padding: 16px; font-size: 1rem; border-radius: 11px; }
:root[data-design="B"] .welcome-primary { min-height: 52px; justify-content: center; font-size: 1.05rem; border-radius: 10px; }
:root[data-design="B"] .welcome-content .welcome-hint { font-size: .85rem; line-height: 1.6; }
:root[data-design="B"] .welcome-close { min-width: 36px; min-height: 36px; }
:root[data-design="B"] .zoom-controls button { min-height: 34px; font-size: .8rem; border-radius: 7px; }
.design-preview-banner { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 15000; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #243247; box-shadow: 0 3px 20px #0f172a18; font: 12px/1.5 system-ui, sans-serif; }
.design-preview-banner button { flex-shrink: 0; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #243247; font: inherit; cursor: pointer; }
@media (min-width: 721px) and (max-width: 1250px) {
  :root[data-design="B"] .toolbar { flex-wrap: wrap; padding: 10px 14px; }
  :root[data-design="B"] .tb-left { flex-basis: 60%; }
  :root[data-design="B"] .tb-menus { flex-basis: 100%; }
}
@media (max-width: 720px) {
  :root[data-design="B"] .toolbar { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; gap: 6px 8px; }
  :root[data-design="B"] .tb-name input { width: 100%; font-size: 16px; }
  :root[data-design="B"] .vibe-chat { border-radius: 0; }
  :root[data-design="B"] .node-header input:not(.layer-input) { font-size: 1.05rem; }
  :root[data-design="B"] .account-btn-guest { font-size: .78rem; padding: 8px 12px; }
  :root[data-design="B"] body.design-intro .toolbar { grid-template-rows: 48px; padding: calc(10px + env(safe-area-inset-top)) 20px 10px; }
  :root[data-design="B"] body.design-intro .tb-name,
  :root[data-design="B"] body.design-intro .mobile-more-toggle { display: none; }
  :root[data-design="B"] body.design-intro .tb-account { grid-column: 3; }
  :root[data-design="B"] body.design-intro .workspace-container { visibility: hidden; }
  :root[data-design="B"] body.design-intro .welcome-card { top: calc(69px + env(safe-area-inset-top)); bottom: 0; left: 0; transform: none; width: 100%; max-height: none; border: 0; border-radius: 0; padding: 42px 24px 32px; box-shadow: none; animation: none; }
  :root[data-design="B"] .welcome-content { gap: 20px; }
  :root[data-design="B"] .welcome-content h2 { font-size: clamp(2rem, 8.6vw, 2.7rem); line-height: 1.12; padding-right: 15px; }
  :root[data-design="B"] .welcome-content .welcome-eyebrow { font-size: .65rem; }
  :root[data-design="B"] .welcome-content .welcome-intro { font-size: 1.05rem; line-height: 1.5; }
  :root[data-design="B"] .welcome-content .welcome-hint { font-size: .85rem; }
  :root[data-design="B"] .welcome-close { top: 6px; right: 12px; }
  .design-preview-banner { bottom: 6px; padding: 7px 10px; font-size: 11px; gap: 7px; }
}
