/* All favorites styles are scoped: no shared form or modal selectors. */
.pf-list-host { min-width: 0; color: #062936; }
.pf-list, .pf-edit-list { list-style: none; padding: 0; margin: 0; }
.pf-list-item + .pf-list-item { border-top: 1px solid #edf0f0; }
.pf-shortcut {
  display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; box-sizing: border-box;
  min-height: 43px; padding: 10px 3px; color: #062936; text-align: left;
  background: transparent; border: 0; border-radius: 3px; font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.pf-shortcut:hover { color: #547414; background: #f6f8f3; }
.pf-shortcut-label { min-width: 0; overflow-wrap: anywhere; }
.pf-shortcut-icon { width: 22px; flex: 0 0 22px; font-size: 19px; text-align: center; color: #648817; }
.pf-unavailable { color: #65737a; cursor: default; flex-wrap: wrap; gap: 2px 8px; }
.pf-unavailable:hover { color: #65737a; background: transparent; }
.pf-unavailable-note { display: block; width: 100%; font-size: 11px; font-weight: 400; }
.pf-muted { color: #5c6d73; font-size: 13px; line-height: 1.5; font-weight: 400; }
.pf-error { color: #9b3027; font-size: 13px; line-height: 1.5; padding: 12px; background: #fff5f2; border: 1px solid #e7c3bb; border-radius: 5px; }
.pf-error[hidden] { display: none; }
.pf-button, .pf-text-button, .pf-icon-button {
  border: 1px solid #bcc9cc; border-radius: 5px; background: #fff; color: #062936;
  padding: 9px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  line-height: 1.4; min-height: 38px;
}
.pf-button:hover, .pf-icon-button:hover { background: #f1f5ee; border-color: #759e20; }
.pf-text-button { background: transparent; border-color: transparent; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.pf-text-button[hidden] { display: none; }
.pf-icon-button { padding: 7px 11px; min-width: 36px; font-size: 17px; }
.pf-button-primary { background: #759e20; border-color: #759e20; color: #062936; }
.pf-button-primary:hover { background: #597a16; border-color: #597a16; color: #fff; }
.pf-button:disabled, .pf-text-button:disabled, .pf-icon-button:disabled, .pf-editor-fields:disabled { opacity: .58; cursor: default; }
.pf-shortcut:focus-visible, .pf-button:focus-visible, .pf-text-button:focus-visible, .pf-icon-button:focus-visible, .pf-input:focus-visible { outline: 3px solid #396f83; outline-offset: 3px; }
.pf-quick {
  position: fixed; z-index: 15000; box-sizing: border-box; padding: 17px;
  background: #fff; border: 1px solid #cfdade; border-radius: 9px; color: #062936;
  box-shadow: 0 12px 38px #06293630; overflow: auto; overscroll-behavior: contain;
  font-family: inherit; font-size: 14px;
}
.pf-quick-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.pf-quick-title { margin: 0; font: inherit; font-size: 18px; font-weight: 600; }
.pf-quick > .pf-button { margin-top: 12px; }
dialog.pf-dialog {
  position: fixed; inset: 0; width: min(730px, calc(100vw - 32px)); max-width: 730px;
  height: auto; max-height: min(88vh, 850px); max-height: min(88dvh, 850px);
  padding: 0; margin: auto; border: 1px solid #ced9dc; border-radius: 10px;
  background: #fff; color: #062936; box-shadow: 0 18px 65px #06293645;
  overflow: hidden; font-family: inherit; font-size: 14px;
}
dialog.pf-dialog[open] { display: flex; flex-direction: column; }
dialog.pf-dialog::backdrop { background: #06293670; }
.pf-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #dce4e6; flex: 0 0 auto; }
.pf-dialog-title { color: #062936; font: inherit; font-size: 22px; font-weight: 600; margin: 0; }
.pf-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 20px; min-height: 0; }
.pf-description { font-weight: 400; color: #53666d; line-height: 1.55; margin: 16px 0; }
.pf-editor-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.pf-count { padding: 8px 0 10px; margin: 0; font-size: 12px; font-weight: 500; color: #62737a; }
.pf-edit-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #e1e8e9; align-items: center; }
.pf-edit-fields { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; color: #435961; }
.pf-field-label { font-weight: 600; }
.pf-input {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 39px;
  padding: 9px 10px; background: #fff; color: #062936; border: 1px solid #bccace;
  border-radius: 5px; font: inherit; font-size: 14px; font-weight: 400;
}
.pf-row-actions { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.pf-remove { color: #963b31; }
.pf-add-area { margin-top: 18px; padding: 17px; background: #f6f8f5; border: 1px solid #dce5d3; border-radius: 6px; }
.pf-add-internal { display: flex; gap: 10px; align-items: end; }
.pf-add-internal .pf-field { flex: 1 1 auto; }
.pf-add-internal .pf-button { flex: 0 0 auto; }
.pf-add-title { font: inherit; font-size: 14px; font-weight: 600; margin: 22px 0 12px; }
.pf-add-link-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-bottom: 12px; }
.pf-dialog-footer { display: flex; flex: 0 0 auto; gap: 10px; justify-content: flex-end; padding: 14px 22px; background: #fbfcfb; border-top: 1px solid #dce4e6; }
@media (max-width: 560px) {
  dialog.pf-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .pf-dialog-header { padding: 13px 15px; }
  .pf-dialog-title { font-size: 19px; }
  .pf-dialog-body { padding: 0 15px 16px; }
  .pf-dialog-footer { padding: 12px 15px; }
  .pf-edit-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pf-row-actions { justify-content: flex-end; }
  .pf-add-area { padding: 12px; }
  .pf-add-internal { flex-direction: column; align-items: stretch; }
  .pf-add-link-fields { grid-template-columns: 1fr; }
  .pf-icon-button, .pf-button, .pf-text-button, .pf-input, .pf-shortcut { min-height: 44px; }
}
