.kim { display: grid; gap: 24px; min-width: 0; }
.kim *, .kim *::before, .kim *::after { box-sizing: border-box; }
.kim-heading, .kim-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.kim-heading h2 { font-size: clamp(25px, 2.7vw, 34px); font-weight: 720; line-height: 1.2; letter-spacing: -.035em; margin: 10px 0; }
.kim-heading p, .kim-section-heading p { color: var(--klr-muted); }
.kim-heading > a { flex-shrink: 0; }
.kim .klr-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.kim .klr-text-link, .kim .klr-button { white-space: normal; }
.kim .klr-status { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.kim .klr-status::before { flex-shrink: 0; }
.kim-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 15px 18px; border: 1px solid var(--klr-line); border-radius: 12px; background: var(--klr-surface); font-size: 12px; color: var(--klr-muted); }
.kim-context > div { display: flex; align-items: center; gap: 9px; }
.kim-context .klr-icon { width: 17px; height: 17px; flex-shrink: 0; }
.kim-context p { flex-basis: 100%; }
.kim-topology { margin: 0; padding: 24px; border: 1px solid var(--klr-line); border-radius: 18px; background: var(--klr-soft); }
.kim-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.kim-source { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--klr-surface); border: 1px solid var(--klr-line); border-radius: 12px; min-width: 0; position: relative; }
.kim-source > div { min-width: 0; }
.kim .kim-source h3 { font-size: 15px; }
.kim-source p { font-size: 12px; color: var(--klr-muted); margin: 4px 0 9px; line-height: 1.55; }
.kim-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--klr-line); border-radius: 11px; color: var(--klr-teal); background: var(--klr-soft); }
.kim-symbol .klr-icon { width: 21px; height: 21px; }
.kim-host-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 42px 0; }
.kim-host-grid::before, .kim-host-grid::after { content: ''; position: absolute; left: calc((100% - 36px) / 6); right: calc((100% - 36px) / 6); border-top: 1px dashed var(--klr-muted); opacity: .45; }
.kim-host-grid::before { top: -21px; }
.kim-host-grid::after { bottom: -21px; }
.kim-source::after { content: ''; position: absolute; left: 50%; bottom: -21px; height: 20px; border-left: 1px dashed var(--klr-muted); opacity: .45; }
.kim-host { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--klr-line); border-radius: 14px; background: var(--klr-surface); }
.kim-host::before, .kim-host::after { content: ''; position: absolute; left: 50%; height: 21px; border-left: 1px dashed var(--klr-muted); opacity: .45; }
.kim-host::before { top: -22px; }
.kim-host::after { bottom: -22px; }
.kim-host-heading { display: flex; align-items: flex-start; gap: 11px; padding: 20px 18px 0; }
.kim-host-heading > div { min-width: 0; }
.kim-role { color: var(--klr-teal); font-size: 11px; font-weight: 650; letter-spacing: .035em; }
.kim .kim-host-heading h3 { font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }
.kim-host-description { color: var(--klr-muted); font-size: 12px; line-height: 1.6; padding: 12px 18px 0; }
.kim-report { display: flex; align-items: flex-start; gap: 7px; margin: 14px 18px; font-size: 11px; color: var(--klr-muted); }
.kim-report .klr-icon { width: 15px; height: 15px; flex-shrink: 0; }
.kim-report strong { display: block; font-weight: 550; color: var(--klr-ink); }
.kim-report > div > span { display: block; margin-top: 3px; }
.kim-services { display: grid; gap: 10px; padding: 0 12px 16px; margin: 0; list-style: none; }
.kim-service { min-width: 0; padding: 14px; border: 1px solid var(--klr-line); border-radius: 10px; }
.kim-service-planned { border-style: dashed; background: var(--klr-soft); }
.kim-service-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.kim .kim-service h4 { font-size: 13px; overflow-wrap: anywhere; }
.kim-service .klr-status { font-size: 10px; padding: 3px 5px; }
.kim-service p { color: var(--klr-muted); font-size: 12px; line-height: 1.55; margin-top: 7px; }
.kim-domain { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--klr-ink); margin-top: 10px; }
.kim-service-access { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 9px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--klr-line); font-size: 11px; color: var(--klr-muted); }
.kim-service-access .klr-text-link { font-size: 12px; }
.kim-planned-label { font-size: 10px; }
.kim-host-addresses { border-top: 1px solid var(--klr-line); margin-top: auto; padding: 0 18px; }
.kim-host-addresses summary { cursor: pointer; color: var(--klr-teal); font-weight: 600; font-size: 12px; padding: 13px 0; }
.kim-host-addresses dl { display: grid; gap: 10px; padding-bottom: 16px; }
.kim-host-addresses dt { color: var(--klr-muted); font-size: 11px; }
.kim-host-addresses dd { font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.kim-network { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--klr-line); border-radius: 12px; background: var(--klr-surface); }
.kim-network::before { content: ''; position: absolute; top: -22px; left: 50%; height: 21px; border-left: 1px dashed var(--klr-muted); opacity: .45; }
.kim .kim-network h3 { font-size: 14px; }
.kim-network p { font-size: 12px; color: var(--klr-muted); margin-top: 4px; line-height: 1.55; }
.kim-network-label { flex-shrink: 0; margin-left: auto; font-size: 11px; color: var(--klr-teal); border: 1px solid var(--klr-line); border-radius: 20px; padding: 5px 9px; }
.kim-topology figcaption { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--klr-muted); margin-top: 18px; line-height: 1.6; }
.kim-legend-line { width: 25px; border-top: 1px dashed var(--klr-muted); flex-shrink: 0; margin-top: 8px; }
.kim-customer-list { list-style: none; padding: 0; margin: 0; }
.kim-customer-list > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 18px 0; border-top: 1px solid var(--klr-line); }
.kim-customer-list > li:last-child { padding-bottom: 0; }
.kim-customer-name { min-width: 0; }
.kim-customer-name h4, .kim-customer-name p { overflow-wrap: anywhere; }
.kim-customer-name p { font-size: 12px; margin-top: 5px; }
.kim-customer-name small { display: block; font-size: 11px; color: var(--klr-muted); margin-top: 4px; }
.kim-customer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.kim-empty { display: flex; align-items: flex-start; gap: 15px; padding: 12px 0; }
.kim-empty > .klr-icon { color: var(--klr-teal); flex-shrink: 0; }
.kim-empty strong { font-size: 14px; }
.kim-empty p { font-size: 13px; color: var(--klr-muted); margin-top: 6px; line-height: 1.65; max-width: 760px; }
.kim-section-heading { margin-bottom: 16px; }
.kim-section-heading p { font-size: 12px; margin-top: 5px; }
.kim-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kim-path-grid h4 { display: flex; align-items: center; gap: 9px; }
.kim-path-grid h4 .klr-icon { color: var(--klr-teal); }
.kim-path-grid > article > p { font-size: 12px; color: var(--klr-muted); line-height: 1.65; margin-top: 18px; }
.kim-path { display: grid; gap: 0; padding: 0; margin: 18px 0 0; list-style: none; }
.kim-path li { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px; position: relative; }
.kim-path li:last-child { padding-bottom: 0; }
.kim-path li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: var(--klr-line); top: 30px; bottom: 0; left: 14px; }
.kim-path li > span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--klr-line); border-radius: 9px; background: var(--klr-soft); color: var(--klr-teal); font-size: 12px; font-weight: 650; }
.kim-path strong { font-size: 13px; font-weight: 650; }
.kim-path small { display: block; font-size: 12px; color: var(--klr-muted); margin-top: 3px; }
.kim-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kim-shortcuts a { display: flex; align-items: center; gap: 12px; padding: 17px 18px; background: var(--klr-surface); border: 1px solid var(--klr-line); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--klr-ink); }
.kim-shortcuts a > .klr-icon, .kim-shortcuts a > span:last-child { color: var(--klr-teal); flex-shrink: 0; }
.kim-shortcuts a > span:last-child { margin-left: auto; }
.kim-shortcuts a:hover { border-color: var(--klr-teal); }
.kim a:focus-visible, .kim button:focus-visible, .kim summary:focus-visible { outline: 3px solid var(--klr-teal); outline-offset: 4px; border-radius: 5px; }
@media (max-width: 1200px) {
    .kim-topology { padding: 18px; }
    .kim-host-grid { gap: 12px; }
    .kim-host-grid::before, .kim-host-grid::after { left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); }
    .kim-host-heading { flex-direction: column; }
    .kim-service { padding: 12px; }
}
@media (max-width: 1000px) {
    .kim-host-grid { grid-template-columns: 1fr; gap: 18px; margin: 24px 0; }
    .kim-host-grid::before, .kim-host-grid::after, .kim-host::before, .kim-host::after, .kim-source::after, .kim-network::before { display: none; }
    .kim-host-heading { flex-direction: row; }
    .kim-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kim-network-label { display: none; }
    .kim-customer-list > li { grid-template-columns: 40px minmax(0, 1fr); }
    .kim-customer-actions { grid-column: 2; justify-content: flex-start; }
    .kim-shortcuts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .kim-heading, .kim-section-heading, .kim .klr-section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .kim-sources, .kim-path-grid { grid-template-columns: 1fr; }
    .kim-topology { padding: 14px; }
    .kim-source { padding: 15px; }
    .kim-network { padding: 15px; align-items: flex-start; }
}
@media (max-width: 480px) {
    .kim-services { grid-template-columns: 1fr; }
    .kim-customer-list > li { column-gap: 10px; }
    .kim-customer-actions { grid-column: 1 / -1; }
    .kim-source .kim-symbol, .kim-network .kim-symbol { width: 32px; height: 32px; }
    .kim-host-heading, .kim-host-description { padding-left: 15px; padding-right: 15px; }
    .kim-report { margin-left: 15px; margin-right: 15px; }
}

.kim #map-customers-title { scroll-margin-top: 90px; }
.kim-external-icon { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-left: 3px; }
