  .cim-schema-layout {
    display: grid;
    grid-template-columns: var(--cim-left, clamp(340px, 28%, 500px)) 8px minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    min-height: 420px;
  }

  .cim-resizer {
    width: 8px;
    border-radius: 6px;
    background: linear-gradient(180deg, #dbe8dd 0%, #b8d1bc 100%);
    cursor: col-resize;
    user-select: none;
  }

  .cim-resizer:hover {
    background: linear-gradient(180deg, #b5d8bb 0%, #7daf87 100%);
  }

  .cim-pane {
    background: #f8fbf8;
    border: 1px solid #c5d8c8;
    border-radius: 8px;
    padding: 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cim-library-pane {
    min-width: 0;
  }

  .cim-canvas-pane {
    min-width: 0;
  }

  .cim-pane h3 {
    margin: 0 0 8px 0;
    color: #005423;
    font-size: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cim-selected-object {
    font-size: 12px;
    color: #496058;
    font-weight: 600;
    opacity: 0.95;
  }

  .cim-profile-section {
    flex: 0 0 auto;
    min-height: 0;
    border: 1px solid #c9dccf;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
  }

  .cim-profile-section[hidden] {
    display: none;
  }

  .cim-profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #f9fcfa 0%, #eff7f1 100%);
  }

  .cim-profile-overlap-copy {
    min-width: 210px;
    flex: 1 1 260px;
  }

  .cim-profile-compact-metrics {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    flex: 1 1 360px;
    max-width: 560px;
  }

  .cim-profile-compact-donuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cim-profile-compat-note {
    color: #5c513c;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
  }

  .cim-profile-section-title {
    color: #173d2b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .cim-profile-section-subtitle {
    color: #536a5e;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
  }

  .cim-profile-banner {
    border: 1px solid #b8cfbc;
    border-left: 4px solid #2f7a52;
    background: #f3f8f0;
    color: #234236;
    padding: 8px 10px;
    margin: 0 0 8px 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .cim-profile-banner.strong_overlap {
    border-left-color: #6f7f3a;
    background: #f7f7ed;
  }

  .cim-profile-banner.partial_nested {
    border-left-color: #8a6a1f;
    background: #fff7e6;
  }

  .cim-profile-banner[hidden] {
    display: none;
  }

  .cim-profile-mismatch {
    border: 1px solid #e5d6a8;
    background: #fffaf0;
    color: #3f341c;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .cim-profile-mismatch[hidden] {
    display: none;
  }

  .cim-profile-mismatch-title {
    font-weight: 800;
    color: #523a0e;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
  }

  .cim-match-donut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .cim-match-donut-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #eadbb4;
    border-radius: 8px;
    background: #fffdf8;
    padding: 8px;
  }

  button.cim-match-donut-card {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  button.cim-match-donut-card:hover {
    border-color: #7fac8b;
    background: #f7fcf8;
  }

  button.cim-match-donut-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 98, 63, 0.14);
  }

  .cim-match-donut-card.compact {
    grid-template-columns: 54px minmax(128px, 1fr);
    gap: 8px;
    padding: 6px 8px;
    border-radius: 7px;
  }

  .cim-match-donut {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(#2f7a52 var(--match-angle), #eadfca 0deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(69, 92, 75, 0.08);
  }

  .cim-match-donut::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fffdf8;
  }

  .cim-match-donut span {
    position: relative;
    z-index: 1;
    color: #173d2b;
    font-size: 12px;
    font-weight: 900;
  }

  .cim-match-donut-card.compact .cim-match-donut {
    width: 50px;
    height: 50px;
  }

  .cim-match-donut-card.compact .cim-match-donut::after {
    width: 34px;
    height: 34px;
  }

  .cim-match-donut-card.compact .cim-match-donut span {
    font-size: 11px;
  }

  .cim-match-donut-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .cim-match-donut-copy strong {
    color: #234236;
    font-size: 12px;
    font-weight: 900;
  }

  .cim-match-donut-copy span {
    color: #5b665e;
    font-size: 11px;
    line-height: 1.3;
  }

  .cim-match-donut-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
  }

  .cim-match-action-btn {
    border: 1px solid #c9d8ce;
    background: #ffffff;
    color: #1f4b36;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
  }

  .cim-match-action-btn:hover:not(:disabled) {
    background: #edf8f1;
    border-color: #81aa8f;
  }

  .cim-match-action-btn:disabled {
    color: #93a198;
    background: #f6f8f6;
    cursor: not-allowed;
  }

  .cim-match-empty {
    color: #647267;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    padding: 4px 0;
  }

  .cim-audit-table-wrap {
    max-height: min(58vh, 520px);
    overflow: auto;
    border: 1px solid #d7e1d9;
    border-radius: 8px;
    background: #ffffff;
  }

  .cim-audit-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    line-height: 1.35;
  }

  .cim-audit-table th,
  .cim-audit-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e8eee9;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    cursor: default;
  }

  .cim-audit-table th:nth-child(1),
  .cim-audit-table td:nth-child(1) {
    width: 112px;
  }

  .cim-audit-table th:nth-child(2),
  .cim-audit-table td:nth-child(2) {
    width: 22%;
  }

  .cim-audit-table th:nth-child(3),
  .cim-audit-table td:nth-child(3) {
    width: 20%;
  }

  .cim-audit-table th:nth-child(5),
  .cim-audit-table td:nth-child(5) {
    width: 126px;
  }

  .cim-audit-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f8f5;
    color: #284935;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .cim-schema-audit-table,
  .cim-schema-audit-table th,
  .cim-schema-audit-table td,
  .cim-schema-audit-table span {
    cursor: default;
  }

  .cim-audit-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
  }

  .cim-audit-status.matched {
    background: #eaf6ee;
    color: #1f693f;
    border: 1px solid #b9d9c4;
  }

  .cim-audit-status.review {
    background: #fff3d5;
    color: #7a4a0b;
    border: 1px solid #e3c170;
  }

  .cim-audit-row-add-btn {
    border: 1px solid #0b7d3c;
    background: #ffffff;
    color: #005423;
    border-radius: 999px;
    font-size: 11px;
    padding: 6px 9px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .cim-audit-row-add-btn:hover {
    background: #eef9f0;
  }

  .cim-audit-row-add-btn:disabled {
    cursor: default;
    opacity: 0.62;
  }

  .cim-audit-row-action-note {
    color: #607369;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
  }

  .cim-audit-row-action-note.review-only {
    color: #856020;
  }

  .cim-library-list {
    overflow: auto;
    padding-right: 4px;
  }

  .cim-library-list[hidden] {
    display: none;
  }

  .cim-library-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    flex: 0 0 auto;
  }

  .cim-library-search-panel input,
  .cim-library-search-panel select {
    border: 1px solid #b8cfbc;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    color: #21313d;
    background: #fff;
  }

  .cim-library-search-panel input {
    width: 100%;
    box-sizing: border-box;
  }

  .cim-class-search-results {
    min-height: 158px;
    max-height: 190px;
    overflow: auto;
    border: 1px solid #c5d8c8;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
  }

  .cim-class-search-results.is-empty {
    background: #fbfdfb;
  }

  .cim-search-results-head {
    color: #41604f;
    font-size: 11px;
    font-weight: 900;
    margin: 0 0 6px;
    line-height: 1.2;
  }

  .cim-search-results-message {
    color: #63756b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
  }

  .cim-search-results-message.error {
    color: #b33c3c;
  }

  .cim-class-search-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 5px;
  }

  .cim-package-tree {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cim-package-tree-empty {
    color: #647267;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .cim-package-tree-group {
    display: grid;
    gap: 4px;
    min-width: 0;
    align-content: start;
    border: 1px solid #c5d8c8;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
  }

  .cim-package-tree-children {
    display: grid;
    gap: 2px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 2px solid #dbe9df;
  }

  .cim-package-tree-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: start;
    gap: 5px;
    min-width: 0;
    padding: 3px 2px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #243a2f;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.25;
  }

  .cim-package-tree-row.top {
    grid-template-columns: 14px minmax(0, 1fr);
    background: transparent;
    border-color: transparent;
    font-weight: 900;
    padding: 4px 2px 6px;
  }

  .cim-package-tree-row.child {
    color: #345346;
    background: transparent;
    font-size: 10.5px;
    font-weight: 760;
  }

  .cim-package-tree-row:hover {
    border-color: #7fac8b;
    background: #eef8f1;
  }

  .cim-package-tree-row input {
    width: 14px;
    height: 14px;
    margin: 1px 0 0;
    accent-color: #00662C;
  }

  .cim-package-tree-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .cim-package-tree-heading {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
  }

  .cim-package-tree-name {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .cim-package-tree-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }

  .cim-package-tree-version {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    color: #173b2b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
  }

  .cim-package-tree-version-part {
    white-space: nowrap;
  }

  .cim-package-tree-count {
    justify-self: end;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    color: #5a7065;
    padding: 0;
    text-align: right;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  .cim-class-item {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid #d9e5db;
    border-radius: 6px;
    cursor: grab;
    background: #ffffff;
    color: #21313d;
    font-size: 12px;
    line-height: 1.25;
    user-select: none;
    min-width: 0;
  }

  .cim-class-item span,
  .cim-class-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cim-class-item small {
    color: #64796e;
    font-size: 10px;
    font-weight: 800;
  }

  .cim-class-item-type {
    display: inline-block;
    margin-right: 4px;
    color: #1f6842;
    font-weight: 900;
  }

  .cim-class-item.normal-class {
    border-color: #ecd0a8;
    background: #fff8ed;
  }

  .cim-class-item.enumeration {
    border-color: #c5e2cd;
    background: #f1fbf3;
  }

  .cim-class-item:hover {
    border-color: #00662C;
    background: #eef9f0;
  }
