.field-report-hunt-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.field-report-hunt-attachment-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(113, 147, 157, 0.34);
  border-radius: 999px;
  background: rgba(15, 24, 27, 0.74);
  color: #b9d4dc;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.field-report-hunt-attachment-button:hover {
  border-color: rgba(102, 207, 221, 0.72);
  background: rgba(30, 55, 60, 0.86);
  color: #e3f8fb;
  transform: translateY(-1px);
}

.field-report-hunt-attachment-button:focus-visible {
  outline: 2px solid rgba(111, 220, 235, 0.88);
  outline-offset: 2px;
}

.field-report-hunt-attachment-button.is-wheel {
  border-color: rgba(205, 164, 75, 0.42);
  color: #e0c981;
}

.field-report-hunt-attachment-button.is-wheel:hover {
  border-color: rgba(231, 188, 86, 0.78);
  background: rgba(65, 48, 20, 0.72);
  color: #ffe59a;
}

.field-report-hunt-attachment-button .hunting-route-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.field-report-hunt-attachment-button .wheel-planner-tool-icon {
  width: 14px;
  height: 14px;
  border-width: 1px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 142, 0.48),
    0 0 0 1px rgba(42, 28, 8, 0.72);
}

.field-report-hunt-attachment-button .wheel-planner-tool-icon::after {
  inset: 4px;
  border-width: 1px;
}

.field-report-place-run-main .field-report-hunt-attachment-button > span:last-child {
  color: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.field-report-hunt-attachment-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 71, 75, 0.2), transparent 46%),
    rgba(2, 5, 6, 0.86);
  backdrop-filter: blur(5px);
}

.field-report-hunt-attachment-dialog {
  width: min(780px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(135, 154, 157, 0.44);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(32, 35, 32, 0.98), rgba(13, 17, 17, 0.99)),
    #121616;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.66),
    inset 0 1px 0 rgba(255, 247, 222, 0.06);
  color: #e8e0d2;
}

.field-report-hunt-attachment-dialog.is-route {
  width: min(1040px, 100%);
}

.field-report-hunt-attachment-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(122, 143, 146, 0.24);
  background:
    linear-gradient(180deg, rgba(34, 38, 35, 0.99), rgba(24, 28, 27, 0.97));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.field-report-hunt-attachment-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.field-report-hunt-attachment-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.field-report-hunt-attachment-save {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(91, 191, 204, 0.56);
  border-radius: 7px;
  background: rgba(22, 65, 71, 0.62);
  color: #bcebf1;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.field-report-hunt-attachment-dialog.is-wheel .field-report-hunt-attachment-save {
  border-color: rgba(218, 177, 80, 0.58);
  background: rgba(76, 55, 18, 0.62);
  color: #f3d982;
}

.field-report-hunt-attachment-save:hover:not(:disabled),
.field-report-hunt-attachment-save:focus-visible {
  border-color: rgba(118, 225, 238, 0.9);
  background: rgba(34, 90, 98, 0.76);
  color: #effdff;
  outline: none;
}

.field-report-hunt-attachment-dialog.is-wheel .field-report-hunt-attachment-save:hover:not(:disabled),
.field-report-hunt-attachment-dialog.is-wheel .field-report-hunt-attachment-save:focus-visible {
  border-color: rgba(242, 202, 103, 0.92);
  background: rgba(101, 73, 22, 0.8);
  color: #fff0ba;
}

.field-report-hunt-attachment-save.is-saved {
  border-color: rgba(92, 203, 150, 0.62);
  background: rgba(22, 82, 57, 0.62);
  color: #aef0ce;
}

.field-report-hunt-attachment-save.is-error {
  border-color: rgba(224, 106, 95, 0.72);
  background: rgba(91, 35, 31, 0.68);
  color: #ffc0ba;
}

.field-report-hunt-attachment-mark {
  flex: 0 0 auto;
}

.field-report-hunt-attachment-mark.is-route {
  width: 28px;
  height: 28px;
  color: #67d3e2;
  filter: drop-shadow(0 0 8px rgba(80, 196, 211, 0.28));
}

.field-report-hunt-attachment-mark.is-wheel {
  width: 34px;
  height: 34px;
}

.field-report-hunt-attachment-mark.is-wheel::after {
  inset: 9px;
}

.field-report-hunt-attachment-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.field-report-hunt-attachment-eyebrow {
  color: #79ced9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.field-report-hunt-attachment-dialog.is-wheel .field-report-hunt-attachment-eyebrow {
  color: #d9b75e;
}

.field-report-hunt-attachment-heading h2 {
  margin: 0;
  color: #f2eadc;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.field-report-hunt-attachment-heading p {
  margin: 2px 0 0;
  color: #9ca9a9;
  font-size: 10px;
  line-height: 1.3;
}

