
/* V6. Visual integration with original Finmodel landing page.
   Existing V5 data, phases, hyperscript timings and real model imagery unchanged. */
#demo.fm5-workflow{max-width:1220px;--fm5-ink:#142b56;--fm5-blue:#4169ed}
/* Only one primary container. No artificial nested browser or repeated breadcrumb. */
#demo .fm5-head{margin-bottom:13px;gap:11px}
#demo .fm5-head .workflow-heading{font-size:14px;letter-spacing:-.015em;min-height:24px}
#demo .fm5-head .workflow-heading small{font-size:11px;letter-spacing:0;color:#8290a9}
#demo .fm5-tabs{background:transparent;border:0;border-bottom:1px solid #dce5f5;border-radius:0;padding:0;gap:1px}
#demo .fm5-tab{min-height:45px;padding:10px 6px 11px;border:0!important;border-bottom:3px solid transparent!important;border-radius:0;background:transparent!important;color:#6f809f;box-shadow:none!important;transition:color .25s,border-color .25s}
#demo .fm5-tab.is-active{color:#315fda;background:transparent!important;border-bottom-color:#4b6df0!important}
#demo .fm5-tab .fm5-tab-num{font-size:10px;color:#91a4bf}
#demo .fm5-tab.is-active .fm5-tab-num{color:#3c63df}
#demo .fm5-stage{padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible;isolation:auto}
#demo .fm5-stage:before{display:none!important}
#demo .fm5-window{border:1px solid #d3def1;border-radius:20px;background:#fff;box-shadow:0 28px 66px rgba(37,65,132,.115),0 2px 8px #4d6baa07;overflow:hidden}
#demo .fm5-window-top{display:none!important}
#demo .fm8-journey{display:none!important}
#demo .fm5-workspace{height:460px;background:radial-gradient(ellipse at 88% 28%,#eaf1ff55,transparent 57%),linear-gradient(110deg,#fff 4%,#f8faff 100%)}
#demo .fm5-workspace:before{opacity:.25}
#demo .fm5-scene{padding:20px 26px!important}
#demo .fm9-dialogue{padding:23px 28px!important;grid-template-columns:minmax(0,1.27fr) 20px minmax(0,.83fr);gap:14px}
#demo .fm9-chat,#demo .fm9-created{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;gap:8px;overflow:hidden}
#demo .fm9-created{padding-left:22px!important;border-left:1px solid #dce5f4!important}
#demo .fm9-dialogue .fm8-heading{margin:0 0 5px;gap:4px}
#demo .fm9-dialogue .fm8-heading>span{font-size:9px;letter-spacing:.10em;color:#6884ba}
#demo .fm9-dialogue .fm8-heading strong{font-size:18px;line-height:1.23;color:#203d73;letter-spacing:-.04em}
#demo .fm9-opening{font-size:11px;line-height:1.42;background:#edf3ff;border:0;border-radius:10px 10px 10px 3px;padding:9px 11px;margin-bottom:2px}
#demo .fm9-turn{border:0!important;border-bottom:1px solid #e2e9f5!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:6px 2px 9px!important;margin:0;animation:fm8-enter .4s both}
#demo .fm9-question{gap:6px;align-items:baseline}
#demo .fm9-question span{color:#4467d7;font-size:9px}
#demo .fm9-question b{font-size:11px;line-height:1.4;color:#223e70}
#demo .fm9-suggest{margin-top:5px;font-size:10px;color:#7285a4}
#demo .fm9-suggest strong{border:0;background:#eef3ff;color:#345db9;border-radius:5px;padding:4px 6px;font-size:10px;animation:none;box-shadow:none}
#demo .fm9-reply{margin-top:5px;background:#e9f7f3;border:0;border-left:3px solid #24b19d;border-radius:3px 8px 8px 3px;padding:7px 10px;color:#21685d;font-size:10.5px;line-height:1.35}
#demo .fm9-created-item{background:transparent!important;border:0!important;border-bottom:1px solid #e0e8f5!important;border-radius:0!important;box-shadow:none!important;padding:11px 2px!important;min-height:65px;gap:6px}
#demo .fm9-created-item small{font-size:10px;color:#7e90aa;margin-bottom:3px}
#demo .fm9-created-item b{font-size:14px;font-weight:850;color:#2852a7;letter-spacing:-.02em}
#demo .fm9-created-item>span{color:#15ad97;font-size:17px}
#demo .fm9-creation-status{font-size:10px;margin-top:auto;line-height:1.4}
#demo .fm9-transfer{gap:6px}
#demo .fm9-transfer i{font-size:27px;color:#6488e8}
#demo .fm9-transfer span{display:none}
#demo .fm9-chat-foot{font-size:10px;margin-top:auto;padding-top:6px}
/* Retain a single unobtrusive data hand-off band during computation. */
#demo .fm9-answer-strip{top:0;height:36px;border-bottom:1px solid #e0e8f5;background:#f7f9ff;gap:10px}
#demo .fm9-answer-strip strong{font-size:10px;color:#5771ac}
#demo .fm9-answer-strip span{border:0;background:transparent;padding:4px 3px;font-size:10px;color:#62789d}
#demo .fm9-answer-strip span+span{border-left:1px solid #dce5f5;padding-left:12px}
#demo[data-phase=dialogue] .fm9-answer-strip{display:none}
#demo .fm5-scene:not(.fm9-dialogue){padding-top:59px!important}
/* All further scenes use an editorial grid, rather than cards inside cards. */
#demo .fm8-analysis-input,#demo .fm8-analysis-output{border:0;background:transparent;box-shadow:none;border-radius:0;padding:6px 8px;gap:9px}
#demo .fm8-analysis-output{border-left:1px solid #e0e9f7;padding-left:16px}
#demo .fm8-rule{border:0;border-bottom:1px solid #e2e9f6;border-radius:0;background:transparent;padding:9px 5px;box-shadow:none}
#demo .fm8-token-fall>span{border:0;border-radius:6px;background:#edf3ff}
#demo .fm8-core-part{box-shadow:none;border:1px solid #d1def8;background:#f5f8ff;border-radius:12px}
#demo .fm8-core-method{background:#eaf9f5;border-color:#c9e8df}
#demo .fm6-input-rail{border:0;border-radius:0;border-right:1px solid #dce6f5;background:transparent;box-shadow:none;padding:10px 15px 10px 0}
#demo .fm6-math-field{border:1px solid #d6e3fa;box-shadow:none;border-radius:14px}
#demo .fm6-rail-connection{background:transparent;border-top:1px solid #dce6f6;border-radius:0}
#demo .fm6-assembly{border:0!important;background:transparent!important;box-shadow:none!important}
#demo .fm6-module{box-shadow:none!important}
#demo .fm9-block-mapping>span{border:0;background:transparent;padding:3px 5px}
/* Compact one-line transport instead of stacked footer panels. */
#demo .fm5-stage-caption{padding:8px 18px 0;min-height:32px;background:#fff;border:0;color:#6d80a3;font-size:10px}
#demo .fm5-bottom{background:#fff;padding:8px 18px 12px;border:0;gap:10px}
#demo .fm5-disclaimer{margin-top:11px;font-size:10px!important;line-height:1.5;color:#8794aa}
#demo .fm5-progress{height:4px}
#demo .fm5-controls .fm5-control{border-radius:9px}
@media(max-width:1000px){
 #demo .fm9-dialogue{grid-template-columns:minmax(0,1.2fr) 17px minmax(0,.86fr);gap:8px;padding:19px!important}
 #demo .fm9-created{padding-left:13px!important}
 #demo .fm9-dialogue .fm8-heading strong{font-size:15px}
 #demo .fm9-opening{font-size:10px;padding:7px 9px}
 #demo .fm9-question b{font-size:10px}
 #demo .fm9-created-item{min-height:60px;padding:8px 2px!important}
 #demo .fm9-created-item b{font-size:12px}
 #demo .fm9-created-item small{font-size:9px}
}
@media(max-width:700px){
 #demo .fm5-head{gap:5px;margin-bottom:9px}
 #demo .fm5-head .workflow-heading{font-size:12px;justify-content:center;flex-wrap:wrap;text-align:center}
 #demo .fm5-head .workflow-heading small{display:none}
 #demo .fm5-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px}
 #demo .fm5-tab{min-height:47px;padding:5px 2px 7px;gap:2px;display:flex;flex-direction:column;font-size:8px;line-height:1.2;text-align:center}
 #demo .fm5-tab .fm5-tab-num{font-size:9px}
 #demo .fm5-window{border-radius:14px}
 #demo .fm5-workspace{height:610px}
 #demo .fm9-dialogue{padding:12px 12px!important;grid-template-columns:1fr;grid-template-rows:360px minmax(0,1fr);gap:10px}
 #demo .fm9-chat{gap:3px!important}
 #demo .fm9-created{border-left:0!important;border-top:1px solid #dce5f4!important;padding:9px 1px 0!important;gap:3px!important}
 #demo .fm9-dialogue .fm8-heading{margin:0 0 2px}
 #demo .fm9-dialogue .fm8-heading strong{font-size:12px}
 #demo .fm9-dialogue .fm8-heading>span{font-size:8px}
 #demo .fm9-opening{font-size:9px;line-height:1.28;padding:5px 8px;margin:0}
 #demo .fm9-turn{padding:4px 0 5px!important}
 #demo .fm9-question span{font-size:8px}
 #demo .fm9-question b{font-size:9px;line-height:1.22}
 #demo .fm9-suggest{font-size:8px;line-height:1.15;margin-top:2px}
 #demo .fm9-suggest strong{font-size:8px;margin:1px;padding:2px 3px}
 #demo .fm9-reply{font-size:9px;line-height:1.25;padding:4px 7px;margin-top:3px}
 #demo .fm9-chat-foot{font-size:8px;padding-top:1px}
 #demo .fm9-transfer{display:none}
 #demo .fm9-created .fm8-heading{margin:0 0 3px}
 #demo .fm9-created-item{min-height:34px;padding:3px 0!important;display:flex;flex-direction:row}
 #demo .fm9-created-item small{font-size:8px;margin-bottom:0}
 #demo .fm9-created-item b{font-size:10px}
 #demo .fm9-created-item>span{font-size:12px}
 #demo .fm9-creation-status{font-size:8px;margin-top:2px}
 #demo .fm9-answer-strip{top:0;height:41px;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{padding:2px;font-size:7px;line-height:1.15;text-align:center;border:0!important;white-space:normal}
 #demo .fm9-answer-strip span+span{border-left:0;padding-left:2px}
 #demo .fm5-scene:not(.fm9-dialogue){padding:52px 8px 8px!important}
 #demo .fm8-analysis-input,#demo .fm8-analysis-output{padding:5px 4px}
 #demo .fm8-analysis-output{border-left:0;border-top:1px solid #e0e9f7;padding-top:7px}
 #demo .fm8-rule{padding:6px 3px}
 #demo .fm6-input-rail{padding:5px 7px;border:0}
 #demo .fm5-stage-caption{min-height:0;padding:8px 9px 0;font-size:9px}
 #demo .fm5-bottom{padding:8px 9px 11px}
 #demo .fm5-disclaimer{font-size:8px!important}
}
@media(max-width:360px){#demo .fm9-dialogue{grid-template-rows:375px minmax(0,1fr)}#demo .fm5-workspace{height:630px}}
/* Readable mobile type: allow a taller, stable stage instead of shrinking copy. */
@media(max-width:700px){
 #demo .fm5-workspace{height:705px}
 #demo .fm9-dialogue{grid-template-rows:417px minmax(0,1fr);padding:12px 13px!important;gap:11px}
 #demo .fm9-dialogue .fm8-heading strong{font-size:14px;line-height:1.2}
 #demo .fm9-opening{font-size:10px;line-height:1.35;padding:7px 9px}
 #demo .fm9-question span{font-size:9px}
 #demo .fm9-question b{font-size:10.5px;line-height:1.35}
 #demo .fm9-suggest{font-size:9px;line-height:1.2}
 #demo .fm9-suggest strong{font-size:9px}
 #demo .fm9-reply{font-size:10px;line-height:1.35;padding:6px 8px}
 #demo .fm9-chat-foot{font-size:9px}
 #demo .fm9-created-item{min-height:56px;padding:7px 1px!important}
 #demo .fm9-created-item small{font-size:9px}
 #demo .fm9-created-item b{font-size:11px}
 #demo .fm9-creation-status{font-size:9px}
}
@media(max-width:360px){
 #demo .fm5-workspace{height:745px}
 #demo .fm9-dialogue{grid-template-rows:443px minmax(0,1fr)}
}
