#dialog.visual-editor-dialog{width:min(1200px,96vw);max-width:96vw;height:92vh;max-height:92vh;padding:0;overflow:hidden;border:1px solid #cfddcf;border-radius:18px;background:#fafcf8;color:#20362b}
#dialog.visual-editor-dialog[open]{display:flex;flex-direction:column}
.ve-header{display:flex;justify-content:space-between;gap:20px;padding:20px 26px;border-bottom:1px solid #dde7dd;background:white;align-items:center;flex-shrink:0}.ve-header h2{font-size:23px;margin:6px 0}.ve-header p{font-size:12px;color:#78857d;margin:0}
.ve-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0;flex:1}.ve-nav{display:block;overflow-y:auto;margin:0;padding:12px;background:#eef4ea;border-right:1px solid #dbe5d9}.ve-nav h3{font-size:12px;padding:13px 10px 6px;margin:0;color:#54734e}.ve-nav .ve-scene{display:flex;gap:10px;width:100%;text-align:left;align-items:start;padding:10px;border:0;background:none;border-radius:8px;font-size:12px;line-height:1.5;color:#52634e}.ve-scene span{font-size:10px;padding-top:2px;color:#84937a}.ve-scene small{display:block;font-size:10px;color:#78857d;margin-top:4px}.ve-nav .selected{background:white;color:#226443;box-shadow:0 1px 5px #20362b10;font-weight:700}
.ve-fields{overflow-y:auto;padding:26px;min-width:0;background:#fff}.ve-scene-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.ve-scene-head h3{font-size:19px;margin:7px 0 0}.ve-fields .field{display:grid;gap:7px;margin:16px 0;font-size:13px;font-weight:600}.ve-fields input,.ve-fields textarea,.ve-fields select{width:100%;font-size:14px;font-weight:400;line-height:1.65;border:1px solid #cddbcf;border-radius:8px;padding:10px 12px;min-width:0}.ve-fields textarea{resize:vertical}.ve-help{color:#73816c;font-size:12px;line-height:1.7;margin:8px 0}.ve-format{display:flex;gap:5px;background:#f1f5ed;border:1px solid #cddbcf;padding:6px;border-radius:8px 8px 0 0}.ve-format button{border:1px solid #dae2d3;border-radius:5px;background:white;color:#315d3b;padding:5px 12px}.ve-rich{min-height:170px;max-height:450px;overflow:auto;padding:18px;border:1px solid #cddbcf;border-top:0;border-radius:0 0 8px 8px;font-size:17px;line-height:1.8;font-weight:400}.ve-rich:focus{outline:2px solid #95bba1}.ve-rich .manual-sentence{font-size:20px}.ve-rich .manual-summary{font-size:15px}.ve-fields hr{border:0;border-top:1px solid #dfe7da;margin:28px 0}.ve-image{margin-top:20px;background:#f6f9f2;border-radius:10px;padding:15px;font-size:13px}.ve-image summary{cursor:pointer;font-weight:600}.ve-image img{max-width:100%;max-height:170px;display:block;margin-top:12px;border-radius:8px}.ve-options{border:1px solid #dce5d6;border-radius:10px;padding:15px;margin:20px 0}.ve-options legend{font-size:12px;padding:0 7px;color:#52704b}.ve-option{display:grid;grid-template-columns:20px minmax(0,1fr) 30px;align-items:center;gap:10px;margin-bottom:10px}.ve-option input[type=radio]{accent-color:#226443;width:18px;height:18px}.ve-answer{display:grid;grid-template-columns:1fr 1.5fr 30px;align-items:center;gap:10px}.ve-answer .field{margin:8px 0}.ve-add{margin-top:28px}.ve-remove{background:#fff2dc;border-radius:8px;padding:16px;margin-top:20px}.ve-remove[hidden]{display:none}.ve-footer{padding:14px 24px;background:#f5f8f0;border-top:1px solid #dbe5d4;flex-shrink:0}.ve-save-row{display:flex;justify-content:space-between;align-items:center;gap:15px}.ve-footer .actions{margin:0;flex-wrap:wrap}.ve-footer #veState{font-size:12px;color:#65795e}.ve-footer small{display:block;font-size:10px;color:#7f8e77;margin-top:8px}.ve-verified{display:block;font-size:11px;margin-top:12px}.ve-verified input{accent-color:#226443}.ve-footer #veError{font-size:12px;color:#9a4c19;line-height:1.7}.ve-banner{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 18px;background:#edf4e8;border:1px solid #d4e2cc;border-radius:10px;margin-bottom:20px;font-size:12px}.manual-figure{margin:18px 0}.manual-figure img{display:block;max-width:100%;max-height:350px;object-fit:contain;border-radius:12px;margin:auto}
@media(max-width:750px){.ve-layout{grid-template-columns:170px minmax(0,1fr)}.ve-fields{padding:16px}.ve-header{padding:14px}.ve-footer{padding:12px}.ve-save-row{display:block}.ve-footer .actions{margin-top:10px}.ve-scene-head{display:block}.ve-answer{grid-template-columns:minmax(0,1fr) 30px}.ve-answer .field:first-child{grid-column:1/-1}.ve-footer .btn{font-size:11px;padding:8px}}
@media(max-width:500px){.ve-layout{display:flex;flex-direction:column}.ve-nav{height:120px;flex-shrink:0;border-right:0;border-bottom:1px solid #dbe5d9}.ve-nav h3{display:none}.ve-nav .ve-scene{padding:6px}.ve-header h2{font-size:19px}.ve-footer small{display:none}}

.ve-verified{display:flex;align-items:center;gap:8px;line-height:1.6}.ve-verified input{width:16px;height:16px;margin:0;padding:0;flex:0 0 16px}
