.imw-knowledge-map {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid #dbe4ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbfd 100%);
  box-shadow: 0 10px 30px rgba(20, 45, 65, .06);
  overflow: hidden;
}

.imw-kmap__head { margin-bottom: 12px; }
.imw-kmap__heading { margin: 0 0 7px !important; font-size: 1.45em; line-height: 1.35; }
.imw-kmap__lead { margin: 0; color: #5e6a72; font-size: .95em; }

.imw-kmap__toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 10px 0 4px;
}
.imw-kmap__toolbar button {
  border: 1px solid #cbd8df;
  border-radius: 999px;
  background: #fff;
  color: #315264;
  padding: 6px 11px;
  font: inherit;
  font-size: .82em;
  cursor: pointer;
}
.imw-kmap__toolbar button:disabled { opacity: .38; cursor: default; }

.imw-kmap__status {
  min-height: 1.35em;
  text-align: center;
  color: #63808f;
  font-size: .86em;
}

.imw-kmap__stage {
  position: relative;
  min-height: 480px;
  margin: 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(8,166,223,.11) 0 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(8,166,223,.05) 0 42%, transparent 43%);
}

.imw-kmap__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.imw-kmap__lines line {
  stroke: rgba(8, 166, 223, .32);
  stroke-width: 1.25;
  stroke-dasharray: 3 3;
}

.imw-kmap__center,
.imw-kmap__node {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
}

.imw-kmap__center {
  left: 50%;
  top: 50%;
  width: min(230px, 34%);
  min-width: 185px;
  transform: translate(-50%, -50%);
  padding: 17px 15px;
  text-align: center;
  border: 2px solid #08a6df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 92, 130, .12);
}
.imw-kmap__center-label,
.imw-kmap__center-title,
.imw-kmap__center-summary,
.imw-kmap__center-cats { display: block; }
.imw-kmap__center-label { color: #71808a; font-size: .72em; margin-bottom: 5px; }
.imw-kmap__center-title { color: #083f57; font-size: 1.12em; line-height: 1.35; }
.imw-kmap__center-summary { margin-top: 7px; color: #4c5960; font-size: .76em; line-height: 1.55; }
.imw-kmap__center-cats { margin-top: 6px; color: #78909c; font-size: .68em; }
.imw-kmap__read {
  display: inline-block;
  margin-top: 10px;
  color: #0679a9;
  font-size: .8em;
  font-weight: 700;
  text-decoration: none;
}
.imw-kmap__read:hover { text-decoration: underline; }

.imw-kmap__node {
  width: 120px;
  min-height: 65px;
  transform: translate(-50%, -50%);
  padding: 9px 8px;
  border: 1px solid #c6dce6;
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  color: #163e50;
  box-shadow: 0 6px 18px rgba(32, 72, 90, .08);
  cursor: pointer;
  font: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.imw-kmap__node:hover,
.imw-kmap__node:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: #08a6df;
  box-shadow: 0 9px 22px rgba(8, 166, 223, .16);
  outline: none;
}
.imw-kmap__node-title { display: block; font-weight: 700; line-height: 1.25; font-size: .88em; }
.imw-kmap__node-kind { display: block; margin-top: 4px; color: #78909c; font-size: .66em; line-height: 1.2; }

.imw-kmap__hint { margin: 6px 0 0; text-align: center; color: #73828b; font-size: .78em; }
.imw-knowledge-map.is-loading .imw-kmap__stage { opacity: .62; }

@media (max-width: 620px) {
  .imw-knowledge-map { margin: 26px -2px; padding: 16px 10px 18px; border-radius: 14px; }
  .imw-kmap__heading { font-size: 1.25em; }
  .imw-kmap__lead { font-size: .88em; }
  .imw-kmap__stage { min-height: 510px; }
  .imw-kmap__center { width: 158px; min-width: 0; padding: 13px 10px; border-radius: 15px; }
  .imw-kmap__center-summary { display: none; }
  .imw-kmap__center-title { font-size: 1em; }
  .imw-kmap__center-cats { font-size: .62em; }
  .imw-kmap__read { font-size: .74em; }
  .imw-kmap__node { width: 92px; min-height: 58px; padding: 7px 5px; border-radius: 13px; }
  .imw-kmap__node-title { font-size: .78em; }
  .imw-kmap__node-kind { font-size: .58em; }
  .imw-kmap__toolbar { justify-content: center; }
}

@media (max-width: 370px) {
  .imw-kmap__stage { min-height: 500px; }
  .imw-kmap__center { width: 145px; }
  .imw-kmap__node { width: 84px; }
}
