.loc {
  --loc-ink: #193d32;
  --loc-line: #d4d5c5;
  --loc-paper: #fbf6e8;
  position: fixed;
  z-index: 5;
  width: 188px;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(90px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
  color: var(--loc-ink);
  background: var(--loc-paper);
  border: 1px solid rgb(44 65 41 / 29%);
  border-radius: 13px;
  box-shadow: 0 3px 18px rgb(23 38 22 / 24%);
  font: 500 0.875rem/1.25 system-ui, sans-serif;
}
.loc:has(.loc-body[hidden]) { width: auto; }
.loc [hidden] { display: none !important; }
.loc-btn {
  appearance: none; background: transparent; color: inherit;
  border: 0; font: inherit; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
}
.loc-btn svg {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.loc-btn:hover { background: #eaeada; }
.loc button:focus-visible, .loc-preview:focus-visible, .loc-link:focus-visible {
  outline: 2px solid #9e4f32; outline-offset: -3px;
}
.loc-toggle {
  width: 100%; justify-content: start; font-weight: 650; font-size: 0.875rem;
  padding: 8px 11px; min-height: 36px;
}
.loc-toggle svg:last-child { margin-left: auto; width: 13px; }
.loc-toggle[aria-expanded=true] svg:last-child { transform: rotate(180deg); }
.loc-body { padding: 0 6px 3px; }
.loc-preview {
  position: relative; overflow: hidden; width: 100%; border-radius: 6px;
  background: #c4c6ad; touch-action: none; cursor: crosshair; isolation: isolate;
}
.loc-preview::after {
  position: absolute; inset: 0; content: ''; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(18 38 26 / 16%);
}
.loc-image { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.loc-frame {
  position: absolute; box-sizing: border-box; pointer-events: none;
  border: 1.4px solid #fffcde; outline: 1px solid #833e27;
  background: rgb(255 242 195 / 10%);
}
.loc-center {
  position: absolute; width: 4px; height: 4px; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); background: #9c4328; box-shadow: 0 0 0 1px #fff9e0;
}
.loc-actions { display: flex; align-items: stretch; padding-top: 2px; }
.loc-actions .loc-btn {
  flex: auto; min-height: 38px; border-radius: 5px;
  padding: 3px; font-size: 0.79rem; white-space: nowrap; gap: 4px;
}
.loc-actions .loc-btn svg { width: 14px; height: 14px; }
.loc-actions .loc-icon-only { flex: none; width: 28px; }
.loc-actions .loc-icon-only span, .loc-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
}
.loc-feedback:not(:empty) { padding: 4px 6px 6px; font-size: 0.8rem; }
.loc-link { width: 100%; margin-bottom: 4px; padding: 6px; font: inherit; border: 1px solid var(--loc-line); border-radius: 5px; background: #fffdf5; color: inherit; }
@media (max-width: 700px), (max-height: 500px) {
  .loc { right: calc(12px + env(safe-area-inset-right)); }
  .loc-toggle, .loc-actions .loc-btn { min-height: 44px; }
  .loc-actions .loc-icon-only { width: 44px; }
}
@media (max-height: 460px) {
  .loc { width: 160px; }
  .loc-toggle, .loc-actions .loc-btn { min-height: 36px; }
}
