:root{--ej-bg: #f5f7fb;--ej-surface: #ffffff;--ej-surface-muted: #eef3f8;--ej-canvas-bg: #dfe7f0;--ej-border: #d7dee8;--ej-border-soft: #e6ebf2;--ej-text: #172033;--ej-text-muted: #64748b;--ej-text-soft: #94a3b8;--ej-primary: #1457d9;--ej-primary-hover: #0f49bb;--ej-primary-text: #ffffff;--ej-radius-sm: 6px;--ej-radius-md: 8px;--ej-radius-lg: 12px;--ej-shadow-soft: 0 1px 2px rgba(15, 23, 42, .06);color:#172033;background:var(--ej-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:760px}button,input,select,textarea{font:inherit}button,.file-button{border:1px solid #c5ccd6;border-radius:6px;background:#fff;color:#172033;cursor:pointer;padding:8px 10px}button:disabled{color:#9aa3af;cursor:not-allowed}.danger-button{border-color:#fecaca;color:#991b1b}.preview-toggle.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.app{display:grid;grid-template-rows:auto 1fr auto;height:100vh;background:var(--ej-bg)}.app>.editor-topbar,.app>.workspace,.app>.statusbar{min-width:0;width:100%}.editor-topbar{position:relative;z-index:10;background:var(--ej-surface);border-bottom:1px solid var(--ej-border);box-shadow:var(--ej-shadow-soft)}.editor-topbar-row{display:flex;align-items:center;gap:14px;padding:10px 18px}.editor-topbar-row--main{min-height:64px}.editor-topbar-row--tools{min-height:72px;border-top:1px solid var(--ej-border-soft)}.editor-brand{display:flex;align-items:center;flex:0 0 auto;gap:10px;color:var(--ej-text);font-size:20px;font-weight:700;line-height:1;white-space:nowrap}.editor-brand img{width:40px;height:40px;border-radius:var(--ej-radius-md);object-fit:contain}.editor-toolbar-group{display:flex;align-items:end;flex-wrap:wrap;gap:12px;min-width:0;max-width:100%;padding:10px 12px;background:var(--ej-surface);border:1px solid var(--ej-border-soft);border-radius:var(--ej-radius-lg);box-shadow:var(--ej-shadow-soft)}.editor-toolbar-group--actions{margin-left:auto}.editor-toolbar-spacer{flex:1 1 auto;min-width:16px}.editor-field{display:flex;flex:0 0 auto;flex-direction:column;gap:4px}.editor-field span{color:var(--ej-text-muted);font-size:13px;line-height:1.2}.editor-input,.editor-select{height:38px;min-width:96px;padding:0 12px;border:1px solid var(--ej-border);border-radius:var(--ej-radius-md);background:#fff;color:var(--ej-text);font-size:14px;line-height:38px;box-shadow:var(--ej-shadow-soft)}.editor-select--wide{min-width:260px}.editor-select--medium{min-width:180px}.editor-select--add-field{width:180px;min-width:0;max-width:100%}.editor-select--small{min-width:96px}.editor-input--small{width:108px}.editor-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border:1px solid var(--ej-border);border-radius:var(--ej-radius-md);background:#fff;color:var(--ej-text);font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:var(--ej-shadow-soft)}.editor-button:hover{background:#f8fafc}.editor-button-icon{flex:0 0 auto;width:16px;height:16px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}.editor-button--icon{width:38px;padding:0}.editor-button--magic{color:#5b21b6;border-color:#ddd6fe;background:#faf5ff}.editor-button--magic:hover{background:#f3e8ff}.editor-button--download{background:#dcfce7;border-color:#86efac;color:#14532d}.editor-button--download:hover{background:#bbf7d0}.editor-menu{position:relative;display:inline-flex;flex:0 0 auto}.editor-menu-caret{color:currentColor;font-size:12px;line-height:1}.editor-menu-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:30;display:grid;width:min(360px,calc(100vw - 36px));overflow:hidden;border:1px solid var(--ej-border);border-radius:var(--ej-radius-md);background:#fff;box-shadow:0 16px 32px #0f172a24}.editor-menu-popover--right{right:0;left:auto}.editor-menu-action{display:grid;gap:4px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--ej-border-soft);background:#fff;color:var(--ej-text);text-align:left;cursor:pointer}.editor-menu-action:last-child{border-bottom:0}.editor-menu-action:hover,.editor-menu-action:focus-visible{background:#f8fafc}.editor-menu-action-title{color:var(--ej-text);font-size:14px;font-weight:700;line-height:1.2}.editor-menu-action-description{color:var(--ej-text-muted);font-size:12px;line-height:1.35;white-space:normal}.editor-button--primary{min-width:190px;background:var(--ej-primary);color:var(--ej-primary-text);border-color:var(--ej-primary);font-size:15px}.editor-button--primary:hover{background:var(--ej-primary-hover)}.editor-button:disabled,.editor-select:disabled,.editor-input:disabled{opacity:.55;cursor:not-allowed}.editor-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:24px;background:#0f172a61}.editor-pdf-dialog{width:min(440px,calc(100vw - 32px));border-radius:12px;background:#fff;padding:24px;box-shadow:0 24px 80px #0f172a47}.editor-pdf-dialog h2{margin:0 0 12px}.editor-pdf-dialog p{margin:0 0 16px;color:#475569;line-height:1.45}.editor-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.editor-form-error{color:#991b1b!important}.editor-preset-image-dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(720px,100%);max-height:min(720px,calc(100vh - 48px));overflow:hidden;border:1px solid var(--ej-border);border-radius:var(--ej-radius-lg);background:#fff;box-shadow:0 24px 64px #0f172a38}.editor-preset-image-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--ej-border-soft)}.editor-preset-image-header h2{margin:0;color:var(--ej-text);font-size:18px;line-height:1.2}.editor-preset-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;min-height:0;padding:16px 18px 18px;overflow:auto}.editor-preset-image-card{display:grid;gap:10px;align-content:start;min-width:0;padding:10px;border:1px solid var(--ej-border);border-radius:var(--ej-radius-md);background:#fff;color:var(--ej-text);text-align:left;cursor:pointer;box-shadow:var(--ej-shadow-soft)}.editor-preset-image-card:hover,.editor-preset-image-card:focus-visible{border-color:var(--ej-primary);background:#f8fafc}.editor-preset-image-preview{display:grid;place-items:center;height:96px;padding:10px;overflow:hidden;border:1px solid var(--ej-border-soft);border-radius:var(--ej-radius-md);background-color:#f8fafc;background-image:linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.editor-preset-image-preview img{display:block;width:100%;height:100%;object-fit:contain}.editor-preset-image-title{display:block;min-width:0;color:var(--ej-text);font-size:13px;line-height:1.25;overflow-wrap:anywhere}.editor-file-button{position:relative;overflow:hidden}.editor-file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.editor-file-status,.editor-user{overflow:hidden;color:var(--ej-text-muted);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.editor-file-status{max-width:260px}.editor-file-status span{color:var(--ej-text)}.editor-user{max-width:220px;color:var(--ej-text)}.editor-checkbox{display:flex;align-items:center;gap:8px;height:38px;color:var(--ej-text-muted);font-size:14px;white-space:nowrap}.editor-checkbox input{width:18px;height:18px;margin:0;accent-color:var(--ej-primary)}.editor-profile{position:relative;flex:0 0 auto}.editor-telegram-link{width:38px;padding:0;color:#229ed9;text-decoration:none}.editor-telegram-link:hover{color:#178ac0}.editor-telegram-icon{width:18px;height:18px;fill:currentColor}.editor-profile-button{min-width:112px}.editor-profile-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;display:grid;min-width:180px;overflow:hidden;padding:6px;border:1px solid var(--ej-border);border-radius:var(--ej-radius-md);background:var(--ej-surface);box-shadow:0 16px 36px #0f172a29}.editor-profile-menu-item{justify-content:flex-start;width:100%;height:34px;padding:0 10px;border:0;border-radius:var(--ej-radius-sm);background:transparent;box-shadow:none;text-align:left}.editor-profile-menu-item:hover{background:#f8fafc}.editor-profile-menu-item:disabled{color:var(--ej-text-soft);background:transparent;cursor:not-allowed}.editor-profile-menu-item--quota{display:grid;height:auto;min-height:34px;gap:4px;padding-block:8px}.editor-profile-quota-line{display:block;line-height:1.25}.editor-profile-quota-title{display:block;color:var(--ej-text);font-weight:700;line-height:1.25}.compiler-settings{align-items:stretch}.compiler-url{flex:1 1 420px}.compiler-url input{width:100%;min-width:260px}.compiler-key input{width:220px}.inline-field input,.inline-field select,.field input,.field select,.field textarea{border:1px solid #c5ccd6;border-radius:6px;padding:7px 8px;background:#fff}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr) 320px;min-height:0;background:var(--ej-bg)}.elements-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);min-width:0;border-right:1px solid var(--ej-border);padding:16px 18px;background:var(--ej-surface);overflow:auto}.elements-selection-hint{margin:0 0 8px;color:var(--ej-text-soft);font-size:12px}.canvas-shell{display:grid;grid-template-rows:minmax(0,1fr);gap:12px;overflow:auto;padding:20px;background:var(--ej-canvas-bg)}.canvas-shell.has-notice{grid-template-rows:auto minmax(0,1fr)}.canvas-shell.is-fit{overflow:hidden}.canvas-notice{grid-row:1;justify-self:stretch;max-width:980px;margin-inline:auto;border:1px solid #f59e0b;border-radius:6px;padding:10px 14px;background:#fff7ed;color:#7c2d12;font-size:14px;line-height:1.45;text-align:center;white-space:pre-wrap}.canvas-stage{grid-row:1;position:relative;display:grid;min-width:0;min-height:0;align-items:center;justify-items:center;overflow:auto}.canvas-shell.has-notice .canvas-stage{grid-row:2}.canvas-shell.is-fit .canvas-stage{overflow:hidden}.label-canvas{max-width:100%;max-height:100%;background:#fff;box-shadow:0 6px 18px #17203329;touch-action:none}.text-formatting-toolbar{position:absolute;top:8px;z-index:5;display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:max-content;max-width:min(calc(100vw - 320px),1120px);border:1px solid #d5dde8;border-radius:8px;padding:6px;background:#fffffff5;box-shadow:0 8px 20px #17203324;pointer-events:auto}.text-formatting-toolbar--top-center{left:50%;transform:translate(-50%)}.text-formatting-select{min-height:30px;border:1px solid #c7d0dd;border-radius:6px;padding:4px 24px 4px 8px;background:#fff;color:var(--ej-text);font:inherit;font-size:13px}.text-formatting-select--font{width:170px}.text-formatting-select--size{width:76px}.text-formatting-select--rotation{width:86px}.text-formatting-group{display:inline-flex;gap:2px;align-items:center}.text-formatting-button{display:inline-grid;width:30px;height:30px;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#2d3748;font:inherit;font-size:14px;font-weight:700;line-height:1;cursor:pointer}.text-formatting-button:hover:not(:disabled),.text-formatting-button:focus-visible{border-color:#a8b4c5;background:#eef2f7}.text-formatting-button.is-active{border-color:var(--ej-primary);background:#e8f0ff;color:#1f4f9a}.text-formatting-button:disabled{color:#9aa4b2;cursor:not-allowed;opacity:.65}.text-formatting-separator{width:1px;height:24px;background:#d5dde8}.text-formatting-collapse,.text-formatting-toolbar-toggle{min-height:30px;border:1px solid #c7d0dd;border-radius:6px;padding:4px 10px;background:#fff;color:var(--ej-text);font:inherit;font-size:13px;cursor:pointer}.text-formatting-collapse:hover,.text-formatting-collapse:focus-visible,.text-formatting-toolbar-toggle:hover,.text-formatting-toolbar-toggle:focus-visible{border-color:#a8b4c5;background:#eef2f7}.text-formatting-toolbar-toggle{position:absolute;top:8px;z-index:5;box-shadow:0 8px 20px #17203324;pointer-events:auto}.label-border{fill:transparent;stroke:#172033;stroke-width:.35}.frame-guide-halo{fill:none;stroke:#fff;stroke-width:1.8;vector-effect:non-scaling-stroke}.frame-guide-outline{fill:none;stroke:#dc2626;stroke-width:.8;stroke-dasharray:1.5 1;vector-effect:non-scaling-stroke}.frame-guide text{fill:#b91c1c;font-size:2.6px;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:.7px;stroke-linejoin:round}.frame-guide.is-selected .frame-guide-outline{stroke:#991b1b;stroke-width:1}.grid-line{fill:none;stroke:#edf1f5;stroke-width:.1}.major-grid-line{stroke:#d8dee8;stroke-width:.14}.label-element{--element-accent: #2563eb;cursor:move}.label-element.type-textField{--element-accent: #2563eb}.label-element.type-staticText{--element-accent: #16a34a}.label-element.type-image{--element-accent: #0891b2}.label-element.type-line{--element-accent: #f59e0b}.label-element.type-rectangle{--element-accent: #7c3aed}.label-element.type-unknown{--element-accent: #64748b}.label-element .element-frame{stroke:transparent;stroke-width:.18}.label-element.mode-editor.type-rectangle .element-frame{stroke:#111827;stroke-width:.3}.label-element.mode-editor:hover .element-frame{stroke:var(--element-accent)}.label-element.mode-editor.is-selected .element-frame{stroke:var(--element-accent);stroke-width:.35}.label-element.mode-editor.type-textField:hover .element-frame,.label-element.mode-editor.type-textField.is-selected .element-frame{stroke:#2563eb}.label-element.mode-editor.type-staticText:hover .element-frame,.label-element.mode-editor.type-staticText.is-selected .element-frame{stroke:#16a34a}.label-element.mode-editor.type-image:hover .element-frame,.label-element.mode-editor.type-image.is-selected .element-frame{stroke:#0891b2}.label-element.mode-editor.type-line:hover .element-frame,.label-element.mode-editor.type-line.is-selected .element-frame,.label-element.mode-editor.type-line:hover>line,.label-element.mode-editor.type-line.is-selected>line{stroke:#f59e0b}.label-element.mode-editor.type-rectangle:hover .element-frame,.label-element.mode-editor.type-rectangle.is-selected .element-frame{stroke:#7c3aed}.label-element.mode-editor.type-unknown:hover .element-frame,.label-element.mode-editor.type-unknown.is-selected .element-frame{stroke:#64748b}.label-element.mode-preview .element-frame{stroke:transparent}.label-element.type-textField .element-frame,.label-element.type-staticText .element-frame,.label-element.type-image .element-frame{fill:transparent}.label-element .element-hit-area{fill:transparent;stroke:none;cursor:move;pointer-events:all}.label-element line{stroke:#334155;stroke-width:.3}.move-zone{fill:transparent;stroke:none;cursor:move;pointer-events:all}.label-element text{pointer-events:none;fill:#172033;-webkit-user-select:none;user-select:none;overflow:hidden}.alias-badge rect{fill:#eff6ff;stroke:#93c5fd;stroke-width:.15}.alias-badge text{fill:#1d4ed8;font-weight:700}.label-element.is-locked{cursor:default}.selection-outline{fill:transparent;stroke:var(--element-accent);stroke-width:.45}.label-element.type-datamatrix .element-frame{fill:#edf7ff}.label-element.mode-preview.type-datamatrix .element-frame{fill:#fff}.datamatrix-quiet-zone{stroke:#64748b;stroke-width:.35;stroke-dasharray:1.2 .8;vector-effect:non-scaling-stroke}.datamatrix-quiet-zone.is-warning{stroke:#dc2626;stroke-width:.45}.data-matrix-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.resize-zone{fill:transparent;stroke:none;pointer-events:all}.resize-handle{fill:var(--element-accent);stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}.move-handle{cursor:move}.move-handle-connector{stroke:var(--element-accent);stroke-width:1;stroke-dasharray:2 2;pointer-events:none;vector-effect:non-scaling-stroke}.move-handle-target{fill:#fff;stroke:var(--element-accent);stroke-width:2;cursor:move;pointer-events:all;vector-effect:non-scaling-stroke}.move-handle-icon{fill:none;stroke:var(--element-accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;vector-effect:non-scaling-stroke}.resize-n,.resize-s{cursor:ns-resize}.resize-e,.resize-w{cursor:ew-resize}.resize-nw,.resize-se{cursor:nwse-resize}.resize-ne,.resize-sw{cursor:nesw-resize}.properties-panel{min-width:0;border-left:1px solid var(--ej-border);padding:16px 18px;background:var(--ej-surface);overflow:auto}.properties-panel h2{margin:0 0 12px;font-size:18px}.elements-list-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.elements-panel h3{margin:0;font-size:15px}.elements-list-header button{padding:5px 10px;border-color:var(--ej-border);background:#fff;color:var(--ej-text-muted);font-size:12px}.elements-list-body{display:grid;align-content:start;gap:4px;min-height:0;overflow:auto}.elements-list-body button{position:relative;display:flex;align-items:center;width:100%;padding:6px 8px 6px 12px;text-align:left}.elements-list-body button:before{position:absolute;top:5px;bottom:5px;left:4px;width:4px;border-radius:999px;background:#94a3b8;content:""}.elements-list-body button.type-textField:before{background:#2563eb}.elements-list-body button.type-staticText:before{background:#16a34a}.elements-list-body button.type-image:before{background:#0891b2}.elements-list-body button.type-line:before{background:#f59e0b}.elements-list-body button.type-rectangle:before{background:#7c3aed}.elements-list-body button.type-frame:before{background:#dc2626}.elements-list-body button.type-unknown:before{background:#64748b}.elements-list-body button.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.elements-list-body span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.elements-list-body small{flex:0 0 auto;color:#64748b}.inline-preview{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #e5e7eb}.inline-preview-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}.inline-preview h3,.geometry-section summary,.text-format-section summary{margin:0;font-size:15px}.inline-preview-header span{color:#64748b;font-size:12px;text-align:right}.inline-preview-button,.inline-preview img,.preview-placeholder{display:block;width:100%;min-height:120px;border:1px solid #d8dee8;border-radius:6px;background:#f8fafc;object-fit:contain}.inline-preview-button{position:relative;padding:0;overflow:hidden;cursor:zoom-in}.inline-preview-button img{min-height:118px;border:0;border-radius:0}.preview-zoom-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f172a24;color:#0f172a6b;font-size:58px;line-height:1;opacity:0;transition:opacity .12s ease;pointer-events:none}.inline-preview-button:hover .preview-zoom-icon,.inline-preview-button:focus-visible .preview-zoom-icon{opacity:1}.preview-placeholder{display:grid;place-items:center;color:#64748b}.geometry-section,.text-format-section{margin-top:16px;padding-top:12px;border-top:1px solid #e5e7eb}.geometry-section summary,.text-format-section summary{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#172033;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.geometry-section summary:before,.text-format-section summary:before{content:"›";display:inline-block;color:#64748b;font-size:18px;line-height:1;transform:rotate(0);transition:transform .12s ease}.geometry-section[open] summary:before,.text-format-section[open] summary:before{transform:rotate(90deg)}.sample-values{margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}.sample-values h3{margin:0 0 10px;font-size:15px}.property-row,.field{display:grid;gap:6px;margin-bottom:10px}.field span,.property-row span{color:#526071;font-size:13px}.field textarea{min-height:76px;resize:vertical}.field-hint{margin:-2px 0 10px;color:#526071;font-size:12px;line-height:1.35}.property-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.property-actions button{border:1px solid #cbd5e1;border-radius:6px;padding:7px 10px;background:#fff;color:#0f172a;cursor:pointer}.property-actions button:hover{border-color:#94a3b8;background:#f8fafc}.checkbox-row{display:flex;gap:8px;align-items:center}.toolbar-checkbox{color:#526071}.warning{border-radius:6px;padding:10px;background:#fff7ed;color:#9a3412}.muted{color:#6b7280}.text-minimum-notice{margin:0 0 12px}.empty-state{display:grid;place-items:center;background:var(--ej-canvas-bg);color:var(--ej-text-muted)}.editor-empty-state{display:grid;place-items:center;gap:14px;color:var(--ej-text-muted);font-size:15px;line-height:1.6;text-align:center}.editor-empty-state-icon{position:relative;width:42px;height:50px;border:2px solid #718096;border-radius:6px;background:transparent}.editor-empty-state-icon:before{position:absolute;top:-2px;right:-2px;width:15px;height:15px;border-bottom:2px solid #718096;border-left:2px solid #718096;background:var(--ej-canvas-bg);content:""}.editor-empty-state-icon:after{position:absolute;top:21px;left:11px;width:17px;height:17px;border:2px dashed #718096;border-radius:3px;content:""}.editor-empty-state p{margin:0}.preview-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:24px;background:#0f172a75}.preview-dialog{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(760px,100%);max-height:min(720px,calc(100vh - 48px));overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 18px 44px #0f172a47}.preview-dialog-header,.preview-dialog-footer{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e5e7eb}.preview-dialog-header{justify-content:space-between}.preview-dialog-header h2{margin:0;font-size:18px}.preview-dialog-header span{display:block;margin-top:3px;color:#6b7280;font-size:13px}.preview-dialog-body{display:grid;place-items:center;min-height:240px;overflow:auto;padding:20px;background:#dfe5ec}.preview-dialog-body img{max-width:100%;height:auto;background:#fff;box-shadow:0 6px 18px #17203329}.preview-dialog-footer{justify-content:flex-end;border-top:1px solid #e5e7eb;border-bottom:0}.auth-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:24px;background:#0f172a75}.auth-dialog{width:min(420px,100%);overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 18px 44px #0f172a47}.contact-dialog,.free-welcome-dialog{width:min(560px,100%)}.auth-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e5e7eb}.auth-dialog-header h2{margin:0 0 4px;font-size:18px}.auth-dialog-header span{color:#64748b;font-size:13px}.auth-dialog-header button{padding:4px 8px}.auth-form{display:grid;gap:12px;padding:16px}.auth-error{border-radius:6px;padding:8px 10px;background:#fee2e2;color:#991b1b;font-size:13px}.contact-form textarea{min-height:130px}.contact-success{border-radius:6px;padding:8px 10px;background:#dcfce7;color:#166534;font-size:13px}.contact-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.auth-actions{display:flex;justify-content:flex-end;gap:8px}.free-welcome-copy{display:grid;gap:10px;color:#334155;line-height:1.5}.free-welcome-copy p{margin:0}.free-welcome-actions{flex-wrap:wrap}.subscription-page{min-height:100vh;background:#f7f8fb;color:#172033;padding:32px}.subscription-header{max-width:1120px;margin:0 auto 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.subscription-header h1{margin:0 0 6px;font-size:32px;line-height:1.15}.subscription-header p{margin:0;color:#5a6478}.subscription-back{color:#1d4ed8;text-decoration:none;font-weight:700}.subscription-grid,.subscription-panel,.subscription-notice,.subscription-error,.subscription-result{max-width:1120px;margin-left:auto;margin-right:auto}.subscription-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.subscription-card{background:#fff;border:1px solid #d8deea;border-radius:8px;padding:18px;display:flex;flex-direction:column;gap:14px}.subscription-card--selected{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.subscription-card-select{padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.subscription-card h2{margin:0 0 10px;font-size:20px}.subscription-card-select p{margin:8px 0 0;color:#5a6478;line-height:1.45}.subscription-card strong{display:block;font-size:28px;margin-bottom:4px}.subscription-card ul{margin:0;padding-left:18px;color:#465166}.subscription-pay,.subscription-panel button{border:0;border-radius:8px;background:#1d4ed8;color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}.subscription-pay:disabled{background:#a8b1c2;cursor:default}.subscription-panel,.subscription-notice,.subscription-error,.subscription-result{margin-top:18px;background:#fff;border:1px solid #d8deea;border-radius:8px;padding:18px}.subscription-error,.subscription-result--failed{border-color:#f1b7b7;background:#fff5f5;color:#9b1c1c}.subscription-result--paid{border-color:#9bd6ad;background:#f0fff4;color:#166534}.subscription-result--pending{border-color:#f5cf82;background:#fffbeb;color:#92400e}.subscription-panel label{display:grid;gap:6px;max-width:320px}.subscription-panel input{border:1px solid #c6cfde;border-radius:8px;padding:10px 12px}.subscription-table{width:100%;border-collapse:collapse}.subscription-table th,.subscription-table td{padding:10px 8px;border-bottom:1px solid #e3e8f2;text-align:left}@media(max-width:760px){.subscription-page{padding:18px}.subscription-header{display:block}.subscription-grid{grid-template-columns:1fr}.subscription-table{font-size:13px}}.statusbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:start;min-height:42px;padding:8px 10px;border-top:1px solid #d8dee8;background:#fff;color:#334155}.statusbar-version{color:#64748b;font-size:12px;white-space:nowrap}.statusbar ul{grid-column:1 / -1;display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 0;padding:0;list-style:none}.statusbar li{border-radius:999px;padding:3px 8px;font-size:13px}.statusbar li.error{background:#fee2e2;color:#991b1b}.statusbar li.warning{background:#fef3c7;color:#92400e}.admin-app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh;background:#f6f7f9;color:#172033}.admin-shell{display:grid;min-height:100vh;place-items:center;background:#f6f7f9;color:#172033}.admin-sidebar{display:flex;flex-direction:column;gap:18px;padding:18px 14px;border-right:1px solid #d8dee8;background:#fff}.admin-brand{color:#172033;font-weight:700;text-decoration:none}.admin-sidebar nav{display:grid;gap:4px}.admin-sidebar nav a,.admin-editor-link{border-radius:6px;padding:9px 10px;color:#334155;text-decoration:none}.admin-sidebar nav a.active{background:#e8eef7;color:#0f172a;font-weight:600}.admin-editor-link{margin-top:auto}.admin-versions{display:grid;gap:8px;margin:4px 0 0;padding:12px 10px;border-top:1px solid #e2e8f0;color:#64748b;font-size:12px}.admin-versions div{display:flex;justify-content:space-between;gap:10px}.admin-versions dt,.admin-versions dd{margin:0}.admin-versions dd{color:#172033;font-weight:600}.admin-main{min-width:0}.admin-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:58px;padding:0 22px;border-bottom:1px solid #d8dee8;background:#fff;font-weight:600}.admin-topbar span{color:#64748b;font-size:13px;font-weight:500}.admin-panel{margin:18px;padding:16px;border:1px solid #d8dee8;border-radius:8px;background:#fff;overflow-x:auto}.admin-status,.admin-login{width:min(420px,calc(100vw - 32px));padding:22px;border:1px solid #d8dee8;border-radius:8px;background:#fff}.admin-login h1,.admin-status h1{margin:0 0 16px;font-size:22px}.admin-login form{display:grid;gap:12px}.admin-login label,.admin-setting-row{display:grid;gap:6px}.admin-login input,.admin-search input,.admin-inline-form input,.admin-inline-form select,.admin-setting-row input,.admin-setting-row textarea,.admin-table input,.admin-table select{min-height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:6px 9px;background:#fff;color:#172033}.admin-setting-row textarea{min-height:76px;resize:vertical;font:inherit}.admin-setting-checkbox{display:flex;align-items:center;gap:8px;color:#172033}.admin-setting-checkbox input{width:18px;min-height:18px}.admin-actions,.admin-row-actions,.admin-inline-form{display:flex;gap:8px;align-items:center}.admin-search{margin-bottom:14px}.admin-search input{width:min(420px,100%)}.admin-inline-form{flex-wrap:wrap;margin-bottom:14px}.admin-inline-field{display:grid;gap:4px;font-size:12px;color:#475569}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th,.admin-table td{max-width:320px;padding:9px 10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;overflow-wrap:anywhere}.admin-table th{color:#475569;font-weight:700;background:#f8fafc}.admin-usage-table th,.admin-usage-table td{white-space:nowrap}.admin-muted{color:#64748b}.admin-empty{padding:16px 0 4px;color:#64748b}.admin-quota,.admin-status-badge{display:inline-flex;align-items:center;min-height:24px;border-radius:6px;padding:2px 7px;font-weight:700}.admin-quota{border:1px solid #d8deea;background:#fff}.admin-quota--unused,.admin-status-badge--unused{color:#64748b;background:#f8fafc}.admin-quota--used,.admin-status-badge--used{color:#1e3a5f;background:#e0f2fe}.admin-quota--near_limit,.admin-status-badge--near_limit{color:#854d0e;background:#fef3c7}.admin-quota--exceeded,.admin-status-badge--exceeded{color:#991b1b;background:#fee2e2}.admin-quota--unlimited,.admin-status-badge--unlimited{color:#166534;background:#dcfce7}.admin-table button,.admin-actions button,.admin-login button,.admin-inline-form button,.admin-setting-row button{min-height:34px;border:1px solid #b6c2d2;border-radius:6px;padding:6px 10px;background:#fff;color:#172033;cursor:pointer}.admin-table button:hover,.admin-actions button:hover,.admin-login button:hover,.admin-inline-form button:hover,.admin-setting-row button:hover{background:#f1f5f9}.admin-error{color:#991b1b}.admin-subpanel{margin-top:18px;padding:14px;border:1px solid #d8deea;border-radius:8px;background:#f8fafc}.admin-subpanel-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.admin-subpanel-header h3{margin:0;font-size:16px}.admin-details{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 12px;margin:0 0 14px;font-size:13px}.admin-details dt{color:#64748b}.admin-details dd{margin:0;overflow-wrap:anywhere}.admin-settings{display:grid;gap:10px}.admin-analytics-toolbar{display:flex;justify-content:flex-end;margin-bottom:14px}.admin-analytics-toolbar label{display:flex;gap:8px;align-items:center;color:#475569;font-size:13px;font-weight:600}.admin-analytics-toolbar select,.admin-analytics-toolbar input{min-height:34px;border:1px solid #cbd5e1;border-radius:6px;padding:6px 9px;background:#fff;color:#172033}.admin-metrics-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:16px}.admin-metric{display:grid;gap:6px;min-height:78px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.admin-metric span{color:#64748b;font-size:12px}.admin-metric strong{color:#172033;font-size:24px}.admin-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-analytics-block{min-width:0;margin-bottom:16px}.admin-analytics-block h2{margin:0 0 8px;color:#172033;font-size:15px}.admin-setting-row{grid-template-columns:minmax(220px,1fr) minmax(220px,2fr) auto;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0}.admin-setting-row span{color:#64748b;font-size:12px}@media(max-width:1500px){.editor-topbar-row{flex-wrap:wrap}.editor-toolbar-spacer{display:none}.editor-toolbar-group,.editor-toolbar-group--actions{margin-left:0}.workspace{grid-template-columns:220px minmax(0,1fr) 280px}.editor-select--wide{min-width:220px}.editor-select--medium{min-width:160px}}@media(max-width:900px){body{min-width:0}.editor-topbar-row{align-items:stretch}.editor-toolbar-group{flex-wrap:wrap;width:100%}.editor-field,.editor-button,.editor-menu,.editor-file-button,.editor-select,.editor-input{width:100%}.editor-menu{display:flex}.editor-menu-popover{right:0;left:0;width:100%}.editor-select--wide,.editor-select--medium,.editor-select--small{min-width:0}.editor-modal-backdrop{align-items:stretch;padding:12px}.editor-preset-image-dialog{max-height:calc(100vh - 24px)}.editor-preset-image-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));padding:12px}.editor-file-status,.editor-user{max-width:100%}.workspace{grid-template-columns:1fr}.elements-panel,.properties-panel{display:none}}@media(max-width:820px){.admin-app{grid-template-columns:1fr}.admin-sidebar{position:static;border-right:0;border-bottom:1px solid #d8dee8}.admin-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-setting-row,.admin-metrics-grid,.admin-analytics-grid{grid-template-columns:1fr}}
