:root{font-family:"Microsoft YaHei UI","Segoe UI",sans-serif;color:#202a2d;background:#eef1f2;font-synthesis:none;letter-spacing:0}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}svg{width:18px;height:18px;stroke-width:1.8;flex:none}.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.app-header{height:60px;flex:none;background:#fff;border-bottom:1px solid #d9e0e1;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:14px;z-index:6}.brand,.header-actions,.button,.editor-toolbar,.canvas-tools,.editor-footer,.panel-subhead,.page-row,.widget-row,.inspector-head,.log-head{display:flex;align-items:center}.brand{gap:10px;white-space:nowrap}.brand strong{font-size:17px}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:#137d74;color:#fff}.brand-mark svg{width:20px;height:20px}.brand-divider,.header-separator,.tool-divider{width:1px;height:21px;background:#dce2e3;margin:0 5px}.brand-context{font-size:12px;color:#778386}.header-actions{gap:7px}.button,.icon-button,.zoom-value{border:1px solid transparent;border-radius:5px;background:transparent;color:#35474b;min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;white-space:nowrap}.button:hover,.icon-button:hover,.zoom-value:hover{background:#edf4f2;color:#116d66}.button.quiet{border-color:#dce3e4;background:#fff}.button.quiet:hover{background:#f3f8f7}.button.primary{background:#117d72;color:#fff;border-color:#117d72;font-weight:600}.button.primary:hover{background:#0d6d63}.icon-button{width:32px;padding:0}.icon-button svg{width:16px;height:16px}.icon-button.danger{color:#a6433b}.icon-button.danger:hover{background:#fff0ec}.mobile-only{display:none}.main-grid{min-height:0;flex:1;display:grid;grid-template-columns:252px minmax(0,1fr) 304px}.side-panel{min-height:0;background:#fff;display:flex;flex-direction:column}.page-panel{border-right:1px solid #dbe2e3}.inspector-panel{border-left:1px solid #dbe2e3}.micro-label{text-transform:uppercase;font-size:10px;font-weight:700;color:#819094;letter-spacing:.05em}.project-picker{padding:18px 14px 13px;border-bottom:1px solid #edf0f1}.project-picker select{display:block;width:100%;height:36px;margin-top:7px;padding:0 9px;border:1px solid #d6dfe0;background:#fff;border-radius:5px;color:#25383a;overflow:hidden;text-overflow:ellipsis}.project-meta{height:20px;margin-top:8px;color:#839094;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-tabs{display:flex;border-bottom:1px solid #e6ebec;padding:0 9px;flex:none}.pane-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#718185;padding:12px 11px 10px;font-size:12px}.pane-tab.active{color:#126e66;border-color:#118177;font-weight:700}.pane-content{min-height:0;overflow:auto;flex:1}.pane-content[hidden]{display:none}.panel-subhead{justify-content:space-between;padding:13px 13px 7px;color:#7a898b;font-size:11px;font-weight:700}.page-list,.widget-list{padding:0 7px 16px}.page-row,.widget-row{width:100%;text-align:left;min-height:38px;gap:9px;padding:7px 9px;border:1px solid transparent;border-radius:5px;background:transparent;color:#354347;font-size:12px}.page-row:hover,.widget-row:hover{background:#f3f7f6}.page-row.active,.widget-row.active{background:#e8f5f1;border-color:#c8e7df;color:#116b63}.page-row svg,.widget-row svg{width:16px;height:16px;color:#8b9da0}.page-row.active svg,.widget-row.active svg{color:#138478}.row-number{font-family:Consolas,monospace;color:#96a3a6;font-size:10px;min-width:27px}.row-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.sidebar-bottom{margin-top:auto;border-top:1px solid #e8eced;padding:12px 14px;display:flex;align-items:center;gap:8px;color:#8b999c;font-size:11px;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#acb9bb;flex:none}.status-dot.online{background:#26a87d;box-shadow:0 0 0 3px #e1f5ec}.status-dot.error{background:#d26853}.editor-main{min-width:0;min-height:0;display:flex;flex-direction:column}.editor-toolbar{height:64px;flex:none;justify-content:space-between;background:#fafbfb;border-bottom:1px solid #dce4e4;padding:0 20px;gap:10px}.location{display:flex;align-items:baseline;gap:11px;min-width:0}.location strong{font-size:14px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muted{font-size:11px;color:#91a0a3;white-space:nowrap}.canvas-tools{gap:3px}.add-control-wrap{position:relative}.add-control{background:#fff;border-color:#d9e1e2}.tiny-icon{width:13px!important;height:13px!important;color:#8a999a}.control-menu{position:absolute;top:42px;right:0;width:206px;background:#fff;border:1px solid #d9e1e2;border-radius:6px;box-shadow:0 12px 28px #25383a22;padding:6px;z-index:10;max-height:65vh;overflow:auto}.control-menu[hidden]{display:none}.control-menu button{width:100%;background:none;border:0;border-radius:4px;display:flex;align-items:center;gap:10px;padding:9px;color:#334246;text-align:left;font-size:12px}.control-menu button:hover{background:#ecf5f2}.control-menu svg{width:16px;height:16px;color:#168074}.zoom-value{min-width:48px;font-size:11px;color:#66787b;padding:0 4px}.canvas-scroll{flex:1;overflow:auto;min-height:0;background-color:#e9eeef;background-image:linear-gradient(#e1e7e8 1px,transparent 1px),linear-gradient(90deg,#e1e7e8 1px,transparent 1px);background-size:20px 20px}.canvas-stage{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:38px}.page-canvas{position:relative;flex:none;overflow:hidden;background:#fff;box-shadow:0 3px 6px #1b34351a,0 18px 45px #1b34351e;transform-origin:top left;outline:none}.page-canvas.preview{cursor:default}.widget{position:absolute;overflow:hidden;white-space:pre-wrap;word-break:break-word;display:flex;align-items:center;min-width:1px;min-height:1px;user-select:none;cursor:move}.widget.selected{outline:2px solid #109b8c;outline-offset:1px;z-index:999!important}.widget .widget-content{pointer-events:none;width:100%;overflow:hidden;text-overflow:clip;line-height:1.25}.widget .widget-caption{font-size:11px;color:#82999b;padding:3px}.widget.widget-image{background-size:100% 100%;background-position:center}.widget.widget-button{background-color:#e9f0f1;background-size:100% 100%;border:1px solid #9baeb0;border-radius:3px;text-align:center}.widget.widget-input{border:1px solid #a8b7b8;background:#fbfdfd;padding:3px}.widget.widget-unknown{border:1px dashed #c2cccd;background:#ffffffb0}.widget.preview{cursor:pointer}.widget .resize-handle{position:absolute;right:0;bottom:0;width:11px;height:11px;background:#fff;border:2px solid #119a8a;cursor:nwse-resize;z-index:2}.editor-footer{min-height:28px;flex:none;justify-content:space-between;gap:12px;padding:0 14px;background:#fff;border-top:1px solid #dde4e5;color:#7c8b8e;font-size:11px}.editor-footer>div{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.footer-divider{height:13px;border-left:1px solid #dfe6e7;margin:0 4px}.inspector-head{justify-content:space-between;padding:18px 17px 12px;border-bottom:1px solid #e7eced;flex:none}.inspector-head h2{font-size:15px;margin:5px 0 0}.property-form{flex:1;overflow:auto;padding:14px 17px 22px;min-height:0}.property-section{margin:0 0 21px;padding:0;border:0}.property-section legend{width:100%;border-bottom:1px solid #e8eded;margin-bottom:12px;padding:0 0 8px;color:#7c8c8e;font-size:11px;font-weight:700}.field{display:block;margin:0 0 11px}.field>span{display:block;color:#4c5b5e;font-size:11px;margin-bottom:5px}.field input,.field select,.field textarea{display:block;width:100%;min-height:34px;border:1px solid #d7e0e1;border-radius:4px;background:#fff;color:#263638;padding:6px 8px;font-size:12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#16a38d;box-shadow:0 0 0 2px #d8f5ed}.field input[type=color]{padding:3px;height:34px}.field textarea{resize:vertical;min-height:62px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}.field-check{display:flex;align-items:center;gap:8px;color:#354648;font-size:12px;margin-bottom:12px}.field-check input{accent-color:#0e8576}.log-drawer{position:absolute;bottom:28px;left:252px;right:304px;height:min(38vh,310px);background:#18282c;color:#d9e7e6;box-shadow:0 -10px 30px #162f3540;z-index:5;display:flex;flex-direction:column}.log-drawer[hidden]{display:none}.log-head{justify-content:space-between;padding:8px 13px;border-bottom:1px solid #ffffff21;font-size:12px}.log-head button{color:#d8e6e4}.log-drawer pre{padding:5px 14px 16px;margin:0;overflow:auto;font:11px/1.6 Consolas,"Microsoft YaHei UI",monospace;white-space:pre-wrap}.toast{position:fixed;bottom:45px;left:50%;transform:translate(-50%,10px);z-index:30;max-width:min(480px,90vw);padding:10px 14px;border-radius:5px;background:#24393c;color:#fff;font-size:12px;box-shadow:0 8px 24px #1234;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#99493e}
@media(max-width:1050px){.main-grid{grid-template-columns:208px minmax(0,1fr) 255px}.log-drawer{left:208px;right:255px}.brand-context{display:none}.location .micro-label{display:none}.editor-toolbar{padding:0 12px}.location{gap:6px}.location strong{max-width:170px}}@media(max-width:780px){.main-grid{grid-template-columns:minmax(0,1fr)}.page-panel,.inspector-panel{position:absolute;top:60px;bottom:28px;width:min(315px,86vw);z-index:8;box-shadow:0 12px 24px #122a3025;display:none}.page-panel.open,.inspector-panel.open{display:flex}.page-panel{left:0}.inspector-panel{right:0}.mobile-only{display:inline-flex}.desktop-only{display:none!important}.brand-divider,.header-separator{display:none}.app-header{padding:0 9px}.header-actions{gap:2px}.header-actions .button{padding:0 7px}.editor-toolbar{height:55px}.canvas-stage{padding:24px}.log-drawer{left:0;right:0}.location strong{max-width:140px}.muted{display:none}}@media(max-width:420px){.brand strong{font-size:14px}.brand-mark{width:27px;height:27px}.brand-mark svg{width:17px;height:17px}.app-header{gap:3px}.header-actions .button{min-width:30px}.editor-toolbar{gap:4px}.canvas-tools{gap:0}.canvas-tools .tool-divider,.canvas-tools #fit-button{display:none}.add-control{padding:0 7px}.location strong{max-width:106px}}
[hidden]{display:none!important}
.project-dialog .project-quota{margin:9px 0 0;color:#5a7174;font-size:12px;line-height:1.5}
.page-actions{display:flex;align-items:center;gap:2px}.page-actions .icon-button{width:28px;min-height:28px}.page-actions .icon-button:disabled{opacity:.35;cursor:default}
.page-row.start>svg{color:#b17d2f}.page-row.start.active>svg{color:#a97524}
@media(max-width:420px){#export-button span{display:none}#export-button{width:32px;min-width:32px;padding:0}}
.field-image-row{display:flex;align-items:center;gap:6px}.field-image-row select{flex:1;min-width:0}.field-image-row .icon-button{flex:none;width:34px;height:34px;min-height:34px;border-color:#d7e0e1;background:#fff}.field-image-row .icon-button:disabled{opacity:.45;cursor:default}
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#e9eeef}.login-form{width:min(380px,100%);padding:28px;background:#fff;border:1px solid #d6e0e1;border-radius:6px;display:flex;flex-direction:column;gap:8px}.login-heading{display:flex;align-items:center;gap:10px;font-size:17px}.login-form h1{font-size:20px;margin:20px 0 8px}.login-form label{font-size:12px;color:#45595c;margin-top:8px}.login-form input{width:100%;height:38px;border:1px solid #cbd8da;border-radius:4px;padding:0 10px;outline:none}.login-form input:focus{border-color:#168d80;box-shadow:0 0 0 2px #d8f5ed}.login-form .button{margin-top:18px;width:100%;height:38px}.login-error{font-size:12px;color:#a43b34;margin:8px 0 0}.account-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#5a6a6d}.log-head strong{margin-right:auto}.log-head #build-state{font-size:11px;color:#a9c7c4}.log-drawer progress{width:100%;height:4px;border:0;accent-color:#23b69b}.log-drawer pre{flex:1}.app-shell[hidden],.login-screen[hidden]{display:none!important}@media(max-width:780px){.account-name{display:none}}
@media(max-width:420px){.app-header .brand-mark{display:none}.app-header .brand{gap:0}}
.project-dialog{width:min(400px,calc(100vw - 32px));border:1px solid #d5e0e1;border-radius:6px;padding:0;color:#263638;box-shadow:0 18px 54px #162a3040}.project-dialog::backdrop{background:#10252c66}.project-dialog form{padding:22px;display:flex;flex-direction:column;gap:8px}.project-dialog h2{font-size:17px;margin:0 0 12px}.project-dialog label{font-size:12px;color:#45595c;margin-top:8px}.project-dialog input,.project-dialog select{height:38px;width:100%;border:1px solid #cbd8da;border-radius:4px;padding:0 10px;background:#fff;color:#263638}.project-dialog input:focus,.project-dialog select:focus{outline:2px solid #b4e5da;outline-offset:1px}.project-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.build-options-dialog{width:min(440px,calc(100vw - 32px))}.build-options-dialog .build-option-row,.about-body .build-option-row{display:flex;align-items:center;gap:9px;min-height:28px;margin:0}.build-options-dialog input[type=checkbox],.about-body input[type=checkbox]{width:16px;height:16px;margin:0;padding:0;accent-color:#117d72;flex:none}.build-option-charsets{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-left:25px;color:#45595c;font-size:12px}.build-option-charsets .build-option-row{min-height:24px}.build-option-hide{margin-top:16px!important;border-top:1px solid #e5eaeb;padding-top:12px}.about-body #about-build-option-row{margin-top:12px}.about-body #about-build-option-row[hidden]{display:none}
.new-project-dialog{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.new-project-dialog form{max-height:calc(100dvh - 26px);overflow:auto;gap:12px;padding:18px 20px}.new-project-dialog h2{font-size:16px;margin:0 0 2px}.new-project-section{min-width:0;margin:0;padding:10px 12px 12px;border:1px solid #dce4e7}.new-project-section legend{padding:0 5px;color:#405665;font-size:12px;font-weight:600}.new-project-location{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:8px}.new-project-location:last-child{margin-bottom:0}.new-project-location label{margin:0}.new-project-location input[readonly]{background:#f1f4f5;color:#647580}.new-project-filters{display:grid;grid-template-columns:.65fr .9fr 1.3fr .9fr;gap:9px}.new-project-filters label{display:block;min-width:0;margin:0}.new-project-filters select{height:34px;margin-top:5px;padding:0 7px;font-size:12px}.new-project-detail{width:100%;margin-top:12px;border-collapse:collapse;table-layout:fixed;font-size:12px}.new-project-detail td{height:24px;padding:3px 9px;border-bottom:1px solid #edf1f3;color:#344852}.new-project-detail td:first-child{width:38%;color:#657782}.new-project-dialog .project-quota{margin:0}.new-project-dialog .project-dialog-actions{margin:0;padding-top:12px;border-top:1px solid #e1e8eb}@media(max-width:520px){.new-project-dialog form{padding:14px}.new-project-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.new-project-section{padding:9px}}
.new-page-dialog input[readonly]{background:#f0f4f5;color:#62737a}
.open-project-dialog{width:min(520px,calc(100vw - 32px));max-height:min(80dvh,650px)}.open-project-dialog .project-dialog-content{padding:22px;display:flex;flex-direction:column;min-height:0;max-height:inherit}.open-project-list{min-height:120px;overflow:auto;display:flex;flex-direction:column;border:1px solid #dce5e7;border-radius:4px}.open-project-row{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:8px 12px;border:0;border-bottom:1px solid #e8eeee;background:#fff;color:#30474b;text-align:left;font-size:13px}.open-project-row:last-child{border-bottom:0}.open-project-row:hover,.open-project-row:focus-visible{background:#eef5f9}.open-project-row.current{background:#e9f4f0}.open-project-row svg{width:17px;height:17px;color:#30719d;flex:none}.open-project-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.open-project-row small{color:#6c8184;font-size:11px}.open-project-empty{padding:22px;color:#73878a;font-size:12px}.open-project-actions{flex-wrap:wrap;align-items:center}.open-project-actions .button{display:inline-flex;align-items:center;gap:6px}.open-project-actions svg{width:15px;height:15px}@media(max-width:520px){.open-project-dialog .project-dialog-content{padding:16px}.open-project-actions{justify-content:flex-start}.open-project-actions #close-open-project{margin-left:auto}}
.settings-dialog{width:min(490px,calc(100vw - 32px));max-height:min(90dvh,680px);overflow:auto}.settings-dialog form{gap:0}.settings-model{display:flex;justify-content:space-between;gap:12px;padding:9px 0 14px;color:#6c7d80;font-size:12px}.settings-model strong{color:#2e4245;font-weight:600}.settings-group{border:0;border-top:1px solid #e1e8e9;margin:0;padding:12px 0 15px;min-width:0}.settings-group legend{padding-right:9px;color:#65787b;font-size:12px;font-weight:700}.settings-group label{display:block;margin:0 0 6px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 14px}.settings-check{display:flex!important;align-items:center;gap:8px;margin:17px 0 0!important}.project-dialog .settings-check input{width:16px;height:16px;accent-color:#117d72;flex:none}.settings-dialog .project-dialog-actions{border-top:1px solid #e1e8e9;padding-top:16px;margin-top:0}@media(max-width:420px){.settings-grid{grid-template-columns:1fr;gap:12px}}
.settings-dialog{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.settings-dialog .project-dialog-actions{position:sticky;bottom:-22px;background:#fff;z-index:1;padding-bottom:10px}.settings-field{display:flex;flex-direction:column;min-width:0}.settings-field .settings-check{margin:4px 0!important}.settings-field.invalid label{color:#b24332}.settings-field small{color:#b24332;font-size:11px}.settings-group[hidden],.settings-field[hidden]{display:none}@media(max-width:420px){.settings-dialog form{padding:14px}.settings-dialog .project-dialog-actions{bottom:-14px}}
.settings-station{border-top:1px solid #e4eaeb;margin-top:10px;padding:8px 0}.settings-station[hidden]{display:none}.settings-station summary{cursor:pointer;color:#385d61;font-size:12px;font-weight:600;padding:4px 0}.settings-station>.settings-grid{padding-top:10px}
.project-picker-row{display:flex;align-items:flex-end;gap:7px}.project-picker-row select{min-width:0;flex:1}.project-picker-row .icon-button{margin-top:7px;width:36px;min-height:36px;border:1px solid #d6dfe0;background:#fff;flex:none}
.field-address-row{display:flex;gap:6px}.field-address-row input{min-width:0;flex:1}.field-address-row .icon-button{width:34px;min-height:34px;border-color:#d7e0e1;background:#fff;flex:none}
.tag-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #d5e0e1;border-radius:6px;padding:0;color:#263638;box-shadow:0 18px 54px #162a3040}.tag-dialog::backdrop{background:#10252c66}.tag-dialog[open]{display:flex;flex-direction:column}.tag-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:17px 20px 12px;border-bottom:1px solid #e1e8e9}.tag-dialog-head h2{font-size:16px;margin:0}.tag-toolbar{display:flex;gap:9px;padding:12px 20px}.tag-toolbar input,.tag-toolbar select,.new-address-tag-form input,.new-address-tag-form select{height:34px;border:1px solid #cbd8da;border-radius:4px;background:#fff;color:#263638;padding:0 9px;font-size:12px}.tag-toolbar input{min-width:0;flex:1}.tag-toolbar select{width:108px;flex:none}.tag-list{min-height:120px;max-height:38vh;overflow:auto;padding:0 12px 8px}.tag-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 36px 36px;gap:4px 8px;width:100%;min-height:51px;padding:7px 9px;border:0;border-bottom:1px solid #e8eeee;background:#fff;text-align:left;font-size:11px;color:#506265}.tag-row:hover,.tag-row:focus-visible{background:#ecf5f2}.tag-row strong,.tag-row code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-row strong{font-size:12px;color:#24383b}.tag-row code{font-family:Consolas,monospace;color:#176d65}.tag-kind,.tag-permission{color:#75878a}.tag-description{grid-column:1/-1;color:#8a999b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-empty{padding:18px 8px;color:#7a8d90;font-size:12px}.new-address-tag-form{border-top:1px solid #e1e8e9;padding:12px 20px 18px}.new-address-tag-form h3{font-size:12px;color:#667c7f;margin:0 0 10px}.tag-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.tag-form-grid label{display:block;color:#506265;font-size:11px}.tag-form-grid input,.tag-form-grid select{display:block;width:100%;margin-top:5px}.tag-dialog-actions{display:flex;justify-content:flex-end;margin-top:13px}@media(max-width:420px){.tag-dialog-head,.tag-toolbar,.new-address-tag-form{padding-left:14px;padding-right:14px}.tag-form-grid{grid-template-columns:1fr;gap:8px}.tag-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px 28px;gap:3px}.tag-list{max-height:23vh}}
.tag-row-wrap{display:flex;align-items:center;border-bottom:1px solid #e8eeee}.tag-row-wrap .tag-row{flex:1;border-bottom:0}.tag-row-wrap .tag-row:disabled{opacity:1;cursor:default}.tag-row-wrap .tag-row:disabled:hover{background:#fff}.tag-row-wrap .icon-button{flex:none;margin-right:7px}.tag-dialog-actions{align-items:center;gap:8px}.tag-dialog-actions #tag-delete{margin-right:auto}.tag-toolbar .icon-button{flex:none}.tag-form-grid input:disabled{background:#edf1f2;color:#647579}@media(max-width:420px){.tag-toolbar{flex-wrap:wrap}.tag-toolbar input{flex-basis:100%}.tag-toolbar select{margin-right:auto}}

.script-dialog{width:min(1040px,calc(100vw - 28px));height:min(760px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);border:1px solid #cfdcdd;border-radius:6px;padding:0;color:#263638;background:#fff;box-shadow:0 18px 54px #162a3040}.script-dialog::backdrop{background:#10252c66}.script-dialog[open]{display:flex;flex-direction:column}.script-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #e0e8e9;flex:none}.script-head h2{font-size:16px;margin:3px 0 0}.script-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;flex:1}.script-sidebar{min-width:0;min-height:0;border-right:1px solid #e2e9e9;display:flex;flex-direction:column}.script-new-form{display:flex;gap:5px;padding:12px;border-bottom:1px solid #e8eeee}.script-new-form input{min-width:0;flex:1;height:34px;border:1px solid #d2dfe0;border-radius:4px;padding:0 8px;font-size:12px}.script-new-form .icon-button{border:1px solid #d2dfe0;flex:none}.script-list{overflow:auto;min-height:0;padding:6px;flex:1}.script-file{display:flex;align-items:center;gap:7px;width:100%;min-height:38px;padding:6px 8px;border:1px solid transparent;border-radius:4px;background:transparent;text-align:left;color:#435558;font-size:12px}.script-file:hover{background:#eff6f4}.script-file.active{background:#e7f5f0;border-color:#c4e5da;color:#106d63}.script-file svg{width:15px;height:15px}.script-file span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.script-file small{font-size:10px;color:#849698}.script-empty{padding:9px;color:#8a999b;font-size:12px}.script-main{display:flex;min-width:0;min-height:0;flex-direction:column}.script-file-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;padding:6px 14px;border-bottom:1px solid #e8eeee}.script-file-head strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.script-file-head .icon-button{flex:none}.script-main textarea{flex:1;min-height:0;width:100%;border:0;outline:0;resize:none;padding:15px 18px;background:#fbfcfc;color:#263638;font:13px/1.6 Consolas,"Microsoft YaHei UI",monospace;tab-size:2;white-space:pre;overflow:auto}.script-main textarea:disabled{background:#f2f5f5}.script-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:9px 14px;border-top:1px solid #e0e8e9}.script-actions span{color:#74888b;font-size:11px}.script-actions .button{flex:none}@media(max-width:700px){.script-workspace{grid-template-columns:1fr;grid-template-rows:116px minmax(0,1fr)}.script-sidebar{border-right:0;border-bottom:1px solid #e2e9e9}.script-new-form{padding:7px 10px}.script-list{display:flex;gap:5px;overflow-x:auto;overflow-y:hidden;padding:5px 10px}.script-file{width:auto;min-width:100px;max-width:190px;flex:none}.script-file small{display:none}.script-main textarea{padding:12px;font-size:12px}}

/* Desktop editor layout: grouped tools, docked project/outline, document tabs and output. */
.app-header{height:36px;padding:0 12px;background:#f8fafc;border-color:#cbd4de}
.brand{gap:8px}.brand strong{font-size:14px}.brand-mark{width:23px;height:23px;border-radius:3px;background:#276a9b}.brand-mark svg{width:15px;height:15px}
.brand-context{font-size:11px}.header-actions .icon-button{min-height:28px;height:28px}
.header-quick{display:flex;align-items:center;gap:2px;margin-right:auto;min-width:0}
.quick-command{width:27px;height:27px;display:grid;place-items:center;flex:none;border:1px solid transparent;border-radius:3px;background:transparent;padding:2px}
.quick-command:hover:not(:disabled){background:#eaf2f9;border-color:#c8daeb}.quick-command:focus-visible{outline:2px solid #3b85bb}
.quick-command:disabled{opacity:.38;cursor:default}.quick-command img{width:20px;height:20px;object-fit:contain}
.quick-save-wrap{position:relative;display:flex;align-items:center;flex:none;gap:0}
.quick-save-dropdown{width:18px;padding:0}
.quick-save-dropdown svg{width:13px;height:13px;color:#427299}
.quick-save-menu{position:absolute;top:calc(100% + 3px);left:0;z-index:80;min-width:126px;padding:4px;border:1px solid #b9cad8;border-radius:3px;background:#fff;box-shadow:0 7px 18px #1b3a5530}
.quick-save-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:31px;padding:4px 8px;border:0;background:#fff;color:#30485c;text-align:left;font-size:12px;white-space:nowrap}
.quick-save-menu button:hover,.quick-save-menu button:focus-visible{background:#eaf2f9;outline:0}
.quick-save-menu img{width:20px;height:20px;object-fit:contain}
.ribbon-save-wrap,.ribbon-open-wrap{display:flex;align-items:flex-start;flex:none}
.ribbon-save-wrap>.ribbon-command,.ribbon-open-wrap>.ribbon-command{min-width:52px;padding-right:1px;border-radius:3px 0 0 3px}
.ribbon-save-dropdown,.ribbon-open-dropdown{display:grid;place-items:center;width:16px;height:56px;padding:0;border:1px solid transparent;border-radius:0 3px 3px 0;background:transparent;color:#427299}
.ribbon-save-dropdown:hover:not(:disabled),.ribbon-save-dropdown:focus-visible,.ribbon-open-dropdown:hover:not(:disabled),.ribbon-open-dropdown:focus-visible{background:#eaf2f9;border-color:#c8daeb;outline:0}
.ribbon-save-dropdown svg,.ribbon-open-dropdown svg{width:13px;height:13px}
.ribbon-save-menu,.ribbon-open-menu{position:fixed;z-index:90;min-width:136px;padding:4px;border:1px solid #b9cad8;border-radius:3px;background:#fff;box-shadow:0 7px 18px #1b3a5530}
.ribbon-save-menu button,.ribbon-open-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;padding:4px 8px;border:0;background:#fff;color:#30485c;text-align:left;font-size:12px;white-space:nowrap}
.ribbon-save-menu button:hover,.ribbon-save-menu button:focus-visible,.ribbon-open-menu button:hover,.ribbon-open-menu button:focus-visible{background:#eaf2f9;outline:0}
.ribbon-save-menu img{width:20px;height:20px;object-fit:contain}
.ribbon-open-menu svg{width:17px;height:17px}
@media(max-width:780px){.ribbon-save-dropdown,.ribbon-open-dropdown{height:49px}}
.quick-divider{height:19px;width:1px;background:#cbd5df;margin:0 4px;flex:none}
.ribbon{flex:none;background:#f8fafc;border-bottom:1px solid #bac9d7;min-width:0}
.ribbon-tabs{height:30px;display:flex;align-items:stretch;padding:0 10px;border-bottom:1px solid #d6dfe8;gap:2px}
.ribbon-tab{min-width:62px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:#40536a;font-size:12px}
.ribbon-tab:hover{background:#eaf1f8}.ribbon-tab.active{background:#fff;border-bottom-color:#3176ac;color:#205d8b;font-weight:700}
.ribbon-spacer{flex:1}.ribbon-body{height:83px;overflow-x:auto;overflow-y:hidden;background:#fff}
.ribbon-panel{display:flex;align-items:stretch;height:100%;width:max-content;min-width:100%;padding:3px 8px 2px}
.ribbon-panel[hidden]{display:none}
.ribbon-group{display:flex;flex-direction:column;min-width:0;border-right:1px solid #dce4eb;padding:0 8px}
.ribbon-group:last-child{border-right:0}.ribbon-commands{display:flex;align-items:flex-start;gap:2px;flex:1}
.ribbon-command{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:56px;max-width:88px;height:56px;padding:4px 7px;border:1px solid transparent;border-radius:3px;background:transparent;color:#334657;font-size:11px;white-space:nowrap}
.ribbon-command:hover{background:#eaf2f9;border-color:#c8daeb}.ribbon-command:focus-visible,.ribbon-tab:focus-visible{outline:2px solid #3b85bb;outline-offset:-2px}
.ribbon-command:disabled{opacity:.38;cursor:default}.ribbon-command:disabled:hover{background:transparent;border-color:transparent}
.ribbon-command svg{width:23px;height:23px;color:#2b6a9b;stroke-width:1.8}.ribbon-command span{overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ribbon-command .ribbon-icon{display:block;width:32px;height:32px;object-fit:contain;flex:none}
.ribbon-command.compact .ribbon-icon{width:22px;height:22px}
.ribbon-group-label{height:17px;text-align:center;color:#8493a1;font-size:10px;line-height:17px;white-space:nowrap}
.main-grid{grid-template-columns:264px minmax(0,1fr) 300px;background:#e9edf1}
.main-grid.hide-project-panel{grid-template-columns:minmax(0,1fr) 300px}.main-grid.hide-project-panel .page-panel{display:none}
.main-grid.hide-inspector-panel{grid-template-columns:264px minmax(0,1fr)}.main-grid.hide-inspector-panel .inspector-panel{display:none}
.main-grid.hide-project-panel.hide-inspector-panel{grid-template-columns:minmax(0,1fr)}
.page-panel,.inspector-panel{background:#fff;border-color:#cbd5df}.project-picker{padding:9px 10px 8px;border-color:#dce3ea}
.project-picker select{margin-top:5px;height:30px;border-radius:3px}.project-meta{height:16px;margin-top:4px}
.pane-content{display:flex;flex-direction:column;overflow:hidden;min-height:100px}
#pages-pane{flex:1 1 56%;border-bottom:5px solid #d7e0e9}
#widgets-pane{flex:1 1 44%}
.panel-subhead{min-height:31px;flex:none;padding:3px 8px 3px 10px;background:#eef3f8;border-bottom:1px solid #d7e1eb;color:#38516a;font-size:11px}
.panel-subhead>span{display:flex;align-items:center;gap:6px}.panel-subhead svg{width:14px;height:14px;color:#497ba5}
.panel-subhead>span{min-width:0;white-space:nowrap;overflow:hidden}.panel-subhead>span>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.page-actions{flex:none;gap:0}.page-actions .icon-button{width:24px;min-height:24px;height:24px}
.page-list,.widget-list{flex:1;min-height:0;overflow:auto;padding:5px 6px 10px}
.tree-folder,.tree-command{display:flex;align-items:center;gap:7px;width:100%;min-height:29px;padding:4px 8px;color:#405a72;font-size:11px}
.tree-folder{border:0;background:transparent;text-align:left;font-weight:700}.tree-folder:hover{background:#edf4fa}.tree-command{border:1px solid transparent;border-radius:2px;background:transparent;text-align:left}.tree-command.tree-child{padding-left:25px}
.tree-command:hover{background:#edf4fa}.tree-folder svg,.tree-command svg{width:15px;height:15px;color:#6385a2}
.page-list .page-row{padding-left:23px}
.page-row.empty{color:#8b9aa8}.page-row.empty:hover{background:#edf4fa;color:#46647e}
.tree-node-icon{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--tree-mask) center/contain no-repeat;mask:var(--tree-mask) center/contain no-repeat}
.tree-node-icon[data-tree-icon="open"]{--tree-mask:url("/static/tree-tft_open.svg");color:#c98318}
.tree-node-icon[data-tree-icon="config"]{--tree-mask:url("/static/tree-tft_config.svg");color:#4d5f73}
.tree-node-icon[data-tree-icon="sample"]{--tree-mask:url("/static/tree-tft_sampleset.svg");color:#168a45}
.tree-node-icon[data-tree-icon="alarm"]{--tree-mask:url("/static/tree-tft_eventset.svg");color:#c75b12}
.tree-node-icon[data-tree-icon="log"]{--tree-mask:url("/static/tree-tft_operationset.svg");color:#6a45b8}
.tree-node-icon[data-tree-icon="recipe"]{--tree-mask:url("/static/tree-tft_recipeset.svg");color:#6a45b8}
.tree-node-icon[data-tree-icon="stage"]{--tree-mask:url("/static/tree-tft_stageset.svg");color:#4d5f73}
.tree-node-icon[data-tree-icon="page"]{--tree-mask:url("/static/tree-tft_edit_pagecopy.svg");color:#0b84a5}
.tree-node-icon[data-tree-icon="run"]{--tree-mask:url("/static/tree-tft_run.svg");color:#168a45}
.tree-node-icon[data-tree-icon="new"]{--tree-mask:url("/static/tree-tft_new.svg");color:#4d5f73}
.tree-node-icon[data-tree-icon="script"]{--tree-mask:url("/static/tree-tft_script.svg");color:#4d5f73}
.tree-node-icon[data-tree-icon="texttag"]{--tree-mask:url("/static/tree-tft_texttag.svg");color:#0b84a5}
.tree-node-icon[data-tree-icon="address"]{--tree-mask:url("/static/tree-tft_addresstag.svg");color:#0b84a5}
.page-row,.widget-row{min-height:29px;padding:4px 7px;border-radius:2px;font-size:11px}
.page-row.active,.widget-row.active{background:#dcebf8;border-color:#b8d2e7;color:#245b86}
.widget-row .outline-icon{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;color:#2e5f9e;-webkit-mask:var(--outline-mask) center/contain no-repeat;mask:var(--outline-mask) center/contain no-repeat}
.widget-row .outline-icon[data-tone="alarm"]{color:#c75b12}
.widget-row .outline-icon[data-tone="button"]{color:#6a45b8}
.widget-row .outline-icon[data-tone="input"]{color:#0b84a5}
.widget-row .outline-icon[data-tone="data"]{color:#168a45}
.widget-row .outline-icon[data-tone="special"]{color:#4d5f73}
.widget-row.dragging{opacity:.48}
.widget-row.drop-before{box-shadow:inset 0 2px #3285bb}
.widget-row.drop-after{box-shadow:inset 0 -2px #3285bb}
.widget-row:focus-visible{outline:2px solid #3285bb;outline-offset:-2px}
.sidebar-bottom{padding:6px 10px;border-color:#d7e1eb;background:#f8fafc}
.document-tab-bar{display:flex;min-width:0;flex:none;background:#e7edf3;border-bottom:1px solid #b9c9d7}.document-tabs{display:flex;align-items:stretch;gap:0;min-height:32px;min-width:0;flex:1;overflow:auto hidden;scrollbar-width:thin}.tab-list-button{display:grid;place-items:center;flex:none;width:29px;min-height:32px;padding:0;border:0;border-left:1px solid #cbd7e1;background:#e7edf3;color:#526a7c}.tab-list-button:hover{background:#dbe8f2}.tab-list-button svg{width:15px;height:15px}.tab-list-button:disabled{opacity:.5;cursor:default}
.document-tab{display:flex;align-items:center;max-width:185px;min-width:90px;border-right:1px solid #cbd7e1;color:#5e7080}
.document-tab.active{background:#fff;color:#245c8c;box-shadow:inset 0 2px #3178ad}
.document-tab.dragging{opacity:.55}.document-tab.drag-before{border-left:2px solid #168273}.document-tab.drag-after{border-right:2px solid #168273}
.document-tab-open{display:flex;align-items:center;gap:6px;min-width:0;flex:1;height:31px;padding:0 8px;border:0;background:transparent;text-align:left;color:inherit;font-size:11px}
.document-tab-open svg{width:13px;height:13px}.document-tab-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-tab-close{display:grid;place-items:center;width:22px;height:22px;margin-right:3px;padding:0;border:0;border-radius:2px;background:transparent;color:#8292a0}
.document-tab-close:hover{background:#e5edf4;color:#334e66}.document-tab-close svg{width:12px;height:12px}
.welcome-page{flex:1;min-height:0;overflow:auto;background:#edf2f5;padding:32px 36px}
.welcome-page[hidden]{display:none}
.welcome-content{width:min(100%,900px);margin:0 auto}
.welcome-heading{display:flex;align-items:center;gap:15px;min-height:90px;padding:12px 0 24px;border-bottom:3px solid #21947a}
.welcome-mark{display:grid;place-items:center;width:56px;height:56px;flex:none;background:#155e9b;color:#fff;border-radius:6px}
.welcome-mark svg{width:31px;height:31px}
.welcome-heading h1{margin:0;color:#1a3950;font-size:25px;line-height:1.2;font-weight:700}
.welcome-heading span:not(.welcome-mark){display:block;margin-top:5px;color:#597080;font-size:12px}
.welcome-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);gap:38px;padding-top:28px}
.welcome-columns h2{margin:0;color:#245476;font-size:15px;line-height:28px}
.welcome-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.welcome-section-head .icon-button{min-height:28px;height:28px;width:28px}
.welcome-recent-list{min-height:220px;border-top:1px solid #cbd8e1;border-bottom:1px solid #cbd8e1;background:#fff}
.welcome-empty{margin:0;padding:17px;color:#778794;font-size:12px}
.welcome-recent-row{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;padding:7px 11px;border:0;border-bottom:1px solid #e5ebef;background:#fff;text-align:left;color:#2d4353;font-size:12px}
.welcome-recent-row:last-child{border-bottom:0}.welcome-recent-row:hover,.welcome-recent-row:focus-visible{background:#eaf4f2;outline:none}
.welcome-recent-row img{width:18px;height:18px;object-fit:contain;flex:none}.welcome-recent-row span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.welcome-recent-row svg{width:14px;height:14px;color:#8799a5}
.welcome-actions{border-left:1px solid #cbd8e1;padding-left:32px}.welcome-actions h2{margin-bottom:8px}
.welcome-action{display:flex;align-items:center;gap:11px;width:100%;min-height:43px;padding:7px 10px;border:0;border-bottom:1px solid #dbe4e9;background:transparent;text-align:left;color:#304d60;font-size:12px}
.welcome-action:hover,.welcome-action:focus-visible{background:#e1efeb;outline:none}.welcome-action img{width:20px;height:20px;object-fit:contain}.welcome-action span{flex:1}.welcome-action svg{width:14px;height:14px;color:#788d9b}
@media(max-width:780px){.welcome-page{padding:20px 18px}.welcome-heading{min-height:72px;padding:7px 0 17px}.welcome-mark{width:44px;height:44px}.welcome-mark svg{width:24px;height:24px}.welcome-heading h1{font-size:20px}.welcome-columns{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:18px}.welcome-actions{border-left:0;border-top:1px solid #cbd8e1;padding:16px 0 0}.welcome-recent-list{min-height:125px}}
.editor-toolbar{height:38px;padding:0 11px;background:#fff;border-color:#d5dfe8}.location strong{font-size:12px}.location .micro-label{font-size:10px}
.canvas-tools .icon-button,.canvas-tools .zoom-value,.canvas-tools .button{min-height:27px;height:27px}
.canvas-scroll{background-color:#dce4ea;background-image:linear-gradient(#d4dde4 1px,transparent 1px),linear-gradient(90deg,#d4dde4 1px,transparent 1px);background-size:24px 24px}
.canvas-workspace{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:20px minmax(0,1fr);flex:1;min-width:0;min-height:0}.canvas-workspace[hidden]{display:none}.ruler-corner,.ruler-horizontal,.ruler-vertical{background:#f7f9fc}.ruler-corner{border-right:1px solid #d5dde2;border-bottom:1px solid #d5dde2}.ruler-horizontal{width:100%;height:20px;border-bottom:1px solid #d5dde2;pointer-events:none}.ruler-vertical{width:20px;height:100%;border-right:1px solid #d5dde2;pointer-events:none}.canvas-workspace>.canvas-scroll{min-width:0;min-height:0}
.canvas-stage{padding:26px}.page-canvas{box-shadow:0 2px 8px #2637482b}
.inspector-head{padding:10px 12px;border-color:#d5dfe8;background:#eef3f8}.inspector-head h2{font-size:13px;margin-top:3px}
.property-form{padding:10px 12px 18px}.property-section{margin-bottom:14px}.property-section legend{margin-bottom:8px}
.log-drawer{position:relative;left:auto;right:auto;bottom:auto;flex:none;height:185px;box-shadow:none;border-top:1px solid #b9c9d7;background:#fff;color:#344556;z-index:1}
.log-head{min-height:29px;padding:3px 10px;background:#eef3f8;border-bottom-color:#d7e1eb;color:#38516a}
.log-head #build-state{color:#61788b}.log-head button{color:#536e82}.log-drawer pre{font-size:11px;color:#344556}
.editor-footer{min-height:24px;padding:0 10px;border-color:#c6d4df;background:#f8fafc;color:#647789}
.widget.widget-line{overflow:visible;background:transparent}.widget-line-drawing{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.widget.widget-line .resize-handle{right:auto;bottom:auto;transform:translate(-50%,-50%);cursor:crosshair}.property-form .field[hidden]{display:none}
.user-dialog{width:min(660px,calc(100vw - 24px));max-height:85dvh;padding:0;border:1px solid #c9d8e3;border-radius:5px;background:#fff;color:#263638;box-shadow:0 18px 54px #162a3040}.user-dialog::backdrop{background:#10252c66}.user-dialog[open]{display:flex;flex-direction:column}.user-dialog-head{display:flex;align-items:center;justify-content:space-between;min-height:47px;padding:7px 15px;border-bottom:1px solid #dce5eb;background:#f5f8fb}.user-dialog-head h2{font-size:15px;margin:0}.create-user-form{padding:15px;border-bottom:1px solid #e1e8ed}.create-user-form label{display:block;font-size:11px;color:#637486;margin-bottom:7px}.create-user-form>div{display:flex;gap:9px}.create-user-form input{min-width:0;flex:1;height:35px;border:1px solid #cad8df;border-radius:4px;padding:0 9px}.create-user-form .button{flex:none}.form-error{min-height:0;margin:6px 0 0;color:#a64039;font-size:11px}.form-error:empty{display:none}.user-list-head,.user-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 66px 86px;gap:10px;align-items:center;padding:8px 15px}.user-list-head{background:#f7f9fb;border-bottom:1px solid #e2e9ed;color:#697c88;font-size:11px}.user-list{min-height:0;overflow:auto}.user-row{min-height:47px;border-bottom:1px solid #edf1f3;font-size:12px}.user-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.user-count{font-size:11px;color:#657986}.user-status{font-size:11px;color:#178168}.user-status.inactive{color:#9b5d54}.user-actions{display:flex;justify-content:flex-end;gap:3px}.user-actions .icon-button{min-height:29px;width:29px}.user-actions .icon-button:disabled{cursor:default}.temporary-password-content{padding:22px}.temporary-password-content h2{font-size:17px;margin:0 0 10px}.temporary-password-content p{font-size:12px;color:#61727b;margin:5px 0}.temporary-password-row{display:flex;gap:7px;margin-top:15px}.temporary-password-row input{min-width:0;flex:1;font:12px Consolas,monospace}.temporary-password-row .icon-button{flex:none;width:38px;height:38px;border:1px solid #cbd8da}.temporary-password-content .copy-status{min-height:16px;color:#178168}@media(max-width:520px){.user-list-head{display:none}.user-row{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.user-row strong{grid-column:1/-1}.user-count{white-space:nowrap}.create-user-form>div{flex-wrap:wrap}.create-user-form input{flex-basis:100%}.create-user-form .button{margin-left:auto}}
.user-dialog{width:min(880px,calc(100vw - 24px))}.user-list-head,.user-row{grid-template-columns:minmax(105px,1fr) minmax(150px,1.3fr) 64px 118px 142px;gap:8px}.user-count{line-height:1.35;white-space:normal}.user-login{font-size:11px;color:#657986}.user-actions{justify-content:flex-start}.user-events{border-top:1px solid #e2e9ed;padding:9px 15px;font-size:11px;color:#516775}.user-events summary{cursor:pointer}.user-events>div{max-height:140px;overflow:auto;margin-top:7px}.user-event{padding:5px 0;border-top:1px solid #edf1f3}.user-setting-dialog{width:min(390px,calc(100vw - 24px));padding:18px}.user-setting-dialog form{display:grid;gap:8px}.user-setting-dialog h2{margin:0 0 4px;font-size:16px}.user-setting-dialog form>p{margin:0 0 6px;font-size:12px;color:#61727b}.user-setting-dialog label{font-size:12px}.user-setting-dialog input,.user-setting-dialog select{width:100%;height:34px;border:1px solid #cad8df;border-radius:4px;padding:0 8px}.user-setting-dialog .user-setting-hint{font-size:11px;color:#687d88}.user-transfer-projects{max-height:210px;overflow:auto;border:1px solid #dce5eb;padding:5px 8px}.user-transfer-projects label{display:flex;align-items:center;gap:8px;min-height:32px;overflow-wrap:anywhere}.user-transfer-projects input{width:15px;height:15px;flex:none}.user-setting-dialog .project-dialog-actions{margin-top:5px}@media(max-width:760px){.user-list-head{display:none}.user-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}.user-row strong{grid-column:1/-1}.user-row .user-count{grid-column:1/-1}.user-row .user-login{grid-column:1}.user-row .user-actions{grid-column:1/-1}.user-row .user-status{grid-column:2;grid-row:3}}
@media(max-width:1050px){.main-grid{grid-template-columns:218px minmax(0,1fr) 255px}.main-grid.hide-project-panel{grid-template-columns:minmax(0,1fr) 255px}.main-grid.hide-inspector-panel{grid-template-columns:218px minmax(0,1fr)}}
.user-filters{display:flex;gap:8px;padding:9px 15px;border-bottom:1px solid #e2e9ed}.user-filters input{min-width:0;flex:1}.user-filters select{width:125px;flex:none}.user-filters input,.user-filters select{height:31px;border:1px solid #cad8df;border-radius:4px;background:#fff;padding:0 8px;font-size:12px}.user-pager{display:flex;align-items:center;justify-content:space-between;min-height:36px;padding:3px 15px;border-top:1px solid #e2e9ed;color:#617786;font-size:11px}.user-pager>div{display:flex;gap:4px}.user-pager .icon-button{width:27px;height:27px;min-height:27px}.user-empty{padding:20px 15px;color:#687d88;font-size:12px}.user-setting-dialog #user-transfer-target-row{display:grid;gap:7px}.user-transfer-projects .archived{color:#687d88}.user-transfer-projects .archived span::after{content:' · 已归档';font-size:11px}.user-setting-dialog .project-dialog-actions{flex-wrap:wrap}.user-count .user-expired{color:#a34c12}@media(max-width:520px){.user-filters{flex-wrap:wrap}.user-filters input{flex-basis:100%}.user-filters select{width:100%}}
@media(max-width:780px){.app-header{height:34px}.ribbon-body{height:70px}.ribbon-tabs{height:28px}.ribbon-panel{padding:2px 5px}.ribbon-command{height:49px;min-width:48px}.ribbon-command svg{width:19px;height:19px}.ribbon-group-label{height:15px;line-height:15px}.main-grid,.main-grid.hide-project-panel,.main-grid.hide-inspector-panel,.main-grid.hide-project-panel.hide-inspector-panel{grid-template-columns:minmax(0,1fr)}.page-panel,.inspector-panel{top:132px;bottom:24px;width:min(300px,88vw)}.page-panel.open,.inspector-panel.open{display:flex!important}.editor-toolbar{height:34px;padding:0 7px}.canvas-stage{padding:16px}.log-drawer{height:min(34vh,210px)}.brand-context{display:none}.mobile-only{display:inline-flex}.location strong{max-width:150px}}
@media(max-width:420px){.brand-mark{display:grid!important}.brand strong{font-size:13px}.app-header{padding:0 8px}.ribbon-tabs{padding:0 5px}.ribbon-tab{min-width:52px;padding:0 9px}.location strong{max-width:100px}}
.header-actions .account-command{width:auto;padding:0 9px;font-size:11px}
.backup-health-button{color:#a34c12;background:#fff2e4;border-color:#e8b789}.backup-health-button:hover{color:#803609;background:#ffe7ce}.backup-health-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e1e7e8}.backup-health-head h2{margin:0;font-size:16px}.backup-health-body{padding:18px;max-width:480px;font-size:13px;line-height:1.55}.backup-health-body strong{color:#a34c12}.backup-health-body p{margin:8px 0 0;white-space:pre-line;overflow-wrap:anywhere;color:#3e5156}
.welcome-recent-row:disabled,.open-project-row:disabled{cursor:not-allowed;opacity:1;background:#f7f8f8;color:#7c898c}.welcome-recent-row:disabled:hover,.open-project-row:disabled:hover{background:#f7f8f8}.welcome-recent-row:disabled small,.open-project-row:disabled small{flex:none;color:#a34c12;font-size:11px}
[hidden]{display:none!important}
.main-grid.module-open{grid-template-columns:252px minmax(0,1fr)}
.main-grid.module-open>.inspector-panel{display:none}
.module-editor{display:flex;flex-direction:column;min-height:0;flex:1;background:#fff}
.module-head{display:flex;align-items:center;gap:16px;min-height:52px;flex:none;padding:8px 16px;border-bottom:1px solid #dce5ec;background:#f8fafc}
.module-head h2{font-size:15px;margin:0 auto 0 0;color:#284256}
.module-csv-actions{display:flex;align-items:center;gap:3px;padding-right:10px;border-right:1px solid #dce5ec}
.module-csv-actions .icon-button{width:30px;height:30px;flex:none}
.module-nav{display:flex;align-items:center;gap:7px;color:#617484;font-size:12px;white-space:nowrap}
.module-nav input{width:66px;height:30px;padding:0 5px;border:1px solid #c5d4df;border-radius:3px;text-align:center}
.module-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 16px;padding:14px 18px;border-bottom:1px solid #dce5ec;background:#f3f7fa}
.module-body{min-height:0;overflow:auto;padding:18px}
.module-table-scroll{max-height:min(44vh,400px);overflow:auto;border:1px solid #cbd8e0;background:#fff}
.module-table{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:12px;color:#344c59}
.module-table th,.module-table td{min-width:96px;max-width:180px;height:32px;padding:4px 9px;border-right:1px solid #e4ebef;border-bottom:1px solid #e4ebef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.module-table th{position:sticky;top:0;z-index:2;background:#eaf1f5;color:#36566a;font-weight:600}
.module-table th:first-child,.module-table td:first-child{position:sticky;left:0;z-index:1;min-width:72px;max-width:72px;background:#f5f8fa}
.module-table th:first-child{z-index:3;background:#eaf1f5}
.module-table tbody tr:nth-child(even) td{background:#f9fbfc}
.module-table tbody tr.active td,.module-table tbody tr.active td:first-child{background:#e2f1ed}
.module-table tbody tr:hover td,.module-table tbody tr:hover td:first-child{background:#edf7f4}
.module-row-button{width:100%;height:24px;border:0;background:transparent;color:#126e68;text-align:left;font:inherit;white-space:nowrap}
.module-row-button:focus-visible{outline:2px solid #188c82;outline-offset:-2px}
.module-table td:first-child .module-row-button{width:auto;margin-left:5px}
.module-cell-input{width:100%;min-width:70px;height:25px;padding:2px 5px;border:1px solid transparent;border-radius:2px;background:transparent;color:inherit;font:inherit}
.module-cell-input:hover,.module-cell-input:focus{border-color:#98b7be;background:#fff;outline:none}
.module-cell-input:disabled{border-color:transparent;background:#edf1f4;color:#8798a2;cursor:not-allowed}
.module-cell-input[type="checkbox"]{min-width:0;width:16px;height:16px;accent-color:#138479}
.module-cell-detail{border:0;background:transparent;color:#126e68;text-decoration:underline;cursor:pointer;font:inherit}
.module-table td.module-language-preview{color:#526b79;background:#f4f8fa}
.module-form-head{margin:16px 0 12px;color:#466172;font-size:12px;font-weight:600}
.module-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-content:start;gap:14px 18px;max-width:1100px}
.module-field{display:flex;flex-direction:column;min-width:0;gap:5px;color:#566b79;font-size:11px}
.module-field input:not([type=checkbox]),.module-field select,.module-field textarea,.installment-content select{width:100%;min-width:0;min-height:32px;border:1px solid #c8d5de;border-radius:3px;background:#fff;padding:5px 8px;color:#253b4c;font-size:12px}
.module-field input[type=checkbox]{height:20px;width:20px;margin:2px 0;accent-color:#237e76}
.module-field input:disabled,.module-field select:disabled{background:#edf0f2;color:#8999a5;border-color:#d9e1e6;cursor:not-allowed}
.module-field input:read-only{background:#f2f5f7;color:#667b89}
.module-address-row{display:flex;gap:5px;align-items:center}.module-address-row input{flex:1}.module-address-row .icon-button{width:32px;height:32px;min-height:32px;flex:none;border:1px solid #c8d5de;background:#fff}
.module-field textarea{min-height:118px;resize:vertical;font-family:Consolas,monospace}
.module-enabled{display:flex;align-items:center;grid-column:1/-1;gap:8px;font-size:12px;color:#344e5e;font-weight:600}
.module-enabled input{accent-color:#237e76}
.module-dialog{width:min(620px,calc(100vw - 24px));max-height:85dvh;padding:0;border:1px solid #c6d5e0;border-radius:4px;background:#fff;color:#263b49}
.module-dialog::backdrop{background:#10252c66}
.module-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #dbe5eb;background:#f3f7fa}
.module-dialog-head h2{font-size:15px;margin:0}
.module-dialog form,.installment-content{padding:18px;overflow:auto}
.module-dialog .module-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.installment-section{border:1px solid #dce5e9;margin:0 0 14px;padding:10px 14px 14px;min-width:0}
.installment-section legend{padding:0 5px;color:#3e5969;font-size:12px;font-weight:600}
.installment-section>label,.installment-section>div:not(.installment-status){display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:10px;margin:7px 0;color:#586c78;font-size:12px}
.installment-section strong{font-weight:500;color:#2e4552;overflow-wrap:anywhere}
.installment-status{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;margin:0;font-size:12px;color:#385064;overflow-wrap:anywhere}
.installment-status dt{color:#586c78}.installment-status dd{margin:0}
.installment-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.recipe-detail-open{justify-content:flex-start;border-color:#d6e2e8!important;background:#fff!important}
.recipe-detail-open svg{width:15px;height:15px;color:#277e77}
.recipe-detail-dialog{width:min(1000px,calc(100vw - 24px));height:min(650px,calc(100dvh - 24px));padding:0;border:1px solid #c6d5e0;border-radius:4px;background:#fff;color:#263b49}
.recipe-detail-dialog[open]{display:flex;flex-direction:column}
.recipe-detail-dialog::backdrop{background:#10252c66}
.recipe-detail-toolbar{display:flex;justify-content:space-between;gap:8px;padding:8px 14px;border-bottom:1px solid #dbe5eb;font-size:12px;color:#506779}
.recipe-detail-toolbar>div{display:flex;align-items:center;gap:6px}
.recipe-detail-toolbar span{min-width:120px;text-align:center}
.recipe-detail-scroll{flex:1;min-height:0;overflow:auto}
.recipe-detail-scroll table{border-collapse:collapse;min-width:100%;font-size:12px}
.recipe-detail-scroll th,.recipe-detail-scroll td{border:1px solid #dce5e9;padding:5px 7px;white-space:nowrap}
.recipe-detail-scroll th{position:sticky;top:0;background:#eef3f6;color:#405a6b;font-weight:600;z-index:1}
.recipe-detail-scroll tbody tr:nth-child(even){background:#f8fafb}
.recipe-detail-scroll td:first-child{position:sticky;left:0;background:#f4f7f9;text-align:center;font-family:Consolas,monospace;color:#647989;z-index:1}
.recipe-detail-scroll input{width:95px;height:26px;border:1px solid #cbd9e1;border-radius:2px;background:#fff;padding:2px 5px;font:12px Consolas,monospace}
.recipe-detail-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid #dbe5eb}
.view-options{display:flex;flex-direction:column;gap:2px;justify-content:center;min-height:56px}.view-options>div{display:flex;gap:11px;min-height:17px;align-items:center}
.view-options label{display:flex;align-items:center;gap:4px;font-size:11px;color:#405566;white-space:nowrap}
.view-options input{width:13px;height:13px;margin:0;accent-color:#2678a7}
.widget-marker{position:absolute;pointer-events:none;z-index:5;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 3px;background:#fff7;color:#b93030;font:10px Consolas,monospace}
.address-marker{top:0;left:0}.id-marker{top:0;right:0;color:#19669c}.comment-marker{bottom:0;left:0;color:#5d6b29}
.widget.show-text-border{outline:1px dashed #506f88;outline-offset:-1px}
@media(max-width:1050px){.main-grid.module-open{grid-template-columns:218px minmax(0,1fr)}}
@media(max-width:780px){.main-grid.module-open{grid-template-columns:minmax(0,1fr)}.module-head{flex-wrap:wrap;padding:8px}.module-body{padding:12px}.module-fields{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}}
@media(max-width:520px){.module-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.module-head h2{grid-column:1;margin:0}.module-nav{grid-column:2}.module-csv-actions{grid-column:1 / 3;grid-row:2;border:0;padding:0}.module-head #module-save{grid-column:3;grid-row:1 / 3;align-self:center}.module-dialog .module-fields{grid-template-columns:1fr}.installment-section>label,.installment-section>div:not(.installment-status),.installment-status{grid-template-columns:100px minmax(0,1fr)}}
@media(max-width:780px){.header-actions .account-command{width:28px;padding:0}.account-command span{display:none}}
.password-reason{margin:3px 0 12px;color:#a64039;font-size:12px}
.gallery-dialog{width:min(900px,calc(100vw - 24px));height:min(650px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#263638;box-shadow:0 18px 54px #162a3040}
.gallery-dialog::backdrop{background:#10252c66}.gallery-dialog[open]{display:flex;flex-direction:column}
.gallery-dialog [hidden]{display:none!important}
.gallery-source{display:flex;gap:0;padding:0 14px;border-bottom:1px solid #dce5eb;background:#fff}.gallery-source button{border:0;border-bottom:2px solid transparent;background:transparent;padding:9px 15px;color:#536a7b;font-size:12px;cursor:pointer}.gallery-source button[aria-selected="true"]{border-bottom-color:#147d73;color:#145d57;font-weight:600}
.gallery-head,.gallery-toolbar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #dce5eb;flex:none}
.gallery-head{justify-content:space-between;background:#f4f8fb}.gallery-head h2{margin:0;font-size:15px}
.gallery-toolbar input{min-width:0;flex:1;height:34px;padding:0 10px;border:1px solid #cbd8df;border-radius:4px;font-size:12px}
.gallery-toolbar select{min-width:110px;max-width:180px;height:34px;border:1px solid #cbd8df;border-radius:4px;background:#fff;padding:0 5px;font-size:12px}.gallery-detail small{color:#6d8189;font-size:11px}.gallery-more{grid-column:1/-1;justify-self:center;margin:8px}
.gallery-toolbar .button{flex:none}.gallery-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;min-height:0;flex:1}
.gallery-dialog.show-local .gallery-content,.gallery-dialog.show-online .gallery-content{grid-template-columns:170px minmax(0,1fr) 260px}
.gallery-local-dirs,.gallery-online-dirs{min-width:0;overflow:auto;border-right:1px solid #dce5eb;padding:8px 0}
.gallery-dir{display:block;width:100%;min-height:30px;border:0;background:transparent;color:#43576a;text-align:left;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.gallery-dir:hover{background:#f2f7fb}.gallery-dir.active{background:#e1f0ed;color:#126359;font-weight:600}
.gallery-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));align-content:start;gap:9px;min-height:0;overflow:auto;padding:12px}
.gallery-item{min-width:0;height:114px;padding:5px;border:1px solid #dce5eb;border-radius:4px;background:#fff;color:#43576a;text-align:left;font-size:11px}
.gallery-item:hover{background:#f2f7fb}.gallery-item:focus-visible{outline:2px solid #3784b5;outline-offset:1px}.gallery-item.active{border-color:#3784b5;background:#e9f3fa;box-shadow:inset 0 0 0 1px #3784b5}
.gallery-item img{display:block;width:100%;height:78px;object-fit:contain;background:#eef2f4}.gallery-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.gallery-list.list-mode{display:flex;flex-direction:column;gap:2px}.gallery-list.list-mode .gallery-item{display:flex;align-items:center;gap:10px;flex:none;width:100%;height:40px;padding:3px 8px}.gallery-list.list-mode .gallery-item img{width:32px;height:32px;flex:none}.gallery-list.list-mode .gallery-item span{min-width:0;margin:0}
.gallery-empty{grid-column:1/-1;margin:16px;color:#71818d;font-size:12px}.gallery-detail{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;border-left:1px solid #dce5eb}
.gallery-preview{position:relative;display:flex;width:100%;aspect-ratio:4/3;background:#e9eef1;color:#81909a;font-size:12px;overflow:auto}.gallery-preview img{display:block;flex:none;width:100%;height:100%;object-fit:contain;margin:auto}.gallery-preview>span{margin:auto}.gallery-preview-tools{position:absolute;top:6px;right:6px;display:flex;gap:2px;margin-left:auto;padding:2px;border:1px solid #cbd8e1;border-radius:4px;background:#fffffff2;z-index:1}.gallery-preview-tools .icon-button{width:26px;height:26px}.gallery-preview-tools .icon-button:disabled{opacity:.42;cursor:default}
.gallery-preview.can-pan img{cursor:grab}.gallery-preview.is-panning img{cursor:grabbing}
.gallery-detail strong{min-height:20px;overflow-wrap:anywhere;font-size:12px}.gallery-actions{display:flex;flex-direction:column;gap:8px;margin-top:auto}.gallery-actions .button{justify-content:flex-start;border-color:#d5e0e7}
.gallery-manage-actions{display:flex;gap:6px;justify-content:flex-end;border-top:1px solid #e1e9eb;padding-top:6px}.gallery-manage-actions .icon-button{width:30px;height:30px}
.gallery-actions .button:disabled{opacity:.48;cursor:default}@media(max-width:620px){.gallery-content{grid-template-columns:1fr;grid-template-rows:minmax(100px,1fr) auto}.gallery-dialog.show-local .gallery-content,.gallery-dialog.show-online .gallery-content{grid-template-columns:1fr;grid-template-rows:auto minmax(100px,1fr) auto}.gallery-local-dirs,.gallery-online-dirs{display:flex;gap:2px;max-height:52px;border-right:0;border-bottom:1px solid #dce5eb;overflow:auto;white-space:nowrap;padding:5px}.gallery-dir{width:auto;min-height:30px;flex:none;padding:0 9px!important;border-radius:3px}.gallery-detail{border-left:0;border-top:1px solid #dce5eb;padding:8px 12px}.gallery-preview{height:102px;aspect-ratio:auto}.gallery-actions{flex-direction:row;flex-wrap:wrap}.gallery-actions .button{flex:1;font-size:11px}.gallery-list{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:6px}.gallery-item{height:99px}.gallery-item img{height:64px}.gallery-toolbar{padding:8px}.gallery-toolbar .button{padding:0 6px;font-size:11px}}
.svg-color-dialog{width:min(790px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}.svg-color-dialog[open]{display:flex;flex-direction:column}.svg-color-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:14px;min-height:0;padding:14px}.svg-color-preview{display:grid;place-items:center;min-height:300px;background:repeating-conic-gradient(#edf1f2 0% 25%,#fff 0% 50%) 50%/20px 20px;border:1px solid #dce5eb}.svg-color-preview img{max-width:100%;max-height:360px;object-fit:contain}.svg-color-controls{min-width:0;display:flex;flex-direction:column;gap:12px}.svg-color-controls strong{font-size:12px;overflow-wrap:anywhere}.svg-color-modes{display:flex;border:1px solid #cad8de;border-radius:4px;overflow:hidden}.svg-color-modes button{flex:1;min-width:0;border:0;background:#fff;padding:8px 4px;color:#465b67;font-size:12px;cursor:pointer}.svg-color-modes button+button{border-left:1px solid #cad8de}.svg-color-modes button[aria-pressed="true"]{background:#e4f2ef;color:#116b61;font-weight:600}.svg-color-list{min-height:0;max-height:310px;overflow:auto;display:flex;flex-direction:column;gap:6px}.svg-color-row{display:flex;align-items:center;gap:8px;min-height:36px;padding:3px 6px;border:1px solid #e1e9eb;border-radius:4px;font-size:12px}.svg-color-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.svg-color-row input[type=color]{width:38px;height:28px;padding:2px;border:1px solid #bdcdd4;border-radius:4px;background:#fff;cursor:pointer}.svg-color-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.svg-color-pages[hidden]{display:none}.svg-color-pages button{border:1px solid #cad8de;border-radius:4px;background:#fff;padding:5px 8px;color:#293d48;cursor:pointer}.svg-color-pages button:disabled{color:#9ba9b0;background:#f1f3f4;cursor:not-allowed}@media(max-width:620px){.svg-color-body{grid-template-columns:1fr;overflow:auto}.svg-color-preview{min-height:145px}.svg-color-preview img{max-height:145px}.svg-color-list{max-height:200px}}
.svg-color-dialog{width:min(790px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}.svg-color-dialog[open]{display:flex;flex-direction:column}.svg-color-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:14px;min-height:0;padding:14px}.svg-color-preview{display:grid;place-items:center;min-height:300px;background:repeating-conic-gradient(#edf1f2 0% 25%,#fff 0% 50%) 50%/20px 20px;border:1px solid #dce5eb}.svg-color-preview img{max-width:100%;max-height:360px;object-fit:contain}.svg-color-controls{min-width:0;display:flex;flex-direction:column;gap:12px}.svg-color-controls strong{font-size:12px;overflow-wrap:anywhere}.svg-color-modes{display:flex;border:1px solid #cad8de;border-radius:4px;overflow:hidden}.svg-color-modes button+button{border-left:1px solid #cad8de}.svg-color-modes button[aria-pressed="true"]{background:#e4f2ef;color:#116b61;font-weight:600}.svg-color-list{min-height:0;max-height:310px;overflow:auto;display:flex;flex-direction:column;gap:6px}.svg-color-row{display:flex;align-items:center;gap:8px;min-height:36px;padding:3px 6px;border:1px solid #e1e9eb;border-radius:4px;font-size:12px}.svg-color-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.svg-color-row input[type=color]{width:38px;height:28px;padding:2px;border:1px solid #bdcdd4;border-radius:4px;background:#fff;cursor:pointer}.svg-color-row input[type=number]{width:54px;height:28px;border:1px solid #bdcdd4;border-radius:4px;background:#fff;color:#293d48;font-size:12px}.svg-color-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.svg-color-pages[hidden]{display:none}.svg-color-pages button{border:1px solid #cad8de;border-radius:4px;background:#fff;padding:5px 8px;color:#293d48;cursor:pointer}.svg-color-pages button:disabled{color:#9ba9b0;background:#f1f3f4;cursor:not-allowed}@media(max-width:620px){.svg-color-body{grid-template-columns:1fr;overflow:auto}.svg-color-preview{min-height:145px}.svg-color-preview img{max-height:145px}.svg-color-list{max-height:200px}}
.text-tag-dialog{width:min(1100px,calc(100vw - 24px));height:min(680px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}
.font-library-dialog{width:min(640px,calc(100vw - 24px));height:min(550px,calc(100dvh - 24px));padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}
.font-library-dialog::backdrop{background:#10252c66}.font-library-dialog[open]{display:flex;flex-direction:column}.font-library-body{min-height:0;flex:1;display:flex;flex-direction:column;padding:12px;gap:10px}.font-library-list{min-height:100px;flex:1;overflow:auto;border:1px solid #dce5eb;border-radius:4px;background:#fff}.font-library-row{display:flex;align-items:center;gap:10px;width:100%;min-height:39px;padding:6px 10px;border:0;border-bottom:1px solid #e8eef1;background:#fff;text-align:left;color:#344a55;font-size:12px}.font-library-row:nth-child(even){background:#f8fafb}.font-library-row[aria-selected="true"]{background:#e5f3f0;color:#155f5b}.font-library-row strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.font-library-row span{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748894}.font-library-row em{font-style:normal;font-size:11px;color:#137b70}.font-library-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.font-library-tools select{height:34px;min-width:120px;max-width:190px;flex:1;border:1px solid #cbd8df;border-radius:4px;background:#fff;color:#344a55;padding:0 8px;font-size:12px}.font-library-tools .button{min-height:34px;font-size:12px}.font-library-apply{display:flex;align-items:center;gap:8px;color:#4b5f69;font-size:12px}.font-library-apply input{accent-color:#137d72}@media(max-width:620px){.font-library-body{padding:9px}.font-library-tools select{max-width:none;width:100%;flex-basis:100%}.font-library-tools .button{font-size:11px;padding:0 7px}.font-library-row span{max-width:30%}}
.font-library-progress{display:grid;gap:5px;padding:8px;border:1px solid #b8d5d0;border-radius:4px;background:#edf8f5;color:#155f5b;font-size:12px}
.font-library-progress[hidden]{display:none}
.font-library-progress progress{width:100%;height:8px;accent-color:#158579}
.keyboard-manager-dialog{width:min(720px,calc(100vw - 24px));height:min(570px,calc(100dvh - 24px));padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}.keyboard-manager-dialog::backdrop{background:#10252c66}.keyboard-manager-dialog[open]{display:flex;flex-direction:column}.keyboard-manager-scroll{min-height:0;flex:1;overflow:auto;padding:12px}.keyboard-manager-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.keyboard-manager-table th,.keyboard-manager-table td{height:42px;padding:5px 9px;border:1px solid #dce5eb;text-align:left}.keyboard-manager-table th{position:sticky;top:0;z-index:1;background:#eff4f7;color:#526a79}.keyboard-manager-table th:first-child,.keyboard-manager-table td:first-child{width:85px}.keyboard-manager-table th:last-child,.keyboard-manager-table td:last-child{width:130px}.keyboard-manager-table tbody tr:nth-child(even){background:#f8fafb}.keyboard-manager-table label{display:inline-flex;align-items:center;gap:6px}.keyboard-manager-table input{accent-color:#127d72}.keyboard-manager-table select{width:100%;height:31px;border:1px solid #cad7df;border-radius:4px;background:#fff;color:#344a55;padding:0 7px;font-size:12px}.keyboard-manager-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid #dce5eb}.keyboard-manager-footer #keyboard-manager-status{flex:1;color:#6e808b;font-size:11px}.keyboard-manager-footer .button{min-height:33px;font-size:12px}@media(max-width:520px){.keyboard-manager-scroll{padding:7px}.keyboard-manager-table th,.keyboard-manager-table td{padding:4px}.keyboard-manager-table th:first-child,.keyboard-manager-table td:first-child{width:58px}.keyboard-manager-table th:last-child,.keyboard-manager-table td:last-child{width:78px}.keyboard-manager-footer #keyboard-manager-status{order:-1;flex-basis:100%}.keyboard-manager-footer .button{font-size:11px;padding:0 7px}}
.sound-manager-dialog{width:min(700px,calc(100vw - 24px));height:min(570px,calc(100dvh - 24px));padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}.sound-manager-dialog::backdrop{background:#10252c66}.sound-manager-dialog[open]{display:flex;flex-direction:column}.sound-manager-body{min-height:0;flex:1;display:flex;flex-direction:column;gap:10px;padding:11px}.sound-manager-scroll{min-height:100px;flex:1;overflow:auto;border:1px solid #dce5eb}.sound-manager-table{width:100%;border-collapse:collapse;font-size:12px}.sound-manager-table th,.sound-manager-table td{height:35px;padding:5px 9px;text-align:left;border-bottom:1px solid #e3ebef}.sound-manager-table th{position:sticky;top:0;background:#eff4f7;color:#526a79}.sound-manager-table th:first-child,.sound-manager-table td:first-child{width:60px}.sound-manager-table th:last-child,.sound-manager-table td:last-child{width:110px}.sound-manager-table tbody tr{cursor:pointer}.sound-manager-table tbody tr:nth-child(even){background:#f8fafb}.sound-manager-table tbody tr[aria-selected="true"]{background:#e5f3f0;color:#155f5b}.sound-manager-tools,.sound-manager-boot>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.sound-manager-tools .button,.sound-manager-boot .button{min-height:33px;font-size:12px}.sound-manager-boot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e0e8ed;padding-top:10px;font-size:11px;color:#70818b}.sound-manager-boot>span{text-align:right}.sound-manager-body audio{width:100%;height:36px}.sound-manager-body audio[hidden]{display:none}@media(max-width:520px){.sound-manager-body{padding:7px}.sound-manager-boot{align-items:flex-start;flex-direction:column}.sound-manager-boot>span{text-align:left}.sound-manager-tools .button,.sound-manager-boot .button{font-size:11px;padding:0 7px}}
.text-tag-dialog::backdrop{background:#10252c66}.text-tag-dialog[open]{display:flex;flex-direction:column}
.text-tag-head,.text-tag-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:10px 14px;border-bottom:1px solid #dce5eb;background:#f4f8fb}.text-tag-head h2{margin:0;font-size:15px}
.text-tag-footer{border-top:1px solid #dce5eb;border-bottom:0;background:#fff;color:#6b7d88;font-size:12px}.text-tag-footer>div{display:flex;gap:8px}.text-tag-footer .button{min-height:33px}
.text-tag-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:0;flex:1}.text-tag-languages{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #dce5eb}.text-tag-section-head{padding:12px 13px 8px}.text-tag-section-head h3{margin:0;font-size:12px;color:#536b7b}
.text-tag-language-list{min-height:0;flex:1;overflow:auto;padding:0 10px}.text-tag-language-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:5px;margin-bottom:8px;padding:7px;border:1px solid #dde7ec;border-radius:4px;background:#f8fafb}.text-tag-language-row input,.text-tag-language-row select,.text-tag-add-language input,.text-tag-toolbar input,.text-tag-table input,.text-tag-table textarea{min-width:0;border:1px solid #cbd8df;border-radius:3px;background:#fff;color:#293d48;font:12px Arial,sans-serif}.text-tag-language-row input,.text-tag-language-row select,.text-tag-add-language input,.text-tag-toolbar input,.text-tag-table input{height:31px;padding:5px 7px}.text-tag-language-row select{grid-column:1/-1;grid-row:2}.text-tag-language-row .icon-button{grid-column:2;grid-row:1}.text-tag-language-row .icon-button,.text-tag-add-language .icon-button{width:30px;height:31px}.text-tag-add-language{display:flex;gap:5px;padding:9px 10px;border-top:1px solid #e2e9ee}.text-tag-add-language input{flex:1}
.text-tag-main{display:flex;flex-direction:column;min-width:0;min-height:0}.text-tag-toolbar{display:flex;align-items:center;gap:7px;padding:9px 11px;border-bottom:1px solid #dce5eb}.text-tag-toolbar input{flex:1}.text-tag-toolbar .button{min-height:31px;white-space:nowrap}.text-tag-toolbar .icon-button{width:32px;height:31px;flex:none}.text-tag-visible{padding:5px 12px;color:#70828d;font-size:11px}.text-tag-table-scroll{min-height:0;flex:1;overflow:auto}.text-tag-table{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:12px}.text-tag-table th,.text-tag-table td{min-width:175px;max-width:250px;padding:5px 7px;border-right:1px solid #e1e8ed;border-bottom:1px solid #e1e8ed;text-align:left;vertical-align:top}.text-tag-table th{position:sticky;top:0;z-index:2;height:32px;background:#edf3f7;color:#3f596b;font-weight:600}.text-tag-table th:first-child,.text-tag-table td:first-child{position:sticky;left:0;z-index:1;min-width:160px;background:#fff}.text-tag-table th:first-child{z-index:3;background:#edf3f7}.text-tag-table tbody tr:nth-child(even) td{background:#f8fafb}.text-tag-table td input,.text-tag-table td textarea{width:100%}.text-tag-table td textarea{display:block;min-height:43px;padding:5px 7px;resize:vertical}.text-tag-table th:last-child,.text-tag-table td:last-child{min-width:46px;width:46px;text-align:center}.text-tag-table td .icon-button{width:30px;height:31px}
@media(max-width:700px){.text-tag-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:185px minmax(0,1fr)}.text-tag-languages{border-right:0;border-bottom:1px solid #dce5eb}.text-tag-language-list{display:flex;gap:7px;padding:0 10px;overflow:auto}.text-tag-language-row{min-width:175px;align-self:flex-start}.text-tag-add-language{padding:5px 10px}.text-tag-toolbar{padding:7px}.text-tag-toolbar .button{font-size:11px;padding:0 7px}.text-tag-footer{padding:8px}.text-tag-table th,.text-tag-table td{min-width:155px}}
.ribbon-command.compact{min-width:38px;max-width:38px;width:38px;height:56px;padding:4px}
.page-canvas .widget.selected{z-index:var(--widget-z-order)!important;outline:2px solid #109b8c;outline-offset:1px}
.widget .resize-handle[data-resize-handle=tl]{left:0;top:0;right:auto;bottom:auto;cursor:nwse-resize}.widget .resize-handle[data-resize-handle=t]{left:calc(50% - 5px);top:0;right:auto;bottom:auto;cursor:ns-resize}.widget .resize-handle[data-resize-handle=tr]{right:0;top:0;bottom:auto;cursor:nesw-resize}.widget .resize-handle[data-resize-handle=l]{left:0;top:calc(50% - 5px);right:auto;bottom:auto;cursor:ew-resize}.widget .resize-handle[data-resize-handle=r]{right:0;top:calc(50% - 5px);bottom:auto;cursor:ew-resize}.widget .resize-handle[data-resize-handle=bl]{left:0;bottom:0;right:auto;cursor:nesw-resize}.widget .resize-handle[data-resize-handle=b]{left:calc(50% - 5px);bottom:0;right:auto;cursor:ns-resize}.widget .resize-handle[data-resize-handle=br]{right:0;bottom:0;cursor:nwse-resize}
.selection-marquee{position:absolute;z-index:1000000;pointer-events:none;border:1px solid #0d8c80;background:#16a89930}
.page-canvas.creating-widget,.page-canvas.creating-widget .widget{cursor:crosshair}.ribbon-command.active-tool,.control-menu button.active-tool{background:#dcebf7;border-color:#8ab9dd;color:#185784}.create-rect-preview,.create-line-preview{position:absolute;z-index:1000002;pointer-events:none}.create-rect-preview{border:1px dashed #5d6671;background:#71889a20}.create-line-preview{inset:0;width:100%;height:100%;overflow:visible}.create-line-preview line{stroke:#5d6671;stroke-width:1;stroke-dasharray:4 3}
#geometry-sync-status{min-height:20px;padding:0 5px;border:0;background:transparent;color:#286a5d;font-size:11px;white-space:nowrap;cursor:default}#geometry-sync-status[hidden]{display:none}#geometry-sync-status.failed{color:#ad3d32;text-decoration:underline;cursor:pointer}
#property-sync-status{min-height:20px;padding:0 5px;border:0;background:transparent;color:#286a5d;font-size:11px;white-space:nowrap;cursor:default}#property-sync-status[hidden]{display:none}#property-sync-status.failed{color:#ad3d32;text-decoration:underline;cursor:pointer}
.snap-guide{position:absolute;z-index:1000001;pointer-events:none;background:#eb493f}
.snap-guide-x{top:0;bottom:0;width:1px}
.snap-guide-y{left:0;right:0;height:1px}
.clipboard-image-dialog{width:min(460px,calc(100vw - 24px))}
.clipboard-image-content{padding:20px}
.clipboard-image-content h2{margin:0 0 10px;font-size:16px}
.clipboard-image-content p{margin:0;color:#526875;font-size:12px;line-height:1.5}
.clipboard-image-content label{display:block;margin-top:12px;font-size:12px;color:#45595c}
.clipboard-image-content select{display:block;width:100%;min-height:34px;margin-top:5px;border:1px solid #cbd8da;border-radius:4px;background:#fff;color:#263638}
.clipboard-image-dialog .project-dialog-actions{flex-wrap:wrap}
.clipboard-image-dialog .project-dialog-actions [hidden]{display:none}
.ribbon-command.compact svg{width:18px;height:18px}
.preview-selects{display:flex;flex-direction:column;gap:3px;justify-content:center}.preview-selects label{display:flex;align-items:center;gap:5px;color:#5c6d72;font-size:11px;white-space:nowrap}.preview-selects select{width:95px;height:24px;border:1px solid #bfcdd1;border-radius:3px;background:#fff;color:#263b40;font-size:11px}
.find-dialog{width:min(680px,calc(100vw - 24px));height:min(520px,calc(100dvh - 24px));padding:0;border:1px solid #c9d8e3;border-radius:5px;background:#fff;color:#263638;box-shadow:0 18px 54px #162a3040}
.find-dialog[open]{display:flex;flex-direction:column}.find-dialog::backdrop{background:#10252c66}
.find-head{display:flex;align-items:center;justify-content:space-between;flex:none;padding:8px 15px;border-bottom:1px solid #dce5eb;background:#f5f8fb}
.find-head h2{margin:0;font-size:15px}.find-form{display:flex;gap:8px;padding:13px 15px 8px}
.find-form input{min-width:0;flex:1;height:35px;padding:0 9px;border:1px solid #cbd8df;border-radius:4px}
.find-options{display:flex;flex-wrap:wrap;gap:6px 18px;padding:2px 15px 12px;border-bottom:1px solid #e4ebef}
.find-options label{display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.find-options input{accent-color:#257aa7}.find-results{min-height:0;flex:1;overflow:auto;padding:8px 10px;color:#657786;font-size:12px}
.find-count{padding:5px 8px 8px;color:#728590}.find-result{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.5fr);gap:12px;align-items:center;width:100%;min-height:38px;padding:7px 9px;border:1px solid transparent;border-radius:4px;background:#fff;text-align:left;color:#263f4d}
.find-result:nth-child(even){background:#f7fafb}.find-result:hover,.find-result:focus-visible{border-color:#b5d4e8;background:#eaf4fa;outline:none}
.find-result strong,.find-result span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.find-result strong{font-weight:600}
@media(max-width:780px){.ribbon-command.compact{min-width:34px;max-width:34px;width:34px;height:49px}.find-result{grid-template-columns:minmax(0,1fr)}.find-result span{color:#647787}}
@media(max-width:780px){.ribbon-command .ribbon-icon{width:25px;height:25px}.ribbon-command.compact .ribbon-icon{width:20px;height:20px}}
@media(max-width:780px){.header-quick{display:none}}
.app-header .brand{flex:0 1 auto;min-width:0}.app-header .brand-mark,.app-header .brand strong,.app-header .brand-divider{flex:none}.app-header .brand-context{display:block;min-width:0;max-width:min(42vw,650px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1050px){.app-header .brand-context{max-width:32vw}}
@media(max-width:780px){.app-header .brand{flex:1 1 auto}.app-header .brand-context{flex:1 1 auto;max-width:none;font-size:10px}.app-header .brand-divider{display:none}}
@media(max-width:780px){.app-header .brand-context{font-size:0;margin-left:5px}.app-header .brand-context::after{content:attr(data-compact);font-size:10px}}
.runtime-stage img[hidden],.runtime-loading[hidden]{display:none}.runtime-loading{display:flex;align-items:center;gap:8px;color:#d6e4eb;font-size:13px;min-height:140px}.runtime-loading svg{width:17px;height:17px;animation:runtime-spin 1s linear infinite}@keyframes runtime-spin{to{transform:rotate(360deg)}}
.helper-dialog{width:min(430px,calc(100vw - 24px))}.helper-head,.download-head,.runtime-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d6e1e8;background:#f4f8fb;padding:9px 14px}.helper-head h2,.download-head h2,.runtime-head h2{margin:0;font-size:15px}.helper-content{display:flex;flex-direction:column;gap:10px;padding:16px}.helper-content p{margin:0;color:#536a7b;font-size:12px;line-height:1.5}.helper-content label{font-size:12px;color:#485d6b}.helper-content input{margin:0}.helper-content .button{align-self:flex-start}.helper-content .project-dialog-actions{width:100%;margin-top:6px}
.serial-ribbon-fields{display:flex;flex-direction:column;gap:3px;min-width:150px;padding:2px 2px}.serial-ribbon-fields label{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#546779;font-size:11px}.serial-ribbon-fields select{width:100px;height:24px;min-width:0;border:1px solid #cbd8df;border-radius:3px;background:#fff;color:#334657;font-size:11px}.serial-ribbon-fields select:disabled{background:#e7ebee;color:#87939b}.serial-ribbon-fields+.ribbon-command.compact{align-self:center}#serial-debug-progress{width:100%;height:10px;accent-color:#2e83aa}#serial-debug-status{font-size:13px;color:#344957}
.runtime-dialog,.download-dialog{padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#283b47;box-shadow:0 18px 54px #162a3040}.runtime-dialog::backdrop,.download-dialog::backdrop{background:#10252c88}.runtime-dialog{width:min(1140px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.runtime-dialog[open]{display:flex;flex-direction:column}.runtime-head>div{display:flex;align-items:center;gap:12px;font-size:11px;color:#647989}.runtime-stage{display:grid;place-items:center;min-height:140px;overflow:auto;padding:14px;background:#2a353b}.runtime-stage img{display:block;max-width:100%;max-height:calc(100dvh - 105px);width:auto;height:auto;object-fit:contain;touch-action:none;user-select:none;cursor:pointer}
.download-dialog{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.download-dialog[open]{display:flex;flex-direction:column}.download-content{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:13px 16px 15px;gap:10px}.download-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.download-top>div,.download-actions,.download-actions>div{display:flex;align-items:center;gap:8px}.download-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-top select,.download-actions select,.download-advanced select{height:32px;min-width:96px;border:1px solid #cbd8df;border-radius:3px;padding:0 7px;background:#fff;color:#344957;font-size:12px}.download-resources{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px}.download-resources th,.download-resources td{padding:7px 10px;border:1px solid #dce6ec;text-align:left}.download-resources th{background:#f1f5f8;color:#5d7180;font-weight:600}.download-resources th:last-child,.download-resources td:last-child{width:130px;text-align:right}.download-resources td label{display:flex;align-items:center;gap:8px;cursor:pointer}.download-resources input{accent-color:#2678a7}.download-total{font-size:12px;color:#536d7b;text-align:right}.download-advanced{border-top:1px solid #e0e9ee;padding-top:7px;font-size:12px}.download-advanced summary{cursor:pointer;color:#356c94}.download-advanced>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px}.download-advanced label{display:flex;align-items:center;gap:6px;color:#526b7b}.download-advanced select{min-width:82px}.download-log{height:98px;min-height:98px;margin:0;padding:8px;overflow:auto;border:1px solid #dce6ec;background:#f8fafb;color:#536977;font:11px Consolas,monospace;white-space:pre-wrap}.download-content progress{width:100%;height:12px;accent-color:#2e83aa}.download-actions{justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #e1e9ee;padding-top:12px}.download-actions .button,.download-top .button{min-height:32px}.download-actions .button:disabled{opacity:.45;cursor:default}
@media(max-width:620px){.download-top{align-items:stretch;flex-direction:column}.download-top>div,.download-actions>div{flex-wrap:wrap}.download-actions{align-items:stretch;flex-direction:column}.download-actions>div:last-child{justify-content:flex-end}.download-resources th:last-child,.download-resources td:last-child{width:90px}.runtime-stage{padding:4px}}
.tree-folder.tree-child-folder{padding-left:19px}
.tree-folder span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tree-command.tree-script{padding-left:36px}
.tree-command.tree-script.active{background:#dcebf8;border-color:#b8d2e7;color:#245b86}
.tree-script span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tree-context-menu{position:fixed;z-index:30;min-width:170px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;padding:4px;border:1px solid #bccdd9;border-radius:4px;background:#fff;box-shadow:0 8px 24px #263b4d36}
.tree-context-menu[hidden]{display:none}
.tree-context-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:30px;padding:5px 9px;border:0;border-radius:2px;background:transparent;text-align:left;color:#344b5e;font-size:12px;white-space:nowrap}
.tree-context-menu button:hover,.tree-context-menu button:focus-visible{background:#e9f3fa;outline:none}
.tree-context-menu button:disabled{opacity:.42;cursor:default}
.tree-context-menu svg{width:15px;height:15px;color:#4d7b9c}
.tree-context-menu hr{height:1px;margin:4px;border:0;background:#e2e9ee}
.tree-menu-group summary{display:flex;align-items:center;gap:9px;min-height:30px;padding:5px 9px;border-radius:2px;color:#344b5e;font-size:12px;white-space:nowrap;cursor:pointer;list-style:none}
.tree-menu-group summary::-webkit-details-marker{display:none}
.tree-menu-group summary:hover,.tree-menu-group summary:focus-visible{background:#e9f3fa;outline:none}
.tree-menu-group summary span{flex:1}
.tree-menu-group .tree-menu-choices{padding-left:14px;border-left:1px solid #e2e9ee;margin-left:16px}
.ribbon-command{text-decoration:none}
.field-image-list{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:6px;min-width:0}.field-image-list>select:first-child{min-height:94px;grid-row:span 2}.field-image-list>select:nth-of-type(2){grid-column:1 / -1;min-width:0}.field-image-list-preview{width:62px;height:62px;border:1px solid #dce5eb;object-fit:contain;background:#f7fafb}.field-image-list-preview[hidden]{visibility:hidden}.field-image-list-controls{display:flex;flex-wrap:wrap;gap:4px;grid-column:1 / -1}.field-image-list-controls .icon-button{width:30px;height:30px;flex:none}
.property-editor-dialog{width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #cbd8df;border-radius:5px;background:#fff;color:#283b47}.property-editor-dialog::backdrop{background:#10252c88}.property-editor-dialog h3{margin:0 0 12px;font-size:15px}.property-editor-body{max-height:calc(100dvh - 135px);overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.property-editor-body>div,.property-editor-body>fieldset{grid-column:1 / -1}.property-editor-body fieldset{min-width:0;border:1px solid #dce5eb;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.property-editor-body legend{font-weight:600;font-size:12px}.property-editor-row{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}.property-editor-row span{width:80px;flex:none}.property-editor-row input,.property-editor-row select{min-width:0;flex:1;height:30px;border:1px solid #cbd8df;border-radius:3px;padding:0 6px}.property-editor-row input[type=checkbox]{flex:none;width:16px;height:16px}.property-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.property-editor-actions button{min-height:32px;border:1px solid #cbd8df;border-radius:3px;background:#fff;padding:0 14px}@media(max-width:600px){.property-editor-body,.property-editor-body fieldset{grid-template-columns:minmax(0,1fr)}}
.examples-dialog{width:min(760px,calc(100vw - 24px));height:min(560px,calc(100dvh - 24px));padding:0;border:1px solid #cbd8e1;border-radius:5px;background:#fff;color:#293d48;box-shadow:0 18px 54px #162a3040}
.examples-dialog::backdrop{background:#10252c66}.examples-dialog[open]{display:flex;flex-direction:column}
.examples-head{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:46px;padding:8px 14px;border-bottom:1px solid #dce5eb;background:#f4f8fb}
.examples-head h2{margin:0;font-size:15px}.examples-toolbar{display:flex;align-items:center;gap:7px;flex:none;padding:9px 12px;border-bottom:1px solid #e2e9ee}
.examples-toolbar input{min-width:0;flex:1;height:33px;padding:0 9px;border:1px solid #cbd8df;border-radius:4px;font-size:12px}
.examples-body{display:grid;grid-template-columns:minmax(210px,1fr) minmax(230px,1fr);min-height:0;flex:1}
.examples-list{min-height:0;overflow:auto;border-right:1px solid #e2e9ee;padding:5px}
.example-row{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:7px 9px;border:1px solid transparent;border-radius:3px;background:#fff;text-align:left;color:#334b59;font-size:12px}
.example-row:hover{background:#f1f7fa}.example-row[aria-selected="true"]{border-color:#bfd8e8;background:#e9f3fa;color:#245b82}
.example-row:disabled{opacity:.5;cursor:default}.example-row:disabled:hover{background:#fff}
.example-row strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.example-row small{flex:none;color:#728998;font-size:10px}
.example-empty{padding:10px;color:#718592;font-size:12px}.examples-detail{display:flex;flex-direction:column;gap:11px;min-width:0;padding:20px;font-size:12px;color:#59707e}
.examples-detail strong{color:#273e4d;font-size:16px}.examples-detail p{margin:0;line-height:1.6}.examples-detail .button{align-self:flex-start;margin-top:auto}
.about-body{display:flex;flex-direction:column;gap:7px;padding:22px;color:#607480;font-size:12px}.about-body strong{color:#253e4f;font-size:20px}
@media(max-width:620px){.examples-body{grid-template-columns:1fr;grid-template-rows:minmax(150px,1fr) auto}.examples-list{border-right:0;border-bottom:1px solid #e2e9ee}.examples-detail{padding:12px;gap:6px}.examples-detail strong{font-size:14px}.examples-detail .button{margin-top:5px}}

.inspector-head-actions{display:flex;align-items:center;gap:6px;min-width:0}
.inspector-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244f86}
.property-auto-width{display:flex;align-items:center;gap:4px;color:#52677a;font-size:11px;white-space:nowrap;cursor:pointer}
.property-auto-width input{margin:0;accent-color:#276799}
.property-form{padding:0 0 4px;--property-name-width:120px}
.property-columns{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:var(--property-name-width) minmax(0,1fr);min-height:27px;border-bottom:1px solid #c9d7e3;background:#f5f8fb;color:#455c70;font-size:11px;font-weight:600}
.property-columns span{padding:5px 8px;min-width:0}.property-columns span:first-child{border-right:1px solid #d8e2eb}
.property-section{margin:0;padding:0;border:0;min-width:0}
.property-section legend{width:100%;margin:0;padding:0;border:0}
.property-section-toggle{display:flex;align-items:center;gap:4px;width:100%;min-height:26px;padding:3px 7px;border:0;border-bottom:1px solid #ccd9e5;background:#e3ebf4;color:#243447;text-align:left;font:600 11px "Microsoft YaHei UI",sans-serif;cursor:pointer}
.property-section-toggle:hover,.property-section-toggle:focus-visible{background:#d4e4f3;outline:1px solid #8cb7d6;outline-offset:-1px}
.property-section-toggle svg{width:13px;height:13px;flex:none;transition:transform .15s}.property-section-toggle[aria-expanded="false"] svg{transform:rotate(-90deg)}
.property-section-body[hidden],.property-form .field[hidden],.property-form .field-check[hidden]{display:none}
.property-form .field,.property-form .field-check{display:grid;grid-template-columns:var(--property-name-width) minmax(0,1fr);align-items:center;min-height:31px;margin:0;border-bottom:1px solid #edf1f5;color:#33485a;background:#fff}
.property-form [data-field][data-child-depth] > span:first-child{padding-left:18px;position:relative}
.property-form [data-field][data-child-depth="2"] > span:first-child{padding-left:29px}
.property-form [data-field][data-child-depth] > span:first-child::before{content:"";position:absolute;left:8px;top:50%;width:5px;border-top:1px solid #9aaebc}
.property-form [data-field][data-child-depth="2"] > span:first-child::before{left:19px}
.property-form .property-section-body>[data-field]:nth-child(even){background:#f8fafc}
.property-form [data-field]:hover,.property-form .property-selected{background:#eaf3fa!important}
.property-form .field>span:first-child,.property-form .field-check>span:first-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;padding:6px 7px;border-right:1px solid #e3e9ef;color:#3b5063;font-size:11px}
.property-form .field>input,.property-form .field>select,.property-form .field>textarea{width:100%;min-width:0;min-height:28px;height:28px;margin:0;padding:3px 6px;border:1px solid transparent;border-radius:0;background:transparent;font-size:11px}
.property-form .field>textarea{height:56px;resize:vertical}
.property-form .field input:focus,.property-form .field select:focus,.property-form .field textarea:focus{border-color:#5b9ac9;box-shadow:inset 0 0 0 1px #5b9ac9;outline:none}
.property-form .field input[readonly]{color:#667787;cursor:default}
.property-boolean-value{display:flex;align-items:center;gap:6px;min-height:28px;padding:0 7px;font-size:11px;color:#40576a}
.property-boolean-value input{margin:0;accent-color:#276799}
.property-form .field-image-row,.property-form .field-address-row{min-width:0;padding:2px 4px;gap:3px}
.property-form .field-image-row select,.property-form .field-address-row input{min-height:26px;height:26px;padding:2px 4px;font-size:11px}
.property-form .field-image-row .icon-button,.property-form .field-address-row .icon-button{width:26px;min-height:26px;height:26px;padding:3px}
.property-form .field[data-kind="colorList"],.property-form .field[data-kind="imageList"]{display:block;padding-bottom:6px}
.property-form .field[data-kind="colorList"]>span:first-child,.property-form .field[data-kind="imageList"]>span:first-child{border-right:0;border-bottom:1px solid #e3e9ef}
.property-form .field-color-list,.property-form .field-image-list{padding:6px}
.property-form .field[data-kind="tableColumns"]>button,.property-form .field[data-kind="mediaSources"]>button{justify-self:start;margin:2px 4px;min-height:25px;padding:2px 7px;font-size:11px}
.property-detail{display:flex;flex-direction:column;justify-content:center;gap:3px;flex:none;min-height:68px;max-height:90px;padding:8px 11px;border-top:1px solid #d6e0e8;background:#fafbfc;color:#566b7c;font-size:11px;overflow:hidden}
.property-detail strong{color:#2e4d68;font-size:11px}.property-detail span{overflow:auto;line-height:1.35;white-space:pre-line}
.address-editor-dialog{width:min(480px,calc(100vw - 24px))}.address-editor-dialog form{display:flex;flex-direction:column;gap:8px}.address-editor-dialog .property-editor-row>span{width:78px}.address-editor-dialog .address-editor-tag{display:flex;align-items:center;gap:5px;min-width:0;flex:1}.address-editor-dialog .address-editor-tag input{min-width:0;width:100%}.address-editor-dialog .address-editor-tag .button{font-size:11px;padding:0 6px;min-height:30px}.address-editor-dialog .property-editor-row[hidden]{display:none}.address-editor-dialog .form-error{min-height:18px;margin:0;color:#b24332;font-size:11px}.address-editor-dialog .property-editor-actions button:first-child{margin-right:auto}
@media(max-width:420px){.address-editor-dialog .property-editor-row{align-items:stretch;flex-direction:column;gap:3px}.address-editor-dialog .property-editor-row>span{width:auto}.address-editor-dialog .address-editor-tag{flex-wrap:wrap}.address-editor-dialog .address-editor-tag input{flex:1 1 100%}}
.dynamic-effect-dialog{width:min(660px,calc(100vw - 24px))}.dynamic-effect-dialog form{display:flex;flex-direction:column;min-height:0}.dynamic-effect-body{max-height:min(68dvh,620px);overflow:auto}.dynamic-effect-body details{border-top:1px solid #d9e3e9;padding:8px 2px}.dynamic-effect-body summary{cursor:pointer;font-size:12px;font-weight:700;color:#315a72;margin-bottom:8px}.dynamic-effect-body details[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.dynamic-effect-body details[open] summary{grid-column:1/-1}.dynamic-effect-body .property-editor-row>span{width:112px}.dynamic-effect-body .property-editor-row input[type=checkbox]{accent-color:#117d72}.dynamic-effect-body .property-editor-row .icon-button{width:28px;min-height:28px;padding:0}.dynamic-effect-dialog .property-editor-actions{border-top:1px solid #dce4e9;padding-top:9px}
.script-file-head strong{min-width:0;flex:1}.script-file-tools{display:flex;gap:4px;flex:none}
@media(max-width:600px){.dynamic-effect-body details[open]{grid-template-columns:minmax(0,1fr)}}
.main-grid.module-open.project-settings-open{grid-template-columns:252px minmax(0,1fr) 304px}
.main-grid.module-open.project-settings-open>.inspector-panel{display:flex}
.project-settings-panel{flex:1;min-height:0;overflow:auto}
.project-settings-panel form{min-height:100%;display:flex;flex-direction:column;padding:0 10px}
.project-settings-panel .settings-model{padding:10px 2px;font-size:11px}
.project-settings-panel .settings-model{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}.project-settings-panel .settings-model .settings-related-action{margin:0 0 0 auto}
.project-display-dialog{width:min(480px,calc(100vw - 24px));max-height:85dvh}.project-display-dialog form{max-height:85dvh;overflow:auto}.project-display-size{font-size:12px;color:#4e6970;padding:3px 0}.project-display-advanced{border-top:1px solid #dce5e7;padding-top:9px;font-size:12px}.project-display-advanced summary{cursor:pointer}.project-display-pages{max-height:190px;overflow:auto;display:grid;gap:2px;padding:7px 0}.project-display-pages label{display:flex;align-items:center;gap:7px;min-height:27px;margin:0}.project-display-pages input{width:auto;height:auto}
.project-settings-panel .settings-group{padding:6px 0 8px}
.project-settings-panel .settings-group legend{font-size:11px}
.project-settings-panel .settings-grid{grid-template-columns:minmax(0,1fr);gap:0}
.project-settings-panel .settings-field{min-width:0;font-size:11px;border-bottom:1px solid #e8edf0}
.project-settings-panel .settings-field label{display:grid;grid-template-columns:minmax(94px,40%) minmax(0,1fr);align-items:center;gap:6px;min-height:32px;margin:0}
.project-settings-panel .settings-field label>span{min-width:0;line-height:1.25;color:#415665;overflow-wrap:anywhere}
.project-settings-panel input:not([type="checkbox"]),.project-settings-panel select{width:100%;min-width:0;min-height:28px;border:1px solid #cbd8e1;border-radius:3px;background:#fff;padding:3px 6px;color:#263a48;font-size:11px}
.project-settings-panel input:disabled,.project-settings-panel select:disabled{background:#edf0f2;color:#788791}
.project-settings-panel .settings-check,.project-settings-panel .settings-field .settings-check{display:grid!important;margin:0!important}
.project-settings-panel input[type="checkbox"]{width:15px;height:15px;accent-color:#117d72}
.project-settings-panel .settings-related-action{min-height:25px;font-size:11px;margin:0 0 4px 40%;padding:0 5px}
.project-settings-panel .settings-field small{display:block;margin:0 0 4px 40%}
.project-settings-panel .project-dialog-actions{position:sticky;bottom:0;margin:auto -10px 0;padding:9px 10px;background:#fff;border-top:1px solid #dce4e9;z-index:1}
.project-settings-panel .project-dialog-actions .button{min-width:0;font-size:11px;padding:0 7px}
.project-settings-panel form{padding:0}
.project-settings-panel .settings-model{padding:8px 10px;border-bottom:1px solid #dce4e9}
.project-settings-panel .settings-group{margin:0;padding:0;border:0}
.project-settings-panel .settings-group legend{width:100%;padding:0}
.project-settings-panel .settings-group-toggle{display:flex;align-items:center;gap:4px;width:100%;min-height:27px;padding:3px 7px;border:0;border-bottom:1px solid #ccd9e5;background:#e3ebf4;color:#243447;text-align:left;font:600 11px "Microsoft YaHei UI",sans-serif;cursor:pointer}
.project-settings-panel .settings-group-toggle:hover,.project-settings-panel .settings-group-toggle:focus-visible{background:#d4e4f3;outline:1px solid #8cb7d6;outline-offset:-1px}
.project-settings-panel .settings-group-toggle svg{width:13px;height:13px;flex:none;transition:transform .15s}
.project-settings-panel .settings-group-toggle[aria-expanded="false"] svg{transform:rotate(-90deg)}
.project-settings-panel .settings-group[data-collapsed="true"]>:not(legend){display:none!important}
.project-settings-panel .settings-field:nth-child(even){background:#f8fafc}
.project-settings-panel .settings-field label{grid-template-columns:minmax(94px,40%) minmax(0,1fr);gap:0;margin:0}
.project-settings-panel .settings-field label>span{align-self:stretch;display:flex;align-items:center;padding:5px 7px;border-right:1px solid #e3e9ef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-settings-panel input:not([type="checkbox"]),.project-settings-panel select{min-height:28px;height:28px;border:1px solid transparent;border-radius:0;background:transparent;padding:3px 6px}
.project-settings-panel input:not([type="checkbox"]):focus,.project-settings-panel select:focus{border-color:#5b9ac9;box-shadow:inset 0 0 0 1px #5b9ac9;outline:none}
.project-settings-panel .settings-field .settings-check input{justify-self:start;margin-left:7px}
.project-settings-panel .project-dialog-actions{margin:0;padding:9px 10px}
@media(max-width:1050px){.main-grid.module-open.project-settings-open{grid-template-columns:218px minmax(0,1fr) 255px}}
@media(max-width:780px){.main-grid.module-open.project-settings-open{grid-template-columns:minmax(0,1fr)}.main-grid.project-settings-open>.inspector-panel{display:flex!important}}

@media(min-width:781px){
  .main-grid,.main-grid.module-open.project-settings-open{grid-template-columns:var(--project-panel-width,264px) minmax(0,1fr) var(--inspector-panel-width,300px)}
  .main-grid.hide-project-panel,.main-grid.module-open.project-settings-open.hide-project-panel{grid-template-columns:minmax(0,1fr) var(--inspector-panel-width,300px)}
  .main-grid.hide-inspector-panel,.main-grid.module-open:not(.project-settings-open){grid-template-columns:var(--project-panel-width,264px) minmax(0,1fr)}
  .main-grid.hide-project-panel.hide-inspector-panel,.main-grid.module-open.hide-project-panel:not(.project-settings-open){grid-template-columns:minmax(0,1fr)}
  .page-panel,.inspector-panel{position:relative}
  #pages-pane{flex:0 0 var(--tree-panel-height,calc((100% - 28px)/2));min-height:var(--tree-panel-min-height,100px)}
  #widgets-pane{flex:1;min-height:var(--tree-panel-min-height,100px)}
  .log-drawer{left:var(--project-panel-width,264px);right:var(--inspector-panel-width,300px)}
  .app-shell:has(.main-grid.hide-project-panel) .log-drawer{left:0}
  .app-shell:has(.main-grid.hide-inspector-panel) .log-drawer,
  .app-shell:has(.main-grid.module-open:not(.project-settings-open)) .log-drawer{right:0}
  .panel-splitter{z-index:5;touch-action:none;outline:none}
  .panel-splitter-project,.panel-splitter-inspector{position:absolute;top:0;bottom:0;width:7px;cursor:col-resize}
  .panel-splitter-project{right:-4px}
  .panel-splitter-inspector{left:-4px}
  .panel-splitter-horizontal{height:6px;flex:none;cursor:row-resize;border-top:1px solid #d5dfe7;border-bottom:1px solid #d5dfe7;background:#f3f6f9}
  .panel-splitter:hover,.panel-splitter:focus-visible,.panel-splitter.dragging{background:#a9cee8}
  body.panel-resizing{user-select:none}
}
@media(max-width:780px){.panel-splitter{display:none}}
.font-crop-dialog{width:min(540px,calc(100vw - 24px))}
.widget.drag-duplicate-ghost{opacity:.58;pointer-events:none;z-index:1001!important;outline:1px dashed #117d72}
.script-editor{position:relative;inset:auto;margin:0;flex:1;min-width:0;min-height:0;width:100%;height:auto;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none}
.script-editor[hidden],.script-editor[open][hidden]{display:none}
.script-editor .script-head{padding:8px 12px}
.script-editor .script-head h2{font-size:13px;margin:0}
.script-editor .script-head .micro-label{display:none}
.script-findbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:5px 10px;border-bottom:1px solid #d8e4ed;background:#f7f9fc}
.script-findbar[hidden]{display:none}
.script-findbar>input{flex:1 1 120px;min-width:100px;height:28px;border:1px solid #c8d7e6;border-radius:3px;padding:0 8px;background:#fff;color:#263638;font-size:12px}
.script-findbar>span{min-width:54px;text-align:center;color:#4d667f;font-size:11px}
.script-findbar>span.no-match{color:#b42318}
.script-findbar label{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#405a72;font-size:11px}
.script-findbar .icon-button{width:27px;min-height:27px;height:27px;flex:none}
.script-code{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);flex:1;min-width:0;min-height:0;background:#fbfcfc}
.script-gutter{z-index:2;overflow:hidden;min-width:38px;border-right:1px solid #c8d7e6;background:#f7f9fc;color:#7a8ca0;text-align:right;user-select:none}
.script-gutter pre{margin:0;padding:15px 8px 15px 6px;white-space:pre;font:13px/1.6 Consolas,"Microsoft YaHei UI",monospace;letter-spacing:0}
.script-current-line{position:absolute;left:var(--script-gutter-width,38px);right:0;height:21px;z-index:0;pointer-events:none;background:#eaf4ff}
.script-highlight{position:absolute;left:var(--script-gutter-width,38px);right:0;top:0;bottom:0;z-index:1;overflow:hidden;margin:0;pointer-events:none;color:#263638}
.script-highlight code{display:block;width:max-content;min-width:100%;padding:15px 18px;white-space:pre;font:13px/1.6 Consolas,"Microsoft YaHei UI",monospace;letter-spacing:0;tab-size:2}
.script-highlight .token.keyword{color:#075ca5;font-weight:700}
.script-highlight .token.number{color:#0b84a5}
.script-highlight .token.string{color:#168a45}
.script-highlight .token.function{color:#6a45b8}
.script-highlight .token.comment{color:#7a8ca0;font-style:italic}
.script-main .script-code textarea{position:relative;z-index:2;display:block;flex:none;width:100%;height:100%;padding:15px 18px;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#263638;letter-spacing:0}
.script-main .script-code textarea::selection{background:#9fc7e8}
.script-code:has(textarea:disabled){background:#f2f5f5}
.script-main .script-code textarea:disabled{background:transparent}
.script-completions{position:absolute;z-index:5;width:min(380px,calc(100% - 42px));max-height:min(280px,70%);overflow:hidden;border:1px solid #a9c2d6;border-radius:4px;background:#fff;box-shadow:0 8px 22px #18344730}
.script-completions[hidden]{display:none}
#script-completion-list{max-height:210px;overflow:auto;padding:3px}
#script-completion-list button{display:block;width:100%;min-height:26px;padding:4px 7px;border:0;border-radius:2px;background:transparent;color:#264967;text-align:left;font:11px Consolas,"Microsoft YaHei UI",monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#script-completion-list button:hover,#script-completion-list button[aria-selected="true"]{background:#dcebf8;color:#075ca5}
#script-completion-help{min-height:26px;max-height:55px;overflow:auto;padding:5px 8px;border-top:1px solid #d8e4ed;background:#f7f9fc;color:#4d667f;font-size:11px;line-height:1.35}
.script-check-result{flex:none;max-height:84px;overflow:auto;padding:7px 12px;border-top:1px solid #d7e3ec;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.45}
.script-check-result[hidden]{display:none}
.script-check-result.success{background:#eaf7f0;color:#168a45}
.script-check-result.error{background:#fff2f2;color:#b42318}
@media(max-width:700px){.script-gutter pre{padding:12px 6px;font-size:12px}.script-main .script-code textarea,.script-highlight code{padding:12px;font-size:12px}}
.font-crop-dialog form{display:flex;flex-direction:column;gap:10px}
.font-crop-dialog form>label{display:flex;flex-direction:column;gap:5px;font-size:12px}
.font-crop-dialog input[type=file],.font-crop-dialog textarea{width:100%;min-width:0;border:1px solid #cbd8e1;border-radius:3px;background:#fff;padding:7px;color:#263a48}
.font-crop-dialog textarea{resize:vertical}
.font-crop-dialog .font-crop-toggle{flex-direction:row;align-items:center;gap:7px}
.font-crop-dialog input:disabled,.font-crop-dialog textarea:disabled{background:#edf0f2;color:#788791}
#font-crop-status{min-height:18px;margin:0;color:#486173;font-size:11px}
.serial-command-dialog{width:min(1120px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #c8d7df;border-radius:5px;color:#263a48;background:#fff;box-shadow:0 18px 54px #162a3040}
.serial-command-dialog::backdrop{background:#10252c66}
.serial-command-head{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-bottom:1px solid #d6e1e8;background:#f4f8fb}
.serial-command-head h2{font-size:15px;margin:0}
.serial-command-body{display:flex;flex-direction:column;gap:10px;padding:12px;min-height:0;max-height:calc(100dvh - 70px)}
.serial-command-options{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.serial-command-options label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#536977}
.serial-command-options select,.serial-command-options input:not([type=checkbox]){height:30px;min-width:0;border:1px solid #c6d5dd;border-radius:3px;background:#fff;color:#263a48;padding:3px 6px;font-size:12px}
.serial-command-options select:disabled,.serial-command-options input:disabled,.serial-command-table :disabled{background:#e8ecef;color:#788992;opacity:1}
.serial-command-options #serial-command-port{min-width:90px}.serial-command-options #serial-command-baud{width:94px}.serial-command-options #serial-command-head{width:60px}.serial-command-options #serial-command-station{width:65px}.serial-command-options #serial-command-quick{min-width:125px}
.serial-command-options .serial-command-check{flex-direction:row;align-items:center;gap:4px;height:30px}.serial-command-options .button,.serial-command-options .icon-button{height:30px;min-height:30px}
.serial-command-table-wrap{min-height:90px;max-height:260px;overflow:auto;border:1px solid #d7e1e6}
.serial-command-table{border-collapse:collapse;min-width:860px;width:100%;font-size:12px}
.serial-command-table th{position:sticky;top:0;background:#eef4f7;z-index:1;text-align:left;font-weight:600;color:#48616d}
.serial-command-table th,.serial-command-table td{height:35px;border-bottom:1px solid #e6ecef;padding:3px 5px;white-space:nowrap}
.serial-command-table tr:hover td{background:#f5f9fb}
.serial-command-table input:not([type=checkbox]),.serial-command-table select{height:27px;width:100%;min-width:0;border:1px solid #cbd8df;border-radius:3px;padding:2px 5px;background:#fff;color:#263a48;font-size:12px}
.serial-command-table input:disabled{background:#e8ecef;color:#788992;opacity:1}.serial-command-table td:nth-child(1){width:28px}.serial-command-table td:nth-child(2){width:35px}.serial-command-table td:nth-child(3){width:92px}.serial-command-table td:nth-child(4){width:140px}.serial-command-table td:nth-child(5){width:70px}.serial-command-table td:nth-child(6){width:215px}.serial-command-table td:nth-child(7){width:125px}.serial-command-table td:nth-child(8){width:68px}

input:not([type="checkbox"]):disabled, select:disabled, textarea:disabled{background:#e7ecef;color:#788992;border-color:#d5dfe3;cursor:not-allowed;opacity:1}
input[type="checkbox"]:disabled{opacity:.45;cursor:not-allowed}
.serial-command-table .address-cell,.serial-command-table .data-cell{display:flex;align-items:center;gap:3px}.serial-command-table .address-cell .icon-button,.serial-command-table .data-cell .icon-button{width:26px;min-width:26px;height:26px;min-height:26px;padding:2px}.serial-command-table .address-cell input,.serial-command-table .data-cell input{flex:1}
.serial-command-table .send-row{height:27px;min-height:27px;padding:0 7px}
.serial-command-log-head{display:flex;align-items:center;gap:12px;font-size:12px}.serial-command-log-head label{display:flex;align-items:center;gap:4px}.serial-command-log-head .button{margin-left:auto}
.serial-command-log{height:145px;min-height:70px;overflow:auto;border:1px solid #d7e1e6;background:#fbfcfd;font:11px/1.5 Consolas,"Microsoft YaHei UI",monospace}
.serial-command-log-row{display:grid;grid-template-columns:82px 46px minmax(0,1fr);gap:7px;padding:3px 7px;border-bottom:1px solid #e9eff2;overflow-wrap:anywhere}.serial-command-log-row:nth-child(even){background:#f4f8fa}.serial-command-log-row .tx{color:#116f69}.serial-command-log-row .rx{color:#245d91}.serial-command-log-row .error{color:#aa382d}
.serial-command-status{min-height:18px;font-size:11px;color:#496273}
@media(max-width:600px){.serial-command-body{padding:8px}.serial-command-options{gap:6px}.serial-command-options label{flex:1 1 86px}.serial-command-options .button{flex:1 1 auto}.serial-command-table-wrap{max-height:40dvh}.serial-command-log{height:110px}.serial-command-log-row{grid-template-columns:72px 38px minmax(0,1fr)}}
.svg-color-modes button{flex:1;min-width:0;border:0;background:#fff;padding:8px 4px;color:#465b67;font-size:12px;cursor:pointer}
.import-dir-modes{display:flex;gap:6px}.import-dir-modes .button{flex:1;min-width:0}.import-dir-modes .button.active{border-color:#117d72;background:#e6f3ef;color:#116e65}.project-dialog input[type=file]{height:auto;min-height:38px;padding:7px 8px;font-size:12px}.import-dir-selection{min-height:18px;margin:3px 0 0;color:#607579;font-size:12px;overflow-wrap:anywhere}#import-dir-local-fields[hidden],#import-dir-server-fields[hidden],#import-dir-server[hidden]{display:none}
