:root{--navy:#010116;--navy2:#051d30;--blue:#4aadf8;--blue2:#256ef2;--text:#142235;--muted:#7b8794;--line:#dee5ea;--bg:#f5f7fa;--white:#fff;--green:#18a66a;--shadow:0 8px 24px rgba(15,34,55,.07);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text)}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}.suitebar{height:38px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;padding:0 16px}.suite-message{display:flex;align-items:center;gap:9px;color:#e6edf5}.suite-mark{color:#4aadf8;font-weight:900;font-size:13px;letter-spacing:.5px}.suite-cta{height:25px;border:0;border-radius:30px;padding:0 18px;background:#256ef2;color:white;font-size:11px;font-weight:700}.app-shell{height:calc(100% - 38px);display:flex;min-height:0}.sidebar{width:250px;flex:0 0 250px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;z-index:8}.brand-row{height:65px;display:flex;align-items:center;padding:0 12px;gap:9px;border-bottom:1px solid var(--line)}.brand-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(145deg,#0f609c,#4aadf8);display:grid;place-items:center;color:white;font-size:26px;font-weight:900;box-shadow:0 4px 12px #4aadf844}.brand-name{display:flex;flex-direction:column;gap:1px}.brand-name b{font-size:14px;color:#0b2740;letter-spacing:-.3px}.brand-name small{font-size:8px;letter-spacing:2px;color:#7790a4;font-weight:800}.cloud-state{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#1eb980;box-shadow:0 0 0 4px #1eb98018}.side-actions{height:55px;display:flex;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line)}.square-action{width:36px;height:36px;border:0;border-radius:6px;background:#0e679f;color:white;display:grid;place-items:center;box-shadow:0 3px 8px #0e679f2b}.square-action:hover{background:#4aadf8}.square-action .ico{font-size:20px;line-height:1}.side-body{display:flex;flex:1;min-height:0;overflow:hidden}.nav-rail{width:53px;flex:0 0 53px;display:flex;flex-direction:column;align-items:stretch;border-right:1px solid #edf0f3;padding:6px 4px;gap:3px}.nav-item{height:58px;border:0;background:transparent;color:#9ba4ae;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:5px;transition:.15s}.nav-item:hover{background:#f3f8fc;color:#2b83c4}.nav-item.active{background:#4aadf8;color:white}.nav-icon{font-size:21px;line-height:22px;font-weight:500}.nav-item small{font-size:8px;font-weight:800}.nav-spacer{flex:1}.nav-item.logout{color:#df4b4b}.nav-item.logout:hover{background:#fff2f2}.side-panel{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.panel-head{height:54px;flex:0 0 54px;border-bottom:1px solid var(--line);padding:11px 12px;display:flex;flex-direction:column;gap:3px}.panel-head b{font-size:12px;color:#263d50}.panel-head span{font-size:10px;color:#9aa4ad}.side-content{overflow:auto;flex:1;min-height:0;padding:10px}.sidebar-footer{height:58px;border-top:1px solid var(--line);display:flex;align-items:center;padding:8px 10px;gap:8px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e8f4fd;color:#126da9;font-size:11px;font-weight:900}.sidebar-footer div{display:flex;flex-direction:column;gap:2px;min-width:0}.sidebar-footer b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-footer small{font-size:9px;color:#8b98a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.more-btn{margin-left:auto;border:0;background:transparent;color:#8493a0}.main-area{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.main-content{flex:1;min-height:0;overflow:auto;position:relative}.statusbar{height:24px;background:white;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#81909b;font-size:9px;flex:0 0 24px}.statusbar>span{display:flex;align-items:center;gap:6px}.status-dot{width:6px;height:6px;border-radius:50%;background:#16b67c}.mobile-top{display:none}
.page-wrap{padding:26px 30px 34px;max-width:1500px;margin:0 auto}.page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:#4a9ad3;font-weight:800;margin-bottom:6px}.page-title{font-size:25px;line-height:1.2;letter-spacing:-.8px;margin:0;color:#10283d}.page-desc{font-size:12px;color:#82909c;margin:7px 0 0}.btn{height:36px;padding:0 14px;border:1px solid #d8e1e9;border-radius:7px;background:white;color:#31475b;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{border-color:#83bce4;background:#f8fcff}.btn.primary{background:#4aadf8;border-color:#4aadf8;color:white;box-shadow:0 3px 9px #4aadf82a}.btn.primary:hover{background:#268edb}.btn.dark{background:#051d30;color:white;border-color:#051d30}.btn.danger{color:#d54c4c;border-color:#f0d0d0}.btn.small{height:29px;padding:0 10px;font-size:10px}.btn:disabled{opacity:.45;cursor:not-allowed}.panel{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:0 3px 12px rgba(18,43,65,.025)}.panel-title{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #eff2f5}.panel-title h3{font-size:13px;margin:0}.panel-title span{font-size:10px;color:#97a2ad}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px}.stat-card{padding:15px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:#8795a1;font-size:10px}.stat-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#edf7ff;color:#2083c0;font-size:17px}.stat-number{font-size:24px;letter-spacing:-1px;font-weight:800;margin-top:11px;color:#142f47}.stat-foot{font-size:9px;color:#9ba5ae;margin-top:2px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:16px}.project-list{padding:2px 16px}.project-row{padding:13px 0;border-bottom:1px solid #f0f3f5;display:flex;align-items:center;gap:12px}.project-row:last-child{border-bottom:0}.project-thumb{width:44px;height:42px;border:1px solid #e0e7ed;border-radius:7px;background:linear-gradient(135deg,#fff,#f0f6fa);display:grid;place-items:center;color:#4b9bd1;font-size:18px}.project-info{min-width:0;flex:1}.project-info b{display:block;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.project-info small{display:block;color:#98a3ad;font-size:9px;margin-top:4px}.project-row .row-actions{display:flex;gap:5px}.text-button{border:0;background:transparent;color:#2188c9;font-size:10px;font-weight:700;padding:5px}.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:15px}.market-card{border:1px solid #edf0f3;border-radius:9px;overflow:hidden;background:white}.market-art{height:75px;background:linear-gradient(135deg,#0b2841,#176caa);display:grid;place-items:center;color:white;font-size:26px}.market-body{padding:10px}.market-body b{display:block;font-size:10px}.market-body p{font-size:9px;color:#8996a1;line-height:1.5;margin:5px 0 9px}.market-body .price{font-size:10px;color:#139763;font-weight:800}.empty-state{padding:35px 20px;text-align:center;color:#8b98a4}.empty-state .empty-icon{font-size:32px;color:#9dc9e7;margin-bottom:9px}.empty-state b{display:block;color:#3c5265;font-size:12px;margin-bottom:5px}.empty-state p{font-size:10px;max-width:340px;margin:0 auto 14px;line-height:1.6}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.project-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:.16s}.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.project-card-art{height:112px;background:linear-gradient(135deg,#0a2134,#164b70);display:flex;align-items:center;justify-content:center;color:#bde6ff;position:relative}.project-card-art svg{width:120px;height:70px;opacity:.75}.project-card-content{padding:13px}.project-card-content b{font-size:12px}.project-card-content p{font-size:10px;color:#8b98a4;min-height:28px}.project-card-meta{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f2f4;padding-top:10px;font-size:9px;color:#98a3ad}.card-actions{display:flex;gap:5px}
.search-box{height:34px;border:1px solid #dfe6ec;border-radius:7px;background:#fff;display:flex;align-items:center;padding:0 9px;gap:7px;min-width:185px}.search-box input{border:0;outline:0;flex:1;min-width:0;font-size:10px}.search-box span{color:#8fa0ac}.symbol-categories{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.chip{border:1px solid #e0e7ed;background:white;border-radius:20px;padding:7px 11px;font-size:9px;color:#64788a}.chip.active{background:#e8f5ff;border-color:#a9d8f5;color:#116fa9;font-weight:800}.symbol-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px}.symbol-tile{min-height:103px;border:1px solid #e7edf1;border-radius:8px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px;cursor:pointer}.symbol-tile:hover{border-color:#79bde8;background:#f7fcff}.symbol-image{width:47px;height:47px;display:grid;place-items:center}.symbol-image img{max-width:45px;max-height:45px;object-fit:contain}.symbol-fallback{font-size:25px;color:#628199}.symbol-tile span:last-child{font-size:9px;color:#526677;text-align:center;line-height:1.35}.upload-banner{padding:13px 15px;background:#eff8ff;border:1px dashed #9bcdf0;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.upload-banner b{font-size:11px}.upload-banner p{font-size:9px;color:#8193a2;margin:4px 0 0}.tree-group{border:1px solid #e7edf1;border-radius:8px;margin-bottom:8px;overflow:hidden;background:white}.tree-head{width:100%;text-align:left;border:0;background:#f5f8fa;padding:11px 12px;display:flex;align-items:center;gap:9px;color:#24394d}.tree-head b{font-size:10px;letter-spacing:.5px}.tree-head small{font-size:9px;color:#98a4ae;margin-left:auto}.tree-body{display:none;padding:7px 12px}.tree-group.open .tree-body{display:block}.tree-node{padding:7px 8px;margin:2px 0;border-radius:5px;font-size:10px;color:#627689;cursor:pointer}.tree-node:hover{background:#edf7ff;color:#1577b5}.macro-grid,.apps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:13px}.feature-card{padding:16px;background:white;border:1px solid var(--line);border-radius:10px}.feature-icon{width:38px;height:38px;border-radius:10px;background:#edf7ff;color:#248bc7;display:grid;place-items:center;font-size:20px;margin-bottom:11px}.feature-card b{font-size:12px}.feature-card p{font-size:10px;color:#8996a1;line-height:1.6}.feature-card .btn{margin-top:5px}
/* Editor */
.editor-page{height:100%;min-height:0;display:flex;flex-direction:column;background:#f7f9fb;overflow:hidden}.editor-header{height:43px;flex:0 0 43px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:10px}.editor-project-name{display:flex;align-items:center;gap:7px;min-width:0}.editor-project-name strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-project-name small{font-size:9px;color:#8d9aa5}.editor-tools{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}.tool-btn{width:29px;height:29px;border:1px solid transparent;border-radius:6px;background:transparent;color:#647789;display:grid;place-items:center;font-size:14px}.tool-btn:hover,.tool-btn.active{background:#e9f5fd;color:#1475b2;border-color:#cce7f7}.tool-separator{height:21px;width:1px;background:#e5eaef;margin:0 4px}.editor-body{display:flex;flex:1;min-height:0;position:relative;overflow:hidden}.editor-workspace{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.editor-canvas-wrap{position:relative;flex:1;min-height:0;overflow:hidden;background:#fff}.editor-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:default}.canvas-top-controls{position:absolute;top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dee5ea;border-radius:30px;padding:5px 9px;box-shadow:0 3px 12px #17314b12;z-index:2}.canvas-zoom{font-size:9px;color:#758593;min-width:36px;text-align:center}.sim-switch{width:78px;height:31px;border:1px solid #dfe5e9;border-radius:20px;background:#f1f3f5;display:flex;align-items:center;padding:3px;gap:1px}.sim-switch button{height:23px;width:35px;border:0;background:transparent;border-radius:15px;color:#8d9aa4;font-size:13px}.sim-switch button.active{background:#18a66a;color:white;box-shadow:0 2px 6px #18a66a44}.sim-switch.running{background:#e9f8f0}.sim-switch button.stop.active{background:#e05b5b;box-shadow:0 2px 6px #e05b5b44}.editor-bottom-tabs{height:39px;flex:0 0 39px;display:flex;background:#051d30}.editor-tab{flex:1;border:0;background:#072c48;color:#a9bac8;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px;position:relative}.editor-tab.active{background:#051d30;color:#fff}.editor-tab.active:after{content:"";height:3px;background:#4aadf8;position:absolute;bottom:0;left:0;right:0}.right-tools{position:absolute;right:15px;top:50%;transform:translateY(-50%);z-index:3;display:flex;flex-direction:column;gap:4px;padding:7px;background:#fff;border:1px solid #e0e7ec;border-radius:9px;box-shadow:0 5px 17px #0c243916}.right-tools .tool-btn{width:32px;height:32px;font-size:17px}.editor-status{height:25px;background:white;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:9px;color:#8896a2}.programming-view{flex:1;overflow:auto;background:#f6f8fa;padding:22px}.ladder-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.ladder-rung{background:#fff;border:1px solid #dfe7ed;border-radius:8px;margin-bottom:11px;padding:12px;display:flex;align-items:center;gap:8px;min-height:84px}.ladder-rail{width:3px;height:54px;background:#334e63}.ladder-block{min-width:67px;padding:10px 8px;border:1.5px solid #67859c;border-radius:4px;background:#f8fbfd;text-align:center;font-size:9px;color:#314e64}.ladder-wire{height:2px;flex:1;background:#67859c;min-width:10px}.inspector{position:absolute;right:60px;top:12px;width:220px;max-height:calc(100% - 24px);overflow:auto;background:#fff;border:1px solid #dce5eb;border-radius:8px;box-shadow:var(--shadow);z-index:5;padding:12px;display:none}.inspector.open{display:block}.inspector h4{margin:0 0 10px;font-size:11px}.field{display:flex;flex-direction:column;gap:4px;margin:8px 0}.field label{font-size:9px;color:#748494}.field input,.field select,.field textarea{height:30px;border:1px solid #dfe6eb;border-radius:5px;padding:5px 8px;font-size:10px;outline:none}.field input:focus,.field textarea:focus{border-color:#4aadf8}
.modal-backdrop{position:fixed;inset:0;background:#04122288;z-index:30;display:grid;place-items:center;padding:20px}.modal{width:min(460px,100%);background:white;border-radius:13px;box-shadow:0 25px 70px #00172b55;overflow:hidden}.modal-header{padding:16px 18px;border-bottom:1px solid #edf0f2;display:flex;justify-content:space-between;align-items:center}.modal-header b{font-size:13px}.modal-content{padding:17px 18px}.modal-actions{padding:12px 18px;border-top:1px solid #edf0f2;display:flex;justify-content:flex-end;gap:8px}.toast-region{position:fixed;right:16px;bottom:36px;z-index:50;display:flex;flex-direction:column;gap:7px}.toast{background:#10283c;color:white;border-radius:7px;padding:10px 13px;font-size:10px;box-shadow:0 8px 22px #00172a33;animation:toastin .2s ease}@keyframes toastin{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.hidden{display:none!important}.muted{color:#94a0aa}.muted-link{font-size:10px;color:#2684bf;text-decoration:none}.quick-symbols{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.quick-symbol{border:1px solid #e5edf2;border-radius:6px;padding:6px 3px;background:white;min-height:57px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.quick-symbol img{width:29px;height:29px;object-fit:contain}.quick-symbol small{font-size:8px;color:#61788a;text-align:center}.side-search{width:100%;height:31px;border:1px solid #e1e8ed;border-radius:6px;padding:0 8px;font-size:10px;margin-bottom:8px;outline:0}.side-category{border-bottom:1px solid #edf0f2}.side-category-title{width:100%;display:flex;align-items:center;justify-content:space-between;padding:9px 2px;border:0;background:white;color:#657787;font-size:10px;font-weight:700;text-align:left}.side-symbol-list{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:0 0 8px}.side-symbol{min-height:57px;border:1px solid transparent;border-radius:5px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px;cursor:grab}.side-symbol:hover{background:#eef7fd;border-color:#d2eafa}.side-symbol img{width:31px;height:31px;object-fit:contain}.side-symbol span{font-size:7px;color:#63798b;text-align:center;line-height:1.2}.mini-note{font-size:9px;color:#8c9aa6;line-height:1.5;margin:8px 0}
@media(max-width:1050px){.sidebar{width:220px;flex-basis:220px}.dashboard-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.page-wrap{padding:22px}.editor-tools .tool-label{display:none}}
@media(max-width:760px){body{overflow:auto}.suitebar{justify-content:space-between}.suite-message{font-size:9px}.suite-message span:nth-child(2){max-width:65vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell{height:calc(100% - 38px);min-height:calc(100vh - 38px)}.sidebar{position:fixed;top:38px;bottom:0;left:0;transform:translateX(-100%);transition:transform .2s;width:260px;z-index:20;box-shadow:10px 0 25px #00172b18}.sidebar.mobile-open{transform:translateX(0)}.main-area{width:100%}.mobile-top{height:42px;display:flex;align-items:center;gap:10px;padding:0 13px;background:white;border-bottom:1px solid var(--line);font-size:12px}.mobile-top button{border:0;background:transparent;font-size:18px}.mobile-top span{margin-left:auto;color:#8a98a5;font-size:9px}.main-content{height:calc(100% - 66px)}.page-wrap{padding:18px 14px}.page-title{font-size:21px}.page-top{align-items:center}.stats-grid{gap:8px}.stat-card{padding:11px}.stat-number{font-size:20px}.dashboard-grid{gap:12px}.market-grid{grid-template-columns:1fr 1fr}.editor-header{height:auto;min-height:43px;padding:6px;flex-wrap:wrap}.editor-tools{width:100%;overflow:auto}.editor-body{min-height:460px}.right-tools{right:5px}.canvas-top-controls{top:5px}.editor-tab{font-size:9px}.statusbar{font-size:8px}.upload-banner{align-items:flex-start;flex-direction:column}.project-row .row-actions .text-button{font-size:9px;padding:3px}.inspector{right:7px;top:55px;width:190px}.editor-bottom-tabs{height:36px;flex-basis:36px}}
.editor-status-actions{display:flex;align-items:center;gap:7px}.editor-status-actions button{border:0;background:transparent;padding:2px 4px;color:#668095;font-size:8px}.editor-status-actions button:hover{color:#1682c4;text-decoration:underline}
