/* Direct File Transfer — keep 390px free of horizontal scroll */
.page-tool .xfer-wrap,
.page-tool .xfer-card,
.page-tool .xfer-share,
.page-tool .xfer-qr-box,
.page-tool .xfer-file-list,
.page-tool .xfer-drop{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.page-tool .tool-app,
.page-tool .xfer-wrap,
.page-tool .xfer-card{
  overflow-x:clip;
}
.xfer-wrap{padding-bottom:1.5rem}
.xfer-card{
  background:rgba(14,14,20,.88);
  border:1px solid rgba(245,243,238,.12);
  border-radius:18px;
  padding:1.25rem 1.15rem 1.4rem;
}
.xfer-kicker{
  margin:0 0 .45rem;
  color:#FFB400;
  font:600 .75rem/1.2 Inter,system-ui,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.xfer-sub{
  margin:1rem 0 .45rem;
  font:600 1.05rem/1.3 Oswald,Impact,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#F5F3EE;
}
.xfer-muted{margin:.2rem 0 .75rem;color:#A9A7A2;font-size:.95rem;line-height:1.45}
.xfer-tip{margin:.7rem 0 .85rem;color:#DCD9D2;font-size:.92rem;line-height:1.45}
.xfer-warn{
  margin:.2rem 0 .85rem;
  padding:.7rem .8rem;
  border-left:3px solid #FFB400;
  background:rgba(255,180,0,.08);
  color:#F5F3EE;
  font-size:.95rem;
  line-height:1.4;
}
.xfer-err{margin:.4rem 0 .6rem;color:#E8A0A0;font-size:.92rem;line-height:1.35}
.xfer-status{margin:.35rem 0 .7rem;color:#DCD9D2;font-size:.95rem;line-height:1.45}
.xfer-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.7rem 0 0}
.xfer-actions .btn{min-height:44px}
.xfer-check{margin:0 0 1.2rem;padding:0 0 1.1rem;border-bottom:1px solid rgba(245,243,238,.12)}
.xfer-check-list{list-style:none;margin:.7rem 0 0;padding:0}
.xfer-check-item{
  display:grid;
  grid-template-columns:1.1rem 1fr;
  gap:.7rem;
  align-items:start;
  margin:0 0 .7rem;
  padding:.7rem .75rem;
  border-radius:12px;
  border:1px solid rgba(245,243,238,.1);
  background:rgba(7,7,10,.4);
}
.xfer-dot{
  width:.85rem;height:.85rem;margin-top:.2rem;border-radius:50%;
  background:#6B6A70;box-shadow:0 0 0 3px rgba(107,106,112,.2);
}
.xfer-check-item.is-ok .xfer-dot{background:#3DDC97;box-shadow:0 0 0 3px rgba(61,220,151,.18)}
.xfer-check-item.is-warn .xfer-dot{background:#FFB400;box-shadow:0 0 0 3px rgba(255,180,0,.18)}
.xfer-check-item.is-bad .xfer-dot{background:#E85D5D;box-shadow:0 0 0 3px rgba(232,93,93,.2)}
.xfer-check-item h3{
  margin:0 0 .2rem;
  font:600 .95rem/1.3 Inter,system-ui,sans-serif;
  letter-spacing:0;
  text-transform:none;
  color:#F5F3EE;
}
.xfer-check-item p{margin:0;color:#C8C6C0;font-size:.9rem;line-height:1.4}
.xfer-net{margin-top:1rem}
.xfer-net-status{margin:.2rem 0 .65rem;font-size:.95rem;line-height:1.45;color:#DCD9D2}
.xfer-net-status.is-ok{color:#3DDC97}
.xfer-net-status.is-warn{color:#FFB400}
.xfer-net-status.is-bad{color:#E8A0A0}
.xfer-drop{
  margin:.85rem 0;
  padding:1rem .9rem;
  border:1px dashed rgba(255,180,0,.4);
  border-radius:16px;
  text-align:center;
  background:rgba(255,180,0,.04);
}
.xfer-drop.is-over{border-color:#FFB400;background:rgba(255,180,0,.12)}
.xfer-drop-title{margin:0 0 .35rem;font:600 1.05rem/1.3 Oswald,Impact,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#F5F3EE}
.xfer-file-summary{margin:.85rem 0}
.xfer-file-count{margin:0 0 .45rem;color:#FFB400;font-weight:600}
.xfer-file-list{
  list-style:none;
  margin:0;
  padding:0;
  max-height:14rem;
  overflow:auto;
}
.xfer-file-list li{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  padding:.4rem 0;
  border-bottom:1px solid rgba(245,243,238,.08);
  font-size:.9rem;
  color:#DCD9D2;
  word-break:break-word;
}
.xfer-file-list .xfer-size{flex:0 0 auto;color:#A9A7A2;white-space:nowrap}
.xfer-share{
  display:flex;align-items:center;gap:.5rem;margin:.15rem 0 .65rem;
  min-width:0;width:100%;
}
.xfer-share-link{
  flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#00D4FF;font-size:.92rem;line-height:1.3;
}
.xfer-qr-box{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  margin:.85rem auto .35rem;padding:1.15rem 1.1rem 1.05rem;
  width:100%;box-sizing:border-box;
  border:1px solid rgba(255,180,0,.35);border-radius:18px;
  background:linear-gradient(180deg,rgba(255,180,0,.08),rgba(14,14,20,.9));
}
.xfer-code-big{margin:0 0 .5rem;font:700 1.15rem/1.3 Oswald,Impact,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#F5F3EE}
.xfer-code-big strong{color:#FFB400}
.xfer-qr-help{margin:0 0 .9rem;color:#DCD9D2;font-size:.95rem;line-height:1.45;max-width:26rem;width:100%}
.xfer-qr, canvas.xfer-qr{
  display:block;margin:0 auto;width:min(220px,100%);max-width:100%;height:auto;background:#F5F3EE;border-radius:8px;
}
.xfer-save-options{margin:.6rem 0}
.xfer-radio{
  display:flex;align-items:flex-start;gap:.6rem;
  margin:.35rem 0;padding:.35rem 0;min-height:44px;
  color:#DCD9D2;font-size:.95rem;line-height:1.4;cursor:pointer;
}
.xfer-radio input{margin-top:.3rem;accent-color:#FFB400;flex:0 0 auto}
.xfer-bar{
  position:relative;height:.85rem;margin:.5rem 0 .7rem;
  border-radius:999px;background:rgba(245,243,238,.1);overflow:hidden;
}
.xfer-bar-fill{
  height:100%;width:0;
  background:linear-gradient(90deg,#FFB400,#00D4FF);
  border-radius:inherit;transition:width .2s ease;
}
.xfer-progress-file{margin:.2rem 0 .35rem;color:#F5F3EE;font-weight:600;word-break:break-word}
.xfer-progress-line{margin:0 0 .25rem;color:#DCD9D2;font-size:.95rem}
.xfer-handshake,.xfer-offer,.xfer-progress,.xfer-done{margin-top:1rem;padding-top:.9rem;border-top:1px solid rgba(245,243,238,.1)}
.unit-field input{width:100%;max-width:100%;font-size:16px;box-sizing:border-box}
@media (max-width:720px){
  .xfer-card{padding:1.05rem .9rem 1.2rem}
  .xfer-qr, canvas.xfer-qr{width:min(180px,100%)}
  .xfer-share-link{font-size:.88rem}
}
@media (max-width:430px){
  .xfer-qr-help,.xfer-muted,.xfer-tip{font-size:.92rem}
}
