[data-lp-editing] [data-content-key] {
  outline: 1px dashed rgba(73, 95, 137, 0.45);
  outline-offset: 3px;
  border-radius: 3px;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
  cursor: text;
}

[data-lp-editing] [data-content-key]:hover {
  outline-color: rgba(73, 95, 137, 0.85);
  background-color: rgba(73, 95, 137, 0.06);
}

[data-lp-editing] [data-content-key]:focus {
  outline: 2px solid #495F89;
  background-color: rgba(73, 95, 137, 0.08);
}

.lp-edit-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #495F89;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Instrument Sans', sans-serif;
}

.lp-edit-fab:hover {
  background: #3a4b6c;
}

.lp-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lp-edit-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Instrument Sans', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lp-edit-modal h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #1d1d1f;
}

.lp-edit-modal p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}

.lp-edit-modal input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 10px;
}

.lp-edit-modal .lp-edit-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.lp-edit-modal button {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
}

.lp-edit-modal button.lp-primary {
  background: #495F89;
  color: #fff;
  flex: 1;
}

.lp-edit-modal button.lp-ghost {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.lp-edit-msg {
  font-size: 13px;
  min-height: 16px;
  margin: 4px 0 0;
}

.lp-edit-msg.lp-err { color: #a13d3d; }
.lp-edit-msg.lp-ok { color: #3d7a4a; }

.lp-edit-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 999998;
  background: #1d1d1f;
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Instrument Sans', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 32px);
}

.lp-edit-bar button {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}

.lp-edit-bar button.lp-primary {
  background: #495F89;
  color: #fff;
}

.lp-edit-bar button.lp-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.lp-edit-bar button.lp-ghost {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
}

.lp-edit-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 999998;
  background: #3d7a4a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Instrument Sans', sans-serif;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lp-edit-toast.lp-err {
  background: #a13d3d;
}
