
.workspace{grid-template-columns:minmax(390px, .95fr) minmax(0,1.35fr)}
.controls,.preview-panel{min-width:0}.controls{padding:20px}.preview-top{flex-wrap:wrap}.preview-top span{font-weight:600;color:#244fda}
.editor-scroll{max-height:310px;overflow:auto;border:1px solid #dce2eb;border-radius:8px;background:white;overscroll-behavior:contain}
.editor-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;text-align:left}.editor-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.editor-table td,.editor-table th{padding:0;border-bottom:1px solid #e7ebf1}.editor-table th:first-child{padding:8px;color:#596779;font-weight:500;width:36px}.editor-table tr:first-of-type th{position:sticky;top:0;z-index:1;background:#edf1fc}
.editor-table input{display:block;border:0;border-radius:0;padding:9px 8px;width:100%;min-width:110px;background:transparent;color:#202e3d;font-size:13px;height:40px}.editor-table tr:first-of-type input{font-weight:650}.editor-table input:focus{outline:2px solid #345fdd;outline-offset:-2px;background:#f1f5ff}.editor-table input[aria-invalid=true]{background:#fff0ec;outline:2px solid #b73a22;outline-offset:-2px}
.workspace button:disabled{cursor:not-allowed}.workspace .text-button{min-height:38px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}.editor-actions small{color:#596779;margin-right:auto}.editor-error{color:#ac321f;font-size:13px;line-height:1.5;margin:8px 0;min-height:0}.editor-error:empty{display:none}.workspace details{margin:14px 0}.workspace details>summary{font-size:13px;font-weight:650;cursor:pointer;padding:8px 0}.workspace details[open]>summary{margin-bottom:8px}.workspace .helper{margin-bottom:10px}.workspace .upload{text-align:left;margin-bottom:10px}.workspace input[type=file]{max-width:100%}.workspace pre{max-height:150px;overflow:auto;font-size:12px;background:white;border:1px solid #dce2eb;padding:10px;white-space:pre}
.template-row{display:flex;gap:8px;align-items:center}.template-row select{min-width:0;flex:1;padding:7px;border:1px solid #dce2eb;border-radius:6px;background:white;font-size:13px}.template-row button{flex-shrink:0}.colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}.colors .field{margin:0}.colors input[type=color]{height:36px}.chart-output{min-height:0;background:repeating-conic-gradient(#f4f5f7 0% 25%,white 0% 50%) 50% / 20px 20px}.chart-output svg{width:100%;height:auto}.chart-output:empty{min-height:250px}.chart-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.chart-stats:empty{display:none}.chart-stats div{padding:9px;background:#f3f5fb;border:1px solid #dce2eb;border-radius:6px;overflow-wrap:anywhere}.chart-stats span{font-size:11px;display:block;color:#596779}.chart-stats strong{font-size:12px;font-weight:650}.export-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-options .field{margin-bottom:0}.export-row{align-items:stretch}.export-row .button{flex:1}.workspace a[aria-disabled=true]{pointer-events:none;opacity:.45}.save-row{display:flex;gap:10px;flex-wrap:wrap}.save-row a{font-size:12px;padding:7px 0}.workspace .field input,.workspace .field select{font-size:14px}.workspace .field textarea{font-size:13px}.workspace .generate{margin-top:10px}.preview-panel:focus{outline:2px solid #345fdd;outline-offset:-3px}.jump-button{width:100%;margin:6px 0}.workspace .status{font-size:12px}.workspace .panel-title{margin-bottom:8px}.workspace .panel-title h2{font-size:15px}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.controls{border-right:0;border-bottom:1px solid #dce2eb}.editor-scroll{max-height:260px}.preview-panel{padding:18px}}@media(max-width:480px){.controls,.preview-panel{padding:14px}.chart-stats{grid-template-columns:1fr}.chart-stats div{display:flex;gap:15px;justify-content:space-between}.chart-stats strong{text-align:right}.export-row{flex-wrap:wrap}.export-row .button{flex-basis:40%}.workspace input,.workspace select{font-size:16px!important}.two-fields{gap:8px}.export-options{grid-template-columns:1fr}.editor-table input{min-width:115px}}

.editor-table td:last-child{padding-right:8px}.editor-table td:last-child .text-button{min-width:40px;min-height:44px;padding:8px}.editor-scroll{scroll-padding:8px}
