  .cim-schema-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 24, 17, 0.48);
  }

  .cim-schema-preview-overlay[hidden] {
    display: none;
  }

  .cim-schema-preview-dialog {
    position: relative;
    width: min(1120px, 96vw);
    height: min(780px, 90vh);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid #b8cfbc;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(20, 45, 31, 0.28);
    padding: 14px;
    overflow: hidden;
  }

  .cim-schema-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #deebe2;
    padding-bottom: 10px;
    padding-right: 38px;
    margin-bottom: 10px;
  }

  .cim-schema-preview-head h3 {
    margin: 2px 0 0;
    color: #005423;
    font-size: 16px;
    line-height: 1.25;
  }

  .cim-schema-preview-dialog .cim-schema-tree-preview {
    flex: 1 1 auto;
    min-height: 0;
  }

  .cim-schema-preview-dialog .cim-schema-customize-panel {
    flex: 0 0 auto;
    max-height: 230px;
  }

  .cim-canvas-export-dialog {
    width: min(460px, 92vw);
  }

  .cim-canvas-export-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 4px;
  }

  .cim-canvas-export-option {
    display: grid;
    gap: 6px;
    align-content: center;
    min-height: 84px;
    border: 1px solid #b9d4bf;
    border-radius: 8px;
    background: #ffffff;
    color: #204934;
    cursor: pointer;
    padding: 12px;
    text-align: left;
  }

  .cim-canvas-export-option:hover {
    border-color: #0b7d3c;
    background: #eef8f1;
  }

  .cim-canvas-export-option:disabled {
    opacity: 0.65;
    cursor: progress;
  }

  .cim-canvas-export-option strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .cim-canvas-export-option span {
    width: fit-content;
    border: 1px solid #d6e2da;
    border-radius: 999px;
    background: #f5f8f6;
    color: #486353;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  .cim-preview-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
  }

  .cim-object-label-input {
    min-width: 0;
    flex: 1 1 180px;
    width: 100%;
    border: 1px solid #b9d4bf;
    border-radius: 6px;
    background: #ffffff;
    color: #22523a;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
  }

  .cim-object-label-input:focus {
    outline: none;
    border-color: #73a57d;
    box-shadow: 0 0 0 3px rgba(24, 98, 63, 0.12);
  }

  .cim-preview-format-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cim-preview-format-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    color: #315742;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .cim-preview-format-select {
    border: 1px solid #b9d4bf;
    border-radius: 6px;
    background: #ffffff;
    color: #22523a;
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    max-width: 160px;
  }

  .cim-preview-format-select:focus {
    outline: none;
    border-color: #73a57d;
    box-shadow: 0 0 0 3px rgba(24, 98, 63, 0.12);
  }

  .cim-validation-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #d5dfd8;
    border-radius: 999px;
    background: #f5f8f6;
    color: #53655b;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .cim-file-import-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    box-sizing: border-box;
    border: 1px solid #0b7d3c;
    border-radius: 8px;
    background: #ffffff;
    color: #005423;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
  }

  .cim-file-import-control:hover {
    border-color: #89b794;
    background: #eef8f1;
  }

  .cim-file-import-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .cim-customize-summary {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #d6e2da;
    border-radius: 999px;
    background: #ffffff;
    color: #41604f;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .cim-schema-customize-panel {
    border: 1px solid #d4e1d7;
    border-radius: 8px;
    background: #f8fbf9;
    padding: 10px;
    margin: 0 0 8px;
    max-height: 240px;
    overflow: auto;
  }

  .cim-schema-customize-panel[hidden] {
    display: none;
  }

  .cim-customize-panel-head,
  .cim-customize-class-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .cim-customize-panel-head {
    padding-bottom: 8px;
    border-bottom: 1px solid #deebe2;
    margin-bottom: 8px;
  }

  .cim-customize-panel-head strong,
  .cim-customize-class-head strong {
    display: block;
    color: #264d37;
    font-size: 12px;
    line-height: 1.25;
  }

  .cim-customize-panel-head span,
  .cim-customize-class-head span {
    display: block;
    color: #61766a;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
  }

  .cim-customize-class {
    border-top: 1px solid #e2ede6;
    padding-top: 8px;
    margin-top: 8px;
  }

  .cim-customize-class:first-of-type {
    border-top: 0;
    padding-top: 0;
  }

  .cim-customize-fields {
    display: grid;
    gap: 6px;
    margin-top: 7px;
  }

  .cim-customize-hidden-group {
    display: grid;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px dashed #cbdcd1;
  }

  .cim-customize-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid #dbe8df;
    border-radius: 7px;
    background: #ffffff;
    padding: 7px 8px;
  }

  .cim-customize-field.hidden-field {
    background: #f1f5f3;
    border-style: dashed;
    opacity: 0.82;
  }

  .cim-customize-field-copy {
    min-width: 0;
  }

  .cim-customize-field-copy strong {
    display: inline;
    color: #203f2f;
    font-size: 12px;
    line-height: 1.25;
  }

  .cim-customize-field-copy span,
  .cim-customize-field-copy em {
    display: inline;
    color: #65786d;
    font-size: 11px;
    line-height: 1.25;
    margin-left: 6px;
  }

  .cim-customize-field-copy em {
    color: #7a6a3a;
    font-style: normal;
    font-weight: 700;
  }

  .cim-customize-field-btn {
    border: 1px solid #c9dcd0;
    border-radius: 6px;
    background: #ffffff;
    color: #325842;
    min-height: 26px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }

  .cim-customize-field-btn:hover {
    border-color: #89b794;
    background: #eef8f1;
  }

  .cim-customize-field-btn.restore {
    color: #2f6187;
    border-color: #c6d9e8;
  }

  .cim-customize-empty {
    color: #63756b;
    font-size: 12px;
    line-height: 1.4;
    padding: 4px;
  }

  .cim-customize-empty.inline {
    padding: 6px 0;
    font-size: 11px;
  }

  .cim-validation-status.running {
    border-color: #b7cae4;
    background: #eef5ff;
    color: #315b8f;
  }

  .cim-validation-status.passed {
    border-color: #9fc9aa;
    background: #edf8f0;
    color: #23643a;
  }

  .cim-validation-status.warning {
    border-color: #dbc36f;
    background: #fff8da;
    color: #7a5e00;
  }

  .cim-validation-status.failed {
    border-color: #d7a1a1;
    background: #fff0f0;
    color: #943b3b;
  }

  .cim-validation-status.stale {
    border-color: #d5d9de;
    background: #f3f5f7;
    color: #6d7882;
  }
