.dropzone {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 260px;
  border: 1px dashed rgba(31, 122, 90, 0.48);
  background:
    linear-gradient(135deg, rgba(31, 122, 90, 0.08), rgba(185, 138, 61, 0.1)),
    rgba(255, 251, 240, 0.72);
  cursor: pointer;
  overflow: hidden;
}

.dropzone img {
  width: min(88%, 360px);
  max-height: 214px;
  object-fit: contain;
}

.dropzone span,
.fineprint {
  color: var(--muted);
  font-size: 13px;
}

#fileInput {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #0f8b53, #087746);
  color: #fff;
  box-shadow: 0 14px 28px rgba(3, 116, 68, 0.22);
}

.ghost-button {
  border: 1px solid rgba(16, 17, 18, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0 14px;
}

.primary-button:active,
.ghost-button:active,
.back-button:active {
  transform: scale(0.97);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.section-list {
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 11px 12px;
}

.annotation-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 240, 0.7);
}

.annotation-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.annotation-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.annotation-card figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-status h1[hidden] {
  display: none;
}

.annotation-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  pointer-events: none;
}

.annotation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  min-height: 100%;
}

.annotation-hotspot {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.annotation-hotspot:focus {
  outline: 0;
}

.annotation-hotspot:focus-visible {
  background: rgba(35, 180, 116, 0.16);
}

.annotation-hotspot.active {
  background: transparent;
  outline: 0;
}

.room-chip {
  max-width: 86%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101112;
  font-size: clamp(14px, 4vw, 24px);
  font-weight: 800;
  text-align: center;
  text-shadow: none;
  mix-blend-mode: normal;
}

.annotation-controls {
  display: grid;
}

.annotation-controls[hidden] {
  display: none;
}

.annotation-control-panel {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(25, 39, 36, 0.2);
  border-radius: 8px;
  background: rgba(255, 251, 240, 0.78);
  box-shadow: 0 12px 24px rgba(25, 39, 36, 0.14);
}

.annotation-control-panel strong {
  color: var(--cinnabar);
}

.annotation-control-panel input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.annotation-control-panel button {
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 430px) {
  .annotation-control-panel {
    grid-template-columns: auto 1fr;
  }
}

.report-panel,
.unlock-panel {
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: var(--home-card);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(103, 83, 51, 0.08);
}

.report-panel p,
.unlock-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.unlock-panel {
  margin-top: 12px;
  border-color: rgba(15, 139, 83, 0.28);
  background: linear-gradient(145deg, #ffffff, #fff9eb);
}

.unlock-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.report-item {
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--home-green);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.8);
}

.report-item h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.scene-full .report-item {
  border-left-color: var(--cinnabar);
}
