:root{--bg:#f7f9fc;--paper:#fff;--border:#e4eaf2;--border2:#edf0f5;--ink:#1c2639;--muted:#8994a5;--subtle:#607084;--purple:#6946df;--purple2:#855fff;--sidebar:#111928;--sidebar-hover:#253249;--accent:#825cf7;--preview:#f5f7fb;--shadow:0 7px 30px rgba(24,36,59,.038)}
*{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}.icon-set{position:absolute;width:0;height:0;overflow:hidden}#app{display:flex;min-height:100vh;align-items:stretch}.sidebar{width:238px;flex:0 0 238px;background:var(--sidebar);color:#c1cad8;min-height:100vh;display:flex;flex-direction:column;position:relative;z-index:3}.brandbar{height:83px;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid #ffffff10;flex-shrink:0}.brandmark{width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#9863ff,#5b44e3);border-radius:11px;box-shadow:0 5px 14px #734de043;color:white}.brandmark svg{width:22px;height:22px;stroke-width:2.5}.brandtext strong{display:block;color:white;font-size:17px;font-weight:760;letter-spacing:-.5px}.brandtext strong span{color:#ae91ff}.brandtext small{font-size:9px;font-weight:800;letter-spacing:2.2px;color:#8593ad;display:block;margin-top:4px}.side-scroll{overflow-y:auto;overflow-x:hidden;flex:1;padding:21px 12px}.side-scroll::-webkit-scrollbar{width:4px}.side-scroll::-webkit-scrollbar-thumb{background:#43506a;border-radius:6px}.sidebar-group-label{font-size:10px;letter-spacing:1.4px;font-weight:760;color:#61728e;padding:0 15px;margin:2px 0 12px}.sidebar-group-label.second{margin-top:26px;margin-bottom:13px}.side-action{appearance:none;display:flex;align-items:center;gap:11px;width:100%;min-height:40px;color:#b7c2d3;border:1px solid transparent;background:transparent;border-radius:8px;text-align:left;padding:0 12px;font-size:12.5px;font-weight:560;margin-bottom:2px;transition:background .14s,color .14s}.side-action svg{width:16px;height:16px;color:#8c9bb3}.side-action:hover,.side-action:focus-visible{color:#fff;background:var(--sidebar-hover);outline:none}.side-action:hover svg{color:#ae9bff}.side-action kbd{font-size:9px;border:1px solid #39435a;border-radius:4px;padding:3px 4px;margin-left:auto;color:#7e8da4;white-space:nowrap;background:#162133;font-family:inherit}.side-action span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-action.braze-action svg{color:#a58efa}.side-separator{height:1px;background:#ffffff14;margin:13px 14px}.tinyplus{font-size:17px;color:#687a99;margin-left:auto;line-height:1}.sidebar-bottom{border-top:1px solid #ffffff11;display:flex;gap:10px;align-items:center;padding:19px 20px 22px;margin-top:auto}.mini-dot{width:9px;height:9px;border-radius:50%;background:#40d0a4;box-shadow:0 0 0 4px #40d0a416;align-self:flex-start;margin-top:5px}.sidebar-bottom strong{display:block;color:#d7e0ed;font-size:11px;font-weight:650}.sidebar-bottom span{display:block;color:#7788a3;font-size:10px;margin-top:4px}.main{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:72px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 32px;gap:22px}.crumb{display:flex;align-items:center;gap:9px;font-size:12px;color:#9aa5b4;white-space:nowrap}.crumb svg{transform:rotate(-90deg);width:13px;height:13px}.crumb strong{color:#3b475a;font-weight:680}.top-actions{display:flex;align-items:center;gap:11px}.save-state{font-size:11px;color:#8491a4;white-space:nowrap;display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;border-radius:50%;background:#42c59d}.status-dot.busy{background:#f1b652}.top-divider{height:24px;border-left:1px solid #e5e8f0;margin:0 3px}.select-wrap{display:flex;align-items:center;gap:10px;color:#8793a7;font-size:11px}.select-wrap select{height:35px;max-width:145px;background:#f7f8fc;border:1px solid #e4e9f2;border-radius:7px;color:#3f4b5e;font-size:11px;font-weight:680;padding:0 9px;outline:0;cursor:pointer}.top-button{border:1px solid #e4e8f0;border-radius:8px;height:35px;padding:0 13px;background:white;display:flex;align-items:center;gap:7px;color:#48566d;font-size:11.5px;font-weight:720;white-space:nowrap}.top-button svg{width:14px;height:14px}.top-button:hover{background:#f7f6ff;color:var(--purple)}.top-button.primary{background:#6e48e8;border-color:#6e48e8;color:#fff;box-shadow:0 3px 10px #6645da29}.top-button.primary:hover{background:#5c37d0}.content{display:flex;flex-direction:column;flex:1;padding:30px 31px 0;min-width:0;max-width:1800px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{display:flex;align-items:center;gap:8px;color:#8771bf;font-size:9px;font-weight:840;letter-spacing:1.55px;margin-bottom:12px}.eyebrow-pulse{height:6px;width:6px;border-radius:50%;background:#8e73ff}.eyebrow-dash{color:#b5afc5;font-size:11px;margin:0 3px}.page-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.9px;margin:0 0 8px;font-weight:760}.heading-highlight{color:#7152df}.page-heading p{color:#7a879a;font-size:12.5px;margin:0}.browser-badge{display:flex;gap:7px;align-items:center;color:#3a9b7d;background:#ecfaf5;border:1px solid #d6f1e5;font-size:11px;font-weight:650;padding:9px 12px;border-radius:25px;white-space:nowrap}.browser-badge svg{width:13px;height:13px;stroke-width:2.2}.workspace-shell{border:1px solid #dce3ed;border-radius:11px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden;flex:1;min-height:525px;display:flex;flex-direction:column}.workspace-topline{height:50px;flex:0 0 50px;display:flex;align-items:stretch;justify-content:space-between;padding:0 16px 0 0;border-bottom:1px solid var(--border)}.file-tabs{display:flex;align-items:stretch}.file-tab{display:flex;align-items:center;gap:8px;padding:0 16px;min-width:165px;background:#f9f8ff;border-right:1px solid var(--border);border-top:2px solid var(--purple);color:#6c52cc}.file-tab svg{width:15px;height:15px}.file-tab input{font-size:11px;width:125px;background:none;border:none;outline:none;color:#3e4c67;font-weight:680}.tab-close-dot{width:5px;height:5px;border-radius:50%;background:#a892f2;margin-left:auto}.workspace-options{display:flex;align-items:center;gap:7px;color:#8290a2}.small-tool,.icon-button{display:grid;place-items:center;border:0;background:transparent;color:#8f9bac;border-radius:6px;width:27px;height:27px}.small-tool:hover,.icon-button:hover{color:#6e48e8;background:#f1edff}.small-tool svg,.icon-button svg{width:15px;height:15px}.vertical-separator{height:20px;margin:0 5px;border-left:1px solid var(--border)}.auto-label{font-size:10px;font-weight:630;display:flex;align-items:center;gap:7px}.live-dot{width:6px;height:6px;border-radius:50%;background:#31bf9c}.split{display:grid;grid-template-columns:minmax(240px, 1fr) 7px minmax(240px, 1fr);flex:1;min-height:500px;max-height:calc(100vh - 313px);height:600px}.code-pane,.preview-pane{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.pane-titlebar{height:44px;flex:0 0 44px;border-bottom:1px solid var(--border2);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 14px}.pane-title{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;color:#506077;font-weight:800;white-space:nowrap}.pane-title svg{width:15px;height:15px;color:#8a93a7}.source-badge{font-size:8.5px;letter-spacing:.6px;padding:4px 6px;border-radius:4px;background:#f1f3f8;color:#8794a8;font-weight:730;margin-left:3px}.right-tools{display:flex;align-items:center;gap:7px;color:#9aa5b4;font-size:10px;white-space:nowrap}.editor-area,.fallback-editor{flex:1;min-height:300px;width:100%;margin:0;border:0;resize:none;outline:none;background:#111827;color:#dce4f5}.editor-area{font-size:12.5px}.fallback-editor{display:block;font:12px/1.7 Consolas,Monaco,"Liberation Mono",monospace;padding:17px;white-space:pre;tab-size:2}.fallback-editor[hidden]{display:none}.ace_editor{font-family:Consolas,Monaco,"Liberation Mono",monospace!important;font-size:12px!important}.ace-monokai{background:#141c2d!important}.ace-monokai .ace_gutter{background:#101827!important;color:#617086!important}.ace-monokai .ace_gutter-active-line,.ace-monokai .ace_marker-layer .ace_active-line{background:#25304770!important}.ace-monokai .ace_cursor{color:#baa5ff!important}.editor-foot,.preview-foot{height:33px;flex:0 0 33px;background:#fff;border-top:1px solid var(--border2);display:flex;align-items:center;justify-content:space-between;padding:0 13px;color:#9aa6b6;font-size:10px;white-space:nowrap}.footer-left,.footer-right{display:flex;align-items:center;gap:9px}.mode-indicator{color:#7554e9;font-weight:800}.foot-div{height:12px;border-left:1px solid #e3e8ef}.splitter{background:#e8ecf4;cursor:col-resize;display:flex;align-items:center;justify-content:center;position:relative}.splitter:hover,.splitter:focus{background:#d0c5fb;outline:none}.splitter .grip{width:3px;height:35px;border-radius:4px;background:repeating-linear-gradient(to bottom,#aab5c8 0px,#aab5c8 3px,transparent 3px,transparent 7px)}.live-tag{display:flex;align-items:center;gap:5px;border-radius:15px;font-size:9px;letter-spacing:0;font-weight:740;color:#139d72;background:#e7faf2;padding:4px 7px;margin-left:2px}.live-tag span{width:5px;height:5px;background:#30c995;border-radius:50%}.devices{display:flex;align-items:center;background:#f5f7fb;border:1px solid #e9edf3;padding:2px;border-radius:7px;gap:1px}.device{width:26px;height:24px;border:0;border-radius:5px;display:grid;place-items:center;background:transparent;color:#9aa7bb}.device svg{width:13px;height:13px}.device:hover,.device.active{background:white;color:#7654df;box-shadow:0 1px 4px #24365317}.preview-stage{background:#f2f5fa;background-image:radial-gradient(#e2e8f1 0.75px,transparent 0.75px);background-size:14px 14px;flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center;overflow:auto;padding:18px}.preview-stage iframe{display:block;width:100%;max-width:none;height:100%;min-height:380px;background:#fff;border:1px solid #e1e6ee;box-shadow:0 6px 20px #1f355d12;flex:0 0 auto}.preview-stage iframe.tablet{width:768px;max-width:none}.preview-stage iframe.mobile{width:390px;max-width:none}.preview-foot{padding:0 15px}.preview-foot>span:first-child{display:flex;gap:7px;align-items:center}.viewport-dot{background:#73a1e2;width:7px;height:7px;border-radius:2px}.lower-info{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:17px 0 0}.tip{display:flex;gap:10px;align-items:center;min-width:0}.tip>svg{width:32px;height:32px;flex:0 0 32px;padding:8px;background:#ede9ff;border-radius:8px;color:#7453df}.tip b{font-size:11.5px;font-weight:770;color:#48556e;display:block;margin-bottom:3px}.tip span{font-size:10.5px;color:#9aa4b1}.check-chip{background:#fff;color:#53647e;border:1px solid #e3e9f1;display:flex;gap:8px;align-items:center;font-size:10.5px;font-weight:700;white-space:nowrap;padding:9px 11px;border-radius:7px}.check-chip>svg:first-child{color:#30ad83;width:14px;height:14px}.check-chip:hover{border-color:#b4a6ee;color:#704ce0}.check-chip svg.arrow{width:12px;height:12px;transform:rotate(-90deg)}.main-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#a2adba;font-size:10px;padding:24px 0 17px}.main-footer a{color:#8473c8;text-decoration:none;white-space:nowrap}.main-footer a:hover{text-decoration:underline}.toast{position:fixed;z-index:15;bottom:22px;left:50%;transform:translate(-50%,15px);pointer-events:none;background:#243148;color:white;box-shadow:0 13px 40px #24314840;border-radius:8px;padding:12px 17px;font-size:12px;opacity:0;transition:opacity .2s,transform .2s;max-width:min(90vw,600px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.overlay{position:fixed;inset:0;background:rgba(11,18,34,.58);z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}.overlay[hidden]{display:none}.modal{background:white;color:#202a3b;border-radius:15px;box-shadow:0 25px 80px #0004;width:100%;max-width:640px;max-height:min(89vh,840px);display:flex;flex-direction:column;overflow:hidden}.modal-head{padding:24px 26px 20px;border-bottom:1px solid #e8ecf2;display:flex;justify-content:space-between;gap:12px;align-items:start}.modal-eyebrow{font-size:9px;color:#8b71d9;font-weight:850;letter-spacing:1.7px;margin-bottom:8px}.modal h2{font-size:21px;letter-spacing:-.5px;margin:0;color:#22304a}.modal-close{height:31px;width:31px;display:grid;place-items:center;border:1px solid #e5e9f0;border-radius:7px;background:#fff;color:#718199}.modal-close:hover{background:#f6f4ff;color:#6946df}.modal-body{padding:23px 26px;overflow-y:auto;font-size:12.5px;line-height:1.6}.modal-footer{padding:15px 26px;border-top:1px solid #edf0f5;display:flex;justify-content:flex-end;gap:9px}.modal-footer:empty{display:none}.action-btn{background:#714ce6;border:1px solid #714ce6;color:#fff;padding:9px 14px;border-radius:7px;font-size:11.5px;font-weight:750}.action-btn:hover{background:#5f3bcf}.action-btn.alt{background:white;color:#4c5c72;border-color:#dee5ee}.action-btn.alt:hover{background:#f7f8fc}.dialog-text{color:#75849a;font-size:12px;margin:0 0 18px}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.template-card{border:1px solid #e4e8f1;background:#fff;border-radius:10px;padding:15px;text-align:left;min-height:100px;display:flex;flex-direction:column;gap:8px}.template-card:hover{border-color:#987ee9;background:#faf9ff;box-shadow:0 3px 12px #724add12}.template-emoji{display:inline-flex;width:31px;height:31px;border-radius:8px;align-items:center;justify-content:center;background:#f0ebff;font-size:17px}.template-card strong{display:block;font-size:12px;color:#2e3e57}.template-card small{display:block;font-size:10px;color:#8190a5;line-height:1.5}.dialog-label{display:block;font-weight:720;color:#41516b;font-size:11px;margin:12px 0 6px}.dialog-input,.dialog-select{display:block;width:100%;border:1px solid #dee5ef;border-radius:7px;padding:10px 11px;background:white;color:#344158;outline:none;font:12px Consolas,monospace}.dialog-input:focus,.dialog-select:focus{border-color:#9e86f4;box-shadow:0 0 0 3px #a18cf42b}.code-example{margin-top:14px;padding:12px;border-radius:7px;background:#111827;color:#d4dded;font:11px/1.7 Consolas,monospace;white-space:pre-wrap;word-break:break-all}.diagnostic{display:flex;align-items:start;gap:11px;padding:12px 0;border-bottom:1px solid #eef1f5}.diagnostic:last-child{border:0}.diagnostic-icon{background:#fff4e4;color:#df9229;font-size:12px;width:24px;height:24px;display:grid;place-items:center;border-radius:7px;flex-shrink:0}.diagnostic.info .diagnostic-icon{background:#edf4ff;color:#5c87d4}.diagnostic.good .diagnostic-icon{background:#ebf9f2;color:#27ae80}.diagnostic strong{display:block;font-size:12px;color:#3c4b60}.diagnostic small{display:block;color:#7f8c9d;font-size:11px;line-height:1.6;margin-top:3px}.notice{padding:10px 12px;border-radius:7px;background:#f7f5ff;color:#70649a;font-size:11px;line-height:1.5;margin:8px 0 18px}.find-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.select-hint{font-size:10px;color:#7b879b;margin-top:8px}.dragging{user-select:none!important;cursor:col-resize!important}
/* dark interface mode (source editor stays dark in both modes) */
body.dark-ui{--bg:#161d2b;--paper:#1b2535;--border:#2b374a;--border2:#303b4d;--ink:#eef2f8;--muted:#a9b4c6;--subtle:#adbace;--preview:#161e2a;--shadow:none}body.dark-ui .topbar,body.dark-ui .pane-titlebar,body.dark-ui .workspace-topline,body.dark-ui .editor-foot,body.dark-ui .preview-foot{background:#202b3d}body.dark-ui .crumb strong,body.dark-ui .page-heading h1,body.dark-ui .pane-title,body.dark-ui .tip b{color:#e6ebf7}body.dark-ui .page-heading p,body.dark-ui .crumb{color:#a0abc0}body.dark-ui .file-tab{background:#28314a}body.dark-ui .file-tab input{color:#e2e8f5}body.dark-ui .source-badge,body.dark-ui .devices{background:#2b3650;color:#a8b5cb}body.dark-ui .preview-stage{background:#131a27;background-image:radial-gradient(#2c384e .8px,transparent .8px)}body.dark-ui .top-button.subtle,body.dark-ui .check-chip,body.dark-ui .select-wrap select,body.dark-ui .device{background:#2b364b;border-color:#36435b;color:#c1cbdb}body.dark-ui .tip span,body.dark-ui .main-footer,body.dark-ui .right-tools{color:#9da9bb}body.dark-ui .browser-badge{background:#18372f;border-color:#2f5c51;color:#74dbb4}body.dark-ui .splitter{background:#2b3649}
@media(max-width:1350px){.sidebar{width:213px;flex-basis:213px}.brandbar{padding:0 17px}.content{padding:27px 23px 0}.topbar{padding:0 23px}.page-heading h1{font-size:25px}.browser-badge{display:none}.side-action{font-size:12px;padding:0 10px;gap:9px}.side-action kbd{font-size:8px}}
@media(max-width:1100px){.sidebar{width:62px;flex-basis:62px}.brandbar{padding:0;justify-content:center}.brandtext,.sidebar-group-label,.side-action span,.side-action kbd,.sidebar-bottom>div:not(.mini-dot){display:none}.side-scroll{padding:21px 8px}.side-action{justify-content:center;padding:0;width:46px}.side-action svg{width:18px;height:18px}.side-separator{margin:15px 9px}.sidebar-bottom{justify-content:center;padding:17px 5px}.sidebar-bottom .mini-dot{margin:0}.page-heading h1{font-size:24px}.content{padding:22px 18px 0}.split{max-height:calc(100vh - 295px)}.topbar{padding:0 18px}}
@media(max-width:760px){.sidebar{width:49px;flex-basis:49px}.brandmark{width:32px;height:32px}.brandmark svg{width:19px;height:19px}.side-scroll{padding:15px 3px}.side-action{width:43px}.topbar{height:auto;min-height:63px;flex-wrap:wrap;padding:11px 12px;gap:9px}.crumb{font-size:11px}.top-actions{gap:6px;flex-wrap:wrap}.top-actions .save-state,.top-actions .top-divider,.select-wrap>span{display:none}.top-button{padding:0 8px;font-size:10px}.top-button svg{width:14px}.select-wrap select{max-width:120px}.content{padding:19px 10px 0}.page-heading{margin-bottom:17px}.page-heading h1{font-size:21px}.page-heading p{font-size:11px}.workspace-shell{min-height:780px}.split{height:auto;max-height:none;display:flex;flex-direction:column}.code-pane{height:390px;flex:0 0 390px}.splitter{height:7px;min-height:7px;cursor:row-resize}.splitter .grip{height:3px;width:35px;background:repeating-linear-gradient(to right,#aab5c8 0,#aab5c8 3px,transparent 3px,transparent 7px)}.preview-pane{height:420px;flex:0 0 420px}.editor-area,.fallback-editor{min-height:0}.preview-stage iframe{min-height:300px}.source-badge{display:none}.auto-label{display:none}.workspace-topline{height:45px;flex-basis:45px}.lower-info{align-items:start;flex-wrap:wrap}.tip span{line-height:1.4;display:block}.main-footer{flex-direction:column;align-items:flex-start;padding-top:20px}.template-grid{grid-template-columns:1fr}.modal{max-height:96vh}.modal-body{padding:16px}.modal-head{padding:17px}.modal-footer{padding:13px 17px}}
@media(max-width:450px){.sidebar{width:41px;flex-basis:41px}.side-action{width:36px}.side-action svg{width:16px}.brandmark{width:30px;height:30px}.top-button.subtle span{display:none}.top-button.primary span{font-size:10px}.preview-titlebar{padding:0 7px}.preview-controls{gap:2px}.pane-title{letter-spacing:.4px;font-size:9px}.devices{gap:0}.device{width:22px}.right-tools .icon-button{width:23px}}
