.smtp-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 24px; align-items: start; }
.smtp-settings-panel, .smtp-test-panel { min-width: 0; }
.smtp-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.smtp-panel-heading h2, .smtp-test-panel h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.smtp-panel-heading p, .smtp-test-panel>p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.smtp-source { display: inline-block; white-space: nowrap; font-size: 10px; line-height: 1.6; color: #647284; padding: 5px 8px; background: #f1f3f6; border: 1px solid #e1e6ed; border-radius: 3px; }
.smtp-settings-panel .settings-form { margin-top: 21px; }
.smtp-fields { margin-top: 21px; }
.smtp-settings-panel .field small { font-size: 11px; color: var(--muted); line-height: 1.75; }
.smtp-clear-password { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.smtp-clear-password input { margin: 3px 0 0; }
.smtp-subheading { font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); margin: 25px 0 0; padding-top: 23px; }
.smtp-inline-error { font-size: 12px; line-height: 1.8; color: #934b4f; }
.smtp-inline-error:empty, .smtp-test-result:empty { display: none; }
.smtp-inline-error:not(:empty) { border: 1px solid #e7ced0; background: #fbf5f5; padding: 12px; margin-bottom: 18px; border-radius: 3px; }
.smtp-test-panel fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.smtp-test-panel fieldset:disabled { opacity: .55; }
.smtp-test-panel fieldset>.btn { margin-top: 18px; }
.smtp-test-panel .settings-form { margin-top: 23px; }
.smtp-test-panel .smtp-test-help { font-size: 11px; margin-top: 20px; line-height: 1.85; }
.smtp-test-result { margin-top: 18px; border: 1px solid #d7e0d8; background: #f3f7f3; color: #4c6652; font-size: 12px; line-height: 1.8; padding: 12px; border-radius: 3px; }
.smtp-load-state p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
@media(max-width:1000px) { .smtp-layout { grid-template-columns: 1fr; } }
@media(max-width:650px) { .smtp-panel-heading { flex-direction: column; gap: 12px; } .smtp-fields { grid-template-columns: 1fr; } .smtp-fields .field.full { grid-column: auto; } }
