:root{--navy:#071627;--orange:#ff5a1f;--bg:#f5f7fb;--soft:#edf3ff;--line:#d8e2ed;--text:#0b1c30;--muted:#64748b;--green:#07966a;--red:#cf3b2d}
.fm7{position:fixed;inset:0;z-index:999999;background:var(--bg);font-family:Geist,Inter,"Segoe UI",sans-serif;color:var(--text);font-size:12px;overflow:hidden}.fm7 *{box-sizing:border-box}.fm7 button,.fm7 input,.fm7 select{font:inherit}.fm7 button{cursor:pointer}
.fm7-top{height:46px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1.1fr auto 1fr;align-items:center;padding:0 8px}.brand{display:flex;align-items:center;gap:7px}.brand b{font-size:14px}.brand b span,.customer-nav b span,.mobile-header b span{color:var(--orange)}.brand button,.brand em{border:0;background:var(--soft);border-radius:5px;padding:5px 7px;font-style:normal;font-size:10px}.brand em{color:var(--green)}.fm7-top nav{display:flex;background:var(--soft);padding:3px;border-radius:7px}.fm7-top nav button{border:0;background:transparent;padding:6px 11px;border-radius:5px;color:var(--muted)}.fm7-top nav button.active{background:var(--navy);color:#fff;font-weight:700}.tools{display:flex;gap:5px;justify-content:flex-end}.tools button,.stagebar button{border:0;background:var(--soft);border-radius:5px;padding:6px 8px}.publish{background:var(--orange)!important;color:#fff!important}
.crumb{height:26px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 10px;font-size:10px;color:var(--muted)}.crumb #fm7Save{margin-left:auto;background:#e7fff4;color:#067647;padding:3px 7px;border-radius:10px}.body{height:calc(100vh - 72px);display:grid;grid-template-columns:248px 1fr}.explorer{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:7px}.explorer h4{font-size:9px;color:var(--muted)}.explorer>button{border:0;background:transparent;text-align:left;padding:8px;border-radius:5px;color:#475569}.explorer>button.active{background:#dce9ff;color:var(--navy);font-weight:700}.explorer footer{margin-top:auto;border-top:1px solid var(--line);padding:9px 3px;font-size:8px;display:flex;justify-content:space-between}.explorer footer b{color:var(--green)}#fm7Main{overflow:auto;min-width:0}
.build{height:100%;display:grid;grid-template-columns:248px 1fr 300px;overflow:hidden}.palette,.inspector{background:#fff;overflow:auto}.palette{border-right:1px solid var(--line);padding:7px}.inspector{border-left:1px solid var(--line)}.switcher{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);padding:3px;border-radius:6px}.switcher button{border:0;background:transparent;padding:7px;border-radius:5px;font-size:10px}.switcher button.active{background:var(--navy);color:#fff}.screen-head{display:flex;align-items:center;justify-content:space-between;margin:9px 2px 5px}.screen-head b{font-size:9px}.screen-head button{border:0;background:var(--orange);color:#fff;border-radius:5px;padding:4px 7px}.screens{display:flex;flex-direction:column;gap:3px}.screens button{border:0;background:#f7f9fc;padding:7px;text-align:left;border-radius:5px;display:flex;justify-content:space-between}.screens button.active{background:#dce9ff;font-weight:700}.screens small{font-size:8px;color:var(--green)}.palette>input{width:100%;border:1px solid var(--line);padding:7px;border-radius:5px;margin-top:8px}.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:var(--soft);padding:3px;border-radius:5px;margin:7px 0}.tabs button,.ins-tabs button,.assets-page nav button{border:0;background:transparent;padding:6px 3px;border-radius:4px;font-size:9px}.tabs button.active,.ins-tabs button.active,.assets-page nav button.active{background:var(--navy);color:#fff;font-weight:700}.palette h5{font-size:9px;margin:10px 0 4px}.comp-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}.comp-grid button,.palette details button{border:0;background:var(--soft);padding:7px;text-align:left;border-radius:5px}.palette details{margin:4px 0}.palette details summary{font-weight:700;padding:5px}.palette details button{display:flex;width:100%;justify-content:space-between;margin:2px 0}.tree button{width:100%;border:0;background:#f7f9fc;padding:6px;margin:2px 0;display:flex;justify-content:space-between}
.stage{display:flex;flex-direction:column;min-width:0;background:#e9eef4;overflow:hidden}.stagebar{height:39px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.stage-scroll{flex:1;overflow:auto;padding:20px;display:flex;justify-content:center;align-items:flex-start}.canvas{transform-origin:top center;background:#fff;box-shadow:0 8px 24px rgba(7,22,39,.14);min-height:650px}.canvas.desktop{width:1150px}.canvas.mobile{width:390px;min-height:820px;border-radius:24px;overflow:hidden}.canvas.tablet{width:768px}.stage footer{height:22px;background:#fff;padding:4px 7px;font:9px "JetBrains Mono",monospace}.stage footer span{float:right}
.app-shell{display:flex;min-height:650px;background:#f8faff}.customer-nav{width:155px;background:var(--navy);color:#dbe7f4;display:flex;flex-direction:column;padding:12px 8px;gap:4px}.customer-nav b{padding:5px 4px 12px}.customer-nav em{font-size:8px;background:#12364d;color:#62d7a9;padding:5px;border-radius:3px;font-style:normal}.customer-nav button{border:0;background:transparent;color:#9fb2c7;text-align:left;padding:8px;border-radius:4px;font-size:9px}.customer-nav button.active{background:#173451;color:#fff}.customer-nav small{margin-top:auto;color:#708398}.app-main{flex:1;min-width:0}.app-top{height:38px;background:#fff;display:flex;align-items:center;gap:8px;padding:5px 9px;border-bottom:1px solid var(--line)}.app-top>b{font-size:10px}.app-top>span{font-size:8px;color:var(--green)}.app-top input{flex:1;border:0;background:#f2f6fc;padding:6px}.app-top button{background:var(--orange);color:#fff;border:0;padding:6px;border-radius:4px}.app-top i{font-style:normal;font-weight:700;font-size:9px}.app-title{padding:8px 10px 3px}.app-title h2{margin:0;font-size:15px}.app-title p{margin:2px 0;color:var(--muted);font-size:9px}.widget-grid{padding:7px;display:grid;grid-template-columns:repeat(12,1fr);gap:7px}.widget{background:#fff;border:1px solid #e3eaf2;border-radius:5px;padding:8px;grid-column:span 4;min-width:0}.widget.selected{outline:2px solid var(--orange)}.widget.kpi{grid-column:span 2}.widget.map,.widget.table,.widget.chart,.widget.gallery,.widget.feed{grid-column:span 8}.widget.alert{grid-column:span 4;background:#fff5f0;border-color:#ffd5c7}.widget.form,.widget.checklist{grid-column:span 12}.widget.green{border-top:2px solid var(--green)}.widget.orange{border-top:2px solid var(--orange)}.widget small{color:var(--muted);font-size:8px}.widget strong{display:block;font-size:18px;margin:4px 0}.widget h4,.widget h3{margin:0 0 5px;font-size:10px}.widget p{margin:2px 0;font-size:8px;color:#536174;line-height:1.4}.fake-map{height:210px;background:#dce9ff;position:relative;overflow:hidden}.fake-map:before,.fake-map:after{content:"";position:absolute;width:120%;height:4px;background:#9bb0c5;transform:rotate(22deg);left:-10%;top:45%}.fake-map:after{transform:rotate(-17deg);top:60%}.fake-map i{position:absolute;width:10px;height:10px;background:var(--orange);border-radius:50%;z-index:2}.fake-map i:nth-child(1){left:33%;top:39%}.fake-map i:nth-child(2){left:57%;top:55%}.fake-map i:nth-child(3){left:70%;top:29%}.fake-map span{position:absolute;bottom:7px;left:7px;background:#071627;color:#fff;padding:4px;font-size:8px}.bars{height:150px;display:flex;gap:7px;align-items:flex-end}.bars i{flex:1;background:#35485d}.feed-row{border-bottom:1px solid var(--line);padding:5px}.widget table{width:100%;border-collapse:collapse;font-size:8px}.widget th,.widget td{border-bottom:1px solid #e7edf3;padding:5px;text-align:left}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.gallery div{background:#eef4ff;padding:9px;min-height:55px;display:flex;flex-direction:column;gap:4px}.widget label{display:block;font-size:8px;margin:5px 0}.widget input{width:100%;padding:7px;border:1px solid var(--line);border-radius:4px}.primary{width:100%;background:var(--orange);color:#fff;border:0;border-radius:5px;padding:9px;margin-top:7px;font-weight:700}.check-row{display:flex;justify-content:space-between;align-items:center;background:#f7f9fc;padding:7px;margin:4px 0;border-radius:4px;font-size:8px}.check-row button{border:1px solid var(--line);background:#fff;padding:4px;border-radius:4px}
.app-shell.mobile{display:block;min-height:820px}.mobile-header{height:58px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 12px}.mobile-header small{font-size:9px}.mobile-header i{font-style:normal;color:#6be0b2;font-size:8px}.mobile-bottom{position:absolute;bottom:0;left:0;right:0;height:58px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:5}.mobile-bottom button{border:0;background:transparent;font-size:15px}.mobile-bottom button small{display:block;font-size:8px}.mobile-bottom button.active{color:var(--orange)}.app-shell.mobile .app-top{display:none}.app-shell.mobile .app-main{padding-bottom:58px}.app-shell.mobile .app-title{padding:9px 10px 2px}.app-shell.mobile .widget-grid{display:block;padding:7px}.app-shell.mobile .widget{margin-bottom:7px}.app-shell.mobile .widget strong{font-size:16px}.app-shell.mobile .fake-map{height:150px}
.ins-title{height:39px;background:var(--soft);padding:11px;font-weight:800}.ins-tabs{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line)}.ins-body{padding:10px}.ins-body label{display:block;font-size:9px;color:var(--muted);margin:7px 0}.ins-body input,.ins-body select,.ins-body button{width:100%;padding:7px;border:1px solid var(--line);border-radius:5px;background:#fff}.ins-body .danger{background:#fff0ed;color:#a53020}
.data-page{height:100%;display:flex;flex-direction:column}.data-page>header,.assets-page>header,.release-page>header{background:#fff;padding:10px 13px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.data-page h2,.assets-page h2,.release-page h2{margin:0}.data-page p,.release-page p{margin:2px 0;color:var(--muted)}.data-page header button,.release-page header button{border:0;background:var(--soft);padding:6px;border-radius:4px}.data-page header span{color:var(--green);font-size:9px}.sheet-tools,.formula{height:35px;background:#fff;border-bottom:1px solid var(--line);padding:8px 11px}.sheet-tools small{float:right;color:var(--muted)}.formula{background:#edf3ff}.formula input{width:70%;border:0;background:transparent}.sheet-wrap{flex:1;display:grid;grid-template-columns:1fr 290px;min-height:0}.sheet-scroll{overflow:auto;background:#fff}.sheet-scroll table{border-collapse:collapse;min-width:100%;font-size:9px}.sheet-scroll th,.sheet-scroll td{border:1px solid #e5ebf1;min-width:125px;height:29px;padding:5px;white-space:nowrap}.sheet-scroll th{position:sticky;top:0;background:#eef4ff;z-index:2}.sheet-scroll td.invalid{background:#fff0ed;outline:2px solid var(--red)}.sheet-wrap aside{background:#fff;border-left:1px solid var(--line);padding:10px}.rule{background:var(--soft);padding:8px;border-radius:5px;margin:6px 0}.data-page>footer{height:38px;background:#eef4ff;display:flex;gap:3px;padding:4px;overflow:auto}.data-page>footer button{border:0;background:transparent;border-radius:4px;padding:6px 8px;white-space:nowrap}.data-page>footer button.active{background:#fff;font-weight:700}
.preview-page{height:100%;display:flex;flex-direction:column}.preview-page>header{height:40px;background:#dce9ff;display:flex;align-items:center;gap:8px;padding:6px 10px}.preview-page>header span{color:var(--muted)}.preview-page>header div{margin-left:auto}.preview-page>header button{border:0;background:#fff;padding:6px;border-radius:4px}.preview-switch{height:38px;background:#fff;padding:5px 10px}.preview-switch button{border:0;background:var(--soft);padding:6px;border-radius:4px}.preview-switch button.active{background:var(--navy);color:#fff}.preview-switch select{margin-left:7px;padding:5px}.preview-stage{flex:1;overflow:auto;background:#e9eef4;padding:18px;display:flex;justify-content:center}.preview-canvas{position:relative;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.12)}.preview-canvas.desktop{width:1150px}.preview-canvas.mobile{width:390px;min-height:820px;border-radius:24px;overflow:hidden}
.assets-page>header input{width:280px;border:0;background:var(--soft);padding:8px}.assets-page nav{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:7px 12px;z-index:2}.assets-page nav button{padding:7px 10px}.assets-page section{padding:12px}.asset-control{background:#fff;padding:12px;border-radius:7px;display:flex;gap:14px;align-items:center}.asset-control h3{margin-right:auto}.icon-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:9px}.icon-grid>div{background:#fff;border-radius:6px;min-height:95px;display:flex;flex-direction:column;align-items:center;justify-content:center}.icon-grid span{font-size:22px}.icon-grid small{color:var(--muted)}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.preset-grid article,.doc-grid article{background:#fff;padding:10px;border-radius:7px}.preset-pic{height:105px;background:linear-gradient(135deg,#071627 60%,#ff5a1f 60%);border-radius:5px}.preset-pic.p1{background:#f7f9fc}.preset-pic.p2{background:#121826}.preset-pic.p3{background:#302b25}.preset-pic.p4{background:#dce9ff}.preset-grid button{border:0;background:var(--soft);padding:6px;border-radius:4px}.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px}.status-grid article,.reset-grid article{background:#fff;padding:11px;border-radius:7px}.status-grid small{display:block;color:var(--muted);font-weight:700}.status-grid b{display:block;font-size:16px;margin:4px 0}.release-page>h3{padding:0 12px}.reset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 12px}.reset-grid button{border:0;background:#fff0ed;color:#a53020;padding:6px;border-radius:4px}
.fm7-toast{position:fixed;right:22px;bottom:22px;z-index:1000001;background:#071627;color:#fff;padding:10px 13px;border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.24)}.fm7-toast.error{background:#a53020}
@media(max-width:1250px){.build{grid-template-columns:220px 1fr 270px}.body{grid-template-columns:210px 1fr}.brand em{display:none}.icon-grid{grid-template-columns:repeat(4,1fr)}}
/* v8 unlimited app builder additions */
.ins-body textarea{width:100%;min-height:70px;padding:7px;border:1px solid var(--line);border-radius:5px;resize:vertical}
.role-check{display:inline-flex!important;align-items:center;gap:4px;margin:3px 6px 3px 0!important;background:#f2f6fb;padding:5px 6px;border-radius:4px}
.role-check input,.inline-check input{width:auto!important}
.event-chip{position:relative;background:#eef4ff;padding:7px 28px 7px 7px;border-radius:5px;margin:4px 0;font-size:9px}
.event-chip button{position:absolute;right:4px;top:3px;width:20px!important;padding:2px!important;border:0!important}

/* Fleetmotion Studio v9 - Data Centre + flexible designer */
.build.left-collapsed{grid-template-columns:32px 1fr 300px}.build.right-collapsed{grid-template-columns:248px 1fr 32px}.build.left-collapsed.right-collapsed{grid-template-columns:32px 1fr 32px}
.left-collapsed .palette-inner,.right-collapsed .inspector-inner{display:none}.palette,.inspector{position:relative}.collapse-tab{position:sticky;top:4px;z-index:8;border:0;background:#071627;color:#fff;width:22px;height:30px;border-radius:4px}.collapse-left{float:right}.collapse-right{float:left}
.stagebar{height:auto;min-height:44px;gap:5px;flex-wrap:wrap}.align-tools,.screen-tools,.viewport-tools{display:flex;align-items:center;gap:3px}.align-tools button,.screen-tools button,.screen-tools select{border:0;background:#edf3ff;border-radius:4px;padding:5px}.snap-label{font-size:8px;white-space:nowrap}
.palette-help{font-size:9px;color:#64748b;background:#eef4ff;padding:7px;border-radius:5px}.whole-table{width:100%;border:0;background:#dce9ff!important;font-weight:700;display:flex!important;justify-content:space-between}.whole-table small{font-weight:400}
.canvas.freeform .widget-grid{position:relative;display:block;min-height:900px}.canvas.freeform .widget{position:absolute;margin:0;overflow:auto;resize:none}.canvas.freeform .widget .widget{position:absolute}
.resize-handle{display:none;position:absolute;right:0;bottom:0;width:14px;height:14px;border-right:3px solid #ff5a1f;border-bottom:3px solid #ff5a1f;cursor:nwse-resize}.canvas.freeform .widget.selected>.resize-handle{display:block}
.container,.tabs{border:1px dashed #9cb2c9!important;background:rgba(255,255,255,.75)!important;overflow:visible!important}.container-title{font-size:9px;font-weight:700;color:#64748b;margin-bottom:4px}.nested-zone{position:relative;min-height:80px;height:calc(100% - 20px);border:1px dashed #d6e0ea}.tab-head{display:flex;gap:3px;margin-bottom:4px}.tab-head button{border:0;background:#edf3ff;padding:4px 7px}.tab-head button.active{background:#071627;color:#fff}
.align-guide{position:absolute;z-index:30;pointer-events:none;background:#ff5a1f;display:none}.guide-x{height:1px;left:0;right:0}.guide-y{width:1px;top:44px;bottom:22px}
.runtime-field{display:block;font-weight:700}.runtime-field input{width:100%;margin-top:5px;padding:7px;border:1px solid #d8e2ed;border-radius:4px}.runtime-button{width:100%}
.theme-dark_operations .app-main,.theme-dark_operations .widget-grid{background:#0b1420}.theme-dark_operations .widget{background:#142235;color:#f8fafc;border-color:#2c415a}.theme-light_minimal .widget{box-shadow:none;border-color:#eef2f6}.theme-modern_cards .widget{border-radius:13px;box-shadow:0 8px 22px rgba(7,22,39,.08)}
.data-centre-v9{height:100%;display:flex;flex-direction:column;background:#fff}.dc-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #d8e2ed}.dc-head h2{margin:0;font-size:18px}.dc-head p{margin:2px 0;color:#64748b}.dc-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.dc-actions button{border:1px solid #d8e2ed;background:#fff;padding:6px 8px;border-radius:4px}.dc-actions .generate,.generator-card .generate{background:#ff5a1f;color:#fff;border-color:#ff5a1f}.autosave{color:#07966a;font-size:9px}.dc-modebar{height:32px;padding:7px 12px;background:#f8fafc;border-bottom:1px solid #d8e2ed}.dc-modebar span{margin-left:15px;color:#64748b}.dc-modebar i{float:right;font-style:normal;font-size:9px}.dc-modebar i.standalone{color:#334155}.dc-modebar i.google_sheets{color:#07966a}
.dc-body{flex:1;display:grid;grid-template-columns:1fr 275px;min-height:0}.sheet-area{min-width:0;overflow:hidden}.dc-events{border-left:1px solid #d8e2ed;padding:9px;background:#fff;overflow:auto;position:relative}.dc-events.collapsed{width:30px;overflow:hidden;padding:3px}.dc-events.collapsed>*:not(#collapseEvents){display:none}.dc-events #collapseEvents{position:absolute;right:3px;top:3px;border:0;background:#edf3ff;border-radius:4px}.dc-events h3{font-size:9px;margin:5px 0 8px}.audit-box{background:#071627;color:#bcd0e4;padding:8px;border-radius:4px;font:8px "JetBrains Mono",monospace;line-height:1.7}.sheet-tabs{height:38px;background:#eef4ff;display:flex;gap:3px;padding:4px;overflow:auto}.sheet-tabs button{border:0;background:transparent;padding:6px 8px;white-space:nowrap}.sheet-tabs button.active{background:#fff;border-bottom:2px solid #ff5a1f;font-weight:700}.dc-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.dc-empty button{background:#ff5a1f;color:#fff;border:0;padding:10px 15px;border-radius:5px}
.generator-modal{position:fixed;inset:0;background:rgba(7,22,39,.42);z-index:1000002;display:flex;align-items:center;justify-content:center}.generator-modal.hidden{display:none}.generator-card{width:min(900px,88vw);max-height:82vh;background:#fff;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.3);overflow:auto}.generator-card header,.generator-card footer{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #d8e2ed}.generator-card footer{border-top:1px solid #d8e2ed;border-bottom:0}.generator-card header h2{margin:0}.generator-card header p{margin:2px 0;color:#64748b}.generator-card header button{border:0;background:#edf3ff;border-radius:5px}.demo-switch{display:block;margin:12px;background:#e9fff6;padding:9px;border-radius:5px}.generator-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 12px 12px}.generator-grid label{background:#f7f9fc;border:1px solid #e3eaf2;border-radius:6px;padding:9px;display:grid;grid-template-columns:22px 1fr;gap:2px}.generator-grid small{grid-column:2;color:#64748b}
