.annotation-card {
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 15px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 12px 30px rgba(103, 83, 51, 0.08);
  overflow: hidden;
}

.annotation-stage {
  border-radius: 15px 15px 0 0;
  background: #fff;
}

.annotation-card img {
  max-height: none;
}

.annotation-hotspot {
  position: relative;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.annotation-hotspot::after {
  position: absolute;
  inset: 7px;
  border: 3px solid transparent;
  border-radius: 10px;
  content: "";
  pointer-events: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.annotation-hotspot:active {
  transform: scale(0.985);
}

.annotation-hotspot:focus-visible,
.annotation-hotspot.active {
  background: rgba(255, 221, 143, 0.24);
}

.annotation-hotspot.active::after {
  border-color: rgba(182, 64, 42, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.88),
    0 0 0 2px rgba(182, 64, 42, 0.18),
    0 10px 24px rgba(182, 64, 42, 0.2);
  animation: annotationSelectPulse 260ms ease both;
}

.annotation-hotspot.active .room-chip {
  color: var(--cinnabar);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.annotation-control-panel {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 66px;
  gap: 8px;
  align-items: center;
  margin: 8px 12px 0;
  padding: 8px;
  border: 1px solid rgba(20, 122, 78, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 255, 250, 0.9)),
    var(--paper);
  box-shadow: 0 12px 28px rgba(31, 56, 42, 0.09);
}

.annotation-direction {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 0 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(182, 64, 42, 0.11), rgba(182, 64, 42, 0.06));
  box-shadow: inset 0 0 0 1px rgba(182, 64, 42, 0.05);
  white-space: nowrap;
}

.annotation-room-field span {
  color: rgba(25, 39, 36, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.annotation-direction strong {
  color: var(--cinnabar);
  font-size: 24px;
  line-height: 1;
}

.annotation-room-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid rgba(25, 39, 36, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.annotation-control-panel input {
  width: 100%;
  min-height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.annotation-control-panel input::placeholder {
  color: rgba(25, 39, 36, 0.34);
}

.annotation-room-field:focus-within {
  border-color: rgba(15, 139, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 139, 83, 0.12);
}

.annotation-action-group {
  display: grid;
}

.annotation-control-panel button {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(15, 139, 83, 0.18);
}

.annotation-done {
  background: linear-gradient(180deg, #18a66b, var(--home-green));
  color: #fff;
}

@keyframes annotationSelectPulse {
  from {
    opacity: 0.4;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 430px) {
  .annotation-control-panel {
    grid-template-columns: 66px minmax(0, 1fr) 58px;
    gap: 6px;
    margin-inline: 8px;
    padding: 8px;
  }

  .annotation-direction {
    min-height: 44px;
    padding-inline: 8px;
  }

  .annotation-room-field span {
    font-size: 10px;
  }

  .annotation-direction strong {
    font-size: 24px;
  }

  .annotation-room-field {
    min-height: 44px;
    gap: 6px;
    padding-inline: 8px;
  }

  .annotation-control-panel input {
    min-height: 24px;
    font-size: 18px;
  }

  .annotation-action-group {
    min-width: 0;
  }

  .annotation-control-panel button {
    padding-inline: 6px;
    font-size: 12px;
  }
}
