/* QA3 M7 · Backup Connection Studio: clean, guided, light-first, mobile responsive */
.ftp-studio-hero{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:26px 28px;background:linear-gradient(117deg,#123a70,#1c63ac);border-radius:7px;color:#fff;margin:4px 0 20px;box-shadow:0 9px 24px rgba(16,55,109,.12)}
.ftp-studio-hero h2{font-size:clamp(18px,2.1vw,28px);margin:8px 0;letter-spacing:-.035em;line-height:1.16;color:white}.ftp-studio-hero p{font-size:12px;color:#e4f0ff;max-width:600px;line-height:1.65;margin:0}
.ftp-studio-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.13em;font-weight:780;color:#5384b8}.ftp-studio-hero .ftp-studio-eyebrow{color:#cce0ff}
.ftp-studio-security{white-space:nowrap;border:1px solid #ffffff73;background:#ffffff1c;border-radius:4px;padding:10px 13px;font-size:12px;font-weight:700}
.ftp-studio-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.ftp-studio-steps span{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--card);padding:12px 13px;border-radius:5px;color:var(--sub);font-size:12px;font-weight:650}.ftp-studio-steps span.current{color:#1559a3;border-color:#a3c5ed;background:#eaf4ff}.ftp-studio-steps b{width:22px;height:22px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;flex-shrink:0;font-size:11px}
.ftp-studio-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.ftp-studio-grid>.card{margin:0;min-width:0;height:100%}.ftp-studio-grid .card-head h2{margin:4px 0 0}.ftp-studio-grid>.card>p{font-size:12px;line-height:1.6;color:var(--sub)}.ftp-studio-grid .fields{display:grid;gap:12px}.ftp-studio-grid .fields .field input,.ftp-studio-grid .fields .field select{min-width:0;width:100%}
.ftp-studio-actions,.ftp-studio-save{display:flex;gap:8px;margin-top:16px}.ftp-studio-actions .btn{width:100%;justify-content:center;min-height:42px}.ftp-studio-save{border-top:1px solid var(--line);padding-top:16px;flex-wrap:wrap;align-items:center}.ftp-studio-save p{font-size:11px;color:var(--sub);line-height:1.45;margin:0;flex:1 1 200px}.ftp-studio-save .btn{min-height:38px}
.ftp-studio-status{padding:12px;font-size:12px;line-height:1.6;background:var(--page);border:1px solid var(--line);border-radius:4px;margin-top:14px}.ftp-studio-status[data-error="1"]{border-color:#e5b1aa;background:#fff0ed;color:#a9322b}.ftp-studio-empty{margin:20px auto;max-width:315px;text-align:center;padding:20px 8px}.ftp-studio-emptyicon{display:grid;place-items:center;border-radius:8px;background:var(--page);color:var(--sub);font-size:34px;width:70px;height:70px;margin:0 auto 17px}.ftp-studio-empty h3{font-size:15px;margin:0 0 8px}.ftp-studio-empty p{font-size:12px;line-height:1.65;color:var(--sub)}
.ftp-connected{display:flex;align-items:center;gap:8px;margin:16px 0;border-radius:4px;padding:9px 12px;background:#ecfbf3;color:#176747;font-weight:650;font-size:12px;flex-wrap:wrap}.ftp-connected small{margin-left:auto;font-size:10px}.ftp-connected-dot{width:8px;height:8px;border-radius:50%;background:#16a66b}
.ftp-current-path{display:grid;gap:5px;margin:12px 0 9px}.ftp-current-path span{font-size:10px;color:var(--sub);font-weight:760;letter-spacing:.1em}.ftp-current-path strong{font-size:13px;overflow-wrap:anywhere}.ftp-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px}.ftp-crumb{border:0;background:transparent;color:#286db7;font-size:11px;cursor:pointer;padding:5px}.ftp-crumb:hover{text-decoration:underline}.ftp-crumb-divider{color:var(--sub);font-size:11px}
.ftp-folder-list{min-height:120px;max-height:340px;overflow:auto;padding:6px 0}.ftp-folder-item{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:4px 2px}.ftp-folder-item>button:first-child{min-width:0;display:flex;gap:10px;align-items:center;flex:1;text-align:left;border:0;background:transparent;color:var(--ink);padding:12px 4px;font-size:12px;cursor:pointer}.ftp-folder-item>button:first-child>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.ftp-folder-symbol{color:#477fbd;font-size:19px}.ftp-folder-arrow{color:var(--sub);font-size:19px}.ftp-folder-item>button:first-child:hover,.ftp-folder-item>button:first-child:focus{color:var(--brand);background:var(--page)}.ftp-studio-no-folders{font-size:12px;color:var(--sub);padding:22px 8px;line-height:1.6}
.ftp-folder-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:13px;border-top:1px solid var(--line)}.ftp-new-folder{background:var(--page);border:1px solid var(--line);margin-top:15px;padding:14px;border-radius:5px}.ftp-new-folder label{display:block;font-size:12px;font-weight:720;margin-bottom:9px}.ftp-new-folder>div{display:flex;gap:7px;flex-wrap:wrap}.ftp-new-folder input{min-width:135px;flex:1}.ftp-studio-folder-badge{padding:6px 8px;background:var(--page);border:1px solid var(--line);border-radius:4px;font-size:10px;color:var(--sub)}
.ftp-studio-proof{margin-top:16px;display:flex;gap:20px;justify-content:space-between;align-items:center}.ftp-studio-proof h2{font-size:17px;margin:7px 0}.ftp-studio-proof p{font-size:12px;color:var(--sub);line-height:1.5;max-width:560px}.ftp-studio-proof>div:last-child{max-width:430px}.ftp-studio-proof .sks-ftp-live-status{padding:12px;font-size:11px;line-height:1.5;margin-top:10px}.ftp-studio-proof button{min-width:210px}
[data-theme="dark"] .ftp-studio-steps span.current{background:#14324d;color:#a8d2ff;border-color:#436b97}[data-theme="dark"] .ftp-connected{background:#17392f;color:#a5f0c4}[data-theme="dark"] .ftp-studio-status[data-error="1"]{background:#432423;color:#ffc0b8;border-color:#8b4b45}
@media(max-width:1080px){.ftp-studio-grid{grid-template-columns:1fr}.ftp-studio-proof{align-items:flex-start;flex-direction:column}.ftp-studio-proof>div:last-child{max-width:none;width:100%}}
@media(max-width:560px){.ftp-studio-hero{padding:20px;flex-wrap:wrap;gap:13px}.ftp-studio-steps{gap:4px}.ftp-studio-steps span{font-size:10px;padding:8px 6px;gap:5px}.ftp-studio-steps b{width:19px;height:19px}.ftp-studio-grid .card{padding:14px}.ftp-folder-actions .btn{flex:1}.ftp-studio-save .btn{width:100%}}

/* QA3 M7 FIX1 - strict checkbox sizing, guided actions and responsive two-column layout */
.ftp-studio-grid [hidden],.ftp-studio-proof [hidden]{display:none!important}
.ftp-studio-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:stretch}
.ftp-studio-grid .card{min-width:0;overflow-wrap:anywhere}
.ftp-studio-grid .fields>.field{min-width:0}
.ftp-studio-grid .fields .sks-ftp-warning{width:100%;max-width:100%;min-width:0;display:block}
.ftp-studio-grid .fields .sks-ftp-warning[hidden]{display:none!important}
.ftp-studio-grid .fields .sks-ftp-warning .checkline{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-width:0;width:100%;height:auto;line-height:1.5;font-size:12px;font-weight:550;white-space:normal}
.ftp-studio-grid .fields .sks-ftp-warning .checkline>span{display:block;flex:1 1 auto;min-width:0;overflow-wrap:break-word}
.ftp-studio-grid .fields .sks-ftp-warning input[type="checkbox"]{display:block!important;box-sizing:border-box!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:1px 0 0!important;flex:0 0 18px!important;accent-color:var(--brand)}
.ftp-studio-grid .ftp-studio-credentials .notice{margin:0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.ftp-studio-grid .ftp-studio-credentials .fields>.field.span{grid-column:1 / -1}
.ftp-studio-steps span{min-width:0;overflow:hidden}
.ftp-studio-steps span>span{min-width:0;overflow-wrap:break-word}
.ftp-studio-steps span.done{background:var(--card);color:#23845e;border-color:#bcdccb}
.ftp-studio-steps span.current{font-weight:790}
.ftp-studio-choice{margin-top:15px;border-radius:6px;background:var(--page);border:1px solid var(--line);padding:12px;font-size:12px;color:var(--sub);overflow-wrap:anywhere}
.ftp-studio-proof{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:start;gap:24px}
.ftp-studio-proof-controls{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ftp-studio-proof-controls .btn{min-width:0;width:100%;line-height:1.4;white-space:normal}
.ftp-studio-proof-controls .sks-ftp-live-status{grid-column:1 / -1;margin-top:0}
.ftp-studio-proof>div:last-child{max-width:none;width:100%}
.ftp-studio-save{margin-top:0}
[data-theme="dark"] .ftp-studio-steps span.done{background:#18372e;color:#a5f0c4;border-color:#3f715a}
@media(max-width:1150px){.ftp-studio-grid{grid-template-columns:minmax(0,1fr)}.ftp-studio-proof{grid-template-columns:1fr}}
@media(max-width:560px){.ftp-studio-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.ftp-studio-proof-controls{grid-template-columns:1fr}.ftp-studio-proof-controls .sks-ftp-live-status{grid-column:auto}.ftp-studio-steps span{font-size:10px}.ftp-studio-actions .btn{white-space:normal;min-width:0}}
