.legacy-connection-panel { margin-top: 18px; border: 1px solid #cbd8d3; border-radius: 10px; overflow: hidden; background: #fbfdfc; box-shadow: inset 4px 0 0 #146c5a; }
.legacy-connection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #dbe4e0; background: #f0f6f3; }
.legacy-connection-title { display: flex; align-items: center; gap: 12px; }
.legacy-connection-title h3 { margin: 0 0 4px; color: #153b33; }
.legacy-connection-title p { margin: 0; color: #52645f; font-size: 13px; }
.legacy-connection-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #146c5a; color: white; }
.legacy-connection-mark svg { width: 20px; height: 20px; }
.legacy-connection-state { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #e5e7eb; color: #475569; font-size: 12px; font-weight: 800; }
.legacy-connection-state.configured { background: #d9eee5; color: #165b49; }
.legacy-connection-state.pending { background: #fff0c7; color: #765312; }
.legacy-connection-state.blocked { background: #f9dada; color: #8a2f2f; }
.legacy-connection-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 18px; }
.legacy-connection-form > label { display: grid; gap: 6px; color: #334a44; font-size: 12px; font-weight: 750; }
.legacy-connection-form .legacy-full-width { grid-column: 1 / -1; }
.legacy-connection-form input, .legacy-connection-form select { width: 100%; min-height: 40px; border: 1px solid #b9c9c3; border-radius: 7px; padding: 0 10px; background: white; color: #182925; font: inherit; }
.legacy-connection-form input[readonly] { background: #f2f5f4; color: #52645f; cursor: not-allowed; }
.legacy-connection-form input:focus, .legacy-connection-form select:focus { outline: 3px solid rgba(20, 108, 90, 0.16); border-color: #146c5a; }
.legacy-password-control { display: grid; grid-template-columns: 1fr 40px; }
.legacy-password-control input { border-radius: 0 7px 7px 0; }
.legacy-password-control button { border: 1px solid #b9c9c3; border-inline-start: 0; border-radius: 7px 0 0 7px; background: #f4f7f6; color: #31584f; cursor: pointer; }
.legacy-password-control button svg { width: 17px; }
.legacy-connection-form .legacy-readonly-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px dashed #aabdb6; border-radius: 7px; background: #f5f9f7; }
.legacy-connection-form .legacy-readonly-check input { width: 17px; min-height: 17px; accent-color: #146c5a; }
.legacy-connection-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; border-top: 1px solid #e1e8e5; padding-top: 14px; }
.legacy-connection-actions p { margin: 0; color: #5a6b66; font-size: 12px; }
.legacy-security-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 7px; background: #eef5f2; color: #405851; font-size: 12px; }
.legacy-security-note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
@media (max-width: 760px) {
  .legacy-connection-head { align-items: flex-start; flex-direction: column; }
  .legacy-connection-form { grid-template-columns: 1fr; }
  .legacy-connection-actions { align-items: stretch; flex-direction: column; }
}
