/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* v2220 STP FTP tool (shared by apps/stp-ftp and the Admin copy site-admin/ftp). Everything is scoped to #stpftp. */
#stpftp{--bg:#0f1626;--card:#16213a;--line:#2a3a5e;--ink:#e6ecf8;--mute:#94a3c4;--acc:#4f8cff;--ok:#36c08a;--bad:#ef5a6a;--warn:#f3b23c;--accink:#fff;
  color:var(--ink);font:13px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);border-radius:12px;padding:10px;
  display:flex;flex-direction:column;gap:8px;min-height:max(560px,var(--fh,calc(100vh - 24px)));box-sizing:border-box;position:relative;text-align:left}
#stpftp *{box-sizing:border-box}
#stpftp a{color:var(--acc)}
#stpftp h2{font-size:13px;margin:0;font-weight:700}#stpftp h3{font-size:13px;margin:10px 0 4px}
#stpftp .card{background:var(--card);border:1px solid var(--line);border-radius:9px;padding:8px 10px}
#stpftp input,#stpftp select,#stpftp button{font:inherit;font-size:12.5px;color:var(--ink);background:color-mix(in srgb,var(--card) 86%,var(--ink) 4%);border:1px solid var(--line);border-radius:6px;padding:4px 8px;min-height:28px}
#stpftp button{cursor:pointer;background:color-mix(in srgb,var(--card) 82%,var(--acc) 18%)}#stpftp button:hover:not(:disabled){border-color:var(--acc)}
#stpftp button.p{background:var(--acc);border-color:var(--acc);color:var(--accink)}
#stpftp button.del{background:#c62828;border-color:#c62828;color:#fff;font-weight:700}#stpftp button.del:disabled{background:color-mix(in srgb,#c62828 35%,var(--card));color:#fff}
#stpftp button:disabled{opacity:.45;cursor:default}
#stpftp .mute{color:var(--mute);font-size:12px}
#stpftp .row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#stpftp .grow{flex:1}
#stpftp .hq{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0;padding:0;margin-left:3px;border-radius:50%;font-size:10.5px;font-weight:700;line-height:1;vertical-align:middle;cursor:help}
#stpftp [data-t]{border-bottom:1px dotted currentColor;cursor:help}
/* connection */
#stpftp .site{display:grid;grid-template-columns:minmax(170px,1.3fr) 1.6fr 70px 1fr 1fr auto auto;gap:6px;align-items:end}
#stpftp .site label{display:flex;flex-direction:column;font-size:11.5px;color:var(--mute);gap:2px}
#stpftp .site.loc .nl{display:none}#stpftp .site.loc{grid-template-columns:220px auto auto 1fr}
#stpftp .conline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#stpftp .conline b{font-size:13px}
#stpftp .offers{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;margin-top:6px}
#stpftp .offers button{min-height:22px;padding:1px 8px;font-size:11.5px}
#stpftp .safer{color:var(--warn);font-weight:700}
#stpftp .secrow{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:12px}#stpftp .secrow label{display:flex;gap:5px;align-items:center}
#stpftp .secrow>span{display:flex;gap:4px;align-items:center;flex-wrap:wrap}#stpftp .secrow>span[hidden]{display:none}
#stpftp .msg{min-height:16px;font-size:12.5px}#stpftp .msg.bad{color:var(--bad)}#stpftp .msg.ok{color:var(--ok)}
#stpftp #f-secinfo{font-size:11.5px;color:var(--mute);word-break:break-all}
#stpftp #f-ckl{overflow:auto;transition:max-height .7s ease,opacity .7s ease}#stpftp #f-ckp.shut #f-ckl{max-height:0!important;opacity:0}
#stpftp .ck{display:grid;grid-template-columns:20px 1fr 60px;gap:6px;padding:3px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);font-size:12px}
#stpftp .ck .i{font-weight:700}#stpftp .ck.ok .i{color:var(--ok)}#stpftp .ck.no .i{color:var(--bad)}#stpftp .ck.opt .i{color:var(--mute)}#stpftp .ck small{display:block;color:var(--mute)}
/* speed bar */
#stpftp .speedbar{overflow:hidden;max-height:0;transition:max-height .5s ease,padding .5s ease;border-radius:8px;background:color-mix(in srgb,var(--card) 80%,var(--acc) 20%);padding:0 10px;font-size:12.5px}
#stpftp .speedbar.on{max-height:150px;padding:6px 10px;position:sticky;top:0;z-index:5;box-shadow:0 2px 8px rgba(0,0,0,.15)}#stpftp .speedbar b{font-size:14px}
#stpftp .last{font-size:11.5px;color:var(--mute)}
/* panes: they fill the space left on the screen */
#stpftp .main{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
#stpftp .panes{flex:1;min-height:220px;display:grid;grid-template-columns:var(--lw,42%) 50px minmax(0,1fr)}
#stpftp .pane{min-width:0;min-height:0;display:flex;flex-direction:column;gap:5px}
#stpftp .pane .tbl{flex:1;min-height:80px;overflow:auto;border:1px solid var(--line);border-radius:7px}
#stpftp .vs{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:col-resize;touch-action:none;user-select:none}
#stpftp .vs::before{content:"";width:4px;height:50px;border-radius:3px;background:var(--line)}#stpftp .vs:hover::before,#stpftp .vs.on::before{background:var(--acc)}
#stpftp .vs button{padding:5px 3px;font-size:11.5px;width:44px;line-height:1.2}
#stpftp .hs{height:10px;cursor:row-resize;touch-action:none;display:flex;align-items:center;justify-content:center}#stpftp .hs::before{content:"";width:60px;height:4px;border-radius:3px;background:var(--line)}#stpftp .hs:hover::before,#stpftp .hs.on::before{background:var(--acc)}
#stpftp table{border-collapse:collapse;width:100%}
#stpftp th,#stpftp td{padding:3px 7px;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);text-align:left;white-space:nowrap;font-size:12.5px}
#stpftp th{position:sticky;top:0;background:color-mix(in srgb,var(--card) 90%,var(--ink) 10%);font-size:11.5px;color:var(--mute);cursor:pointer;z-index:1}
#stpftp tr.sel td{background:color-mix(in srgb,var(--card) 75%,var(--acc) 25%)}
#stpftp td.n{white-space:normal;word-break:break-all}#stpftp td.r{text-align:right}#stpftp .dir{cursor:pointer;font-weight:600}
#stpftp tr.dropin td{outline:2px solid var(--acc);outline-offset:-2px}
#stpftp .pane.drop-on .tbl,#stpftp .drop.on{border-color:var(--acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 35%,transparent)}
#stpftp .drop{border:2px dashed var(--line);border-radius:8px;padding:8px;text-align:center;color:var(--mute);font-size:12px}
#stpftp .crumbs{display:flex;gap:2px;align-items:center;flex-wrap:wrap;font-family:ui-monospace,Consolas,monospace;font-size:12px;flex:1;min-width:120px}
#stpftp .crumbs button{min-height:22px;padding:1px 5px;background:transparent;border-color:transparent}#stpftp .crumbs button:hover{border-color:var(--acc)}#stpftp .crumbs i{color:var(--mute);font-style:normal}
#stpftp .menu{position:relative}#stpftp .menu>div{position:absolute;right:0;top:100%;z-index:20;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:5px;min-width:220px;box-shadow:0 8px 24px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:3px}
#stpftp .menu>div[hidden]{display:none}#stpftp .menu>div button{text-align:left;background:transparent;border-color:transparent}#stpftp .menu>div button:hover{border-color:var(--acc)}
#stpftp .menu .sep{border-top:1px solid var(--line);margin:3px 0}
/* staged + transfers + log */
#stpftp .stage{max-height:120px;overflow:auto;font-size:12px}
#stpftp .stage div{display:flex;gap:6px;align-items:center;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);padding:2px 0}
#stpftp .stage div span:first-child{flex:1;word-break:break-all}#stpftp .stage button{min-height:20px;padding:0 6px}
#stpftp .lower{display:grid;grid-template-columns:var(--rw,55%) 14px minmax(0,1fr)}
#stpftp .lower>section{min-height:0;display:flex;flex-direction:column;gap:5px}
#stpftp .vs2{cursor:col-resize;touch-action:none;display:flex;align-items:center;justify-content:center}#stpftp .vs2::before{content:"";width:4px;height:40px;border-radius:3px;background:var(--line)}
#stpftp #f-queue,#stpftp #f-log{height:var(--bh,110px);overflow:auto;min-height:60px}
#stpftp .qi{display:grid;grid-template-columns:1fr 100px 90px 70px;gap:6px;align-items:center;padding:2px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);font-size:12px}
#stpftp .qi .n{word-break:break-all}#stpftp .qi button{min-height:20px;padding:0 6px;font-size:11px}
#stpftp .pb{height:6px;background:color-mix(in srgb,var(--card) 80%,var(--ink) 8%);border-radius:4px;overflow:hidden}#stpftp .pb i{display:block;height:100%;width:0;background:var(--acc)}
#stpftp .qi.ok .pb i{background:var(--ok)}#stpftp .qi.bad .pb i{background:var(--bad)}
#stpftp .meter{font-size:11.5px;color:var(--mute);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#stpftp .meter .pb{width:120px}#stpftp .meter.amber{color:var(--warn);font-weight:700}#stpftp .meter.amber .pb i{background:var(--warn)}
#stpftp #f-log{font-size:11.5px;font-family:ui-monospace,Consolas,monospace}
#stpftp .tabs{display:none;gap:4px}#stpftp .tabs button[aria-pressed="true"]{background:var(--acc);color:var(--accink)}
#stpftp .more{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px}
#stpftp .more label{display:flex;gap:5px;align-items:center}
#stpftp .probox{border:1px dashed var(--acc);border-radius:8px;padding:6px 8px;font-size:12px}
#stpftp-tip{position:fixed;z-index:100;max-width:320px;background:#16233F;color:#fff;padding:6px 9px;border-radius:7px;font-size:12px;line-height:1.4;pointer-events:none;box-shadow:0 4px 16px rgba(0,0,0,.25)}
/* boxes */
dialog.ftpbox{max-width:600px;width:calc(100% - 32px);background:var(--card,#fff);color:var(--ink,#16233F);border:1px solid var(--line,#ccd);border-radius:12px;padding:14px 16px;font:13px/1.45 system-ui,sans-serif}
dialog.ftpbox::backdrop{background:rgba(0,0,0,.5)}
dialog.ftpbox h3{margin:0 0 8px;font-size:15px}dialog.ftpbox.red{border:2px solid #c62828}dialog.ftpbox.red h3{color:#c62828}
dialog.ftpbox .acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}
dialog.ftpbox button,dialog.ftpbox input,dialog.ftpbox select{font:inherit;font-size:13px;padding:5px 10px;border-radius:6px;border:1px solid var(--line,#ccd);background:transparent;color:inherit}
dialog.ftpbox button.p{background:var(--acc,#2f6fed);border-color:var(--acc,#2f6fed);color:var(--accink,#fff)}dialog.ftpbox button.del{background:#c62828;border-color:#c62828;color:#fff;font-weight:700}
dialog.ftpbox button:disabled{opacity:.45}
dialog.ftpbox .list{max-height:240px;overflow:auto;font:12px ui-monospace,Consolas,monospace;border:1px solid var(--line,#ccd);border-radius:6px;padding:6px;margin:6px 0}
dialog.ftpbox .perm{border-collapse:collapse;margin:6px 0}dialog.ftpbox .perm td,dialog.ftpbox .perm th{padding:4px 10px;text-align:center}
dialog.ftpbox dt{font-weight:700;margin-top:6px}dialog.ftpbox dd{margin:2px 0 0}
dialog.ftpbox .warn{color:#b86e00;font-weight:700}
/* audit full screen */
dialog.ftpaudit{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;border:0;padding:12px 16px;overflow:hidden;background:var(--card,#fff);color:var(--ink,#16233F);font:12px/1.4 system-ui,sans-serif}
dialog.ftpaudit *{box-sizing:border-box}dialog.ftpaudit .row{min-width:0;display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
dialog.ftpaudit input,dialog.ftpaudit select,dialog.ftpaudit button{font:inherit;font-size:12px;padding:4px 8px;border-radius:6px;border:1px solid var(--line,#ccd);background:transparent;color:inherit}
dialog.ftpaudit button.p{background:var(--acc,#2f6fed);color:var(--accink,#fff);border-color:var(--acc,#2f6fed)}
dialog.ftpaudit[open]{display:flex;flex-direction:column}dialog.ftpaudit .aw{flex:1 1 auto;min-height:0;height:auto;overflow:auto;border:1px solid var(--line,#ccd);border-radius:8px}
dialog.ftpaudit table{border-collapse:collapse;width:100%}dialog.ftpaudit th,dialog.ftpaudit td{padding:3px 7px;border-bottom:1px solid var(--line,#dde);text-align:left;font-size:12px;vertical-align:top}
dialog.ftpaudit th{position:sticky;top:0;background:var(--card,#fff)}
dialog.ftpaudit td.m{font-family:ui-monospace,Consolas,monospace;word-break:break-all}
dialog.ftpaudit tr.g td{color:var(--mute,#667)}dialog.ftpaudit tr.del td{color:#c62828;font-weight:700}dialog.ftpaudit tr.fail td{color:#b86e00;font-weight:700}dialog.ftpaudit tr.bold td{font-weight:700;color:inherit}
dialog.ftpaudit details{font-weight:400}
/* help */
#stpftp-help{margin-top:10px}#stpftp-help dl{columns:2 380px;column-gap:24px;margin:0}#stpftp-help dt{font-weight:700;margin-top:6px;break-after:avoid}#stpftp-help dd{margin:1px 0 0;font-size:12.5px}
@media (max-width:900px){
  #stpftp{height:auto;min-height:0}
  #stpftp .site,#stpftp .site.loc{grid-template-columns:1fr 1fr}
  #stpftp .tabs{display:flex}
  #stpftp .panes{grid-template-columns:1fr!important;min-height:0}#stpftp .pane .tbl{height:50vh;flex:none}
  #stpftp .panes .vs{flex-direction:row;cursor:default;padding:6px 0}#stpftp .vs::before,#stpftp .vs2,#stpftp .hs{display:none}
  #stpftp .panes[data-tab="l"] .pane-s,#stpftp .panes[data-tab="s"] .pane-l{display:none}
  #stpftp .lower{grid-template-columns:1fr!important;height:auto}#stpftp #f-queue,#stpftp #f-log{max-height:200px}
  #stpftp .qi{grid-template-columns:1fr 70px 60px}#stpftp .qi .sp{display:none}
  #stpftp .wide{display:none}
}
/* themes (the 12 Admin styles + follow site) */
#stpftp[data-st="night"],.st-night{--card:#171E2D;--line:#2B3550;--ink:#E8EDF6;--mute:#93A0B8;--acc:#6EA8FF;--ok:#5ED6A0;--warn:#FFC35A;--bad:#FF7F8E;--accink:#0b0f17;--bg:#141a27}
#stpftp[data-st="dusk"],.st-dusk{--card:#24304F;--line:#3B4B73;--ink:#EEF1FA;--mute:#AEB8D3;--acc:#9EC1FF;--ok:#7BE0B4;--warn:#FFD27A;--bad:#FF9AA5;--accink:#0b0f17;--bg:#1f2944}
#stpftp[data-st="term"],.st-term{--card:#0A0F0A;--line:#1F3A1F;--ink:#B8F5B8;--mute:#6FAE6F;--acc:#39FF7A;--ok:#39FF7A;--warn:#FFD24A;--bad:#FF7F7F;--accink:#04140a;--bg:#090d09}
#stpftp[data-st="paper"],.st-paper{--card:#FFFBF2;--line:#E6DCC7;--ink:#2B2418;--mute:#7A6E58;--acc:#9A5B13;--ok:#2F7A3F;--warn:#A86500;--bad:#B3261E;--accink:#fff;--bg:#efe9dc}
#stpftp[data-st="sheet"],.st-sheet{--card:#F6F4EF;--line:#DDD7CA;--ink:#1D1D1B;--mute:#6B6658;--acc:#1D1D1B;--ok:#1E7A4F;--warn:#8A5A00;--bad:#B3261E;--accink:#fff;--bg:#e8e5de}
#stpftp[data-st="hc"],.st-hc{--card:#000;--line:#fff;--ink:#fff;--mute:#E0E0E0;--acc:#FFE600;--ok:#00FF85;--warn:#FFE600;--bad:#FF6B6B;--accink:#000;--bg:#000}
#stpftp[data-st="console"],.st-console{--card:#0F1318;--line:#26303B;--ink:#E6EDF3;--mute:#8592A0;--acc:#3FB8AF;--ok:#5EE6C0;--warn:#FFC857;--bad:#FF7F8E;--accink:#071012;--bg:#0d1014}
#stpftp[data-st="rack"],.st-rack{--card:#1B1C1E;--line:#3A3B3F;--ink:#E9E6DF;--mute:#9A968C;--acc:#F0A830;--ok:#7BD88F;--warn:#F0A830;--bad:#FF7F70;--accink:#1b1100;--bg:#17181a}
#stpftp[data-st="forest"],.st-forest{--card:#14261C;--line:#2C4A38;--ink:#EAF3E6;--mute:#A3BFAE;--acc:#7FD49A;--ok:#7FD49A;--warn:#F2C46D;--bad:#FF8F8F;--accink:#08180e;--bg:#112018}
#stpftp[data-st="slate"],.st-slate{--card:#E9ECEF;--line:#C9CFD6;--ink:#212529;--mute:#5C636A;--acc:#D9480F;--ok:#2B8A3E;--warn:#B35C00;--bad:#C92A2A;--accink:#fff;--bg:#dcdfe3}
#stpftp[data-st="ocean"],.st-ocean{--card:#F0FAFA;--line:#C8E6E6;--ink:#0B3B3F;--mute:#4F7376;--acc:#0B8A8F;--ok:#1E7A4F;--warn:#B86E00;--bad:#B3261E;--accink:#fff;--bg:#dff0f0}
#stpftp[data-st="plum"],.st-plum{--card:#221A2E;--line:#43355E;--ink:#F1EAFB;--mute:#B7A8CF;--acc:#E58BD1;--ok:#7DE3B8;--warn:#FFC86B;--bad:#FF8FA0;--accink:#1a0f1c;--bg:#1d1627}
#stpftp[data-st="light"],.st-light{--card:#FFFFFF;--line:#D8DEE9;--ink:#16233F;--mute:#5B6782;--acc:#2F6FED;--ok:#1E7A4F;--warn:#A86500;--bad:#C0392B;--accink:#fff;--bg:#eef1f6}
#stpftp[data-st="dark"],.st-dark{--card:#16233F;--line:#2C3B5E;--ink:#E8EDF6;--mute:#9AA6BF;--acc:#6EA8FF;--ok:#5ED6A0;--warn:#FFC35A;--bad:#FF7F8E;--accink:#0b0f17;--bg:#111b31}
#stpftp #f-lp{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px}#stpftp [hidden]{display:none!important}
#stpftp .probox{padding:1px 6px}
#stpftp .site label input,#stpftp .site label select{width:100%;min-width:0}
#stpftp{container-type:inline-size}
@container (max-width:1000px){#stpftp .pane button{padding:3px 6px;font-size:12px}#stpftp .pane .row{gap:4px}#stpftp .site{grid-template-columns:1.2fr 1.6fr 70px}#stpftp .site>button{align-self:end}#stpftp .qi{grid-template-columns:1fr 80px 70px}#stpftp .qi .sp{display:none}}
#stpftp .msg:empty{display:none}#stpftp #f-secinfo:empty{display:none}

#stpftp .probox a{color:var(--acc);font-weight:700}#stpftp .probox .upb{font-weight:800}#stpftp .probox small{font-size:11px}#stpftp .upsell{font-size:12.5px;margin:6px 0 0}#stpftp .upsell a{color:var(--acc);font-weight:700}#stpftp .upsell small{font-size:11.5px}
#stpftp .big{display:block;width:100%;margin:8px 0 2px;padding:10px 12px;font-size:15px;font-weight:800}#stpftp #f-sendwhy{margin:2px 0 0;font-size:12px}#stpftp #f-sendwhy:empty{display:none}
#stpftp .speedbar .cur{font-size:12px;opacity:.85;overflow-wrap:anywhere}#stpftp .speedbar .showf{margin-left:8px;font-size:12px;font-weight:700;color:inherit;text-decoration:underline}
#stpftp .pane-l{overflow:auto}#stpftp #f-send{position:sticky;bottom:0;z-index:2;box-shadow:0 -6px 10px var(--card)}
#stpftp .speedbar .badn{color:var(--bad);font-weight:700}
/* v2250c: local list fills its pane (no overlap), min gap before the next section, log fills its card, refresh toast */
#stpftp #f-lp:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;gap:5px}
#stpftp .panes{min-height:300px;margin-bottom:12px}
#stpftp .pane .drop{flex:none;margin-top:2px}
#stpftp .lower>section #f-queue,#stpftp .lower>section #f-log{flex:1 1 var(--bh,110px);height:auto}
.ftp-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:10001;padding:8px 16px;border-radius:999px;background:#16233F;color:#fff;font:600 13px/1.2 system-ui,sans-serif;box-shadow:0 6px 18px rgba(0,0,0,.3);pointer-events:none;opacity:0;transition:opacity .2s}
.ftp-toast.on{opacity:1}
#stpftp .pane .tbl{max-height:55vh}
/* v2280: confirm box in labelled rows + "Transferred fully" acknowledgement */
dialog.ftpbox .cf-rows{display:flex;flex-direction:column;gap:10px;margin:4px 0 2px}
dialog.ftpbox .cf-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:baseline}
dialog.ftpbox .cf-k{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.7}
dialog.ftpbox .cf-v{min-width:0;overflow-wrap:anywhere}
dialog.ftpbox .cf-full{display:block;font-size:11.5px;opacity:.65;margin-top:2px}
dialog.ftpbox .cf-list{margin:0;padding:4px 8px}
dialog.ftpbox .cf-f{display:flex;justify-content:space-between;gap:16px;padding:3px 0}
dialog.ftpbox .cf-f+.cf-f{border-top:1px dashed var(--line,#ccd)}
dialog.ftpbox .cf-f span:first-child{min-width:0;overflow-wrap:anywhere}
dialog.ftpbox .cf-f span:last-child{white-space:nowrap;opacity:.8}
dialog.ftpbox .cf-warn{margin-top:14px;padding:10px 12px;border-radius:8px;background:rgba(232,140,0,.12);border:1px solid rgba(232,140,0,.45);color:#9a5a00;font-weight:700}
dialog.ftpbox.st-dark .cf-warn{color:#ffb84d}
dialog.ftpbox .cf-warn p{margin:0}dialog.ftpbox .cf-warn p+p{margin-top:6px}
dialog.ftpbox .upsell{margin-top:10px}
dialog.ftpbox .ack{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:8px}
dialog.ftpbox .ack.good{background:rgba(46,158,106,.13);border:1px solid rgba(46,158,106,.5)}
dialog.ftpbox .ack.good .cf-k{color:#1e7a50;opacity:1}
dialog.ftpbox .ack.bad{background:rgba(232,140,0,.1);border:1px solid rgba(232,140,0,.4)}
dialog.ftpbox .ack-bad{margin-top:10px;padding:10px 12px;border-radius:8px;background:rgba(198,40,40,.1);border:1px solid rgba(198,40,40,.45);color:#b3261e;max-height:200px;overflow:auto}
dialog.ftpbox.st-dark .ack-bad{color:#ff8a80}
#stpftp .speedbar .tbar{position:relative;height:18px;border-radius:9px;background:color-mix(in srgb,var(--card) 70%,var(--ink) 10%);overflow:hidden;margin:2px 0 6px}
#stpftp .speedbar .tbar i{position:absolute;inset:0 auto 0 0;background:var(--acc);background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.25) 0 8px,transparent 8px 16px);background-size:23px 23px;animation:stp-tbar 1s linear infinite;transition:width .4s ease}
#stpftp .speedbar .tbar span{position:relative;display:block;text-align:center;font-size:12px;font-weight:700;line-height:18px;color:var(--ink);text-shadow:0 0 3px var(--card)}
@keyframes stp-tbar{to{background-position:23px 0}}
@media (prefers-reduced-motion:reduce){#stpftp .speedbar .tbar i{animation:none}}
#stpftp .ftp-mini{position:fixed;left:12px;bottom:16px;z-index:60;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 150px);min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid var(--line,#ccc);background:var(--card);color:var(--ink);font:inherit;font-size:13px;box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer;white-space:nowrap}
#stpftp .ftp-mini[hidden]{display:none}#stpftp .ftp-mini .tbar{position:relative;display:block;width:70px;height:10px;border-radius:5px;overflow:hidden;background:color-mix(in srgb,var(--card) 70%,var(--ink) 15%)}
#stpftp .ftp-mini .tbar i{position:absolute;inset:0 auto 0 0;background:var(--acc);background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.25) 0 8px,transparent 8px 16px);background-size:23px 23px;animation:stp-tbar 1s linear infinite}
/* v2610: job bar (instant acknowledgement + live progress + Cancel) */
#stpftp .job{border:1px solid var(--line);border-radius:8px;padding:5px 8px;background:color-mix(in srgb,var(--card) 85%,var(--acc) 15%);font-size:12.5px}
#stpftp .job .jt{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:4px}#stpftp .job .jt b{font-weight:700}
#stpftp .job #f-jobs{overflow-wrap:anywhere}#stpftp .job button{min-height:22px;padding:1px 10px}
#stpftp .job .tbar{position:relative;height:8px;border-radius:4px;overflow:hidden;background:color-mix(in srgb,var(--card) 70%,var(--ink) 12%)}
#stpftp .job .tbar i{position:absolute;inset:0 auto 0 0;width:0;background:var(--acc);transition:width .3s}
#stpftp .job .tbar.ind i{background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.3) 0 8px,transparent 8px 16px);background-size:23px 23px;animation:stp-tbar 1s linear infinite}
#stpftp .job.ok{background:color-mix(in srgb,var(--card) 82%,var(--ok) 18%)}#stpftp .job.ok .tbar i{background:var(--ok)}
#stpftp .job.warn{background:color-mix(in srgb,var(--card) 80%,var(--warn) 20%)}#stpftp .job.warn .tbar i{background:var(--warn)}
#stpftp .job.bad{background:color-mix(in srgb,var(--card) 80%,var(--bad) 20%)}#stpftp .job.bad .tbar i{background:var(--bad)}
@media (prefers-reduced-motion:reduce){#stpftp .job .tbar.ind i{animation:none}}
/* v2610: compact lists (rows about half as tall, small gap kept) */
#stpftp tbody td{padding:2px 7px;line-height:1.35}
#stpftp tbody input[type=checkbox]{min-height:0;height:13px;width:13px;margin:0;padding:0;vertical-align:middle}
#stpftp td.n{word-break:normal;overflow-wrap:anywhere}
/* v2610: lists start at about half height; drag the bottom-right corner to resize (remembered) */
@media (min-width:901px){
  #stpftp{min-height:0}
  #stpftp .main{flex:none}
  #stpftp .panes{flex:none;height:var(--ph,max(400px,46vh));min-height:260px;resize:vertical;overflow:hidden}
  #stpftp .pane .tbl{max-height:none}
}
/* v2610: Transfers + Log fit what is in them (no empty block), resize corner, Option C layout */
#stpftp .lower{align-items:start}
#stpftp .lower>section{gap:6px}
#stpftp .lower>section #f-queue,#stpftp .lower>section #f-log{flex:none;height:auto;min-height:0;max-height:var(--bh,140px);resize:vertical;overflow:auto}
#stpftp #f-queue>p,#stpftp #f-log>p{margin:2px 0}
#stpftp .more{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:12px;font-size:12px}
#stpftp .more .mrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#stpftp .more .mlab{min-width:78px;font-size:12px}
#stpftp .more .mi{display:inline-flex;align-items:center;gap:4px}
#stpftp .more .opt,#stpftp .more button:not(.hq){display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:2px 10px;border:1px solid var(--line);border-radius:6px;background:color-mix(in srgb,var(--card) 80%,var(--acc) 20%);cursor:pointer;font-size:12px}
#stpftp .more .opt input{min-height:0;margin:0}
#stpftp .more .warnt{color:var(--warn);font-weight:600}
#stpftp .more .mres:empty{display:none}#stpftp .more .mres{display:flex;gap:10px;flex-wrap:wrap}#stpftp .more .mres span:empty{display:none}
/* v2610: keep room for the tool while it loads (no jump of the write-up below) */
@media (min-width:901px){#stpftp:not(:has(.main)){min-height:calc(40vh + 600px)}}
#stpftp .more .opt,#stpftp .more button:not(.hq){background:color-mix(in srgb,var(--card) 92%,var(--acc) 8%)}
#stpftp .more .warnt{color:color-mix(in srgb,var(--warn) 78%,var(--ink))}#stpftp .more a.opt{color:color-mix(in srgb,var(--acc) 80%,var(--ink))}
#stpftp .tbl td.n{min-width:140px}
/* v3010d: new actions row + right-click menu */
#stpftp .f-acts{display:flex;flex-wrap:wrap;gap:6px}
.f-cm{position:fixed;z-index:9999;min-width:190px;background:var(--bg,#fff);color:var(--fg,#111);border:1px solid #c9ced6;border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.22);padding:4px 0;font-size:13px}
.f-cm button{display:block;width:100%;text-align:left;background:none;border:0;padding:7px 14px;font:inherit;color:inherit;cursor:pointer}
.f-cm button:hover,.f-cm button:focus{background:#DBEAFE;color:#111;outline:none}
.f-cm .red{color:#b71c1c;font-weight:700}.f-cm .sep{height:1px;background:#d6d9de;margin:4px 0}
#stpftp tr.dropin{outline:2px dashed #2563eb;outline-offset:-2px}
@media (prefers-color-scheme:dark){.f-cm{background:#1b1f26;color:#eee;border-color:#3a414c}}
html[data-theme=dark] .f-cm{background:#1b1f26;color:#eee;border-color:#3a414c}
