.fp-screen {
  min-width: 0;
  display: grid;
  gap: 24px;
  color: var(--ink, #17252c);
}
.fp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.4fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 16px;
}
.fp-layout > section:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}
.fp-edit,
.fp-registry {
  grid-column: 2;
}
.fp-card {
  min-width: 0;
  border: 1px solid var(--line, #dadedb);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper, #fff);
}
.fp-toolbar,
.fp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fp-toolbar {
  padding: 11px 13px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line, #dadedb);
}
.fp-tools {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line, #dadedb);
  border-radius: 5px;
}
.fp-tools button {
  width: 36px;
  min-height: 34px;
  padding: 3px;
  background: transparent;
  border: 0;
  color: var(--ink, #17252c);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.fp-tools button[data-fit] {
  width: 53px;
  border-inline: 1px solid var(--line, #dadedb);
  font-size: 12px;
}
.fp-tools button:disabled {
  opacity: 0.37;
  cursor: default;
}
.fp-tools button:hover:enabled {
  background: #edf2fa;
}
.fp-place[aria-pressed="true"] {
  background: #edf2fa;
  border: 1px solid #c8d6f1;
  color: var(--blue, #254cc7);
}
.fp-viewport {
  height: clamp(360px, 60vh, 680px);
  background: #edf0ef;
  overflow: auto;
  position: relative;
  overscroll-behavior: auto;
  touch-action: pan-x pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}
.fp-viewport:focus-visible {
  outline: 2px solid var(--blue, #254cc7);
  outline-offset: -2px;
}
.fp-viewport.fp-placing {
  cursor: crosshair;
}
.fp-viewport.fp-dragging {
  cursor: grabbing;
}
.fp-surface {
  display: grid;
  place-items: center;
}
.fp-image {
  position: relative;
  background: white;
  box-shadow: 0 1px 4px #19252d1f;
}
.fp-image img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.fp-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fp-marker,
.fp-pending {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fp-marker {
  border: 2px solid white;
  color: white;
  height: 25px;
  min-width: 25px;
  padding: 0 3px;
  background: var(--blue, #254cc7);
  line-height: 1;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 1px 3px #1426568a;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
}
.fp-marker:hover,
.fp-marker:focus-visible {
  z-index: 2;
  outline: 3px solid #90acff;
}
.fp-pending {
  width: 23px;
  height: 23px;
  pointer-events: none;
  background: #f49a2f59;
  border: 2px solid #d06b00;
  box-shadow: 0 0 0 2px white;
}
.fp-pending::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #7e460d;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.fp-original {
  color: var(--blue, #254cc7);
  text-decoration: none;
  white-space: nowrap;
}
.fp-original:hover {
  text-decoration: underline;
}
.fp-zoomed {
  overscroll-behavior: contain;
}
.fp-registry {
  padding: 16px;
}
.fp-edit {
  border-top: 1px solid var(--line, #dadedb);
  padding: 12px 15px 8px;
}
.fp-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted, #647076);
  font-size: 13px;
}
.fp-feedback b {
  font-weight: 550;
}
.fp-feedback > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #cb710b;
  flex: none;
}
.fp-selected .fp-feedback > span {
  background: #ffac45;
}
.fp-selected .fp-feedback {
  color: var(--ink, #17252c);
}
.fp-panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
  margin: 0;
}
.fp-count {
  font:
    500 11px ui-monospace,
    monospace;
  background: #edf1f8;
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--blue, #254cc7);
}
.fp-empty {
  color: var(--muted, #647076);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}
.fp-manual {
  margin-top: 3px;
}
.fp-manual summary {
  width: fit-content;
  font-size: 12px;
  color: var(--blue, #254cc7);
  cursor: pointer;
  line-height: 1.5;
  padding-block: 7px;
}
.fp-manual form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.fp-manual label {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 11px;
  color: var(--muted, #647076);
}
.fp-manual input {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--line, #dadedb);
  background: var(--paper, #fff);
  color: var(--ink, #17252c);
}
.fp-manual form button {
  grid-column: 1/-1;
  justify-self: start;
}
.fp-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.fp-draft-actions .btn {
  font-size: 12px;
  padding: 7px 9px;
  min-height: 38px;
}
.fp-pin-list {
  margin-top: 12px;
  max-height: 53vh;
  overflow: auto;
}
.fp-pin-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  width: 100%;
  text-align: left;
  line-height: 1.4;
  gap: 9px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line, #dadedb);
  font: inherit;
  color: var(--ink, #17252c);
  cursor: pointer;
}
.fp-pin-row > span:first-child {
  display: grid;
  place-items: center;
  background: #edf2fa;
  color: var(--blue, #254cc7);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.fp-pin-row b {
  font-size: 13px;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.fp-pin-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #647076);
  font-size: 11px;
}
.fp-screen [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .fp-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 0;
  }
  .fp-layout > section:first-child,
  .fp-edit,
  .fp-registry {
    grid-column: 1;
    grid-row: auto;
  }
  .fp-registry {
    margin-top: 16px;
  }
  .fp-selecting > section:first-child {
    border-radius: 9px 9px 0 0;
  }
  .fp-selecting .fp-edit {
    border-top: 0;
    border-radius: 0 0 9px 9px;
  }
}
@media (max-width: 600px) {
  .fp-screen {
    gap: 16px;
  }
  .fp-viewport {
    height: auto;
    aspect-ratio: 1.2;
    max-height: 55svh;
  }
  .fp-toolbar {
    padding: 8px;
    gap: 6px;
  }
  .fp-toolbar .btn {
    font-size: 12px;
  }
  .fp-marker {
    min-width: 27px;
    height: 27px;
  }
  .fp-tools button {
    width: 42px;
    min-height: 42px;
  }
  .fp-toolbar .btn,
  .fp-manual form .btn {
    min-height: 44px;
  }
  .fp-toolbar .fp-place {
    gap: 5px;
  }
  .fp-edit {
    padding: 12px 10px 2px;
  }
  .fp-draft-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 1fr 1fr;
    gap: 5px;
  }
  .fp-draft-actions .btn {
    min-height: 44px;
    padding: 7px 5px;
    font-size: 12px;
    gap: 4px;
  }
  .fp-draft-actions .secondary svg {
    display: none;
  }
  .fp-manual summary {
    min-height: 44px;
    align-content: center;
  }
  .fp-manual input {
    font-size: 16px;
    height: 42px;
  }
  .fp-manual form {
    margin: 0 0 10px;
  }
}

.fp-load-error {
  font-size: 13px;
  padding: 8px 13px;
  color: var(--muted, #647076);
}

@media (max-width: 345px) {
  .fp-draft-actions {
    grid-template-columns: 1fr 1fr;
  }
  .fp-draft-actions .primary {
    grid-column: 1 / -1;
  }
  .fp-tools button {
    width: 35px;
  }
}
