.authority-section { border:0; border-top:1px solid #e0e6ee; padding:22px 0 8px; margin:26px 0 0; min-width:0; }
.authority-section>legend { padding:0 14px 0 0; font-weight:700; font-size:17px; color:#243b55; }
.authority-section>legend>span { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:7px; margin-right:7px; background:#eef4fc; color:#315d99; font-size:14px; }
.authority-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.authority-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.authority-grid .field--wide { grid-column:1/-1; }
.authority-company { padding:16px 18px; margin:20px 0; border:1px solid #dce4ee; border-left:3px solid #4a76a9; border-radius:9px; background:#f8fafc; }
.authority-company>strong { display:block; margin-bottom:8px; font-size:16px; }
.authority-company p { margin:8px 0; line-height:1.6; font-size:13px; color:#53667e; overflow-wrap:anywhere; }
.authority-company summary { cursor:pointer; color:#34557d; font-size:13px; margin-top:10px; }
.authority-lookup { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
.authority-lookup>.field { flex:1 1 200px; max-width:320px; }
.authority-lookup button { min-height:46px; }
.authority-check { display:flex; align-items:center; gap:10px; margin:19px 0 12px; font-size:14px; }
.authority-check input { width:18px; height:18px; flex-shrink:0; }
.authority-details { margin-top:20px; border:1px solid #dce4ee; border-radius:9px; background:#f8fafc; padding:14px 16px; }
.authority-details>summary { cursor:pointer; font-size:14px; font-weight:600; color:#34557d; }
.authority-details[open]>summary { margin-bottom:18px; }
.authority-item { border:1px solid #dbe3ee; padding:15px; margin:20px 0; border-radius:10px; background:#fafbfd; min-width:0; }
.authority-item>legend { font-size:13px; font-weight:700; padding:0 7px; color:#4f6682; }
.authority-item-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(90px,1fr); gap:14px; align-items:start; }
.authority-item-words { grid-column:1/-1; }
.authority-remove { margin-top:12px; font-size:13px; color:#964444!important; background:#fff!important; border:1px solid #ded3d3!important; }
.authority-limit { display:block; color:#697b90; margin-top:10px; }
.authority-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:26px; }
.authority-actions p { flex:1 1 280px; margin:0; line-height:1.6; font-size:13px; }
.authority-privacy { color:#6a7a8e; font-size:12px; line-height:1.65; margin:18px 0 0; }
#authority-status:not(:empty) { margin-top:22px; }
#authority-status a { display:inline-block; margin-left:10px; font-weight:700; }
#authority-form .field small { line-height:1.5; }
@media(max-width:640px) {
  .authority-grid,.authority-grid--three { grid-template-columns:minmax(0,1fr); gap:16px; }
  .authority-item-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .authority-item-name,.authority-item-words { grid-column:1/-1; }
  .authority-section>legend { font-size:16px; }
  .authority-lookup button,.authority-actions>button { width:100%; }
  .authority-lookup>.field { max-width:none; }
  .authority-details { padding:13px; }
}