.field-report-hunt-attachment-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(135, 151, 153, 0.3);
  border-radius: 7px;
  background: rgba(8, 12, 12, 0.48);
  color: #cbd3d2;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.field-report-hunt-attachment-close:hover,
.field-report-hunt-attachment-close:focus-visible {
  border-color: rgba(235, 195, 105, 0.72);
  color: #ffe39a;
  outline: none;
}

.field-report-hunt-attachment-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 14px 18px 0;
}

.field-report-hunt-attachment-stat {
  display: grid;
  gap: 3px;
  min-height: 56px;
  align-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(122, 145, 149, 0.2);
  border-radius: 7px;
  background: rgba(8, 13, 14, 0.42);
}

.field-report-hunt-attachment-stat small {
  color: #819195;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-report-hunt-attachment-stat strong {
  color: #e9d8ac;
  font-size: 13px;
  line-height: 1.2;
}

.field-report-hunt-attachment-wheel-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}

.field-report-hunt-attachment-wheel-group {
  padding: 10px;
  border: 1px solid rgba(132, 145, 139, 0.2);
  border-radius: 8px;
  background: rgba(8, 12, 11, 0.44);
}

.field-report-hunt-attachment-wheel-group h3 {
  margin: 0 0 7px;
  color: #d9ba6c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field-report-hunt-attachment-wheel-rows {
  display: grid;
  gap: 4px;
}

.field-report-hunt-attachment-wheel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(130, 142, 138, 0.12);
}

.field-report-hunt-attachment-wheel-row strong {
  min-width: 0;
  color: #ddd8cd;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.field-report-hunt-attachment-wheel-row span {
  flex: 0 0 auto;
  color: #81d7c4;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

.field-report-hunt-attachment-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(138, 151, 147, 0.28);
  border-radius: 8px;
  color: #9aa5a4;
  font-size: 11px;
  text-align: center;
}

.field-report-hunt-attachment-map-shell {
  padding: 14px 18px 18px;
}

