.pm-page { --pm-muted: #526877; }
.pm-page .lz-page-head p { color: var(--pm-muted); line-height: 1.8; }
.pm-editor { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.pm-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pm-tabs { display: flex; gap: 4px; background: #edf2f5; padding: 4px; border-radius: 8px; }
.pm-tabs button { border: 0; padding: 9px 18px; border-radius: 5px; background: transparent; color: var(--pm-muted); font: inherit; font-size: 13px; cursor: pointer; }
.pm-tabs button[aria-pressed=true] { background: var(--brand); color: #fff; }
#pmMode { color: var(--pm-muted); font-size: 12px; }
.pm-target { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 18px 20px; background: #f5f8fa; }
.pm-target > div { flex: 0 1 340px; min-width: 180px; }
.pm-target label { display: block; font-size: 12px; font-weight: 600; color: #354f5e; margin-bottom: 7px; }
.pm-target select, .pm-row select { width: 100%; height: 38px; border: 1px solid #b9c9d3; border-radius: 7px; padding: 0 10px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; min-width: 0; }
.pm-target p { flex: 1 1 230px; margin: 0; font-size: 12px; line-height: 1.8; color: var(--pm-muted); }
#pmFields { border: 0; padding: 0; margin: 0; min-width: 0; }
.pm-group { padding: 12px 20px; margin: 0; border-block: 1px solid var(--line); background: #f8fafb; font-size: 13px; color: #354f5e; }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; border-bottom: 1px solid #edf1f4; }
.pm-row > div:first-child { min-width: 0; }
.pm-row > div:first-child > span { display: block; font-size: 13px; color: var(--ink); }
.pm-row small { display: block; font-size: 12px; color: var(--pm-muted); margin-top: 4px; }
.pm-row small:empty { display: none; }
.pm-control { display: flex; align-items: center; gap: 20px; flex: 0 0 224px; }
.pm-row select { width: 145px; }
.pm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; width: 145px; cursor: pointer; }
.pm-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.pm-result { font-size: 12px; min-width: 2em; }
.pm-result.allow { color: #246843; }
.pm-result.deny { color: #8c4139; }
.pm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line); }
.pm-actions p { flex: 1 1 190px; font-size: 12px; color: var(--pm-muted); margin: 0; }
.pm-message { color: #315c6b; background: #edf4f6; border-radius: 7px; padding: 10px 14px; font-size: 13px; line-height: 1.8; margin: 0 0 16px; overflow-wrap: anywhere; }
.pm-message:empty { display: none; }
.pm-message.error { color: #9d352c; background: #fcf0ee; }
.pm-explanation { padding: 24px 2px; max-width: 78ch; }
.pm-explanation h3 { font-size: 14px; color: #354f5e; margin: 0 0 10px; }
.pm-explanation p { font-size: 12px; line-height: 1.9; color: var(--pm-muted); margin: 8px 0 0; }
.pm-page :is(button, select, input):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.pm-page button:disabled, .pm-page select:disabled { opacity: .6; cursor: not-allowed; }
.pm-page ::selection { background: #c9dfe5; color: #12303c; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
  .pm-page .lz-page-head { flex-wrap: wrap; }
  .pm-page .lz-page-actions { margin-left: 0; }
  .pm-target { align-items: stretch; gap: 12px; padding: 16px; }
  .pm-target > div { flex: 1 1 100%; }
  .pm-target select, .pm-row select { height: 42px; font-size: 16px; }
  .pm-head, .pm-group, .pm-row, .pm-actions { padding-left: 16px; padding-right: 16px; }
  .pm-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pm-control { flex: 1; width: 100%; justify-content: space-between; }
  .pm-check { min-height: 38px; }
  .pm-page :is(p, label, small), .pm-row > div:first-child > span, .pm-result, #pmMode, .pm-tabs button { font-size: 14px; }
  .pm-page .lz-btn { min-height: 42px; }
  .pm-tabs { width: 100%; }
  .pm-tabs button { flex: 1; }
}
