/* Scoped integration and enquiry settings controls for the staff console. */
.admin-sidebar .admin-sidebar-subsection{margin:-4px 0 4px 12px;padding:8px 10px;border-left:1px solid #c5a04e;color:#e7d49f;font-size:12px}
.admin-sidebar .admin-sidebar-subsection:hover{background:#33332e;color:#fff}
.rea-settings-card{max-width:860px;padding:24px;border:1px solid #dedbd2;border-radius:12px;background:#fff;box-shadow:0 5px 18px #1d1d1410}
.smtp-settings-card,.turnstile-settings-card{width:100%;max-width:none}
.turnstile-settings-card{margin-top:20px}
.rea-settings-intro,.rea-settings-help,.rea-updated{color:#65655e;font-size:13px}
.rea-connection-state{padding:12px 14px;border-radius:8px;background:#f7f5ee;color:#34342f}
.rea-settings-form{display:grid;gap:16px;margin-top:20px}
.rea-settings-form label{display:grid;gap:6px;font-weight:600;min-width:0}
.rea-settings-form input:not([type=checkbox]),.rea-settings-form select{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5d2ca;border-radius:7px;font:inherit;box-sizing:border-box}
.rea-settings-form .form-grid>label{min-width:0}
.smtp-settings-card .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.rea-settings-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.rea-settings-form .form-grid{grid-template-columns:1fr}}
.turnstile-enable-row{margin-bottom:16px}
.turnstile-enable-row .rea-enable{max-width:620px;min-height:52px}
.turnstile-enable-row .rea-enable span{flex:1}
.turnstile-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.turnstile-fields-grid>label,.turnstile-secret-field>label{display:grid;gap:6px;min-width:0;font-weight:600}
.turnstile-fields-grid input:not([type=checkbox]){display:block;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #d5d2ca;border-radius:7px;font:inherit;box-sizing:border-box}
.turnstile-secret-field{grid-column:1/-1;display:grid;gap:10px;min-width:0}
.turnstile-settings-card .turnstile-clear-secret{display:flex;align-items:center;gap:8px;min-height:28px;color:#5b5a53;font-weight:500}
.turnstile-clear-secret input{flex:0 0 auto;width:18px;height:18px;accent-color:#b99648}
@media(max-width:760px){.turnstile-fields-grid{grid-template-columns:1fr}.turnstile-secret-field{grid-column:auto}}
.rea-settings-form .rea-enable{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e3dfd5;border-radius:8px;background:#faf9f6}
.rea-settings-form .rea-enable input{width:18px;height:18px;accent-color:#b99648}
.rea-settings-actions,.rea-match-actions,.rea-match-candidate-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.rea-test-result,.rea-match-status{min-height:1.5em;margin:0;color:#55554e;font-size:13px}
.rea-test-result.is-error,.rea-match-status.is-error{color:#a12828}
.rea-test-result.is-success,.rea-match-status.is-success{color:#226c3b}
.rea-settings-card .secondary,.rea-match-tools .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border:1px solid #bba365;border-radius:7px;background:#fff;color:#51431f;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.rea-settings-card .secondary:hover,.rea-match-tools .secondary:hover{background:#f8f4e8}
.rea-settings-card button:disabled,.rea-match-tools button:disabled{opacity:.55;cursor:not-allowed}
.rea-match-tools{display:grid;gap:8px;grid-column:1/-1;padding:14px;border:1px solid #e1ddd2;border-radius:8px;background:#fbfaf7}
.rea-match-note{color:#65655e;font-size:12px}
.rea-match-candidate{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:8px;padding:12px;border:1px solid #e1ddd2;border-radius:8px;background:#fff}
.rea-match-candidate>div:first-child{display:grid;gap:4px}
.rea-match-candidate small{color:#66665f}
.smtp-routing-card{max-width:none;margin-top:20px}
.smtp-routing-card h2{margin:0 0 8px}
.smtp-routing-table{min-width:1200px}
.smtp-routing-table th,.smtp-routing-table td{padding:10px 8px;vertical-align:middle;text-align:center}
.smtp-routing-table th:first-child{text-align:left;min-width:220px}
.smtp-routing-table th small{display:block;margin-top:4px;color:#777;font-size:11px;font-weight:400}
.smtp-route-check{display:flex;justify-content:center;align-items:center}
.smtp-route-check input{width:17px;height:17px;accent-color:#b99648}
@media(max-width:600px){.rea-settings-card{padding:16px}.rea-match-candidate{align-items:flex-start;flex-direction:column}}
