.spec-panel {
  position: absolute;
  z-index: 4;
  top: 72px;
  right: 16px;
  width: min(340px, calc(100% - 24px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(14, 20, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #c9d4de;
  font-size: 13px;
  line-height: 1.55;
}
.spec-panel__hint { margin: 0; color: #8b9aab; }
.spec-panel__intro {
  display: block;
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1014;
}
.spec-panel__intro img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.spec-panel h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
}
.spec-panel .code {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.25);
  color: #ffc9c9;
  font-size: 12px;
}
.spec-panel ul { margin: 8px 0 0; padding-left: 18px; }
.spec-panel li { margin: 4px 0; }
.spec-panel__size {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7e2ec;
  font-size: 12px;
}
.spec-panel__size strong { color: #fff; }
.spec-panel .code--part {
  margin-left: 6px;
  background: rgba(33, 150, 243, 0.28);
  color: #b3e5fc;
}
.spec-panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.spec-panel .actions a,
.spec-panel .actions button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #eef3f7;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.spec-panel .actions a.primary {
  background: #c62828;
  border-color: transparent;
  font-weight: 700;
}

.hotspot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.hotspot__label { display: none !important; }
.hotspot__spark {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.hotspot__spark::before,
.hotspot__spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff8e1;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 1px rgba(255, 213, 79, 0.85);
}
.hotspot__spark::before { width: 2px; height: 100%; }
.hotspot__spark::after { width: 100%; height: 2px; }
.hotspot__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 193, 7, 0.9);
}
.hotspot__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 193, 7, 0.85);
  pointer-events: none;
}
.hotspot--part .hotspot__dot {
  box-shadow: 0 0 8px 2px rgba(66, 165, 245, 0.85);
}
.hotspot.is-active .hotspot__dot {
  width: 8px;
  height: 8px;
  background: #ffca28;
}
.hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.part-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.part-list__title {
  margin: 0 0 2px;
  color: #8b9aab;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.part-list__btn {
  text-align: left;
  border: 1px solid rgba(33, 150, 243, 0.28);
  background: rgba(33, 150, 243, 0.08);
  color: #e8eef4;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.part-list__btn.is-active {
  border-color: rgba(255, 202, 40, 0.55);
  background: rgba(255, 202, 40, 0.12);
}
.part-list__btn strong {
  display: block;
  font-size: 12px;
}
.part-list__btn span {
  color: #90a0b0;
  font-size: 11px;
}

.module-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.module-list button {
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e8eef4;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.module-list button.is-active {
  border-color: rgba(255, 202, 40, 0.55);
  background: rgba(255, 202, 40, 0.12);
}
.module-list strong { display: block; font-size: 13px; }
.module-list span { color: #90a0b0; font-size: 12px; }

@media (max-width: 720px) {
  .spec-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 42vh;
    border-radius: 16px 16px 0 0;
  }
}
