/* Agency settings/admin own their scroll panes, retaining the reference skin. */
#settings.active,#env.active,#connections.active,#operations.active,#plugins.active {
  position:fixed;
  top:var(--agency-admin-top,68px);
  right:0;
  bottom:calc(76px + env(safe-area-inset-bottom));
  left:0;
  width:auto;
  margin:0 auto;
  padding:16px max(12px,calc((100vw - 1400px)/2));
  overflow:auto;
  overscroll-behavior:contain;
  box-sizing:border-box;
}
#settings.active { padding-bottom:80px; }
#agency-keyboard-preview textarea { box-sizing:border-box; width:100%; }
#agency-keyboard-preview .rfb-mobile-entry,#agency-keyboard-preview .semantic-mobile-entry {
  position:static; width:auto; margin:12px 0; max-width:none;
}
#agency-keyboard-preview .rfb-mobile-keys { position:static; flex-wrap:wrap; }
#agency-keyboard-preview .rfb-mobile-entry label,
#agency-keyboard-preview .rfb-mobile-entry small { color:var(--muted); }
#agency-keyboard-preview .rfb-mobile-entry input,
#agency-keyboard-preview .semantic-mobile-entry input,
#agency-keyboard-preview .rfb-mobile-entry button,
#agency-keyboard-preview .semantic-mobile-entry button {
  color:var(--ink); background:var(--surface2); border-color:var(--line);
}
#agency-keyboard-preview .rfb-mobile-entry button.primary,
#agency-keyboard-preview .semantic-mobile-entry button.primary { background:var(--mint); color:#fff; }
@media(min-width:768px) {
  #settings.active,#env.active,#connections.active,#operations.active,#plugins.active {
    padding:24px max(24px,calc((100vw - 1400px)/2));
  }
}
/* Pinned export digests must wrap within the original phone dialog. */
[data-export-digest] { overflow-wrap: anywhere; }
