/* Shared SFTP connection card for the administrator and hosting workspaces. */
.sftp-card { margin-top: 20px; overflow: hidden; }
.sftp-card-header { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--wp-border, #e9e5f0); }
.sftp-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; color: var(--wp-primary, #8352f1); background: #f5f0ff; font-size: 20px; }
.sftp-card-header h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.sftp-card-header p, .sftp-help p { margin: 0; color: var(--wp-text-muted, #73737b); font-size: 13px; line-height: 1.6; }
.sftp-card-body { padding: 24px; }
.sftp-toolbar { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 22px; }
.sftp-account-field { flex: 1 1 240px; max-width: 480px; min-width: 0; }
.sftp-account-field label { display: block; margin-bottom: 8px; font-size: 13px; }
.sftp-account-field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.sftp-toolbar button { min-height: 40px; }
.panel-design .sftp-output { font-family: inherit; border: 1px solid var(--wp-border, #e9e5f0); border-radius: 10px; background: #fcfbff; overflow-wrap: anywhere; }
.sftp-status { margin: 0; padding: 20px; color: var(--wp-text-muted, #73737b); font-size: 13px; line-height: 1.6; }
.sftp-output--error { background: #fff6f6 !important; border-color: #fecaca !important; }
.sftp-output--error .sftp-status { color: #b91c1c; }
.sftp-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 22px; margin: 0; }
.sftp-details dt { color: var(--wp-text-muted, #73737b); font-size: 12px; margin-bottom: 7px; }
.sftp-details dd { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.6; }
.sftp-note { margin: 0; padding: 16px 22px; border-top: 1px solid var(--wp-border, #e9e5f0); color: var(--wp-text-muted, #73737b); font-size: 12px; line-height: 1.7; }
.sftp-help { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.sftp-help i { color: var(--wp-primary, #8352f1); margin-top: 4px; }
@media (max-width: 900px) { .sftp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
    .sftp-card-header, .sftp-card-body { padding: 18px; }
    .sftp-toolbar { align-items: stretch; }
    .sftp-account-field { flex-basis: 100%; max-width: none; }
    .sftp-toolbar button { width: 100%; }
    .sftp-details { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
}

.sftp-icon::before { content: ""; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("/knowledge-base/demo/panel/assets/sidebar-icons/sftp.svg") center / contain no-repeat; mask: url("/knowledge-base/demo/panel/assets/sidebar-icons/sftp.svg") center / contain no-repeat; }
.sftp-icon:has(svg)::before { display: none; }
.sftp-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sftp-security-icon { flex: 0 0 16px; height: 18px; margin-top: 3px; background: var(--wp-primary, #8352f1); -webkit-mask: url("/knowledge-base/demo/panel/assets/sidebar-icons/ssl.svg") center / contain no-repeat; mask: url("/knowledge-base/demo/panel/assets/sidebar-icons/ssl.svg") center / contain no-repeat; }

/* Tools and SFTP workspace */
.tools-page { max-width: 1320px; margin: 0 auto; padding: 2px 0 40px; min-width: 0; }
.tools-page-header { align-items: center; }
.tools-title-group { display: flex; align-items: center; gap: 15px; min-width: 0; }
.tools-title-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; color: #FFF; background: linear-gradient(135deg,#8B5CF6,#6741D9); box-shadow: 0 10px 24px rgba(104,65,217,.22); }
.tools-title-icon svg { width: 23px; height: 23px; fill: none; stroke: #FFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tools-title-icon > i { color: #FFF !important; font-size: 18px; }
.tools-eyebrow { display: block; margin-bottom: 4px; color: #7950DC; font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.tools-page-header .wp-page-title { margin: 0; font-size: 28px; line-height: 1.2; }
.tools-page-header .wp-page-subtitle { margin: 5px 0 0; }
.tools-page--admin .sftp-card { margin-top: 18px; border: 1px solid #E6E8EF; border-radius: 16px; box-shadow: 0 8px 26px rgba(31,35,48,.045); }
.tools-trust-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid #E6E8EF; border-radius: 14px; background: #E6E8EF; box-shadow: 0 7px 22px rgba(31,35,48,.035); }
.tools-trust-strip > div { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; background: #FFF; }
.tools-trust-strip i { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #7448D8; background: #EEE8FC; }
.tools-trust-strip span { color: #858B99; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tools-trust-strip strong { display: block; margin-top: 3px; color: #293041; font-size: 12px; font-weight: 650; text-transform: none; }
.tools-page--admin .sftp-card-header { padding: 21px 24px; background: linear-gradient(135deg,#FCFBFF,#FFF); }
.tools-page--admin .sftp-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; color: #FFF; background: linear-gradient(135deg,#8B5CF6,#7043DF); }
.tools-page--admin .sftp-icon svg { stroke: #FFF; opacity: 1; }
.tools-page--admin .sftp-card-header h2 { margin: 0; font-size: 17px; }
.sftp-protocol-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 10px; border-radius: 999px; color: #087653; background: #EAFBF2; font-size: 11px; font-weight: 750; }
.tools-page--admin .sftp-card-body { padding: 22px 24px 24px; }
.tools-page--admin .sftp-workspace { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.45fr); gap: 18px; align-items: stretch; }
.tools-page--admin .sftp-toolbar { display: flex; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 15px; margin: 0; padding: 19px; border: 1px solid #E9E9F0; border-radius: 13px; background: #FAFAFD; }
.sftp-toolbar-heading,.sftp-result-heading { display: flex; align-items: flex-start; gap: 10px; }
.sftp-toolbar-heading h3,.sftp-result-heading h3 { margin: 0; color: #282E3E; font-size: 14px; }
.sftp-toolbar-heading p,.sftp-result-heading p { margin: 4px 0 0; color: #777E8E; font-size: 11px; line-height: 1.5; }
.sftp-step { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; color: #FFF; background: #7950DC; font-size: 11px; font-weight: 800; }
.tools-page--admin .sftp-account-field { flex: 0 0 auto; max-width: none; }
.tools-page--admin .sftp-account-field label { color: #454C5D; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.tools-page--admin .sftp-account-field .form-control { min-height: 43px; border-color: #DDE0E7; border-radius: 9px; background: #FFF; }
.tools-page--admin .sftp-toolbar button { align-self: flex-start; margin-top: auto; }
.sftp-result-panel { min-width: 0; padding: 19px; border: 1px solid #E9E9F0; border-radius: 13px; background: #FFF; }
.sftp-result-heading { margin-bottom: 14px; }
.tools-page--admin .sftp-output { min-height: 156px; display: flex; flex-direction: column; justify-content: center; border-style: dashed; background: #FBFAFE; }
.tools-page--admin .sftp-output:has(.sftp-details) { justify-content: flex-start; border-style: solid; }
.tools-page--admin .sftp-status { text-align: center; }
.tools-page--admin .sftp-details { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 8px 18px; }
.tools-page--admin .sftp-details > div { min-width: 0; padding: 13px 8px; border-bottom: 1px solid #ECECF2; }
.tools-page--admin .sftp-details > div:nth-last-child(-n+2) { border-bottom: 0; }
.tools-page--admin .sftp-details dt { color: #818898; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tools-page--admin .sftp-details dd { overflow-wrap: anywhere; color: #252C3B; font-weight: 650; }
.tools-page--admin .sftp-help { margin-top: 18px; padding: 14px 16px; border: 1px solid #E8DFFC; border-radius: 11px; background: #FAF8FF; }
.tools-page--admin .sftp-help strong { color: #493776; font-size: 12px; }
.tools-page--admin .sftp-help p { margin-top: 3px; font-size: 11px; }
@media (max-width: 900px) { .tools-page--admin .sftp-workspace { grid-template-columns: 1fr; } .tools-trust-strip { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tools-title-icon { display: none; } .tools-page-header .wp-page-title { font-size: 24px; } .sftp-protocol-badge { display: none; } .tools-page--admin .sftp-card-header,.tools-page--admin .sftp-card-body { padding: 18px; } .tools-page--admin .sftp-details { grid-template-columns: 1fr; } .tools-page--admin .sftp-details > div { border-bottom: 1px solid #ECECF2 !important; } .tools-page--admin .sftp-toolbar button { align-self: stretch; } }
