.ap-panel { padding: 24px; }
.ap-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 24px; border: 1px solid var(--adm-line, #dce3ea); border-radius: 16px; color: var(--adm-ink, #16273f); }
.ap-dialog::backdrop { background: rgb(21 36 59 / 55%); }
.ap-form, .ap-field, .ap-questions, .ap-scope { display: grid; gap: 12px; align-content: start; }
.ap-label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ap-label:has(.ap-input) { flex-wrap: wrap; }
.ap-label > .ap-input { width: 100%; }
.ap-dialog fieldset { min-width: 0; margin: 0; }
.ap-question { border: 1px solid var(--adm-line, #dce3ea); border-radius: 10px; padding: 12px; }
.ap-subquestion, .ap-checklist { padding: 0; border: 0; }
.ap-question > legend, .ap-subquestion > legend { padding-inline: 4px; font-weight: 600; }
.ap-help, .ap-notice { margin: 6px 0; color: var(--adm-muted, #45566d); }
.ap-questions textarea { width: 100%; min-height: 76px; }
.ap-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ap-options { margin: 8px 0 14px; }
.ap-options summary { cursor: pointer; font-weight: 600; }
.ap-scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ap-scope { border: 1px solid var(--adm-line, #dce3ea); border-radius: 10px; padding: 14px; }
.ap-scope h3 { font-size: 15px; margin: 0; }
.ap-dialog { box-sizing: border-box; background: #fff; }
.ap-dialog :is(.ap-title, .ap-section-title) { margin: 0; font-family: Lexend, sans-serif; font-weight: 600; }
.ap-dialog .ap-title { margin-bottom: 16px; }
.ap-dialog .ap-section-title { font-size: 1rem; }
.ap-input, .ap-btn { font: inherit; font-size: .875rem; }
.ap-input { box-sizing: border-box; padding: 8px 10px; border: 1px solid #9daaba; border-radius: 6px; color: #16273f; background: #fff; }
.ap-btn { padding: 7px 12px; border: 1px solid #a6b5c6; border-radius: 7px; background: #fff; color: #16273f; cursor: pointer; text-decoration: none; }
.ap-btn-primary { border-color: #16577a; background: #16577a; color: #fff; }
.ap-btn:disabled { cursor: wait; opacity: .65; }
.ap-btn:focus-visible, .ap-input:focus-visible, .ap-preview summary:focus-visible { outline: 2px solid #246baa; outline-offset: 2px; }
.ap-preview:empty, .ap-notice:empty, .ap-label[hidden] { display: none; }
.ap-preview details { padding: 10px 14px; border: 1px solid #dce3ea; border-radius: 8px; background: #f6f9fc; }
.ap-preview summary { cursor: pointer; font-weight: 600; }
