:root{color-scheme:light;font-family:Segoe UI,Microsoft YaHei,system-ui,sans-serif;color:#20242b;background:#eef1f5}*{box-sizing:border-box}body{margin:0;min-width:320px}.app-shell{display:flex;flex-direction:column;min-height:100vh}.app-header{padding:20px clamp(16px,3vw,32px);color:#f6f8fb;background:#26303d;border-bottom:3px solid #557bA1}.app-header h1{margin:0 0 6px;font-size:clamp(1.25rem,3vw,1.7rem)}.app-header p{margin:0;color:#cdd7e3;font-size:.9rem}.workspace{display:grid;flex:1;grid-template-columns:minmax(210px,20%) minmax(320px,1fr) minmax(300px,34%);min-height:0}.component-pane,.editor-pane,.preview-pane{min-width:0;overflow:auto;border-right:1px solid #c8d0da;background:#fff}.editor-pane{padding:20px clamp(16px,3vw,32px) 40px}.preview-pane{display:flex;flex-direction:column;border-right:0}.preview-diagnostics{padding:10px 16px;color:#8a2d1d;background:#f7e4df;border-bottom:1px solid #dcb8b0;font-size:.8rem}.preview-diagnostics p{margin:0;overflow-wrap:anywhere}.pane-header{padding:16px;margin:0 0 12px;border-bottom:1px solid #d9e0e8;background:#f7f9fb}.pane-header h2{margin:0 0 4px;font-size:1.1rem}.pane-header p{margin:0;color:#657284;font-family:ui-monospace,Consolas,monospace;font-size:.78rem}.component-groups{padding:8px 12px 24px}.component-groups section{margin-bottom:18px}.component-groups h3{margin:12px 0 8px;font-family:ui-monospace,Consolas,monospace;font-size:.85rem;color:#526173}.component-list{display:grid;gap:6px;padding:0;margin:0;list-style:none}.component-button{display:grid;gap:3px;width:100%;padding:9px 10px;color:inherit;text-align:left;background:#fff;border:1px solid #c8d0da;border-radius:5px;cursor:pointer}.component-button:hover{border-color:#7495b5}.component-button.is-selected{border-color:#35618d;outline:2px solid #a7c5df;outline-offset:1px}.component-title{font-weight:650}.component-reference{overflow-wrap:anywhere;color:#657284;font-family:ui-monospace,Consolas,monospace;font-size:.68rem}.order-tools{display:flex;gap:6px;margin-top:8px}.collection-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 8px}.collection-header h3{margin:0;font-family:ui-monospace,Consolas,monospace;font-size:.85rem;color:#526173}.component-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:repeat(2,auto);gap:5px;align-items:center}.component-list li>.component-button{grid-row:1 / -1;grid-column:1}.component-list li.is-drag-over{outline:2px dashed #35618d;outline-offset:3px}.collection-empty{margin:0;color:#667384;font-size:.8rem}.item-tools{display:grid;grid-row:1 / -1;grid-column:2;gap:5px}.item-tools button{display:grid;place-items:center;width:28px;height:28px;padding:0}.item-tools svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button[disabled]{color:#8d99a8;cursor:not-allowed;opacity:.65}button{padding:6px 9px;color:#28313b;background:#f3f6f9;border:1px solid #c8d0da;border-radius:4px;cursor:pointer}button:hover{border-color:#7495b5}.editor-header{margin-bottom:16px}.editor-eyebrow{margin:0 0 2px;color:#5f6c7d;font-family:ui-monospace,Consolas,monospace;font-size:.8rem}.editor-header h2{margin:0;font-size:1.3rem}.field-grid{display:grid;gap:14px}label{display:grid;gap:5px;font-size:.9rem}label>span:first-child{color:#526173;font-family:ui-monospace,Consolas,monospace;font-size:.78rem}input,select{min-width:0;padding:8px 9px;font:inherit;background:#fff;border:1px solid #b9c3cf;border-radius:4px}input:focus-visible,select:focus-visible,button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #35618d;outline-offset:2px}fieldset{display:grid;gap:10px;min-width:0;padding:12px;margin:0;border:1px solid #c8d0da;border-radius:5px}legend{color:#526173;font-family:ui-monospace,Consolas,monospace;font-size:.78rem}.checkbox-row{display:flex;flex-wrap:wrap;gap:10px 16px}.checkbox-label{display:flex;align-items:center;gap:7px}.checkbox-label>span:first-child{color:inherit;font-family:inherit;font-size:inherit}.reference-line{padding:8px 10px;color:#4d5a69;background:#f1f4f8;border-radius:4px;overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace;font-size:.75rem}.field-note{margin:0;color:#667384;font-size:.8rem}details{padding:10px;border:1px dashed #c8d0da;border-radius:5px}summary{cursor:pointer}.empty-state{margin:0;color:#667384}textarea{flex:1;width:100%;min-height:300px;padding:16px;font:.8rem/1.55 ui-monospace,Consolas,monospace;color:#d9e5f0;background:#252c35;border:0;border-radius:0;resize:none;white-space:pre}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(max-width:1100px){.workspace{grid-template-columns:minmax(180px,240px) minmax(320px,1fr);grid-template-rows:minmax(420px,auto) minmax(320px,auto)}.preview-pane{grid-column:1 / -1;border-top:1px solid #c8d0da}}@media(max-width:720px){.workspace{display:flex;flex-direction:column}.component-pane,.editor-pane,.preview-pane{border-right:0;border-bottom:1px solid #c8d0da}.editor-pane{padding:16px}textarea{min-height:280px}}.map-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,2fr) auto;gap:10px;align-items:end}.map-row button{margin-bottom:1px}.certificate-row{display:grid;gap:10px;padding:10px;border:1px dashed #c8d0da;border-radius:5px}textarea{min-height:auto;padding:8px 9px;color:inherit;font:inherit;font-family:ui-monospace,Consolas,monospace;background:#fff;border:1px solid #b9c3cf;border-radius:4px;resize:vertical;white-space:pre}.preview-pane textarea{min-height:300px;padding:16px;color:#d9e5f0;background:#252c35;border:0;border-radius:0;resize:none}@media(max-width:720px){.map-row{grid-template-columns:1fr}}
