.ordinary-image-editor {
    width: min(38rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: 14px/1.5 sans-serif;
}
.ordinary-image-editor::backdrop { background: rgb(15 23 42 / 40%); }
.ordinary-image-editor header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.ordinary-image-editor header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ordinary-image-editor h2 { margin: 0; font-size: 18px; font-weight: 600; }
.ordinary-editor-mode { border-radius: 6px; background: #f1f5f9; padding: 4px 8px; color: #475569; font-size: 12px; }
.ordinary-image-editor button { cursor: pointer; }
.ordinary-image-editor button:disabled { cursor: not-allowed; }
.ordinary-image-editor [data-editor-close] { width: 44px; height: 44px; border-radius: 8px; background: transparent; color: #475569; font-size: 24px; }
.ordinary-image-editor [data-editor-close]:hover { background: #f1f5f9; }
.ordinary-editor-body { padding: 0 24px 20px; }
.ordinary-editor-hint { margin: 8px 0 20px; color: #475569; }
.ordinary-editor-reference-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ordinary-image-editor [data-editor-upload] { min-height: 44px; padding: 0 10px; border-radius: 8px; color: #2563eb; background: #eff6ff; }
.ordinary-image-editor [data-editor-upload]:hover { background: #dbeafe; }
.ordinary-image-editor [data-editor-references] > div { padding: 12px 2px; }
.ordinary-image-editor [data-editor-references] button { opacity: 1; }
.ordinary-image-editor [title="涂鸦编辑"] { display: none; }
.ordinary-image-editor label { display: block; font-weight: 500; }
.ordinary-editor-required { margin-left: 6px; color: #64748b; font-size: 12px; font-weight: 400; }
.ordinary-image-editor [data-toast-outlet] { margin: 8px 0 14px; color: #9f1239; font-size: 13px; }
.ordinary-image-editor [data-editor-prompt] { margin-top: 8px; }
.ordinary-image-editor textarea {
    display: block;
    width: 100%;
    min-height: 116px;
    max-height: 220px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow-y: auto;
    resize: vertical;
    color: #0f172a;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
}
.ordinary-image-editor textarea::placeholder { color: #64748b; }
.ordinary-editor-example { margin: 8px 0 18px; color: #475569; font-size: 12px; }
.ordinary-editor-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ordinary-editor-settings [hidden] { display: none; }
.ordinary-image-editor select { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font-size: 14px; }
.ordinary-editor-advanced { margin-top: 14px; color: #475569; }
.ordinary-editor-advanced summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; }
.ordinary-image-editor [data-editor-inline-setting] { display: none; }
.ordinary-image-editor footer { position: sticky; bottom: 0; padding: 14px 24px 18px; border-top: 1px solid #e2e8f0; background: #fff; }
.ordinary-editor-cost { margin: 0 0 14px; color: #475569; }
.ordinary-editor-cost span { color: #0f172a; font-weight: 600; }
.ordinary-editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ordinary-editor-actions button { min-height: 44px; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.ordinary-image-editor [data-editor-cancel] { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.ordinary-image-editor [data-editor-cancel]:hover { background: #f8fafc; }
.ordinary-image-editor [data-editor-confirm] { background: #2563eb; color: #fff; }
.ordinary-image-editor [data-editor-confirm]:hover:not(:disabled) { background: #1d4ed8; }
.ordinary-image-editor [data-editor-confirm]:disabled { background: #e2e8f0; color: #475569; }
.ordinary-image-editor [data-editor-validation] { margin: 8px 0 0; color: #475569; text-align: right; font-size: 12px; }
.ordinary-image-editor :is(button, select, textarea, summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (max-width: 480px) {
    .ordinary-image-editor { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
    .ordinary-image-editor header { padding: 14px 16px 0; }
    .ordinary-editor-body { padding: 0 16px 16px; }
    .ordinary-image-editor footer { padding: 12px 16px 14px; }
    .ordinary-editor-settings { gap: 12px; }
}
