.JFoldBox {
    position: relative;
    display: block;
    box-sizing: border-box;
}
.JFoldBox.JFoldBox-collapsed {
    overflow: hidden;
}
.JFoldBox.JFoldBox-canFold {
    cursor: pointer;
}
.JFoldBox.JFoldBox-canFold.JFoldBox-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--JFoldBoxFadeColor, rgba(255, 255, 255, 0.92)));
    pointer-events: none;
}
.JFoldBox.JFoldBox-anim {
    transition: max-height 220ms ease;
}

.JSortableList {
    display: block;
    box-sizing: border-box;
}
.JSortableList-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    cursor: move;
    user-select: none;
}
.JSortableList-item:last-child {
    margin-bottom: 0;
}
.JSortableList-item.JSortableList-dragging {
    opacity: 0.55;
}
.JSortableList-item.JSortableList-drop-before {
    border-top: 2px solid #0091fb;
}
.JSortableList-item.JSortableList-drop-after {
    border-bottom: 2px solid #0091fb;
}
.JSortableList-name {
    flex: 1;
    min-width: 0;
    line-height: 20px;
    color: #333;
    word-break: break-all;
}
.JSortableList-item.JSortableList-deleted .JSortableList-name {
    text-decoration: line-through;
    color: #999;
}
.JSortableList-action {
    flex: none;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
    color: #666;
    cursor: pointer;
}
.JSortableList-item.JSortableList-deleted .JSortableList-action {
    color: #0f766e;
    border-color: #99f6e4;
    background: #f0fdfa;
}

.JBizTypeTree {
    display: block;
    box-sizing: border-box;
}
.JBizTypeTree * {
    box-sizing: border-box;
}
.JBizTypeTree-l1 {
    margin-bottom: 8px;
}
.JBizTypeTree-l1:last-child {
    margin-bottom: 0;
}
.JBizTypeTree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.JBizTypeTree-row.JBizTypeTree-leaf {
    cursor: pointer;
}
.JBizTypeTree-row.JBizTypeTree-leaf:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.JBizTypeTree-title {
    flex: 1;
    min-width: 0;
    line-height: 20px;
    color: #111827;
    word-break: break-all;
}
.JBizTypeTree-toggle {
    flex: none;
    width: 22px;
    height: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.JBizTypeTree-toggle:hover {
    background: #f3f4f6;
}
.JBizTypeTree-caret {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid #6b7280;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: rotate(0deg);
    transition: transform 0.12s ease;
}
.JBizTypeTree-l1.JBizTypeTree-expanded .JBizTypeTree-caret {
    transform: rotate(90deg);
}
.JBizTypeTree-children {
    margin-top: 6px;
    margin-left: 18px;
    padding-left: 10px;
    border-left: 2px solid #eef2f7;
    display: none;
}
.JBizTypeTree-l1.JBizTypeTree-expanded .JBizTypeTree-children {
    display: block;
}
.JBizTypeTree-l2 {
    margin-top: 6px;
}
.JBizTypeTree-l2 .JBizTypeTree-row {
    border-radius: 6px;
    padding: 8px 10px;
}
.JBizTypeTree-selected {
    border-color: #0091fb !important;
    background: #eef7ff !important;
}

/*进度条*/
.JTaskProgressBar {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.JTaskProgressBar-root {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.JTaskProgressBar-track {
    position: relative;
    height: 14px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 43, 77, 0.06);
}

.JTaskProgressBar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 0;
    background: linear-gradient(90deg, #3492ff, #66c2ff);
    transition: width 260ms ease;
    overflow: hidden;
}

.JTaskProgressBar-text {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
    pointer-events: none;
}

.JTaskProgressBar-root.is-running .JTaskProgressBar-text {
    color: #000;
}

.JTaskProgressBar-root.is-s0 .JTaskProgressBar-fill {
    background: linear-gradient(90deg, #c6d6e8, #b7c9dd);
}

.JTaskProgressBar-root.is-s1 .JTaskProgressBar-fill {
    background: linear-gradient(90deg, #3492ff, #66c2ff);
}

.JTaskProgressBar-root.is-s2 .JTaskProgressBar-fill {
    background: linear-gradient(90deg, #ffb84d, #ffd26e);
}

.JTaskProgressBar-root.is-s3 .JTaskProgressBar-fill {
    background: transparent;
}

.JTaskProgressBar-root.is-s4 .JTaskProgressBar-fill {
    background: linear-gradient(90deg, #ff6b6b, #ff9a8a);
}

.JTaskProgressBar-root.is-s5 .JTaskProgressBar-fill {
    background: linear-gradient(90deg, #6f7d8c, #9aa8b7);
}

.JTaskProgressBar-root.is-running .JTaskProgressBar-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 35%,
        rgba(255, 255, 255, 0) 70%
    );
    animation: JTaskProgressBar-shimmer 1.2s linear infinite;
}

.JTaskProgressBar-root.is-running .JTaskProgressBar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.14) 18%,
        rgba(255, 255, 255, 0) 18%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.14) 68%,
        rgba(255, 255, 255, 0) 68%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 22px 22px;
    animation: JTaskProgressBar-stripes 0.9s linear infinite;
    opacity: 0.75;
    mix-blend-mode: overlay;
}

.JTaskProgressBar-root.is-running .JTaskProgressBar-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(52, 146, 255, 0.32) 0px,
        rgba(52, 146, 255, 0.32) 10px,
        rgba(255, 255, 255, 0.72) 10px,
        rgba(255, 255, 255, 0.72) 20px
    );
    background-size: 28px 28px;
    animation: JTaskProgressBar-trackStripes 0.85s linear infinite;
    opacity: 0.95;
    pointer-events: none;
}

