.sd-editor{margin:24px 0;border:1px solid #c6d4e2;border-radius:12px;background:#f6f9fc;overflow:hidden}
.sd-head{padding:20px 22px;background:#eaf1f8;border-bottom:1px solid #c6d4e2}.sd-head h2{margin:0 0 8px}.sd-head p{margin:5px 0 12px;line-height:1.5}
.sd-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sd-tools .btn{min-height:36px}.sd-tools label{display:inline-flex;align-items:center;gap:5px;font-size:13px}.sd-tools input[type=checkbox]{width:16px;height:16px}
.sd-layout{display:grid;grid-template-columns:155px minmax(0,1fr);gap:0}.sd-palette{padding:12px;border-right:1px solid #c6d4e2;max-height:640px;overflow:auto;background:#fff}.sd-palette h3{font-size:12px;letter-spacing:.04em;margin:15px 0 8px;color:#46607a}.sd-symbols{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sd-symbol{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font:inherit;font-size:11px;line-height:1.2;min-height:72px;padding:7px 3px;background:white;border:1px solid #c7d6e3;border-radius:7px;color:#223c55;cursor:grab}.sd-symbol:hover{background:#edf5fd;border-color:#1b5a9b}.sd-symbol svg{width:40px;height:34px;pointer-events:none}.sd-symbol span{pointer-events:none}
.sd-center{min-width:0;padding:12px}.sd-stage{width:100%;background:white;border:1px solid #b5c7d9;border-radius:6px;touch-action:none;user-select:none;outline-offset:3px}.sd-stage svg{display:block;width:100%;height:auto}.sd-stage [data-sd-object]{cursor:move}.sd-stage [data-sd-object]:focus{outline:none}.sd-stage:focus-visible,.sd-symbol:focus-visible{outline:3px solid #147bbb}.sd-status{font-size:12px;line-height:1.5;color:#46607a;margin:8px 0}.sd-properties{padding:14px;background:white;border:1px solid #cad8e4;border-radius:8px;margin-top:10px}.sd-properties .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sd-properties .field.full{grid-column:1/-1}.sd-properties label{font-size:12px}.sd-properties input,.sd-properties select{min-width:0;padding:8px}.sd-properties legend{font-weight:700;font-size:14px;padding:0 6px}.sd-properties fieldset{padding:0;border:0;margin:8px 0}.sd-properties .sd-tools{margin-top:12px}
.sd-meta{padding:16px 22px;border-top:1px solid #c6d4e2}.sd-meta textarea{min-height:85px}.sd-legend{margin:10px 0;padding-left:25px;max-height:210px;overflow:auto;font-size:13px;line-height:1.55}.sd-legend li{margin:5px 0;overflow-wrap:anywhere}.sd-legacy{border:1px solid #c7d6e3;border-radius:9px;margin-top:20px;padding:16px}.sd-legacy>summary{cursor:pointer;font-weight:700}.sd-legacy[open]>summary{margin-bottom:18px}
.sd-editor.sd-expanded{position:fixed;inset:12px;z-index:1000;overflow:auto;margin:0;box-shadow:0 0 0 20px #112a49b8}.sd-expanded .sd-layout{grid-template-columns:185px minmax(0,1fr)}.sd-expanded .sd-center{max-width:1300px;width:100%;margin:auto}.sd-expanded .sd-palette{max-height:90vh}.sd-expanded .sd-stage{max-height:none}
@media(max-width:1100px){.sd-layout{grid-template-columns:128px minmax(0,1fr)}.sd-palette{padding:8px}.sd-properties .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.sd-editor,.sd-legacy{display:none}}
