:root{
  color-scheme:dark;
  --bg:#080d13;
  --panel:#101720;
  --panel2:#151e29;
  --line:#293647;
  --text:#eef4f8;
  --muted:#8ea0b3;
  --accent:#65d5ff;
  --accent2:#20b9ef;
  --good:#62d79a;
  --bad:#ff8390;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:
  radial-gradient(circle at 15% 0%,rgba(47,129,166,.14),transparent 30rem),
  var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}
button,a{ -webkit-tap-highlight-color:transparent}
.hidden{display:none!important}
.shell{width:min(860px,100%);margin:0 auto;padding:18px 14px 40px}
.brandbar{display:flex;gap:11px;align-items:center;margin:2px 0 16px}
.brandbar>div:last-child{display:grid}
.brandbar strong{font-size:.98rem}
.brandbar small{color:var(--muted);font-size:.72rem;margin-top:2px}
.brandmark{width:38px;height:38px;display:grid;place-items:center;border:1px solid #356078;border-radius:11px;background:rgba(101,213,255,.08);color:var(--accent);font-size:.76rem;font-weight:900}
.panel{border:1px solid var(--line);border-radius:22px;background:rgba(16,23,32,.95);padding:clamp(18px,4vw,34px);box-shadow:0 28px 90px rgba(0,0,0,.32)}
.hero{max-width:670px}
.eyebrow{margin:0 0 8px;color:var(--accent);font-size:.68rem;font-weight:900;letter-spacing:.12em}
h1{margin:0;font-size:clamp(2rem,6vw,3.5rem);line-height:.98;letter-spacing:-.045em}
.hero p:last-child,.receive-copy{margin:14px 0 0;color:#a9b7c6;line-height:1.55}
.drop-zone{display:grid;place-items:center;text-align:center;margin-top:24px;min-height:190px;padding:22px;border:1px dashed #3a5066;border-radius:18px;background:#0c131b;cursor:pointer;transition:.18s ease}
.drop-zone:hover,.drop-zone.drag{border-color:var(--accent2);background:rgba(101,213,255,.045)}
.drop-icon{width:46px;height:46px;display:grid;place-items:center;margin-bottom:10px;border:1px solid #355064;border-radius:14px;color:var(--accent);font-size:1.8rem}
.drop-zone strong{font-size:1rem}
.drop-zone small{margin-top:5px;color:var(--muted)}
.file-list{display:grid;gap:8px;margin-top:14px}
.file-card,.received-card{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #2a3747;border-radius:13px;background:#121a24;padding:12px 13px}
.file-card div,.received-card div{min-width:0}
.file-card strong,.received-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-card small,.received-card small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem}
.file-badge{flex:0 0 auto;border:1px solid #34576a;border-radius:999px;padding:5px 8px;color:var(--accent);font-size:.68rem;font-weight:850}

.file-card-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.remove-transfer-file{width:34px;height:34px;border:1px solid #4b3840;border-radius:9px;background:#1a1418;color:#ff9daa;font-size:1.2rem;line-height:1;cursor:pointer}
.remove-transfer-file:hover{border-color:#87505c;background:#25191e}
.handoff-status{margin:12px 0 0;border:1px solid #356c4c;border-radius:11px;background:rgba(98,215,154,.07);color:#9ce5b9;padding:10px 12px;font-size:.8rem;line-height:1.45}
.handoff-status.bad{border-color:#7a3f49;background:rgba(255,131,144,.07);color:#ffabb4}
.actions,.receiver-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.primary,.secondary,.button-link{min-height:44px;border-radius:12px;padding:0 15px;font-weight:850;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.primary{border:1px solid #53bfe8;background:linear-gradient(180deg,#6edaff,#37bde9);color:#041117}
.primary:disabled{opacity:.38;cursor:not-allowed}
.secondary{border:1px solid #334356;background:#141d27;color:#dce7ef}
.secondary.compact{min-height:38px;padding:0 11px}
.qr-panel{display:grid;justify-items:center;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.status-row,.receive-status{width:100%;display:flex;gap:10px;align-items:center}
.status-row>div,.receive-status>div{display:grid}
.status-row small,.receive-status small{margin-top:3px;color:var(--muted)}
.status-dot{width:11px;height:11px;border-radius:50%;background:#8896a6;box-shadow:0 0 0 5px rgba(136,150,166,.08)}
.status-dot.live{background:var(--accent);box-shadow:0 0 0 5px rgba(101,213,255,.1)}
.status-dot.good{background:var(--good);box-shadow:0 0 0 5px rgba(98,215,154,.1)}
.status-dot.bad{background:var(--bad);box-shadow:0 0 0 5px rgba(255,131,144,.1)}
.qr-code{display:grid;place-items:center;margin:22px 0;padding:16px;border-radius:16px;background:#fff}
.qr-code img,.qr-code canvas{display:block;max-width:100%;height:auto}
.share-link-block{width:100%;max-width:620px}
.share-link-block label{display:block;margin-bottom:6px;color:var(--muted);font-size:.7rem;font-weight:800}
.copy-row{display:grid;grid-template-columns:1fr auto;gap:7px}
.copy-row input{min-width:0;border:1px solid #304054;border-radius:11px;background:#0d141c;color:#dce6ee;padding:0 11px}
.privacy-note{max-width:620px;margin:14px 0 0;color:#75879a;font-size:.73rem;line-height:1.5;text-align:center}
.progress-track{height:8px;margin-top:22px;border-radius:999px;background:#18212c;overflow:hidden}
.progress-bar{width:0;height:100%;background:linear-gradient(90deg,var(--accent2),var(--accent));transition:width .2s ease}
.received-files{display:grid;gap:8px;margin-top:18px}
.received-card a{flex:0 0 auto;min-height:38px}
.error-card{border:1px solid #6e3b46;border-radius:14px;background:rgba(255,131,144,.05);padding:16px}
.error-card strong{color:#ffabb4}
.error-card p{color:#c4a1a6;line-height:1.5}
footer{display:grid;justify-items:center;gap:6px;padding:16px 4px 0;color:#617386;font-size:.68rem;text-align:center}
footer a{color:#8fa8bc;text-decoration:none}
footer a:hover{text-decoration:underline}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);max-width:min(520px,calc(100vw - 24px));border:1px solid #334558;border-radius:12px;background:#131c26;color:#e8f0f6;padding:10px 13px;box-shadow:0 14px 50px rgba(0,0,0,.4);font-size:.8rem}
@media(max-width:600px){
  .shell{padding:10px 9px 26px}
  .brandbar{margin:2px 5px 10px}
  .panel{border-radius:17px;padding:17px 14px}
  h1{font-size:2.2rem}
  .drop-zone{min-height:150px;margin-top:18px}
  .qr-code{padding:10px;width:min(280px,100%)}
  .qr-code img,.qr-code canvas{width:100%!important;height:auto!important}
  .file-card,.received-card{align-items:flex-start}
  .receiver-actions>*{width:100%}
}
