  .tree-with-definition {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 12px;
    align-items: stretch;
  }

  .tree-definition-left {
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }

  .cim-action-note {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d6dee8;
    background: #eef7f0;
    color: #1f4d34;
    font-size: 13px;
    font-weight: 600;
  }

  #deviceAttributesContainer > div label {
    margin-top: 18px;
  }

  table { 
    width: 100%; 
    border-collapse: collapse; 
    color: #2c3e50; 
    margin-top: 8px;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
  }

  table th, table td { 
    border: 1px solid #373A36; 
    padding: 6px 10px; 
    background: #f1f1f1; 
    color: #000000;
    cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
  }

  table th { 
    text-align: center; 
    font-weight: 800; 
  }

  table td.clickable-function {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #00662C;
    text-underline-offset: 2px;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    cursor: pointer;
  }

  table td.clickable-function:hover {
    font-weight: 700;
    text-decoration-color: #005423;
  }

  .radio-wrapper { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
  .radio-wrapper label { display:inline-flex; gap:6px; align-items:center; font-weight:600; color:#2c3e50; }
  .radio-wrapper label.actor-option-label {
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #cdddcf;
    border-radius: 8px;
    background: #f7fbf8;
    padding: 6px 8px;
    max-width: 540px;
  }
  .actor-chain-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .actor-chain-line {
    color: #284636;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }
  .actor-hops-box {
    border: 1px solid #cfe0d4;
    border-radius: 8px;
    background: #f3faf6;
    padding: 7px 10px;
    margin: 0 0 8px 0;
  }
  .actor-hops-title {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #557264;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .actor-hops-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .actor-hops-line {
    font-size: 12px;
    color: #1f3d2f;
    font-weight: 700;
    line-height: 1.2;
  }
  .source-toggle {
    margin: 0 0 10px 0;
    border: 1px solid #d6e2d8;
    border-radius: 8px;
    background: #f7fbf8;
    padding: 6px 8px;
  }
  .source-toggle summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #1f4f39;
    user-select: none;
  }
  .source-toggle[open] summary {
    margin-bottom: 6px;
  }
  .source-toggle ul {
    margin: 0;
    padding-left: 18px;
    color: #3f5a4e;
    font-size: 12px;
    line-height: 1.4;
  }
  .source-toggle li {
    margin-bottom: 4px;
  }
  .source-toggle a {
    color: #0a5c91;
    text-decoration: underline;
  }
  .source-toggle.source-toggle-icon {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
    display: inline-flex;
    vertical-align: middle;
  }
  .source-toggle.source-toggle-icon > summary {
    list-style: none;
  }
  .source-toggle.source-toggle-icon > summary::-webkit-details-marker {
    display: none;
  }
  .source-toggle-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #8ab89a;
    background: linear-gradient(180deg, #eef8f1 0%, #d9eee1 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 102, 44, 0.12);
  }
  .source-toggle-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #0a6a39;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .source-toggle-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    max-width: min(520px, 75vw);
    max-height: min(340px, 60vh);
    overflow: auto;
    border: 1px solid #c9ddcf;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(25, 69, 47, 0.18);
    padding: 12px 14px;
    z-index: 22;
  }
  .source-toggle-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #436252;
    margin-bottom: 8px;
  }
  .source-toggle-copy {
    margin: 0;
    color: #3f5a4e;
    font-size: 13px;
    line-height: 1.55;
  }
  .technical-inline-tool {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
  }
  .technical-inline-tool-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .technical-inline-tool-btn.active,
  .technical-inline-tool-btn:hover {
    transform: translateY(-1px);
    border-color: #5c956e;
    box-shadow: 0 10px 22px rgba(20, 89, 53, 0.18);
  }
  .technical-inline-tool-btn-hint svg {
    stroke: none;
    fill: #0a6a39;
  }
  .technical-inline-tool-card {
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(24, 36, 30, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  .technical-card-tool-overlays {
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(24, 36, 30, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
  }
  .technical-card-tool-panels {
    display: grid;
    gap: 12px;
    justify-items: stretch;
    width: min(720px, calc(100vw - 40px));
    max-height: min(76vh, 680px);
  }
  .technical-card-tool-panel {
    pointer-events: auto;
    max-height: min(76vh, 680px);
    overflow: auto;
    border-radius: 20px;
  }
  .technical-card-tool-panel .technical-reference-panel {
    margin-top: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.88),
      0 20px 34px rgba(32, 47, 39, 0.24);
  }
  .technical-card-tool-panel .technical-helpful-tip-panel {
    margin-top: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.88),
      0 20px 34px rgba(32, 47, 39, 0.24);
  }
  .technical-reference-panel {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #c6d6ca;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241, 247, 243, 0.95) 100%);
    box-shadow: 0 10px 22px rgba(44, 52, 58, 0.08);
  }
  .technical-reference-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .technical-reference-panel-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3f5b4d;
  }
  .technical-reference-panel-copy {
    margin: 4px 0 0 0;
    color: #5a6874;
    line-height: 1.5;
    font-size: 13px;
  }
  .technical-reference-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }
  .technical-reference-panel-close {
    flex: 0 0 28px;
  }
  .technical-source-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }
  .technical-source-link,
  .technical-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #bfd0c5;
    background: #eef7f1;
    color: #0f5b2d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }
  .technical-reference-panel-actions .technical-source-badge {
    padding: 4px 8px;
    border-color: transparent;
    background: #edf5ef;
    color: #3b5f4a;
    font-size: 11px;
  }
  .technical-source-link:hover {
    background: #e2f1e7;
    border-color: #9fb9aa;
  }
  .technical-reference-empty {
    color: #586671;
    font-size: 13px;
    line-height: 1.5;
  }
  .technical-helpful-tip-panel {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #c6d6ca;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241, 247, 243, 0.95) 100%);
    box-shadow: 0 10px 22px rgba(44, 52, 58, 0.08);
  }
  .technical-helpful-tip-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
  }
  .technical-helpful-tip-kicker {
    color: #3f5b4d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .technical-helpful-tip-title {
    margin-top: 3px;
    color: #1f3f31;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
  }
  .technical-helpful-tip-body {
    color: #3f5a4e;
    font-size: 13px;
    line-height: 1.55;
  }
  .technical-inline-tool-sheet {
    width: min(560px, calc(100vw - 40px));
    max-height: min(76vh, 620px);
    overflow: auto;
    border: 1px solid #c9ddcf;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4f1 100%);
    box-shadow: 0 28px 48px rgba(35, 52, 43, 0.28);
    padding: 14px 14px 16px;
  }
  .technical-inline-tool-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  .technical-inline-tool-close {
    border: 1px solid #bfd5c6;
    border-radius: 999px;
    background: #f5fbf7;
    color: #355546;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
  }
  .technical-inline-tool-close:hover {
    background: #e8f4ec;
    border-color: #8ab89a;
  }
  .technical-inline-tool-body {
    color: #3f5a4e;
    font-size: 13px;
    line-height: 1.55;
  }
  .technical-inline-tool-copy {
    margin: 0 0 10px 0;
  }
  .technical-inline-tool-copy:last-child {
    margin-bottom: 0;
  }
  .technical-inline-tool-list {
    margin: 0;
    padding-left: 18px;
    color: #3f5a4e;
    font-size: 12px;
    line-height: 1.45;
  }
  .technical-inline-tool-list li {
    margin-bottom: 5px;
  }
  .technical-heading-with-sources {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  @media (max-width: 620px) {
    .technical-reference-panel-head {
      flex-direction: column;
    }
    .technical-reference-panel-actions {
      width: 100%;
      justify-content: space-between;
    }
  }
