/* Finmodel Hero pipeline V2. Isolated to #demo, no global layout changes. */
#demo.fm5-workflow{max-width:1220px;margin-left:auto;margin-right:auto;--fm5-ink:#1e396d;--fm5-blue:#4567ec;--fm5-violet:#7974ea;--fm5-sky:#eaf1ff;--fm5-green:#119a85}
#demo .fm5-head{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
#demo .fm5-head .workflow-heading{display:flex;align-items:center;gap:9px;font-weight:800;color:#254378;font-size:13px}
#demo .fm5-head .workflow-heading small{font-weight:600;color:#8c9bb3;margin-left:auto;font-size:10px}
#demo .fm5-tabs{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:5px;border:1px solid #dce7fa;background:#f4f7fe;border-radius:13px}
#demo .fm5-tab{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 6px;border:1px solid transparent!important;border-radius:9px;background:transparent;color:#6b80a4;font-size:11px;white-space:nowrap;font-weight:750;transition:background .3s,color .3s,box-shadow .3s;cursor:pointer}
#demo .fm5-tab .fm5-tab-num{font-size:9px;color:#8d9fbd;font-weight:850}
#demo .fm5-tab.is-active{background:#fff;border-color:#d1def9!important;color:#3155b3;box-shadow:0 4px 15px #385cb013}
#demo .fm5-tab.is-active .fm5-tab-num{color:#5573ed}
#demo .fm5-stage{padding:11px!important;border:1px solid #d7e4fa;border-radius:20px;background:radial-gradient(ellipse at 55% 0%,#fbfdff,#edf3ff 58%,#e4edff);overflow:hidden;isolation:isolate}
#demo .fm5-window{overflow:hidden;background:white;border:1px solid #cfdcf4;border-radius:15px;box-shadow:0 22px 60px #345db11d,0 0 0 1px #fff inset}
#demo .fm5-window-top{height:39px;padding:0 14px;display:flex;align-items:center;gap:11px;background:linear-gradient(90deg,#fff,#f8faff);border-bottom:1px solid #e2eaf9}
#demo .fm5-window-controls{display:flex;gap:5px}
#demo .fm5-window-controls i{display:block;width:7px;height:7px;border-radius:50%;background:#c8d5eb}
#demo .fm5-window-controls i:first-child{background:#f1b0b1}#demo .fm5-window-controls i:nth-child(2){background:#edce91}
#demo .fm5-window-top strong{font-size:10px;font-weight:870;letter-spacing:.07em;color:#344f8e;display:flex;gap:7px;align-items:center;white-space:nowrap}
#demo .fm5-logo{font-size:17px;color:#596ef0}#demo .fm5-separator{color:#c9d4e9}#demo .fm5-window-subtitle{font-size:9px;color:#91a0b8;letter-spacing:.06em}
#demo .fm5-indicator{margin-left:auto;display:flex;gap:9px;align-items:center;color:#6d84a8;font-size:9px;font-weight:750;white-space:nowrap}
#demo .fm5-indicator i,#demo .fm5-active-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#15b296;box-shadow:0 0 0 4px #e0f8f1;flex:none}
#demo .fm5-workspace{position:relative;height:465px;overflow:hidden;background:radial-gradient(ellipse at 95% 0%,#eef3ff 0%,transparent 50%),linear-gradient(125deg,#fff,#f9fbff 60%,#eef4ff);}
#demo .fm5-workspace:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#bdd0f913 1px,transparent 1px),linear-gradient(90deg,#bdd0f913 1px,transparent 1px);background-size:27px 27px}
#demo .fm5-scene{display:none;position:absolute;inset:0;z-index:1;padding:18px 20px;animation:fm5-scene-in .6s ease both;overflow:hidden}
#demo[data-phase=dialogue] .fm5-dialogue{display:grid}#demo[data-phase=llm] .fm5-llm{display:block}#demo[data-phase=engine] .fm5-engine{display:block}#demo[data-phase=blocks] .fm5-blocks{display:block}#demo[data-phase=complete] .fm5-complete{display:block}
#demo .fm5-rise{opacity:0;transform:translate3d(0,15px,0) scale(.97);animation:fm5-rise .5s cubic-bezier(.18,.82,.2,1) var(--delay,0s) both}
#demo[data-manual=yes] .fm5-rise{animation:none!important;opacity:1!important;transform:none!important}
#demo[data-playing=no] .fm5-rise,#demo[data-playing=no] .fm5-llm-halo,#demo[data-playing=no] .fm5-llm-beam,#demo[data-playing=no] .fm5-typing i{animation-play-state:paused!important}
#demo .fm5-dialogue{grid-template-columns:minmax(0,1.22fr) 26px minmax(0,.86fr);gap:8px}
#demo .fm5-chat-frame,#demo .fm5-dialogue-side{min-width:0;border:1px solid #dce5f8;border-radius:13px;background:#fff;box-shadow:0 10px 25px #3865b009;padding:16px;display:flex;flex-direction:column;gap:12px}
#demo .fm5-dialogue-side{background:linear-gradient(160deg,#f4f7ff,#eaf1ff);gap:8px}
#demo .fm5-panel-eyebrow{display:flex;flex-direction:column;gap:5px;margin-bottom:3px}#demo .fm5-panel-eyebrow span{font-size:9px;color:#6c86b4;font-weight:900;letter-spacing:.12em}#demo .fm5-panel-eyebrow b{font-size:16px;color:#25488b;letter-spacing:-.035em}
#demo .fm5-chatrow{border:1px solid #e0e8f8;background:#f5f8ff;border-radius:11px;padding:10px 12px;color:#314e7c;max-width:96%}
#demo .fm5-chatrow small{font-size:9px;color:#7d91b3;font-weight:850;display:block;margin-bottom:5px}#demo .fm5-chatrow small span{color:#5965e8;font-size:14px}#demo .fm5-chatrow p{font-size:12px;line-height:1.5;margin:0}#demo .fm5-chatrow b{color:#2d57d6}#demo .fm5-user{margin-left:auto;background:#eef3ff;border-color:#d1defb}#demo .fm5-assistant{background:#fff;margin-right:5%}
#demo .fm5-chat-bottom{display:flex;align-items:center;gap:10px;margin-top:auto;color:#4d6c9b;font-size:10px;font-weight:700}
#demo .fm5-typing{display:flex;gap:4px}#demo .fm5-typing i{height:5px;width:5px;border-radius:50%;background:#607be8;animation:fm5-dot 1s infinite alternate}#demo .fm5-typing i:nth-child(2){animation-delay:.2s}#demo .fm5-typing i:nth-child(3){animation-delay:.4s}
#demo .fm5-dialogue-transfer{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#6480da;gap:6px}#demo .fm5-dialogue-transfer span{font-size:22px}#demo .fm5-dialogue-transfer small{font-size:8px;writing-mode:vertical-rl;text-transform:uppercase;letter-spacing:.09em}
#demo .fm5-extract-chip{background:#fff;border:1px solid #d6e2f9;border-radius:8px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:7px}
#demo .fm5-extract-chip span{font-size:10px;color:#7184a6}#demo .fm5-extract-chip b{font-size:11px;color:#2850ad;white-space:nowrap}
#demo .fm5-confirm{margin-top:auto;color:#118c79;font-size:10px;font-weight:800;display:flex;align-items:center;gap:7px}#demo .fm5-confirm i{font-style:normal;border-radius:50%;padding:2px 5px;background:#dff7ef}
#demo .fm5-stage-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 17px}#demo .fm5-stage-title span{font-size:10px;font-weight:900;letter-spacing:.10em;color:#5677b7}#demo .fm5-stage-title strong{font-size:17px;font-weight:850;letter-spacing:-.035em;color:#254582}
#demo .fm5-llm-stage{height:310px;display:grid;grid-template-columns:1fr 170px 1fr;gap:17px;align-items:stretch}
#demo .fm5-llm-input,#demo .fm5-llm-output{border:1px solid #d8e4f9;border-radius:13px;background:#fff;padding:16px;box-shadow:0 11px 20px #365ca90a;min-width:0}
#demo .fm5-llm-input>small,#demo .fm5-llm-output>small{display:block;color:#718abb;font-size:9px;font-weight:900;letter-spacing:.12em;margin-bottom:13px}
#demo .fm5-tokens{display:flex;gap:8px;flex-wrap:wrap}#demo .fm5-token{display:inline-flex;align-items:center;border:1px solid #d2e1ff;border-radius:8px;background:#f1f5ff;color:#3d60b9;font-weight:800;font-size:11px;padding:10px 12px}
#demo .fm5-llm-core{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;gap:8px}
#demo .fm5-llm-halo{position:absolute;inset:27px -7px;background:radial-gradient(circle,#b8c8ffb0,transparent 65%);filter:blur(12px);animation:fm5-breathe 2.4s ease-in-out infinite;z-index:-1}
#demo .fm5-llm-symbol{height:82px;width:82px;border-radius:28px;background:linear-gradient(150deg,#4b63ee,#8476ec);box-shadow:0 19px 39px #5368e856,0 0 0 9px #dfe6ff;display:grid;place-items:center;color:#fff;font-size:43px}
#demo .fm5-llm-core>b{font-size:14px;color:#2b4b91}#demo .fm5-llm-core>small{font-size:9px;color:#7085a7;line-height:1.45}
#demo .fm5-llm-beam{width:90%;height:2px;background:linear-gradient(90deg,transparent,#486de9,transparent);animation:fm5-breathe 1.4s ease infinite}
#demo .fm5-llm-output{background:linear-gradient(160deg,#fff,#f6f8ff)}
#demo .fm5-llm-map{display:grid;grid-template-columns:1fr 21px 1fr;gap:4px;align-items:center;background:#f3f7ff;border:1px solid #dde7fb;border-radius:9px;padding:13px 10px;margin-bottom:10px}
#demo .fm5-llm-map span{font-size:11px;color:#61789e}#demo .fm5-llm-map i{font-style:normal;color:#597cf0;text-align:center}#demo .fm5-llm-map b{font-size:11px;color:#2b51aa}
#demo .fm5-llm-footer{display:flex;align-items:center;justify-content:space-around;margin-top:15px;background:#eaf8f4;border:1px solid #d0ede4;border-radius:9px;padding:10px;gap:9px}
#demo .fm5-llm-footer span{font-size:10px;color:#198d78;font-weight:800}#demo .fm5-llm-footer i{font-style:normal;font-size:11px;margin-right:3px}
#demo .fm5-engine-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(190px,.7fr);gap:13px;height:355px}
#demo .fm5-engine-stream{border-radius:13px;border:1px solid #cbdcff;background:radial-gradient(circle at 80% 50%,#dfe9ff,#f7faff 75%);box-shadow:0 13px 25px #415aa90e;padding:12px;overflow:hidden}
#demo .fm5-engine-top{height:27px;color:#526fb2;font-size:9px;font-weight:900;letter-spacing:.06em;display:flex;align-items:center;gap:8px;margin-bottom:5px}#demo .fm5-engine-top em{font-size:8px;font-style:normal;color:#13a189;margin-left:auto}
#demo .fm5-fline{height:32px;padding:4px 11px;margin-bottom:4px;display:grid;grid-template-columns:140px minmax(0,1fr) 102px;gap:8px;align-items:center;background:#fff;border:1px solid #d7e4ff;border-left:3px solid #6083ec;border-radius:7px;box-shadow:0 5px 13px #3e61ac0a;min-width:0}
#demo .fm5-fname{font-size:8px;color:#6983ae;font-weight:900;letter-spacing:.025em;white-space:nowrap}#demo .fm5-fline code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#2757b9;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}#demo .fm5-fline b{font-size:10px;color:#148f7c;text-align:right;white-space:nowrap}
#demo .fm5-engine-output{display:flex;flex-direction:column;gap:12px;border:1px solid #d4e1f6;border-radius:12px;padding:15px;background:white}#demo .fm5-engine-output>small{font-size:9px;color:#8294b6;font-weight:900;letter-spacing:.09em}
#demo .fm5-engine-result{background:#f4f8ff;border:1px solid #dbe7fa;border-radius:9px;padding:13px 12px}#demo .fm5-engine-result span{display:block;color:#7186a8;font-size:10px;font-weight:700}#demo .fm5-engine-result strong{display:block;margin-top:4px;font-size:20px;color:#2852af;letter-spacing:-.045em}
#demo .fm5-engine-check{margin-top:auto;font-size:10px;color:#11957e;font-weight:850}
#demo .fm5-module-meta{display:flex;gap:11px;align-items:center;font-size:11px;color:#2c4f91;margin-bottom:16px}#demo .fm5-module-meta small{color:#8598ba;font-size:10px;margin-left:auto}
#demo .fm5-module-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
#demo .fm5-module{position:relative;min-height:82px;border:1px solid #d6e2fb;border-radius:12px;background:linear-gradient(160deg,#fff,#f6f9ff);padding:11px 9px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:4px;box-shadow:0 9px 18px #3e61b00c;min-width:0}
#demo .fm5-module:after{content:'';position:absolute;left:50%;bottom:-10px;width:1px;height:9px;background:#a3b8ef;opacity:.5}
#demo .fm5-mod-glyph{font-size:9px;font-weight:900;color:#7187bb;background:#eaf0ff;padding:3px 5px;border-radius:5px}
#demo .fm5-module b{font-size:10px;color:#35578c;font-weight:800;line-height:1.2}#demo .fm5-module i{position:absolute;top:8px;right:9px;color:#14a389;font-size:10px;font-style:normal}
#demo .fm5-blocks-bottom{margin-top:15px;text-align:center;color:#4168b1;font-size:11px;font-weight:820}#demo .fm5-bb-lines{font-size:17px;color:#91aae8;margin-right:13px}#demo .fm5-blocks-bottom b{color:#12a287}
#demo .fm5-complete{padding:10px!important}
#demo .fm5-model-app{height:100%;background:#fff;display:flex;flex-direction:column;border:1px solid #cbdaf5;border-radius:10px;overflow:hidden;box-shadow:0 12px 28px #3a5baa11}
#demo .fm5-model-toolbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e1e8f7;background:#fbfcff;gap:10px}
#demo .fm5-model-toolbar>div{display:flex;flex-direction:column;gap:2px}#demo .fm5-model-toolbar strong{font-size:12px;color:#2e4e89;letter-spacing:-.02em}#demo .fm5-model-toolbar .fm5-logo{font-size:13px}#demo .fm5-model-toolbar small{font-size:9px;color:#8b9fbd}#demo .fm5-model-save{font-size:9px;font-weight:780;color:#169582;display:flex;align-items:center;gap:7px}#demo .fm5-model-save i{height:6px;width:6px;border-radius:50%;background:#18af96}
#demo .fm5-model-main{display:grid;grid-template-columns:187px minmax(0,1fr);flex:1;min-height:0}
#demo .fm5-model-nav{background:#f5f8ff;border-right:1px solid #dae5f6;padding:8px 6px;overflow:hidden}
#demo .fm5-model-nav>strong{display:flex;justify-content:space-between;color:#4b6db3;font-size:9px;letter-spacing:.08em;padding:6px 7px 7px}#demo .fm5-model-nav>strong span{color:#96a7c3}
#demo .fm5-navigator-item{display:flex;align-items:center;gap:7px;padding:3px 8px;border-radius:5px;color:#6880a5;font-size:9px;line-height:1.1;white-space:nowrap}
#demo .fm5-navigator-item.is-on{background:#e5edff;color:#345bb3;font-weight:850}#demo .fm5-navigator-item span{color:#97a9c9;font-size:8px;min-width:15px}
#demo .fm5-model-sheet{min-width:0;overflow:hidden;display:flex;flex-direction:column}
#demo .fm5-model-tabs{height:32px;border-bottom:1px solid #e6edf9;display:flex;gap:2px;align-items:center;padding:0 9px;white-space:nowrap;overflow:hidden}
#demo .fm5-model-tabs span{color:#8a9bb7;font-size:9px;font-weight:750;padding:9px 8px}#demo .fm5-model-tabs span.is-selected{color:#4165c4;border-bottom:2px solid #5578eb}
#demo .fm5-sheet-label{display:flex;justify-content:space-between;align-items:center;padding:8px 12px 6px}#demo .fm5-sheet-label strong{font-size:10px;color:#2f508e}#demo .fm5-sheet-label small{font-size:9px;color:#91a0b7}
#demo .fm5-sheet-scroller{flex:1;min-height:0;overflow:auto;margin:0 10px;border:1px solid #dce5f6;border-radius:6px}
#demo .fm5-sheet{border-collapse:collapse;width:100%;min-width:550px;font-size:9px;color:#38547e;font-variant-numeric:tabular-nums}
#demo .fm5-sheet th,#demo .fm5-sheet td{border-bottom:1px solid #e8edf7;border-right:1px solid #edf1fa;padding:5px 8px;text-align:right;white-space:nowrap;font-weight:700}
#demo .fm5-sheet th:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1;min-width:180px}
#demo .fm5-sheet thead th{background:#eaf0fc;color:#5672aa;font-size:9px;font-weight:900}#demo .fm5-sheet thead th:first-child{background:#eaf0fc}
#demo .fm5-sheet tbody tr:nth-child(even) td,#demo .fm5-sheet tbody tr:nth-child(even) th{background:#fafbff}
#demo .fm5-sheet tbody tr.fm5-sheet-strong td,#demo .fm5-sheet tbody tr.fm5-sheet-strong th{background:#edf3ff;color:#335bb0;font-weight:900}
#demo .fm5-sheet tbody tr.fm5-sheet-profit td,#demo .fm5-sheet tbody tr.fm5-sheet-profit th{background:#e9f8f3;color:#0e987d;font-weight:900}
#demo .fm5-model-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 10px}
#demo .fm5-model-kpis>div{background:#f4f7ff;border:1px solid #dfe7f7;border-radius:6px;padding:6px 10px;min-width:0}#demo .fm5-model-kpis small{display:block;font-size:8px;letter-spacing:.06em;font-weight:900;color:#8094b6}#demo .fm5-model-kpis b{display:block;font-size:13px;color:#2a54ac;white-space:nowrap;margin-top:4px}#demo .fm5-model-kpis em{font-style:normal;font-size:9px;color:#7b92b2}
#demo .fm5-stage-caption{min-height:35px;padding:10px 6px 4px;display:flex;align-items:center;color:#6e80a0;font-size:11px}
#demo .fm5-caption{display:none;gap:7px}#demo .fm5-caption b{font-weight:900;color:#3f66b8;margin-right:7px}#demo[data-phase=dialogue] [data-caption=dialogue],#demo[data-phase=llm] [data-caption=llm],#demo[data-phase=engine] [data-caption=engine],#demo[data-phase=blocks] [data-caption=blocks],#demo[data-phase=complete] [data-caption=complete]{display:block}
#demo .fm5-bottom{display:flex;align-items:center;gap:14px;margin-top:4px;padding:0 3px 3px}
#demo .fm5-sequence-state{color:#6b85ac;min-width:125px;font-size:10px;font-weight:830}#demo .fm5-progress{flex:1;height:5px;min-width:60px;border-radius:8px;background:#d8e4f7;overflow:hidden}
#demo .fm5-progress i{display:block;width:0;height:100%;border-radius:8px;background:linear-gradient(90deg,#4969ed,#8c79ee,#17b59c);transition:width .2s linear}
#demo .fm5-controls{display:flex;align-items:center;gap:7px}#demo .fm5-control{border:1px solid #cddbf3;border-radius:9px;color:#4263af;background:#fff;padding:9px 11px;white-space:nowrap;font-size:10px;font-weight:850;cursor:pointer}#demo .fm5-forward{background:#edf3ff}
#demo .fm5-disclaimer{font-size:9px!important;color:#8999b2;text-align:center;margin-top:9px;line-height:1.5}
@keyframes fm5-rise{from{opacity:0;transform:translate3d(0,15px,0) scale(.97);filter:blur(3px)}to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}}
@keyframes fm5-scene-in{from{opacity:.4;transform:scale(.988)}to{opacity:1;transform:scale(1)}}
@keyframes fm5-breathe{0%,100%{opacity:.45;transform:scale(.95)}50%{opacity:1;transform:scale(1.08)}}
@keyframes fm5-dot{from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:translateY(-3px)}}
@media(max-width:980px){#demo .fm5-workspace{height:454px}#demo .fm5-scene{padding:12px}#demo .fm5-chat-frame,#demo .fm5-dialogue-side{padding:11px}#demo .fm5-llm-stage{grid-template-columns:1fr 130px 1fr;gap:9px}#demo .fm5-llm-input,#demo .fm5-llm-output{padding:12px}#demo .fm5-llm-symbol{width:65px;height:65px;font-size:34px}#demo .fm5-module-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}#demo .fm5-module{min-height:81px;padding:8px 6px}#demo .fm5-module b{font-size:9px}#demo .fm5-stage-title strong{font-size:14px}}
@media(max-width:700px){
#demo .fm5-head{gap:7px}#demo .fm5-head .workflow-heading{font-size:10px;flex-wrap:wrap}#demo .fm5-head .workflow-heading small{font-size:8px}
#demo .fm5-tabs{gap:3px;padding:3px}#demo .fm5-tab{flex-direction:column;gap:2px;padding:7px 3px;white-space:normal;line-height:1.15;text-align:center;font-size:8px}#demo .fm5-tab .fm5-tab-num{font-size:8px}
#demo .fm5-stage{padding:6px!important;border-radius:12px}#demo .fm5-window-top{height:30px;padding:0 8px;gap:8px}#demo .fm5-window-top strong{font-size:9px}#demo .fm5-window-subtitle{display:none}#demo .fm5-indicator{font-size:8px}
#demo .fm5-workspace{height:505px}#demo .fm5-scene{padding:9px}
#demo .fm5-dialogue{grid-template-columns:1fr;gap:6px;grid-template-rows:260px 1fr}#demo .fm5-dialogue-transfer{display:none}
#demo .fm5-panel-eyebrow{gap:2px;margin-bottom:2px}#demo .fm5-panel-eyebrow span{font-size:7px}#demo .fm5-panel-eyebrow b{font-size:11px}
#demo .fm5-chat-frame{gap:5px;padding:9px}#demo .fm5-chatrow{padding:6px 8px;border-radius:8px}#demo .fm5-chatrow small{font-size:7px;margin-bottom:2px}#demo .fm5-chatrow p{font-size:9px;line-height:1.28}#demo .fm5-chat-bottom{font-size:8px}
#demo .fm5-dialogue-side{padding:8px;display:block}#demo .fm5-dialogue-side .fm5-panel-eyebrow{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:5px}#demo .fm5-dialogue-side .fm5-panel-eyebrow b{font-size:9px}
#demo .fm5-extract-chip{display:inline-flex;vertical-align:top;gap:4px;padding:5px 6px;margin:0 3px 5px 0}#demo .fm5-extract-chip span{font-size:8px}#demo .fm5-extract-chip b{font-size:8px}#demo .fm5-confirm{font-size:8px}
#demo .fm5-stage-title{flex-direction:column;align-items:flex-start;gap:4px;margin:2px 0 10px}#demo .fm5-stage-title span{font-size:8px}#demo .fm5-stage-title strong{font-size:14px}
#demo .fm5-llm-stage{grid-template-columns:1fr;grid-template-rows:96px 88px 148px;gap:7px;height:auto}
#demo .fm5-llm-input,#demo .fm5-llm-output{padding:8px}#demo .fm5-llm-input>small,#demo .fm5-llm-output>small{font-size:7px;margin-bottom:5px}#demo .fm5-tokens{gap:4px}#demo .fm5-token{padding:4px 5px;font-size:8px;border-radius:5px}
#demo .fm5-llm-core{flex-direction:row;gap:13px;justify-content:center}#demo .fm5-llm-halo{inset:0 20%}#demo .fm5-llm-symbol{width:47px;height:47px;font-size:25px;border-radius:15px;box-shadow:0 5px 22px #5977e955,0 0 0 5px #dfe6ff}#demo .fm5-llm-core>b{font-size:11px}#demo .fm5-llm-core>small,#demo .fm5-llm-beam{display:none}
#demo .fm5-llm-output{display:grid;grid-template-columns:1fr 1fr;gap:5px}#demo .fm5-llm-output>small{grid-column:1/-1}#demo .fm5-llm-map{margin:0;padding:5px;grid-template-columns:1fr 10px 1fr;gap:2px}#demo .fm5-llm-map span,#demo .fm5-llm-map b{font-size:8px}#demo .fm5-llm-map i{font-size:9px}
#demo .fm5-llm-footer{padding:6px;gap:6px;margin-top:10px;flex-wrap:wrap}#demo .fm5-llm-footer span{font-size:8px}
#demo .fm5-engine-body{grid-template-columns:1fr;grid-template-rows:295px 72px;gap:7px;height:auto}#demo .fm5-engine-stream{padding:7px}#demo .fm5-engine-top{height:22px;font-size:7px;gap:5px}#demo .fm5-engine-top em{font-size:7px}
#demo .fm5-fline{grid-template-columns:76px minmax(0,1fr) 73px;gap:4px;padding:4px 5px;height:29px;margin-bottom:4px}#demo .fm5-fname{font-size:6px}#demo .fm5-fline code{font-size:7px}#demo .fm5-fline b{font-size:7px}
#demo .fm5-engine-output{padding:7px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;align-items:center}#demo .fm5-engine-output>small,#demo .fm5-engine-check{display:none}#demo .fm5-engine-result{padding:6px}#demo .fm5-engine-result span{font-size:7px}#demo .fm5-engine-result strong{font-size:11px}
#demo .fm5-module-meta{font-size:9px;gap:7px;margin-bottom:9px;flex-wrap:wrap}#demo .fm5-module-meta small{font-size:8px;margin-left:0}#demo .fm5-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#demo .fm5-module{min-height:58px;padding:7px 6px;border-radius:8px}#demo .fm5-module b{font-size:8px}#demo .fm5-mod-glyph{font-size:7px;padding:2px 4px}#demo .fm5-module i{font-size:8px;top:5px;right:6px}#demo .fm5-module:after{display:none}
#demo .fm5-blocks-bottom{font-size:9px;margin-top:9px}#demo .fm5-bb-lines{display:none}
#demo .fm5-complete{padding:5px!important}#demo .fm5-model-toolbar{height:37px;padding:5px 8px}#demo .fm5-model-toolbar strong{font-size:10px}#demo .fm5-model-toolbar small{font-size:8px}#demo .fm5-model-save{font-size:7px}
#demo .fm5-model-main{grid-template-columns:80px minmax(0,1fr)}#demo .fm5-model-nav{padding:5px 3px}#demo .fm5-model-nav>strong{font-size:6px;letter-spacing:0;padding:4px 2px}#demo .fm5-navigator-item{font-size:7px;gap:3px;padding:3px 2px;white-space:normal}#demo .fm5-navigator-item span{font-size:6px;min-width:10px}
#demo .fm5-model-tabs{height:27px;padding:0 4px;gap:0}#demo .fm5-model-tabs span{font-size:7px;padding:8px 3px}
#demo .fm5-sheet-label{padding:7px 5px 5px}#demo .fm5-sheet-label strong{font-size:8px}#demo .fm5-sheet-label small{display:none}
#demo .fm5-sheet-scroller{margin:0 3px}#demo .fm5-sheet{font-size:8px;min-width:450px}#demo .fm5-sheet th,#demo .fm5-sheet td{padding:5px 6px}#demo .fm5-sheet th:first-child{min-width:145px}
#demo .fm5-model-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:5px 3px}#demo .fm5-model-kpis>div{padding:4px}#demo .fm5-model-kpis>div:last-child{display:none}#demo .fm5-model-kpis small{font-size:6px}#demo .fm5-model-kpis b{font-size:10px;margin-top:2px}
#demo .fm5-stage-caption{font-size:9px;line-height:1.35;min-height:40px;padding:7px 2px 3px}
#demo .fm5-bottom{gap:6px;flex-wrap:wrap}#demo .fm5-sequence-state{font-size:9px;min-width:110px}#demo .fm5-controls{justify-content:space-between;width:100%}#demo .fm5-control{font-size:9px;padding:8px 10px}
#demo .fm5-disclaimer{font-size:8px!important}
}
@media(max-width:360px){#demo .fm5-workspace{height:540px}#demo .fm5-dialogue{grid-template-rows:284px 1fr}#demo .fm5-chatrow p{font-size:8.5px}#demo .fm5-module{min-height:63px}#demo .fm5-fline{grid-template-columns:69px minmax(0,1fr) 64px}}
@media(prefers-reduced-motion:reduce){#demo .fm5-rise,#demo .fm5-scene{animation:none!important;opacity:1!important;transform:none!important}#demo .fm5-llm-halo,#demo .fm5-typing i{animation:none!important}}

@media(max-width:700px){
#demo .fm5-model-main{display:flex;flex-direction:column;min-height:0}
#demo .fm5-model-nav{flex:none;display:flex;align-items:center;gap:4px;height:44px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:4px 5px;border-right:0;border-bottom:1px solid #dfe7f6;scrollbar-width:thin}
#demo .fm5-model-nav>strong{min-width:76px;display:flex;align-items:center;padding:3px;flex:none;font-size:7px}
#demo .fm5-navigator-item{flex:none;white-space:nowrap;font-size:8px;border:1px solid #dce6f5;padding:6px 7px;background:#fff}
#demo .fm5-navigator-item span{font-size:7px;min-width:auto}
#demo .fm5-model-sheet{flex:1;min-height:0}
#demo .fm5-sheet-scroller{overflow-x:auto;overflow-y:auto}
#demo .fm5-sheet{min-width:590px;font-size:9px}
#demo .fm5-sheet th:first-child{min-width:155px}
#demo .fm5-model-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
#demo .fm5-model-kpis>div:last-child{display:block}
#demo .fm5-model-kpis small{font-size:6px}#demo .fm5-model-kpis b{font-size:10px}
}
@media(max-width:700px){#demo .fm5-workspace{height:523px}#demo .fm5-sheet-label::after{content:'⇆ Листайте месяцы';font-size:7px;color:#718ac0;font-weight:750}}
@media(max-width:360px){#demo .fm5-workspace{height:553px}}

/* Hero Motion V3: cinematic calculation waves + authentic product reveal. Scoped to first demo. */
#demo.fm5-workflow{--fm6-bright:#4e6ffc;--fm6-sea:#16b29e}
#demo .fm6-engine,#demo .fm6-blocks,#demo .fm6-complete{padding:17px 21px!important}
#demo .fm6-kicker{display:flex;align-items:center;gap:12px;margin-bottom:10px;color:#5978b9;font-size:9px;font-weight:950;letter-spacing:.075em}
#demo .fm6-kicker b{color:#234682;font-size:15px;letter-spacing:-.025em}
#demo .fm6-kicker em{margin-left:auto;font-size:8px;font-weight:800;font-style:normal;color:#91a4c5}
#demo .fm6-engine-layout{height:calc(100% - 87px);display:grid;grid-template-columns:188px minmax(0,1fr);gap:12px}
#demo .fm6-input-rail{position:relative;border:1px solid #d7e3fc;border-radius:12px;background:linear-gradient(170deg,#fff,#f4f7ff);padding:13px 11px;box-shadow:0 8px 26px #3b5cba0a;display:flex;flex-direction:column;gap:11px;z-index:3}
#demo .fm6-cap{font-size:9px;letter-spacing:.12em;color:#8da1c3;font-weight:900}
#demo .fm6-input-rail>div:not(.fm6-rail-connection){display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8eefc;padding-bottom:9px;gap:6px}
#demo .fm6-input-rail small{font-size:9px;color:#637da9}#demo .fm6-input-rail b{font-size:12px;color:#3459bc}
#demo .fm6-rail-connection{margin-top:auto;font-size:9px;letter-spacing:.05em;font-weight:800;color:#3f62bb;border-radius:7px;background:#e9f1ff;padding:10px 6px;display:flex;gap:3px;align-items:center;justify-content:center}
#demo .fm6-rail-connection span{animation:fm6-nudge .85s linear infinite;font-size:16px}
#demo .fm6-math-field{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 55% 48%,#d7e4ff 0%,#edf3ff 45%,#f8faff 84%);border:1px solid #d2e1ff;border-radius:14px;perspective:700px}
#demo .fm6-math-field:before{content:"";position:absolute;inset:0;opacity:.38;background-image:linear-gradient(90deg,#82a5f117 1px,transparent 1px),linear-gradient(#82a5f117 1px,transparent 1px);background-size:23px 23px;transform:perspective(400px) rotateX(4deg);pointer-events:none}
#demo .fm6-math-halo{position:absolute;inset:6% 9%;background:radial-gradient(ellipse at center,#b2c8ffa6,transparent 67%);filter:blur(24px);animation:fm6-breathe 1.65s ease-in-out infinite;z-index:-1}
#demo .fm6-math-mesh{position:absolute;inset:8%;border-radius:50%;border:1px solid #7fa4f227;box-shadow:0 0 0 24px #94acff09,0 0 0 52px #94acff08;animation:fm6-spin 19s linear infinite;opacity:.8}
#demo .fm6-rain{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#demo .fm6-rain>span{position:absolute;left:calc(4% + var(--col) * 12.5%);top:-60%;height:115%;font:700 11px/1.9 ui-monospace,Consolas,monospace;color:#5b84d2;opacity:.17;writing-mode:vertical-rl;letter-spacing:.42em;animation:fm6-rain 3.4s linear var(--tm) infinite;white-space:nowrap}
#demo .fm6-rays{position:absolute;inset:0;pointer-events:none}
#demo .fm6-rays i{position:absolute;left:12%;right:12%;top:25%;height:1px;background:linear-gradient(90deg,transparent,#4f78f593,transparent);transform-origin:center;animation:fm6-ray 1.7s ease-in-out infinite}
#demo .fm6-rays i:nth-child(2){top:46%;animation-delay:.34s}#demo .fm6-rays i:nth-child(3){top:68%;animation-delay:.65s}#demo .fm6-rays i:nth-child(4){top:81%;animation-delay:.91s}
#demo .fm6-waves{position:absolute;inset:0}
#demo .fm6-wave{position:absolute;inset:0;opacity:0;transform:translateY(17px) scale(.96);filter:blur(8px);transition:opacity .37s ease,filter .45s,transform .56s cubic-bezier(.15,.8,.23,1);pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column}
#demo[data-phase=engine][data-wave="1"] .fm6-wave-1,#demo[data-phase=engine][data-wave="2"] .fm6-wave-2,#demo[data-phase=engine][data-wave="3"] .fm6-wave-3,#demo[data-phase=engine][data-wave="4"] .fm6-wave-4{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
#demo .fm6-wave-label{position:absolute;top:12%;font-size:9px;letter-spacing:.18em;font-weight:900;color:#5476b9}
#demo .fm6-major{position:relative;max-width:97%;font:700 clamp(17px,1.95vw,26px)/1.35 ui-monospace,'SFMono-Regular',Consolas,monospace;color:#1f4fa8;text-align:center;text-shadow:0 0 24px #b9d2ff;letter-spacing:-.055em;white-space:nowrap;animation:fm6-mainflash 1.45s ease-in-out infinite}
#demo .fm6-major::before,#demo .fm6-major::after{content:"";display:block;width:30%;height:1px;margin:11px auto;background:linear-gradient(90deg,transparent,#6589fc,transparent)}
#demo .fm6-satellite{position:absolute;font:650 clamp(10px,1.05vw,13px)/1.2 ui-monospace,Consolas,monospace;letter-spacing:-.035em;color:#426cac;opacity:.83;white-space:nowrap;animation:fm6-satellite 1.6s ease-in-out infinite;filter:drop-shadow(0 0 6px #dbe9ff)}
#demo .fm6-sat-1{left:4%;top:24%;animation-delay:.2s}#demo .fm6-sat-2{right:4%;top:67%;animation-delay:.58s}#demo .fm6-sat-3{left:13%;bottom:15%;animation-delay:.93s}
#demo .fm6-wave-caption{position:absolute;bottom:6%;font-size:10px;color:#3c60a7;font-weight:850;letter-spacing:.018em;text-align:center}
#demo .fm6-wave-light{position:absolute;left:45%;top:7%;height:80%;width:13%;pointer-events:none;background:linear-gradient(90deg,transparent,#d2e2ff9c,transparent);transform:skew(-17deg) translateX(-450%);animation:fm6-sweep 2.4s ease-in-out infinite;mix-blend-mode:screen}
#demo .fm6-compute-label{position:absolute;top:10px;right:12px;display:flex;gap:6px;align-items:center;color:#476eaf;font-size:8px;font-weight:850;letter-spacing:.06em;z-index:3}
#demo .fm6-compute-label i{height:6px;width:6px;border-radius:50%;background:#12aa97;box-shadow:0 0 0 4px #15a99617}
#demo .fm6-compute-label span{color:#13aa95;animation:fm6-breathe 1s infinite}
#demo .fm6-chain{height:35px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;color:#3b62b1;font-size:9px;font-weight:900}
#demo .fm6-chain span{border:1px solid #d8e5fe;padding:6px 11px;border-radius:15px;background:#fff;box-shadow:0 4px 12px #3d65c40b;white-space:nowrap}
#demo .fm6-chain i{display:block;width:30px;height:2px;background:linear-gradient(90deg,#9ab3f4,#4a74ed);position:relative;flex-shrink:1}
#demo .fm6-chain i:after{content:"";position:absolute;right:0;top:-2px;width:6px;height:6px;border-right:2px solid #5d7de9;border-top:2px solid #5d7de9;transform:rotate(45deg)}
#demo .fm6-assembly{position:relative;height:calc(100% - 65px);border-radius:13px;border:1px solid #d5e3fa;overflow:hidden;background:radial-gradient(ellipse at 50% 42%,#d9e8ff,#f5f8ff 73%)}
#demo .fm6-assembly:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(90deg,#80a1e315 1px,transparent 1px),linear-gradient(#80a1e315 1px,transparent 1px);background-size:24px 24px}
#demo .fm6-assembly-beam{position:absolute;inset:12% 25%;background:radial-gradient(circle,#a4bcff8a,transparent 68%);filter:blur(19px);animation:fm6-breathe 1.4s ease-in-out infinite}
#demo .fm6-module-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;height:100%;padding:14px}
#demo .fm6-module{min-width:0;position:relative;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #d5e3fb;border-radius:10px;padding:10px;background:linear-gradient(145deg,#fff,#f1f6ff);box-shadow:0 8px 18px #3456a50b;opacity:.08;filter:blur(5px);transform:translateY(22px) scale(.8);transition:opacity .42s,filter .42s,transform .65s cubic-bezier(.18,.85,.17,1),box-shadow .42s}
#demo .fm6-module small{font-size:9px;color:#7993c1;font-weight:950}
#demo .fm6-module b{font-size:10px;color:#3155a0;line-height:1.16;font-weight:830}
#demo .fm6-module span{position:absolute;right:9px;top:7px;color:#16a98f;font-size:11px;font-weight:900}
#demo[data-phase=blocks][data-batch="1"] .fm6-module[data-batch="1"],#demo[data-phase=blocks][data-batch="2"] .fm6-module[data-batch="1"],#demo[data-phase=blocks][data-batch="2"] .fm6-module[data-batch="2"],#demo[data-phase=blocks][data-batch="3"] .fm6-module:not([data-batch="4"]),#demo[data-phase=blocks][data-batch="4"] .fm6-module{opacity:1;transform:translateY(0) scale(1);filter:blur(0);box-shadow:0 10px 26px #335ec41a;transition-delay:var(--dl)}
#demo[data-manual=yes] .fm6-module{transition-delay:0s!important}
#demo .fm6-assembly-bottom{display:flex;gap:9px;align-items:center;justify-content:center;color:#3d63a6;font-size:10px;font-weight:800;margin-top:10px}
#demo .fm6-assembly-bottom strong{color:#12a38c}
#demo .fm6-pulse-dot{width:7px;height:7px;border-radius:50%;background:#16b49a;box-shadow:0 0 0 5px #def7ef;animation:fm6-breathe 1.3s infinite}
#demo .fm6-complete{display:flex!important;flex-direction:column;gap:6px}
#demo:not([data-phase=complete]) .fm6-complete{display:none!important}
#demo .fm6-finish-top{display:flex;justify-content:space-between;gap:11px;align-items:center;min-height:27px}
#demo .fm6-finish-top>span{font-size:9px;color:#5777b8;font-weight:900;letter-spacing:.12em;white-space:nowrap}
#demo .fm6-finish-top>strong{font-size:16px;color:#254882;letter-spacing:-.035em}
#demo .fm6-finish-top>div{margin-left:auto;font-size:8px;color:#43846c;font-weight:850;white-space:nowrap}
#demo .fm6-finish-top i{font-style:normal;color:#0dab93}
#demo .fm6-proof-stage{height:calc(100% - 70px);min-height:0;overflow:hidden;position:relative;border:1px solid #d0ddf4;border-radius:10px;background:white;box-shadow:0 12px 30px #3766c11c}
#demo .fm6-real-screen{display:block;height:100%;width:100%;opacity:1;transform:scale(1.04);animation:fm6-proof 2.1s cubic-bezier(.15,.8,.2,1) both}
#demo .fm6-real-screen img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top}
#demo .fm6-reveal-sweep{position:absolute;pointer-events:none;inset:0;background:linear-gradient(105deg,transparent 35%,#eef4ffab 49%,transparent 62%);transform:translateX(-150%);animation:fm6-screenshot-sweep 2.1s .5s 1 both}
#demo .fm6-proof-footer{min-height:29px;display:flex;justify-content:space-between;align-items:center;gap:8px}
#demo .fm6-proof-footer span{font-size:10px;color:#59759e;font-weight:780}
#demo[data-playing=no][data-manual=no] .fm6-rain>span,#demo[data-playing=no][data-manual=no] .fm6-rays i,#demo[data-playing=no][data-manual=no] .fm6-math-halo,#demo[data-playing=no][data-manual=no] .fm6-major,#demo[data-playing=no][data-manual=no] .fm6-satellite,#demo[data-playing=no][data-manual=no] .fm6-wave-light,#demo[data-playing=no][data-manual=no] .fm6-assembly-beam{animation-play-state:paused!important}
@keyframes fm6-nudge{0%{transform:translateX(-4px);opacity:.5}75%,100%{transform:translateX(4px);opacity:1}}
@keyframes fm6-breathe{0%,100%{opacity:.48;transform:scale(.93)}50%{opacity:1;transform:scale(1.07)}}
@keyframes fm6-rain{from{transform:translateY(-55%)}to{transform:translateY(120%)}}
@keyframes fm6-ray{0%{transform:scaleX(.15);opacity:.1}50%{transform:scaleX(1);opacity:.7}100%{transform:scaleX(.4);opacity:.1}}
@keyframes fm6-spin{to{transform:rotate(360deg)}}
@keyframes fm6-mainflash{0%,100%{opacity:.75;filter:blur(0)}35%{opacity:1;filter:drop-shadow(0 0 5px #bdcbff)}}
@keyframes fm6-satellite{0%,100%{transform:translateY(5px);opacity:.36}50%{transform:translateY(-7px);opacity:.9}}
@keyframes fm6-sweep{0%{transform:skew(-17deg) translateX(-520%);opacity:.25}85%,100%{transform:skew(-17deg) translateX(750%);opacity:.7}}
@keyframes fm6-proof{from{opacity:0;transform:scale(.91);filter:blur(10px)}to{opacity:1;transform:scale(1);filter:none}}
@keyframes fm6-screenshot-sweep{from{transform:translateX(-180%)}to{transform:translateX(180%)}}
@media(max-width:1000px){#demo .fm6-engine-layout{grid-template-columns:143px minmax(0,1fr)}#demo .fm6-satellites{font-size:10px}#demo .fm6-module-grid{gap:6px;padding:9px}#demo .fm6-module{padding:6px}#demo .fm6-kicker em{display:none}}
@media(max-width:700px){
 #demo .fm6-engine,#demo .fm6-blocks,#demo .fm6-complete{padding:9px!important}
 #demo .fm6-kicker{flex-direction:column;gap:3px;align-items:flex-start;margin-bottom:5px;font-size:8px}
 #demo .fm6-kicker b{font-size:12px}
 #demo .fm6-engine-layout{height:calc(100% - 80px);grid-template-columns:1fr;grid-template-rows:53px minmax(0,1fr);gap:6px}
 #demo .fm6-input-rail{display:flex;flex-direction:row;align-items:center;padding:6px;gap:4px;overflow:hidden}
 #demo .fm6-input-rail>.fm6-cap,#demo .fm6-rail-connection{display:none}
 #demo .fm6-input-rail>div:not(.fm6-rail-connection){flex:1;min-width:0;border:0;padding:2px 3px;margin:0;display:flex;flex-direction:column;gap:4px;text-align:center}
 #demo .fm6-input-rail small{font-size:7px;white-space:nowrap}#demo .fm6-input-rail b{font-size:10px}
 #demo .fm6-math-field{min-height:0}
 #demo .fm6-wave-label{font-size:8px;top:15%}
 #demo .fm6-major{font-size:clamp(9px,2.9vw,14px);white-space:normal;max-width:96%;line-height:1.4}
 #demo .fm6-satellite{font-size:8px;max-width:92%;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
 #demo .fm6-sat-1{top:22%;left:7%}#demo .fm6-sat-2{top:68%;right:6%;text-align:right}#demo .fm6-sat-3{bottom:14%;left:6%}
 #demo .fm6-wave-caption{font-size:8px;bottom:5%;width:96%}
 #demo .fm6-compute-label{font-size:7px;top:5px;right:7px}
 #demo .fm6-chain{height:30px;gap:3px;margin-top:3px}
 #demo .fm6-chain span{font-size:7px;padding:5px 4px}
 #demo .fm6-chain i{width:9px}
 #demo .fm6-assembly{height:calc(100% - 78px)}
 #demo .fm6-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:5px;padding:7px}
 #demo .fm6-module{padding:5px;border-radius:6px}
 #demo .fm6-module small{font-size:7px}#demo .fm6-module b{font-size:8px}#demo .fm6-module span{right:4px;top:3px;font-size:8px}
 #demo .fm6-assembly-bottom{font-size:8px;margin-top:4px}
 #demo .fm6-finish-top{flex-wrap:wrap;min-height:31px;gap:1px 7px}
 #demo .fm6-finish-top>strong{font-size:11px}
 #demo .fm6-finish-top>span{font-size:7px}
 #demo .fm6-finish-top>div{font-size:7px;margin-left:0}
 #demo .fm6-proof-stage{height:calc(100% - 77px)}
 #demo .fm6-real-screen img{object-position:left top}
 #demo .fm6-proof-footer{gap:4px}
 #demo .fm6-proof-footer span{font-size:7px}
}
@media(max-width:355px){#demo .fm6-module b{font-size:7px}#demo .fm6-satellite{font-size:7px}#demo .fm6-chain span{font-size:6px}#demo .fm6-proof-footer span{font-size:6px}}
@media(prefers-reduced-motion:reduce){#demo .fm6-engine *,#demo .fm6-blocks *,#demo .fm6-complete *{animation:none!important;transition:none!important}}

/* V4 Clarity: narrative, visually linked pipeline. No global CSS rules. */
#demo .fm5-workspace{height:520px}
#demo .fm5-scene{padding-top:58px!important}
#demo .fm8-journey{position:absolute;inset:0 0 auto;z-index:15;height:38px;background:#fffefaed;border-bottom:1px solid #dfe9fa;display:flex;align-items:center;justify-content:center;gap:9px;padding:3px 10px;pointer-events:none;box-shadow:0 3px 14px #3f61b40a}
#demo .fm8-journey span{font-size:10px;font-weight:850;color:#7890b5;padding:5px 8px;white-space:nowrap;border-radius:7px;transition:background .4s,color .4s}#demo .fm8-journey i{font-size:11px;font-style:normal;color:#9eb4d6}
#demo[data-phase=dialogue] .fm8-journey [data-j=dialogue],#demo[data-phase=llm] .fm8-journey [data-j=llm],#demo[data-phase=engine] .fm8-journey [data-j=engine],#demo[data-phase=blocks] .fm8-journey [data-j=blocks],#demo[data-phase=complete] .fm8-journey [data-j=complete]{background:#e6edff;color:#315ad5;box-shadow:inset 0 0 0 1px #c7d7ff}
#demo .fm8-dialogue{display:none;grid-template-columns:minmax(0,1.3fr) 35px minmax(0,.95fr);gap:9px;overflow:hidden}
#demo[data-phase=dialogue] .fm8-dialogue{display:grid}
#demo .fm8-chat,#demo .fm8-taken{height:100%;min-height:0;border:1px solid #dbe6fa;border-radius:13px;background:#fff;padding:13px 14px;display:flex;flex-direction:column;gap:9px;min-width:0;box-shadow:0 8px 25px #425db80b}
#demo .fm8-taken{background:linear-gradient(150deg,#f5f8ff,#eaf1ff)}
#demo .fm8-heading{display:flex;flex-direction:column;gap:4px}#demo .fm8-heading>span{font-size:9px;letter-spacing:.08em;color:#5776b4;font-weight:950}#demo .fm8-heading>strong{font-size:17px;line-height:1.18;color:#294a8c;letter-spacing:-.034em}
#demo .fm8-intro{border-radius:9px;background:#eaf1ff;border:1px solid #d2e0fa;font-size:11px;padding:10px;color:#33528b}#demo .fm8-intro b{color:#4269d7}
#demo .fm8-accepted{display:none;background:#ebfaf5;border:1px solid #cbece0;color:#3f7791;padding:7px 9px;font-size:10px;border-radius:7px}#demo .fm8-accepted b{color:#159b84}
#demo[data-dialog-step="2"] .fm8-accepted-1,#demo[data-dialog-step="3"] .fm8-accepted-2,#demo[data-dialog-step="4"] .fm8-accepted-2{display:block}
#demo .fm8-q{display:none;min-height:0;flex:1;border:1px solid #dce5f8;border-radius:11px;background:#fbfdff;padding:13px 14px;flex-direction:column;gap:12px;animation:fm8-enter .5s ease both}
#demo .fm8-q strong{font-size:15px;line-height:1.3;color:#25498b}#demo .fm8-q small{font-size:10px;font-weight:750;color:#7288ab}
#demo .fm8-speaker{font-size:10px;color:#526ee4;font-weight:900}
#demo .fm8-picks{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
#demo .fm8-picks button{font-size:11px;line-height:1.2;font-weight:850;color:#4265be;background:#edf2ff;border:1px solid #cadafc;border-radius:9px;padding:10px 11px;cursor:pointer;box-shadow:0 3px 9px #4769a412;position:relative;animation:fm8-chip 1.4s ease-in-out infinite}
#demo .fm8-picks button:nth-child(2){animation-delay:.23s}#demo .fm8-picks button:nth-child(3){animation-delay:.47s}#demo .fm8-picks button span{color:#10aa8f}
#demo[data-dialog-step="1"] .fm8-q1,#demo[data-dialog-step="2"] .fm8-q2,#demo[data-dialog-step="3"] .fm8-q3,#demo[data-dialog-step="4"] .fm8-q4{display:flex}
#demo .fm8-done{padding:16px;border:1px solid #b6e5d7;background:#e8faf4;color:#129078;border-radius:9px;font-weight:850;font-size:12px}
#demo .fm8-chat-footer{display:flex;gap:7px;align-items:center;font-size:10px;color:#6a82aa;font-weight:750}#demo .fm8-cursor{font-size:10px;color:#4a6ef5;animation:fm8-pulse 1.1s ease infinite}
#demo .fm8-transfer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#6385e4}#demo .fm8-transfer span{font-size:30px;animation:fm8-shuttle .95s ease-in-out infinite}#demo .fm8-transfer small{writing-mode:vertical-rl;letter-spacing:.14em;font-size:7px;text-align:center;font-weight:900}
#demo .fm8-taken-group{display:flex;flex-direction:column;gap:6px;opacity:.18;filter:grayscale(1);transform:translateX(-9px);transition:opacity .5s,transform .55s,filter .45s}
#demo .fm8-taken-group>div{display:flex;justify-content:space-between;align-items:center;gap:7px;background:white;border:1px solid #d9e6fb;border-radius:7px;padding:7px 10px}
#demo .fm8-taken-group span{font-size:10px;color:#748aaf}#demo .fm8-taken-group b{font-size:11px;white-space:nowrap;color:#2853b6}
#demo[data-dialog-step="2"] .fm8-taken-group[data-from="2"],#demo[data-dialog-step="3"] .fm8-taken-group:not([data-from="4"]),#demo[data-dialog-step="4"] .fm8-taken-group{opacity:1;filter:none;transform:none}
#demo .fm8-taken-status{margin-top:auto;font-size:10px;color:#5576b1;font-weight:800;display:flex;justify-content:space-between}#demo .fm8-taken-status b{color:#16a48d}
#demo .fm8-scene-heading{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:13px;gap:12px}
#demo .fm8-scene-heading strong{font-size:17px}
#demo .fm8-analyze-layout{height:calc(100% - 98px);display:grid;grid-template-columns:minmax(0,1fr) 185px minmax(0,1.15fr);gap:11px;align-items:stretch}
#demo .fm8-analysis-input,#demo .fm8-analysis-output{min-width:0;background:#fff;border:1px solid #dbe7fa;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:10px;box-shadow:0 8px 23px #315abd0d}
#demo .fm8-smallcap{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#6987bb;letter-spacing:.07em;font-weight:950}#demo .fm8-smallcap i{font-style:normal;color:#16a08a}
#demo .fm8-token-fall{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;padding-top:5px}#demo .fm8-token-fall>span{font-size:10px;color:#3d61b0;background:#eef3ff;border:1px solid #d8e5ff;padding:9px;border-radius:8px;font-weight:800;animation:fm8-enter .45s both}
#demo .fm8-token-fall>span:nth-child(2){animation-delay:.12s}#demo .fm8-token-fall>span:nth-child(3){animation-delay:.23s}#demo .fm8-token-fall>span:nth-child(4){animation-delay:.36s}#demo .fm8-token-fall>span:nth-child(5){animation-delay:.48s}#demo .fm8-token-fall>span:nth-child(6){animation-delay:.60s}#demo .fm8-token-fall>span:nth-child(7){animation-delay:.72s}
#demo .fm8-card-bottom{margin-top:auto;border-top:1px solid #e8edf8;padding-top:9px;font-size:10px;color:#728bb0;display:flex;justify-content:space-between;font-weight:800}#demo .fm8-card-bottom b{color:#15a08a}
#demo .fm8-analysis-core{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-width:0;position:relative}
#demo .fm8-core-part{width:100%;border-radius:13px;border:1px solid #c9d7fa;box-shadow:0 7px 22px #4468c424;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:9px 7px;background:linear-gradient(145deg,#fff,#edf2ff)}
#demo .fm8-core-part>b{font-size:12px;color:#2d519c}#demo .fm8-core-part>span{font-size:9px;line-height:1.3;color:#6982ae}
#demo .fm8-orbit{width:36px;height:36px;border-radius:12px;background:linear-gradient(140deg,#526ff3,#8b79ed);color:white;font-size:25px;display:grid;place-items:center;box-shadow:0 6px 21px #647aee5a;animation:fm8-pulse 1.5s infinite}
#demo .fm8-methodicon{width:34px;height:34px;display:grid;place-items:center;color:#169e8c;font-size:29px;font-weight:900}
#demo .fm8-core-method{border-color:#c0e7de;background:linear-gradient(130deg,#f5fffc,#eaf8f7)}#demo .fm8-downstream{font-size:18px;line-height:1;color:#5d80e8;animation:fm8-shuttle 1.1s infinite}
#demo .fm8-analysis-output{background:linear-gradient(140deg,#fff,#f6f8ff)}
#demo .fm8-rule{border:1px solid #dbe5fb;background:#f3f7ff;border-radius:9px;padding:9px 10px;display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:8px;animation:fm8-enter .55s both}
#demo .fm8-rule:nth-of-type(2){animation-delay:.2s}#demo .fm8-rule:nth-of-type(3){animation-delay:.4s}#demo .fm8-rule:nth-of-type(4){animation-delay:.6s}#demo .fm8-rule:nth-of-type(5){animation-delay:.8s}
#demo .fm8-rule b{color:#3d61ad;font-size:11px}#demo .fm8-rule span{color:#5c739b;font-size:10px}
#demo .fm8-stage-conclusion{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:10px;font-size:10px;color:#5777ac;flex-wrap:wrap}
#demo .fm8-stage-conclusion>span{background:#edf3ff;padding:6px;border-radius:6px}#demo .fm8-stage-conclusion i{font-style:normal;color:#7791c1}
#demo .fm8-stage-conclusion strong{background:#e7f9f3;color:#148f7a;padding:7px 10px;border-radius:6px}
#demo .fm6-engine-layout{height:calc(100% - 88px)}#demo .fm8-engine-in{gap:10px}
#demo .fm6-wave-label{top:11%}#demo .fm6-major{position:absolute;top:40%;font-size:clamp(15px,1.7vw,24px)}
#demo .fm6-sat-1{top:23%;left:8%}#demo .fm6-sat-2{top:68%;right:8%}#demo .fm6-sat-3{bottom:13%;left:7%}
#demo .fm8-wave-result{position:absolute;top:56%;font-size:13px;font-weight:900;color:#0c967f;border-radius:9px;background:#e5faf38c;padding:7px 12px;text-align:center;box-shadow:0 0 24px #7fe5ca27}
#demo .fm6-wave-caption{bottom:3%}#demo .fm6-rain>span{opacity:.13}
#demo .fm6-assembly{height:calc(100% - 82px)}#demo .fm6-module b{font-size:10px}
#demo .fm6-proof-stage{height:calc(100% - 78px)}#demo .fm6-complete{padding-top:51px!important}
@keyframes fm8-enter{from{opacity:0;transform:translateY(14px);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
@keyframes fm8-shuttle{0%,100%{transform:translateX(-4px);opacity:.4}50%{transform:translateX(4px);opacity:1}}
@keyframes fm8-chip{0%,100%{box-shadow:0 3px 9px #4769a412}50%{box-shadow:0 0 0 4px #6788f01e,0 3px 12px #4769a425}}
@keyframes fm8-pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media(max-width:960px){#demo .fm8-journey{gap:3px}#demo .fm8-journey span{font-size:8px;padding:4px 3px}#demo .fm8-analyze-layout{grid-template-columns:1fr 145px 1.08fr;gap:7px}#demo .fm8-analysis-input,#demo .fm8-analysis-output{padding:9px}#demo .fm8-rule{grid-template-columns:78px 1fr;padding:7px;gap:4px}}
@media(max-width:700px){
 #demo .fm5-workspace{height:590px}#demo .fm5-scene{padding-top:54px!important}
 #demo .fm8-journey{height:42px;padding:4px 3px;gap:2px}#demo .fm8-journey span{font-size:7px;line-height:1.1;white-space:normal;text-align:center;max-width:22%;padding:5px 2px}#demo .fm8-journey i{font-size:8px}
 #demo .fm8-dialogue{grid-template-columns:1fr;grid-template-rows:290px minmax(0,1fr);gap:7px}
 #demo .fm8-transfer{display:none}#demo .fm8-chat,#demo .fm8-taken{padding:9px;gap:6px;border-radius:9px}
 #demo .fm8-heading>span{font-size:8px}#demo .fm8-heading>strong{font-size:12px}#demo .fm8-intro{font-size:9px;padding:7px}
 #demo .fm8-q{padding:8px;gap:7px}#demo .fm8-q strong{font-size:11px}#demo .fm8-q small{font-size:8px}#demo .fm8-speaker{font-size:8px}
 #demo .fm8-picks{gap:5px}#demo .fm8-picks button{font-size:9px;padding:7px}#demo .fm8-chat-footer{font-size:8px}
 #demo .fm8-taken-group{display:inline-flex;vertical-align:top;width:100%;gap:4px}#demo .fm8-taken-group>div{padding:4px 6px}
 #demo .fm8-taken-group span{font-size:8px}#demo .fm8-taken-group b{font-size:9px}
 #demo .fm8-taken-status{display:none}
 #demo .fm8-scene-heading{flex-direction:column;gap:4px;align-items:flex-start;margin-bottom:9px}#demo .fm8-scene-heading strong{font-size:12px}
 #demo .fm8-analyze-layout{height:calc(100% - 114px);grid-template-columns:1fr;grid-template-rows:95px 129px 180px;gap:7px}
 #demo .fm8-analysis-input,#demo .fm8-analysis-output{padding:8px;gap:5px}
 #demo .fm8-smallcap{font-size:8px}#demo .fm8-token-fall{gap:4px;padding:0}#demo .fm8-token-fall>span{font-size:8px;padding:4px}
 #demo .fm8-card-bottom{display:none}
 #demo .fm8-analysis-core{flex-direction:row;gap:9px}#demo .fm8-downstream{transform:rotate(-90deg);font-size:16px}
 #demo .fm8-core-part{flex:1;padding:7px;gap:3px}#demo .fm8-core-part>b{font-size:9px}#demo .fm8-core-part>span{font-size:7px}#demo .fm8-orbit,#demo .fm8-methodicon{width:25px;height:25px;font-size:20px}
 #demo .fm8-analysis-output{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px}#demo .fm8-analysis-output>.fm8-smallcap{grid-column:1/-1}
 #demo .fm8-rule{display:block;padding:7px}#demo .fm8-rule b{display:block;font-size:9px;margin-bottom:5px}#demo .fm8-rule span{font-size:8px}
 #demo .fm8-stage-conclusion{font-size:8px;gap:3px;margin-top:7px}#demo .fm8-stage-conclusion>span,#demo .fm8-stage-conclusion>strong{padding:4px}
 #demo .fm6-engine-layout{height:calc(100% - 91px)}#demo .fm6-major{font-size:clamp(13px,3vw,17px);white-space:normal;padding:0 9px;top:39%}
 #demo .fm8-wave-result{font-size:10px;top:54%;padding:6px;max-width:94%}#demo .fm6-sat-1{left:4%;top:25%}#demo .fm6-sat-2{right:4%;top:69%}#demo .fm6-sat-3{bottom:13%}
 #demo .fm6-assembly{height:calc(100% - 111px)}#demo .fm6-module-grid{gap:5px}#demo .fm6-module b{font-size:8px}#demo .fm6-assembly-bottom{min-height:30px}
 #demo .fm6-complete{padding-top:49px!important}#demo .fm6-finish-top{flex-wrap:wrap}#demo .fm6-finish-top strong{font-size:12px}#demo .fm6-proof-stage{height:calc(100% - 120px)}
}
@media(max-width:355px){#demo .fm8-journey span{font-size:6.5px}#demo .fm8-picks button{font-size:8px}#demo .fm8-analysis-output{grid-template-columns:1fr 1fr}#demo .fm8-rule span{font-size:7px}}
@media(prefers-reduced-motion:reduce){#demo .fm8-token-fall>span,#demo .fm8-rule,#demo .fm8-q,#demo .fm8-picks button{animation:none!important}}

/* HERO V5 — Q&A must be the recognizable source of calculated model blocks */
#demo .fm9-answer-strip{position:absolute;z-index:14;top:38px;left:0;right:0;height:29px;background:#f3f7ff;border-bottom:1px solid #dce8fb;display:flex;align-items:center;justify-content:center;gap:7px;padding:3px 8px;transition:opacity .4s}
#demo .fm9-answer-strip strong{font-size:9px;white-space:nowrap;color:#3f65b9}
#demo .fm9-answer-strip span{font-size:9px;color:#506f9e;padding:3px 7px;background:#fff;border:1px solid #dbe6f9;border-radius:6px;white-space:nowrap}
#demo .fm9-answer-strip span b{color:#2d55ae}
#demo[data-phase=dialogue] .fm9-answer-strip{opacity:0;pointer-events:none}
#demo .fm5-scene{padding-top:80px!important}
#demo .fm9-dialogue{display:none;grid-template-columns:minmax(0,1.34fr) 30px minmax(0,.98fr);gap:10px;padding-top:55px!important;overflow:hidden}
#demo[data-phase=dialogue] .fm9-dialogue{display:grid}
#demo .fm9-chat,#demo .fm9-created{min-width:0;min-height:0;height:100%;padding:11px 13px;display:flex;flex-direction:column;gap:7px;border:1px solid #dce6f8;border-radius:12px;background:#fff;box-shadow:0 10px 27px #4560ae0e;overflow:hidden}
#demo .fm9-created{background:linear-gradient(145deg,#f7faff,#edf4ff)}
#demo .fm9-dialogue .fm8-heading{gap:3px}#demo .fm9-dialogue .fm8-heading strong{font-size:15px}
#demo .fm9-opening{font-size:10px;color:#35578f;background:#edf3ff;border:1px solid #d5e2fa;border-radius:8px;padding:7px 9px;line-height:1.35}
#demo .fm9-opening b{color:#3469d4}
#demo .fm9-turn{display:none;min-width:0;border:1px solid #e0e9f9;border-radius:9px;background:#f8faff;padding:6px 9px;animation:fm8-enter .35s both}
#demo .fm9-question{display:flex;gap:7px;align-items:center;flex-wrap:wrap;line-height:1.25}
#demo .fm9-question span{font-size:9px;color:#506fd6;font-weight:850;white-space:nowrap}
#demo .fm9-question b{font-size:10px;color:#244677}
#demo .fm9-suggest{font-size:10px;color:#6781a7;line-height:1.3;margin-top:5px}
#demo .fm9-suggest strong{display:inline-block;color:#345bb3;background:#e8efff;border:1px solid #cddcff;padding:3px 6px;margin:2px;border-radius:5px;font-size:10px;animation:fm8-chip 1.25s ease-in-out infinite}
#demo .fm9-reply{display:none;margin-top:5px;font-size:10px;line-height:1.3;padding:6px 7px;background:#eaf9f3;color:#256b65;border:1px solid #c9ebdc;border-radius:6px;font-weight:730}
#demo .fm9-reply b{color:#138e7c}#demo .fm9-reply i{color:#14a18a;font-style:normal}
#demo[data-dialog-step="1"] .fm9-turn[data-q="1"],
#demo[data-dialog-step="2"] .fm9-turn[data-q="1"],#demo[data-dialog-step="2"] .fm9-turn[data-q="2"],
#demo[data-dialog-step="3"] .fm9-turn[data-q="1"],#demo[data-dialog-step="3"] .fm9-turn[data-q="2"],#demo[data-dialog-step="3"] .fm9-turn[data-q="3"],
#demo[data-dialog-step="4"] .fm9-turn,
#demo[data-dialog-step="5"] .fm9-turn{display:block}
#demo[data-dialog-step="1"] .fm9-turn[data-q="1"],#demo[data-dialog-step="2"] .fm9-turn[data-q="2"],#demo[data-dialog-step="3"] .fm9-turn[data-q="3"],#demo[data-dialog-step="4"] .fm9-turn[data-q="4"]{background:#f5f8ff;border-color:#b9ccfb;box-shadow:0 0 0 2px #e8edff}
#demo[data-dialog-step="2"] .fm9-turn[data-q="1"] .fm9-reply,
#demo[data-dialog-step="3"] .fm9-turn[data-q="1"] .fm9-reply,#demo[data-dialog-step="3"] .fm9-turn[data-q="2"] .fm9-reply,
#demo[data-dialog-step="4"] .fm9-turn[data-q="1"] .fm9-reply,#demo[data-dialog-step="4"] .fm9-turn[data-q="2"] .fm9-reply,#demo[data-dialog-step="4"] .fm9-turn[data-q="3"] .fm9-reply,
#demo[data-dialog-step="5"] .fm9-reply{display:block}
#demo[data-dialog-step="2"] .fm9-turn[data-q="1"] .fm9-suggest,
#demo[data-dialog-step="3"] .fm9-turn[data-q="1"] .fm9-suggest,#demo[data-dialog-step="3"] .fm9-turn[data-q="2"] .fm9-suggest,
#demo[data-dialog-step="4"] .fm9-turn:not([data-q="4"]) .fm9-suggest,
#demo[data-dialog-step="5"] .fm9-suggest{display:none}
#demo .fm9-chat-foot{margin-top:auto;display:flex;gap:6px;align-items:center;font-size:9px;color:#6881aa;font-weight:760}
#demo .fm9-cursor{height:7px;width:7px;flex:none;border-radius:50%;background:#4e75ef;animation:fm8-pulse 1.25s infinite}
#demo .fm9-transfer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#5580e7}
#demo .fm9-transfer i{font-size:27px;font-style:normal;animation:fm8-shuttle .8s infinite}
#demo .fm9-transfer span{font-size:7px;letter-spacing:.09em;writing-mode:vertical-rl;font-weight:900}
#demo .fm9-created-item{display:flex;justify-content:space-between;align-items:center;gap:7px;border-radius:9px;border:1px solid #dbe5f7;background:#fff;padding:10px 11px;opacity:.25;filter:grayscale(1);transition:opacity .45s,filter .4s,transform .4s;transform:translateY(5px)}
#demo .fm9-created-item small{display:block;font-size:10px;color:#7d90ae;line-height:1.3;margin-bottom:4px}
#demo .fm9-created-item b{font-size:13px;color:#2c57b0}
#demo .fm9-created-item>span{color:#0fa489;font-size:17px;font-weight:900}
#demo[data-dialog-step="2"] .fm9-created-item[data-answer="1"],
#demo[data-dialog-step="3"] .fm9-created-item[data-answer="1"],#demo[data-dialog-step="3"] .fm9-created-item[data-answer="2"],
#demo[data-dialog-step="4"] .fm9-created-item:not([data-answer="4"]),
#demo[data-dialog-step="5"] .fm9-created-item{opacity:1;filter:none;transform:none;box-shadow:0 5px 13px #4367bd15}
#demo .fm9-creation-status{display:flex;gap:8px;margin-top:auto;align-items:center;font-size:10px;font-weight:780;color:#6681aa}
#demo .fm9-creation-status span{color:#5472e6;font-size:16px;animation:fm8-pulse 1.2s infinite}
#demo .fm9-block-mapping{position:relative;z-index:5;display:flex;gap:7px;align-items:center;justify-content:center;margin:5px 0 7px;flex-wrap:wrap}
#demo .fm9-block-mapping>span{font-size:10px;color:#3c66ad;padding:6px 9px;background:#eff5ff;border:1px solid #d3e2ff;border-radius:7px;white-space:nowrap}
#demo .fm9-block-mapping b{color:#294e9b}
#demo .fm6-assembly{height:calc(100% - 127px)}
#demo .fm6-engine-layout{height:calc(100% - 103px)}
#demo .fm8-analyze-layout{height:calc(100% - 120px)}
#demo .fm6-proof-stage{height:calc(100% - 96px)}
@media(max-width:960px){#demo .fm9-dialogue .fm8-heading strong{font-size:13px}#demo .fm9-created-item{padding:7px}#demo .fm9-created-item b{font-size:11px}#demo .fm9-created-item small{font-size:9px}#demo .fm9-answer-strip{gap:3px}#demo .fm9-answer-strip span{font-size:8px;padding:3px}}
@media(max-width:700px){
 #demo .fm5-workspace{height:640px}
 #demo .fm9-answer-strip{top:42px;height:36px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px}
 #demo .fm9-answer-strip strong{display:none}#demo .fm9-answer-strip span{font-size:7px;line-height:1.2;padding:4px 2px;text-align:center;white-space:normal}
 #demo .fm5-scene{padding-top:88px!important}
 #demo .fm9-dialogue{grid-template-columns:1fr;grid-template-rows:355px minmax(0,1fr);gap:5px;padding-top:52px!important}
 #demo .fm9-chat,#demo .fm9-created{padding:7px;gap:4px}
 #demo .fm9-dialogue .fm8-heading strong{font-size:11px}
 #demo .fm9-opening{font-size:8px;padding:5px}
 #demo .fm9-turn{padding:4px 6px;border-radius:6px}
 #demo .fm9-question{gap:4px}#demo .fm9-question span{font-size:7px}#demo .fm9-question b{font-size:8.5px}
 #demo .fm9-suggest{font-size:8px;margin-top:3px}#demo .fm9-suggest strong{font-size:7px;padding:2px 3px}
 #demo .fm9-reply{font-size:8px;margin-top:3px;padding:4px 5px}#demo .fm9-chat-foot{font-size:7px}
 #demo .fm9-transfer{display:none}
 #demo .fm9-created{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr 1fr;gap:4px}
 #demo .fm9-created>.fm8-heading{grid-column:1/-1}#demo .fm9-created-item{padding:4px 5px;border-radius:6px}
 #demo .fm9-created-item b{font-size:9px}#demo .fm9-created-item small{font-size:7px;margin-bottom:2px}
 #demo .fm9-created-item>span{font-size:10px}#demo .fm9-creation-status{display:none}
 #demo .fm9-block-mapping{gap:3px;margin:4px 0}#demo .fm9-block-mapping>span{font-size:7px;padding:4px}
 #demo .fm6-assembly{height:calc(100% - 142px)}
 #demo .fm8-analyze-layout{height:calc(100% - 139px)}
 #demo .fm6-engine-layout{height:calc(100% - 123px)}
 #demo .fm6-proof-stage{height:calc(100% - 140px)}
}
@media(max-width:355px){#demo .fm9-dialogue{grid-template-rows:358px minmax(0,1fr)}#demo .fm9-question b{font-size:8px}#demo .fm9-reply{font-size:7.5px}#demo .fm9-block-mapping>span{font-size:6.5px}}
@media(prefers-reduced-motion:reduce){#demo .fm9-suggest strong,#demo .fm9-transfer i{animation:none!important}}

/* V5 QA legibility refinement */
#demo .fm9-opening{font-size:11px}#demo .fm9-question span{font-size:10px}#demo .fm9-question b{font-size:12px}#demo .fm9-suggest{font-size:11px}#demo .fm9-reply{font-size:11px}#demo .fm9-created-item small{font-size:11px}#demo .fm9-created-item b{font-size:14px}
@media(max-width:700px){#demo .fm5-workspace{height:715px}#demo .fm9-dialogue{grid-template-rows:420px minmax(0,1fr)}#demo .fm9-opening{font-size:10px}#demo .fm9-question span{font-size:9px}#demo .fm9-question b{font-size:10px}#demo .fm9-suggest{font-size:9px}#demo .fm9-suggest strong{font-size:9px;padding:3px 4px}#demo .fm9-reply{font-size:10px;padding:5px 6px}#demo .fm9-created-item small{font-size:9px}#demo .fm9-created-item b{font-size:11px}}
@media(max-width:355px){#demo .fm9-dialogue{grid-template-rows:440px minmax(0,1fr)}#demo .fm9-question b{font-size:9.5px}#demo .fm9-reply{font-size:9.5px}}
