.report-mode header,
.report-mode #map-actions,
.report-mode aside,
.report-mode footer,
.report-mode .leaflet-control-container {
  display: none !important;
}

#report-panel {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow-y: auto;
  padding: max(18px, var(--tg-content-safe-area-inset-top, 18px)) 12px calc(24px + var(--safe-bottom));
  color: #dce8e3;
  background: #0a100e;
  overscroll-behavior: contain;
}

.report-head {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 14px;
  color: var(--green);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tg-fullscreen #report-panel {
  padding-top: max(112px, calc(var(--tg-content-safe-area-inset-top, 0px) + 18px));
}

#report-form {
  max-width: 560px;
  margin: auto;
  color: #a8b6b0;
}

#report-form fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

#report-form legend,
.report-field > span {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  color: #a8b6b0;
  font-size: 13px;
  font-weight: 700;
}

.report-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.report-types input {
  position: absolute;
  opacity: 0;
}

.report-types span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 6px;
  color: #a8b6b0;
  background: #141f1b;
  border: 1px solid #2a3b35;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
  flex-direction: column;
  gap: 5px;
}

.report-types svg {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: #a8b6b0;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-types input:checked + span {
  color: var(--green);
  background: #173329;
  border-color: var(--green);
}

.report-types input:checked + span svg { stroke: var(--green); }

.report-field {
  display: block;
  margin-bottom: 18px;
}

#report-time {
  width: 100%;
  accent-color: #078579;
}

.report-secondary {
  width: 100%;
  padding: 9px 7px;
  color: #b8c7c1;
  background: #141f1b;
  border: 1px solid #2a3b35;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.report-location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.report-secondary.selected { color: #092016; background: var(--green); border-color: var(--green); font-weight: 700; }

#report-location {
  margin: 2px 2px 0;
  color: #82948d;
  font-size: 12px;
}

.direction-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.direction-options {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.direction-options .report-check {
  margin: 0;
}

#direction-dial {
  position: relative;
  flex: none;
  width: 120px;
  height: 120px;
  background: #141f1b;
  border: 2px solid #2a3b35;
  border-radius: 50%;
  touch-action: none;
}

#direction-dial i {
  position: absolute;
  left: calc(50% - 2px);
  bottom: 50%;
  width: 4px;
  height: 48px;
  background: var(--green);
  border-radius: 4px;
  transform-origin: 50% 100%;
}

#direction-dial i::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -3px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

#direction-dial span {
  position: absolute;
  font-size: 11px;
}

#direction-dial .north { top: 4px; left: calc(50% - 4px); }
#direction-dial .east { right: 6px; top: calc(50% - 7px); }
#direction-dial .south { bottom: 4px; left: calc(50% - 4px); }
#direction-dial .west { left: 6px; top: calc(50% - 7px); }
#direction-value { color: #e0eee8; font-size: 17px; }
.report-check { display: flex; align-items: center; gap: 8px; margin: 12px 2px 18px; font-size: 12px; }
.report-check input { width: 17px; height: 17px; accent-color: #078579; }
#report-comment { width: 100%; min-height: 76px; resize: vertical; padding: 12px; color: #e0eee8; background: #141f1b; border: 1px solid #2a3b35; border-radius: 10px; font: inherit; }
.report-privacy { color: #788a83; font-size: 10px; line-height: 1.45; }
#report-error { padding: 10px; color: #ffaaa3; background: #3a1e1b; border-radius: 8px; font-size: 12px; }
#report-submit { width: 100%; padding: 13px; color: #092016; background: var(--green); border: 0; border-radius: 10px; font-weight: 700; }
#report-submit:disabled { opacity: .55; }
.report-success { margin-top: 28vh; color: #a8b6b0; text-align: center; }
.report-success b { color: var(--green); font-size: 22px; }
.report-success p { line-height: 1.5; }

#report-map-mode {
  position: fixed;
  z-index: 1300;
  top: max(110px, calc(var(--tg-content-safe-area-inset-top, 0px) + 12px));
  left: 12px;
  right: 12px;
  display: block;
  padding: 13px 14px;
  color: #eef5f1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#report-map-mode button { padding: 7px 10px; color: var(--green); background: #17231f; border: 1px solid #34473f; border-radius: 8px; }
#report-map-search { display: flex; gap: 7px; margin-top: 11px; }
#report-map-search input { min-width: 0; flex: 1; padding: 10px 11px; color: #eef5f1; background: #17231f; border: 1px solid #34473f; border-radius: 8px; font: inherit; }
#report-map-results { display: grid; gap: 6px; margin-top: 7px; }
#report-map-results button { width: 100%; color: #cde5dc; text-align: left; }
.report-picking #report-panel { display: none !important; }

@media (max-width: 380px) {
  .report-types { grid-template-columns: repeat(2, 1fr); }
}