@keyframes JTaskProgressBar-shimmer {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(220%);
    }
}

@keyframes JTaskProgressBar-stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 22px 0;
    }
}

@keyframes JTaskProgressBar-trackStripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 28px 0;
    }
}

.JDragSorter-container {
    display: block;
    box-sizing: border-box;
}

.JDragSorter-node {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.JDragSorter-handle {
    cursor: grab;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.JDragSorter-dragging-active .JDragSorter-handle {
    cursor: grabbing;
}

.JDragSorter-dragging {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    box-sizing: border-box;
}

.JDragSorter-placeholder {
    display: block;
    box-sizing: border-box;
    border: 2px dashed #0091fb;
    border-radius: 6px;
    background: rgba(0, 145, 251, 0.06);
    margin: 0;
    padding: 0;
}

.JDragSorter-placeholder.JDragSorter-anim {
    transition: all 120ms ease;
}

.JDragSorter-over-before {
    border-top: 2px solid #0091fb !important;
    margin-top: -2px;
}

.JDragSorter-over-after {
    border-bottom: 2px solid #0091fb !important;
    margin-bottom: -2px;
}

.JDragSorter-disabled,
.JDragSorter-disabled * {
    cursor: not-allowed !important;
}

.JEntityModelDesigner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto minmax(520px, 1fr);
    width: 100%;
    min-height: 640px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    background: #f7f9fc;
    overflow: hidden;
    box-sizing: border-box;
    color: #1f2937;
}

.JEntityModelDesigner * {
    box-sizing: border-box;
}

.JEntityModelDesigner-toolbar {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.JEntityModelDesigner-title {
    margin-right: auto;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.JEntityModelDesigner-toolbar button,
.JEntityModelDesigner-panel button,
.JEntityModelDesigner-dialog button {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
}

.JEntityModelDesigner-toolbar button:hover,
.JEntityModelDesigner-panel button:hover,
.JEntityModelDesigner-dialog button:hover {
    border-color: #60a5fa;
    color: #1d4ed8;
}

.JEntityModelDesigner-toolbar button:disabled,
.JEntityModelDesigner-panel button:disabled,
.JEntityModelDesigner-dialog button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f8fafc;
}

.JEntityModelDesigner-toolbar button.JEntityModelDesigner-primary,
.JEntityModelDesigner-panel button.JEntityModelDesigner-primary,
.JEntityModelDesigner-dialog button.JEntityModelDesigner-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.JEntityModelDesigner-toolbar button.JEntityModelDesigner-danger,
.JEntityModelDesigner-panel button.JEntityModelDesigner-danger {
    border-color: #fca5a5;
    color: #b91c1c;
}

.JEntityModelDesigner-stage {
    position: relative;
    min-width: 0;
    min-height: 520px;
    background: #edf2f7;
}

.JEntityModelDesigner-treeWrap {
    width: 100%;
    height: 100%;
    padding: 14px;
    overflow: auto;
}

.JEntityModelDesigner-tree {
    min-width: 100%;
    min-height: 100%;
}

.JEntityModelDesigner-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #64748b;
    font-size: 15px;
}

.JEntityModelDesigner-treeBlock,
.JEntityModelDesigner-treePropertyWrap {
    margin-bottom: 12px;
}

.JEntityModelDesigner-treeBlock:last-child,
.JEntityModelDesigner-treePropertyWrap:last-child {
    margin-bottom: 0;
}

.JEntityModelDesigner-treeChildren {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid #dbe5f1;
}

.JEntityModelDesigner-treeGroupTitle {
    margin: 8px 0 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.JEntityModelDesigner-treeGroupTitle:first-child {
    margin-top: 0;
}

.JEntityModelDesigner-treeCard {
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #dbe5f1;
    background: #ffffff;
    cursor: pointer;
}

.JEntityModelDesigner-treeCard:hover {
    border-color: #93c5fd;
}

.JEntityModelDesigner-treeCard.is-selected {
    border-width: 3px;
}

.JEntityModelDesigner-treeCard-entity {
    border-color: #2563eb;
    background: #ffffff;
}

.JEntityModelDesigner-treeCard-entity.is-selected {
    border-color: #1d4ed8;
    background: #dbeafe;
}

.JEntityModelDesigner-treeCard-property {
    border-style: dashed;
    border-color: #0f766e;
    background: #f0fdfa;
}

.JEntityModelDesigner-treeCard-property.is-selected {
    border-color: #0f766e;
    background: #99f6e4;
}

.JEntityModelDesigner-treeTitle {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 22px;
    word-break: break-all;
}

.JEntityModelDesigner-treeMeta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.JEntityModelDesigner-treeTag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 22px;
}

.JEntityModelDesigner-treeTag-light {
    background: #f1f5f9;
    color: #475569;
}

.JEntityModelDesigner-treeTag-property {
    background: #ccfbf1;
    color: #0f766e;
}

.JEntityModelDesigner-treeDesc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 18px;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-word;
}