.field-report-hunt-attachment-map {
  position: relative;
  width: 100%;
  height: min(62vh, 640px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(91, 151, 161, 0.42);
  border-radius: 9px;
  background: #050707;
}

.field-report-hunt-attachment-map .focused-hunting-ground-image {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.field-report-hunt-attachment-map.is-interactive {
  cursor: grab;
}

.field-report-hunt-attachment-map.is-interactive:active {
  cursor: grabbing;
}

.field-report-hunt-attachment-map-status {
  position: absolute;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  background:
    radial-gradient(circle, rgba(31, 65, 70, 0.32), transparent 58%),
    rgba(5, 9, 10, 0.92);
  color: #a9bdc0;
  text-align: center;
}

.field-report-hunt-attachment-map-status .hunting-route-icon {
  width: 30px;
  height: 30px;
  color: #62cad8;
}

.field-report-hunt-attachment-map-status strong {
  color: #e3ded3;
  font-size: 14px;
}

.field-report-hunt-attachment-map-status small {
  max-width: 410px;
  color: #91a0a3;
  font-size: 10px;
  line-height: 1.4;
}

.field-report-hunt-attachment-map .leaflet-control-zoom a {
  border-color: rgba(107, 138, 148, 0.38);
  background: rgba(10, 17, 20, 0.94);
  color: #d5e8ec;
}

.field-report-hunt-attachment-map .leaflet-control-attribution {
  background: rgba(5, 8, 9, 0.76);
  color: #738084;
}

.field-report-hunt-attachment-map .leaflet-control-attribution a {
  color: #8fcbd3;
}

@media (max-width: 720px) {
  .field-report-hunt-attachment-backdrop {
    align-items: end;
    padding: 8px;
  }

  .field-report-hunt-attachment-dialog {
    max-height: calc(100vh - 16px);
  }

  .field-report-hunt-attachment-header {
    gap: 10px;
    padding: 13px 14px;
  }

  .field-report-hunt-attachment-header-actions {
    gap: 5px;
  }

  .field-report-hunt-attachment-save {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .field-report-hunt-attachment-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px 0;
  }

  .field-report-hunt-attachment-wheel-groups {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
  }

  .field-report-hunt-attachment-map-shell {
    padding: 12px 14px 14px;
  }

  .field-report-hunt-attachment-map {
    height: 50vh;
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-report-hunt-attachment-button {
    transition: none;
  }
}

/* Website attachment runtime primitives. */
.hunting-route-icon {
  --hunting-route-icon: url("../img/route-icons/map-pin.svg");
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  -webkit-mask: var(--hunting-route-icon) center / contain no-repeat;
  mask: var(--hunting-route-icon) center / contain no-repeat;
}

.hunting-route-icon--route { --hunting-route-icon: url("../img/route-icons/route.svg"); }
.hunting-route-icon--flag { --hunting-route-icon: url("../img/route-icons/flag.svg"); }
.hunting-route-icon--swords { --hunting-route-icon: url("../img/route-icons/swords.svg"); }
.hunting-route-icon--stairs-up { --hunting-route-icon: url("../img/route-icons/circle-chevron-up.svg"); }
.hunting-route-icon--stairs-down { --hunting-route-icon: url("../img/route-icons/circle-chevron-down.svg"); }
.hunting-route-icon--teleport { --hunting-route-icon: url("../img/route-icons/sparkles.svg"); }
.hunting-route-icon--chevron-up { --hunting-route-icon: url("../img/route-icons/chevron-up.svg"); }
.hunting-route-icon--chevron-down { --hunting-route-icon: url("../img/route-icons/chevron-down.svg"); }
.hunting-route-icon--map-pin { --hunting-route-icon: url("../img/route-icons/map-pin.svg"); }

.wheel-planner-tool-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 2px solid #d9aa46;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #6da341 0 90deg, #ad3d61 90deg 180deg, #81509b 180deg 270deg, #278d80 270deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(255, 225, 142, 0.7), 0 0 0 1px rgba(42, 28, 8, 0.9), 0 0 12px rgba(215, 169, 77, 0.28);
}

.wheel-planner-tool-icon::before {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent calc(50% - 1px), #101512 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(transparent calc(50% - 1px), #101512 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), radial-gradient(circle, transparent 0 34%, rgba(13, 18, 16, 0.9) 36% 41%, transparent 43% 61%, rgba(13, 18, 16, 0.92) 63% 68%, transparent 70%);
  content: "";
}

.wheel-planner-tool-icon::after {
  position: absolute;
  inset: 9px;
  border: 2px solid #edc45f;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #3a3424 0 18%, #171a17 50%, #090b0a 100%);
  box-shadow: 0 0 0 1px #4c350f, 0 0 5px rgba(242, 196, 86, 0.65);
  content: "";
}

.field-report-hunt-attachment-map .leaflet-tile,
.field-report-hunt-attachment-map .focused-hunting-ground-image {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.hunting-route-map-floor-control {
  display: grid;
  width: 34px;
  overflow: hidden;
  border: 1px solid rgba(120, 153, 176, 0.32);
  border-radius: 4px;
  background: #111a20;
}

.hunting-route-map-floor-button {
  display: grid;
  width: 32px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #111a20;
  color: #eef4f7;
}

.hunting-route-map-floor-button:hover:not(:disabled) { background: #1a2831; }
.hunting-route-map-floor-button:disabled { color: #4c5a62; cursor: default; }
.hunting-route-map-floor-button .hunting-route-icon { width: 17px; height: 17px; }
.hunting-route-map-floor-label {
  display: grid;
  width: 32px;
  height: 22px;
  place-items: center;
  border-block: 1px solid rgba(120, 153, 176, 0.24);
  background: #0b1115;
  color: #9eb1bc;
  font: 700 10px/1 "Segoe UI", sans-serif;
}

.hunting-route-path-shadow,
.hunting-route-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.hunting-route-path { stroke-dasharray: 14 9; animation: hunting-route-flow 1.15s linear infinite; }
@keyframes hunting-route-flow { to { stroke-dashoffset: -23; } }
.hunting-route-path--gold { color: #f1c75b; stroke: #f1c75b; }
.hunting-route-path--cyan { color: #5dd4e7; stroke: #5dd4e7; }
.hunting-route-path--green { color: #68d391; stroke: #68d391; }
.hunting-route-path--red { color: #f0786c; stroke: #f0786c; }
.hunting-route-path--violet { color: #c49af2; stroke: #c49af2; }

.hunting-route-leaflet-pin-shell { border: 0; background: transparent; }
.hunting-route-leaflet-pin {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #f4e6bd;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg) scale(0.92);
  background: #10171b;
  color: #f8f3e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.68);
}
.hunting-route-leaflet-pin .hunting-route-icon { width: 15px; height: 15px; transform: rotate(45deg); }
.hunting-route-leaflet-pin--kill { border-color: #f0786c; background: #2a1415; color: #ffd7d1; }
.hunting-route-leaflet-pin--start,
.hunting-route-leaflet-pin--exit { border-color: #68d391; background: #10261b; color: #c9f3d8; }
.hunting-route-leaflet-pin--stairs-up,
.hunting-route-leaflet-pin--stairs-down { border-color: #5dd4e7; background: #10252a; color: #c6f4fb; }
.hunting-route-leaflet-pin--teleport { border-color: #c49af2; background: #25172f; color: #ead8ff; }

@media (prefers-reduced-motion: reduce) {
  .hunting-route-path { animation: none; }
}