.JEntityModelDesigner-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
}

.JEntityModelDesigner-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.JEntityModelDesigner-sectionTitle {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.JEntityModelDesigner-hint {
    font-size: 12px;
    line-height: 18px;
    color: #64748b;
}

.JEntityModelDesigner-field {
    margin-bottom: 10px;
}

.JEntityModelDesigner-field:last-child {
    margin-bottom: 0;
}

.JEntityModelDesigner-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.JEntityModelDesigner-field input,
.JEntityModelDesigner-field select,
.JEntityModelDesigner-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
}

.JEntityModelDesigner-field select {
    min-height: 36px;
    line-height: 20px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.JEntityModelDesigner-field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 20px;
}

.JEntityModelDesigner-field input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.JEntityModelDesigner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.JEntityModelDesigner-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.JEntityModelDesigner-json {
    width: 100%;
    min-height: 240px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 18px;
    resize: vertical;
}

.JEntityModelDesigner-dialogMask {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
}

.JEntityModelDesigner-dialogMask.is-open {
    display: flex;
}

.JEntityModelDesigner-dialog {
    width: min(760px, 100%);
    max-height: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.JEntityModelDesigner-dialogTitle {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.JEntityModelDesigner-dialogActions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.JEntityModelDesigner-status {
    min-height: 18px;
    font-size: 12px;
    color: #475569;
}

.JEntityModelDesigner-status.is-error {
    color: #b91c1c;
}

.JEntityModelDesigner-status.is-success {
    color: #15803d;
}

@media (max-width: 1100px) {
    .JEntityModelDesigner {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(420px, 1fr) auto;
    }

    .JEntityModelDesigner-toolbar {
        grid-column: 1 / 2;
    }

    .JEntityModelDesigner-panel {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }
}

/* Final override: keep the designer at a fixed height and scroll inside it. */
.JEntityModelDesigner {
    height: 680px !important;
    min-height: 680px !important;
    max-height: 680px !important;
    overflow: hidden !important;
}

.JEntityModelDesigner-stage {
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
}

.JEntityModelDesigner-panel {
    min-height: 0 !important;
    overflow-y: auto !important;
}

.JEntityModelDesigner-canvas {
    min-height: 100% !important;
}

.JEntityModelDesigner {
    height: 680px;
    max-height: 680px;
    overflow: hidden;
}

.JEntityModelDesigner-stage {
    min-height: 0;
    height: 100%;
    overflow: auto;
}

.JEntityModelDesigner-canvas {
    min-height: 100%;
}

.JEntityModelDesigner-panel {
    min-height: 0;
}

.JEntityModelDesigner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto minmax(520px, 1fr);
    width: 100%;
    min-height: 640px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    background: #f7f9fc;
    overflow: hidden;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
}

.JEntityModelDesigner * {
    box-sizing: border-box;
}

.JEntityModelDesigner-toolbar {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.JEntityModelDesigner-title {
    margin-right: auto;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.JEntityModelDesigner-toolbar button,
.JEntityModelDesigner-panel button,
.JEntityModelDesigner-dialog button {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
}

.JEntityModelDesigner-toolbar button:hover,
.JEntityModelDesigner-panel button:hover,
.JEntityModelDesigner-dialog button:hover {
    border-color: #60a5fa;
    color: #1d4ed8;
}

.JEntityModelDesigner-toolbar button:disabled,
.JEntityModelDesigner-panel button:disabled,
.JEntityModelDesigner-dialog button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f8fafc;
}

.JEntityModelDesigner-toolbar button.JEntityModelDesigner-primary,
.JEntityModelDesigner-panel button.JEntityModelDesigner-primary,
.JEntityModelDesigner-dialog button.JEntityModelDesigner-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.JEntityModelDesigner-toolbar button.JEntityModelDesigner-danger,
.JEntityModelDesigner-panel button.JEntityModelDesigner-danger {
    border-color: #fca5a5;
    color: #b91c1c;
}

.JEntityModelDesigner-stage {
    position: relative;
    min-width: 0;
    min-height: 520px;
    background: #edf2f7;
}

.JEntityModelDesigner-canvas {
    width: 100%;
    height: 100%;
}

.JEntityModelDesigner-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #64748b;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.JEntityModelDesigner-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
}

.JEntityModelDesigner-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.JEntityModelDesigner-sectionTitle {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.JEntityModelDesigner-hint {
    font-size: 12px;
    line-height: 18px;
    color: #64748b;
}

.JEntityModelDesigner-field {
    margin-bottom: 10px;
}

.JEntityModelDesigner-field:last-child {
    margin-bottom: 0;
}

.JEntityModelDesigner-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.JEntityModelDesigner-field input,
.JEntityModelDesigner-field select,
.JEntityModelDesigner-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
}

.JEntityModelDesigner-field select {
    min-height: 36px;
    line-height: 20px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.JEntityModelDesigner-field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 20px;
}

.JEntityModelDesigner-field input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.JEntityModelDesigner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.JEntityModelDesigner-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.JEntityModelDesigner-json {
    width: 100%;
    min-height: 240px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 18px;
    resize: vertical;
}

.JEntityModelDesigner-dialogMask {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
}

.JEntityModelDesigner-dialogMask.is-open {
    display: flex;
}

.JEntityModelDesigner-dialog {
    width: min(760px, 100%);
    max-height: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.JEntityModelDesigner-dialogTitle {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.JEntityModelDesigner-dialogActions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.JEntityModelDesigner-status {
    min-height: 18px;
    font-size: 12px;
    color: #475569;
}

.JEntityModelDesigner-status.is-error {
    color: #b91c1c;
}

.JEntityModelDesigner-status.is-success {
    color: #15803d;
}

@media (max-width: 1100px) {
    .JEntityModelDesigner {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(420px, 1fr) auto;
    }

    .JEntityModelDesigner-toolbar {
        grid-column: 1 / 2;
    }

    .JEntityModelDesigner-panel {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }
}
