:root{
  --bg:#F5F9FC;--surface:#fff;--surface2:#f8fafc;--text:#0B1220;--muted:#667085;
  --border:#e4e9f0;--primary:#0072CE;--primary2:#3BA8FF;--primarySoft:#E8F4FF;
  --green:#15803d;--greenSoft:#eefbf3;--amber:#a15c00;--amberSoft:#fff9eb;
  --red:#b42318;--redSoft:#fff2f0;--shadow:0 20px 60px rgba(15,23,42,.08)
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:linear-gradient(180deg,#fff 0,#f8fafc 310px,#F5F9FC 100%);
  color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.45
}
button,input,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.shell{width:min(100%,1180px);margin:0 auto;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.93);backdrop-filter:blur(18px);border-bottom:1px solid rgba(228,233,240,.85)}
.nav{height:64px;display:flex;align-items:center;justify-content:space-between}
.brand,.brand:link,.brand:visited,.brand:hover,.brand:active{text-decoration:none!important;color:var(--text)!important;display:flex;align-items:center;gap:7px;font-weight:850;letter-spacing:-.03em}
.brand>span:last-child{color:var(--primary)}
.brand-logo{display:block;width:126px!important;height:auto!important;max-height:39px!important;flex:0 0 auto}
.mark{width:32px;height:32px;border-radius:10px;background:var(--text);color:#fff;display:grid;place-items:center;font-size:12px}
.secure-mini{font-size:12px;color:var(--muted);font-weight:700}
.main-shell{padding-top:34px;padding-bottom:34px}
.app-shell{width:100%}
.panel{width:100%}
.intro{max-width:760px;margin:0 auto 26px;text-align:center}
.eyebrow{display:inline-block;color:var(--primary);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.intro h1{font-size:clamp(38px,5vw,62px);line-height:1;letter-spacing:-.055em;margin:0}
.intro p{margin:12px 0 0;color:var(--muted);font-size:15px}
.stage-card,.sharebox,.receive-card,.download-panel,.trust-panel{
  background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:0 10px 30px rgba(15,23,42,.04)
}

.sender-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start;max-width:980px;margin:0 auto
}
.stage-card{padding:22px}
.stage-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.stage-head h2{margin:0;font-size:20px;letter-spacing:-.025em}
.stage-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.modegrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.modebtn{
  min-height:76px;border:1px solid var(--border);background:#fff;border-radius:16px;padding:14px;text-align:left;color:var(--text)
}
.modebtn.active{border-color:#8fb6ff;background:var(--primarySoft);box-shadow:0 0 0 2px rgba(23,105,245,.04)}
.modebtn strong{display:block;font-size:14px}
.modebtn span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.filepick{
  margin-top:12px;border:1.5px dashed #bdc9d8;border-radius:18px;background:var(--surface2);
  min-height:190px;padding:26px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center
}
.filepick.drag{border-color:var(--primary);background:var(--primarySoft)}

.pick-icon{width:44px;height:44px;border-radius:13px;background:#fff;border:1px solid var(--border);display:grid;place-items:center;font-size:24px;color:var(--primary);margin-bottom:10px}
.filepick>strong{font-size:16px}
.filepick>span{font-size:12px;color:var(--muted);margin-top:3px}
.filepick .btn{margin-top:14px}

.fileline{display:none;margin-top:12px;padding:13px;border:1px solid var(--border);border-radius:16px;background:#fff;align-items:center;gap:12px}
.fileline.show{display:flex}
.fileico{width:46px;height:46px;flex:0 0 auto;border-radius:14px;background:var(--primarySoft);display:grid;place-items:center;font-size:20px}
.fileinfo{min-width:0;flex:1}
.fileinfo strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fileinfo span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.clean-chip{display:none;padding:6px 9px;border-radius:999px;background:var(--greenSoft);color:var(--green);font-size:10px;font-weight:800}
.fileline.show .clean-chip.active{display:inline-flex}

.privacy{margin-top:10px;padding:12px 13px;border:1px solid #cfe0ff;background:var(--primarySoft);border-radius:14px}
.hidden-soft{opacity:.82}
.privacyrow{display:flex;align-items:center;justify-content:space-between;gap:14px}
.privacy strong{font-size:12px}.privacy p{font-size:11px;color:var(--muted);margin:2px 0 0}
.switch{position:relative;width:44px;height:25px;flex:0 0 auto}.switch input{display:none}
.slider{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.15s}
.slider:after{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(15,23,42,.2);transition:.15s}
.switch input:checked+.slider{background:var(--primary)}.switch input:checked+.slider:after{transform:translateX(19px)}
.textinput{width:100%;min-height:160px;margin-top:12px;border:1px solid var(--border);border-radius:16px;padding:14px;resize:vertical;outline:none;color:var(--text)}
.textinput:focus{border-color:#8fb6ff;box-shadow:0 0 0 3px rgba(23,105,245,.07)}

.primary-zone{margin-top:14px}
.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:800;color:#fff;background:var(--text)}
.btn.primary{background:linear-gradient(180deg,var(--primary),var(--primary2))}
.btn.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}
.btn.big{width:100%;min-height:54px;font-size:16px}
.btn:disabled{opacity:.43;cursor:not-allowed}
.primary-action{box-shadow:0 8px 20px rgba(23,105,245,.18)}
.actions{display:flex;gap:9px;flex-wrap:wrap}

.progresswrap{display:none;margin-top:13px}.progresswrap.show{display:block}
.progress{height:9px;border-radius:999px;background:#e9eef5;overflow:hidden}
.progress i{display:block;height:100%;width:0;border-radius:999px;background:var(--primary)}
.progmeta{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:11px;color:var(--muted)}
.compact-status{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:11px;font-size:11px;color:var(--muted)}
.compact-status .dot{width:7px;height:7px;border-radius:50%;background:#98a2b3}
.status.good{color:var(--green)}.status.good .dot{background:var(--green)}
.status.warn{color:var(--amber)}.status.warn .dot{background:var(--amber)}
.status.bad{color:var(--red)}.status.bad .dot{background:var(--red)}

.trust-panel{padding:18px;display:flex;flex-direction:column;gap:16px}
.trust-item{display:flex;gap:11px;align-items:flex-start}
.trust-item>span{width:34px;height:34px;border-radius:11px;background:var(--surface2);display:grid;place-items:center;flex:0 0 auto}
.trust-item strong{display:block;font-size:12px}
.trust-item small{display:block;color:var(--muted);font-size:10px;margin-top:2px}

.share-stage{max-width:980px;margin:18px auto 0}
.sharebox{display:none;padding:24px}
.sharebox.show{display:block}
.share-success{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.success-mark{width:44px;height:44px;border-radius:50%;background:var(--greenSoft);color:var(--green);display:grid;place-items:center;font-size:22px;font-weight:900;flex:0 0 auto}
.share-success h2{margin:0;font-size:22px;letter-spacing:-.03em}
.share-success p{margin:4px 0 0;color:var(--muted);font-size:12px}
.share-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:center}
.qr-wrap{display:grid;place-items:center}
.qr{display:grid;place-items:center}
.qr canvas{width:210px!important;height:210px!important;border-radius:14px;border:1px solid var(--border);padding:8px;background:#fff}
.share-actions{display:flex;flex-direction:column;gap:10px}
.timer-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:7px 11px;border-radius:999px;background:var(--primarySoft);color:var(--primary);font-size:12px;font-variant-numeric:tabular-nums}
.tiny-note{color:var(--muted);font-size:10px;margin:0}

.receiver-panel{max-width:980px;margin:0 auto}
.receiver-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:stretch}
.receive-card{text-align:center;padding:32px 26px}
.receive-icon{width:82px;height:82px;border-radius:24px;background:var(--primarySoft);display:grid;place-items:center;font-size:35px;margin:0 auto 16px}
.receive-card h2{font-size:24px;line-height:1.2;letter-spacing:-.03em;margin:0;overflow-wrap:anywhere}
.receive-card>p{margin:8px 0 0;color:var(--muted);font-size:13px}
.encrypted-badge{display:inline-flex;margin-top:16px;padding:8px 12px;border-radius:999px;background:var(--greenSoft);color:var(--green);font-size:12px;font-weight:800}
.warning{margin-top:14px;padding:11px 12px;border-radius:12px;background:var(--amberSoft);color:var(--amber);font-size:11px;text-align:left}
.previewtext{margin-top:14px;padding:13px;border-radius:13px;background:var(--surface2);border:1px solid var(--border);font-size:13px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.download-panel{padding:22px;display:flex;flex-direction:column;justify-content:center}
.download-primary{min-height:60px;font-size:18px;box-shadow:0 10px 24px rgba(23,105,245,.2)}
.receiver-timer-chip{margin:14px auto 0}
.text-actions{margin-top:0}
.receiver-progress{margin-top:14px}
.receiver-status{min-height:24px}
.success{display:none}.success.show{display:block}
.receive-success{text-align:center;margin-top:14px;padding:14px;border:1px solid #ccebd7;border-radius:15px;background:var(--greenSoft)}
.receive-success strong{display:block;color:var(--green);font-size:13px}
.receive-success span{display:block;color:#496653;font-size:11px;margin-top:2px}
.delete-note{text-align:center;color:var(--muted);font-size:10px;margin:14px 0 0}

.privacy-details{max-width:980px;margin:22px auto 0;border-top:1px solid var(--border);color:var(--muted);font-size:11px}
.privacy-details summary{cursor:pointer;list-style:none;text-align:center;padding:16px 8px;font-weight:700;color:#7a8495}
.privacy-details summary::-webkit-details-marker{display:none}
.privacy-details summary:after{content:"  ⌄";font-size:11px}
.privacy-details[open] summary:after{content:"  ⌃"}
.privacy-details div{max-width:760px;margin:0 auto;padding:0 10px 12px}
.privacy-details p{margin:7px 0}
footer{text-align:center;color:#98a2b3;font-size:10px;padding:12px 0 max(28px,env(safe-area-inset-bottom))}
.hidden{display:none!important}

@media(max-width:820px){
  .shell{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .main-shell{padding-top:14px}
  .nav{height:58px}
  .secure-mini{font-size:10px}
  .intro{margin:16px auto 18px}
  .eyebrow{display:none}
  .intro h1{font-size:34px}
  .intro p{font-size:12px;margin-top:7px}
  .sender-layout,.receiver-layout{display:block}
  .trust-panel{display:none}
  .stage-card{padding:13px;border-radius:18px}
  .stage-head{display:none}
  .modegrid{gap:8px}
  .modebtn{min-height:64px;padding:11px}
  .modebtn strong{font-size:12px}.modebtn span{font-size:10px}
  .filepick{min-height:150px;padding:18px 12px}
  .filepick .btn{margin-top:12px}
  .privacy{padding:10px 11px}
  .privacy p{display:none}
  .clean-chip{font-size:9px;padding:5px 7px}
  .share-stage{margin-top:14px}
  .sharebox{padding:18px;border-radius:18px}
  .share-success{justify-content:center;text-align:left;margin-bottom:14px}
  .share-success h2{font-size:20px}
  .share-layout{display:block}
  .qr canvas{width:56vw!important;height:56vw!important;max-width:180px!important;max-height:180px!important}
  .share-actions{margin-top:12px}
  .timer-chip{margin-left:auto;margin-right:auto}
  .tiny-note{text-align:center}
  .receiver-layout{display:block}
  .receive-card{padding:24px 16px;border-radius:18px}
  .receive-icon{width:70px;height:70px;font-size:30px}
  .receive-card h2{font-size:21px}
  .download-panel{margin-top:14px;padding:14px;border-radius:18px}
  .download-primary{min-height:58px}
}

@media(max-width:480px){
  .shell{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
  .nav{height:54px}
  .mark{width:29px;height:29px}
  .brand-logo{width:108px!important;max-height:34px!important}
  .brand{font-size:14px}
  .secure-mini{font-size:9px}
  .intro h1{font-size:32px}
  .modegrid{grid-template-columns:1fr 1fr}
  .fileline{padding:11px}
  .fileico{width:42px;height:42px}
  .btn.big{min-height:52px;font-size:15px}
  .receive-card{padding:22px 14px}
}

.brand *, .brand strong, .brand span{
  text-decoration:none!important;
  border-bottom:0!important;
}

@media(max-width:820px){
  .trust-panel{display:none!important}
}
.trust-item div{min-width:0}
.trust-item strong,.trust-item small{line-height:1.35}

/* V4.3.2 hard mobile override */
.brand,.brand:link,.brand:visited,.brand:hover,.brand:active,
.brand *, .brand strong, .brand span{
  text-decoration:none!important;
  -webkit-text-decoration:none!important;
  text-decoration-line:none!important;
  border-bottom:0!important;
}
@media screen and (max-width:820px){
  .trust-panel{display:none!important}
  .stage-head{display:none!important}
  .eyebrow{display:none!important}
  .sender-layout,.receiver-layout,.share-layout{display:block!important}
}

/* V4.3.3 friendly unavailable / expired state */
.unavailable-card{
  max-width:620px;margin:0 auto;text-align:center;background:var(--surface);
  border:1px solid var(--border);border-radius:24px;padding:38px 28px;
  box-shadow:0 10px 30px rgba(15,23,42,.04)
}
.unavailable-icon{
  width:76px;height:76px;margin:0 auto 16px;border-radius:24px;
  display:grid;place-items:center;background:var(--primarySoft);font-size:34px
}
.unavailable-card h2{margin:0;font-size:27px;line-height:1.15;letter-spacing:-.035em}
.unavailable-card p{max-width:440px;margin:10px auto 0;color:var(--muted);font-size:14px}
.unavailable-action{
  display:flex!important;align-items:center;justify-content:center;
  max-width:320px;margin:24px auto 0;text-decoration:none!important
}
.unavailable-note{display:block;margin-top:12px;color:#98a2b3;font-size:10px}
@media(max-width:820px){
  .unavailable-card{padding:30px 18px;border-radius:20px}
  .unavailable-icon{width:68px;height:68px;border-radius:21px;font-size:30px}
  .unavailable-card h2{font-size:24px}
  .unavailable-card p{font-size:13px}
}

/* V4.3.4 link fallback polish */
.unavailable-card .btn{min-height:54px}
.unavailable-card:focus{outline:none}
@media(max-width:820px){
  .unavailable-card{margin-top:8px}
  .unavailable-action{width:100%;max-width:none}
}

/* V4.3.5 create-another flow */
.new-drop-action{
  width:100%;
  min-height:46px;
  background:transparent;
  color:var(--primary);
  border:1px solid #cfe0ff;
  font-size:13px;
}
.new-drop-action:hover{background:var(--primarySoft)}
@media(max-width:820px){
  .new-drop-action{min-height:48px;font-size:13px}
}

/* V4.3.6 success flow */
.qr-caption{
  display:block;
  text-align:center;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
}
.sender-complete .sender-layout{
  display:none!important;
}
.sender-complete .intro{
  margin-bottom:18px;
}
.sender-complete .intro h1{
  margin-bottom:0;
}
.sender-complete .intro p{
  display:none;
}

/* Success screen should feel like a separate, focused state. */
.sender-complete .share-stage{
  margin-top:0!important;
}
.sender-complete .sharebox{
  animation:dropReadyIn .18s ease-out;
}
@keyframes dropReadyIn{
  from{opacity:.4;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

@media(max-width:820px){
  /* On phones actions matter more than QR scanning. */
  .share-layout{
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
  }
  .share-actions{
    order:1;
    width:100%;
  }
  .qr-wrap{
    order:2;
    width:100%;
  }
  .qr{
    max-width:190px!important;
    margin:0 auto!important;
  }
  .qr canvas,.qr img{
    max-width:190px!important;
    height:auto!important;
  }
  .share-success{
    margin-bottom:18px!important;
  }
  .sender-complete .intro{
    display:none!important;
  }
  .sender-complete .share-stage{
    padding-top:8px!important;
  }
  .new-drop-action{
    margin-top:2px;
  }
}

/* V4.3.7 robust receiver terminal states */
.receiver-layout.hidden,
.receiver-content.hidden,
#receiverContent.hidden,
#receiverUnavailable.hidden{
  display:none!important;
}
.receiver-panel.unavailable-state #receiverContent{
  display:none!important;
}
.receiver-panel.unavailable-state #receiverUnavailable{
  display:block!important;
}
.receiver-panel.unavailable-state .receiver-intro{
  margin-bottom:16px;
}
.receiver-panel.unavailable-state .receiver-intro p{
  display:none!important;
}
.receiver-panel.unavailable-state .unavailable-card{
  margin-top:0;
}
@media(max-width:820px){
  .receiver-layout.hidden,
  #receiverContent.hidden,
  #receiverUnavailable.hidden{
    display:none!important;
  }
  .receiver-panel.unavailable-state #receiverContent{
    display:none!important;
  }
  .receiver-panel.unavailable-state #receiverUnavailable{
    display:block!important;
  }
  .receiver-panel.unavailable-state .receiver-intro{
    margin:0 0 14px!important;
  }
  .receiver-panel.unavailable-state .receiver-intro h1{
    font-size:34px!important;
    line-height:1.05!important;
  }
  .receiver-panel.unavailable-state .unavailable-card{
    padding:28px 18px 24px!important;
  }
}

/* V4.3.8 selected-file actions */
.file-actions{display:flex;gap:6px;flex:0 0 auto}
.file-action{
  min-height:34px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;
  background:#fff;color:var(--primary);font:inherit;font-size:10px;font-weight:800;cursor:pointer
}
.file-action:hover{background:var(--primarySoft);border-color:#cfe0ff}
.file-action.remove{color:#b42318}
.file-action.remove:hover{background:#fff5f4;border-color:#f5c2bd}
@media(max-width:820px){
  .fileline{flex-wrap:wrap}
  .file-actions{width:100%;padding-left:58px;margin-top:2px}
  .file-action{flex:1;min-height:38px;font-size:11px}
}

/* V4.3.9 share UX */
.share-actions .btn{white-space:nowrap}
@media(max-width:420px){
  .share-actions .btn{font-size:15px}
}

/* V4.3.10 smoother, truthful progress */
.progress i{
  transition:width .28s linear;
  will-change:width;
}
.progresswrap.show .progress i{
  min-width:2px;
}
#uploadStatusText{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* V4.4.0 compact capability links: no visual layout change required. */

/* V4.5.0 expiry selector */
.expiry-box{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff}
.expiry-head strong{display:block;font-size:12px}
.expiry-head span{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.expiry-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}
.expiry-option{min-height:44px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);font-size:12px;font-weight:800}
.expiry-option.active{border-color:#7ea9ff;background:var(--primarySoft);color:var(--primary);box-shadow:0 0 0 2px rgba(23,105,245,.05)}
.one-time-note{margin-top:10px;padding:10px 11px;border-radius:13px;background:var(--surface2);display:flex;gap:9px;align-items:flex-start}
.one-time-note>span{width:28px;height:28px;border-radius:9px;background:#fff;display:grid;place-items:center;flex:0 0 auto}
.one-time-note strong{display:block;font-size:11px}
.one-time-note small{display:block;color:var(--muted);font-size:9.5px;line-height:1.35;margin-top:2px}
@media(max-width:820px){
  .expiry-box{padding:11px;margin-top:11px}
  .expiry-head span{display:none}
  .expiry-options{gap:6px;margin-top:8px}
  .expiry-option{min-height:42px;padding:8px 6px;font-size:11px}
  .one-time-note{padding:9px}
  .one-time-note small{font-size:9px}
}

/* V4.5.2: full clickable file area */
.filepick{
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .16s ease, background .16s ease, transform .08s ease;
}
.filepick:hover{
  border-color:#8fb2f8;
  background:#f7faff;
}
.filepick:active{transform:scale(.998)}
.filepick:focus-visible{
  outline:3px solid rgba(47,109,246,.22);
  outline-offset:3px;
  border-color:#5f92f4;
}
/* The parent is the single interactive target. */


/* Six expiry presets: 3 columns × 2 rows on mobile and desktop. */
.expiry-options{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.expiry-option{
  min-width:0;
}
@media(max-width:820px){
  .filepick:hover{background:inherit}
  .filepick:active{background:#f7faff}
  .expiry-options{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .expiry-option{font-size:10.5px!important;padding:7px 4px!important}
}

/* V4.5.3 — native full-area file picker */
.filepick{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.file-input-overlay{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  cursor:pointer!important;
  z-index:10!important;
  font-size:100px!important; /* Safari/iOS keeps the native input tappable */
}
.filepick:focus-within{
  outline:3px solid rgba(47,109,246,.20);
  outline-offset:2px;
  border-color:#74a3ff;
}

/* Compact mobile layout: keep the main workflow in one viewport where practical */
@media(max-width:820px){
  .topbar{
    min-height:66px!important;
    padding:10px 14px!important;
  }
  .brand-mark{width:42px!important;height:42px!important}
  .brand strong{font-size:18px!important}
  .brand span{font-size:17px!important}
  .secure-mini{font-size:10px!important}

  .sender-panel{
    padding-top:12px!important;
  }
  .intro{
    margin:0 0 10px!important;
  }
  .intro h1{
    font-size:32px!important;
    line-height:1.05!important;
  }
  .intro p{
    font-size:13px!important;
    margin-top:5px!important;
  }

  .composer{
    padding:10px!important;
    border-radius:18px!important;
  }
  .mode-tabs{
    gap:6px!important;
    margin-bottom:8px!important;
  }
  .mode-tab{
    min-height:54px!important;
    padding:9px 10px!important;
    border-radius:14px!important;
  }
  .mode-tab strong{font-size:13px!important}
  .mode-tab span{font-size:10px!important;margin-top:2px!important}

  .filepick{
    min-height:145px!important;
    padding:16px 12px!important;
    border-radius:16px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
  }
  .pick-icon{
    width:48px!important;
    height:48px!important;
    font-size:29px!important;
    margin-bottom:2px!important;
  }
  .filepick strong{font-size:17px!important}
  .filepick span{font-size:10.5px!important}
  .filepick .btn{display:none!important}

  .fileline{
    min-height:58px!important;
    padding:7px 9px!important;
    margin-top:8px!important;
  }
  .fileico{width:38px!important;height:38px!important}
  .fileinfo strong{font-size:11px!important}
  .fileinfo span{font-size:9px!important}
  .file-action{min-height:32px!important;padding:5px 7px!important;font-size:9px!important}

  .privacy{
    min-height:52px!important;
    padding:8px 10px!important;
    margin-top:8px!important;
    border-radius:14px!important;
  }
  .privacy strong{font-size:12px!important}
  .privacy span,.privacy small{font-size:9px!important}

  .expiry-box{
    margin-top:8px!important;
    padding:9px!important;
    border-radius:15px!important;
  }
  .expiry-head strong{font-size:11px!important}
  .expiry-options{
    gap:5px!important;
    margin-top:6px!important;
  }
  .expiry-option{
    min-height:36px!important;
    padding:5px 3px!important;
    border-radius:11px!important;
    font-size:10px!important;
  }
  .one-time-note{
    margin-top:6px!important;
    padding:7px 8px!important;
    gap:7px!important;
  }
  .one-time-note>span{
    width:25px!important;height:25px!important;
  }
  .one-time-note strong{font-size:10px!important}
  .one-time-note small{font-size:8.5px!important;line-height:1.25!important}

  .primary-zone{
    margin-top:8px!important;
  }
  #createDrop{
    min-height:52px!important;
    font-size:16px!important;
    border-radius:15px!important;
  }
  #senderStatus{
    margin-top:5px!important;
    font-size:9px!important;
  }

  .trust-panel{display:none!important}
  .privacy-details{margin-top:10px!important}
  footer{margin-top:10px!important}

  /* Browsers with a short visible viewport get an even denser compose state. */
  @media(max-height:760px){
    .intro h1{font-size:28px!important}
    .intro p{display:none!important}
    .filepick{min-height:122px!important;padding:10px!important}
    .pick-icon{width:42px!important;height:42px!important}
    .one-time-note small{display:none!important}
    .expiry-option{min-height:33px!important}
  }
}

/* V4.5.5 — WhatsApp-compatible share preview delivery */
.file-input-native{
  position:fixed!important;
  left:-9999px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
#fileComposer.has-file #fileDrop{
  display:none!important;
}
#fileComposer.has-file #selectedFile{
  margin-top:0!important;
}

/* Labels styled as buttons must behave like controls. */
.file-action.replace{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  text-decoration:none!important;
  user-select:none;
  -webkit-user-select:none;
}

/* Old overlay is no longer used. */
.file-input-overlay{display:none!important}

/* Compact selected-state card */
@media(max-width:820px){
  #fileComposer.has-file{
    padding-top:0!important;
  }
  #fileComposer.has-file #selectedFile{
    min-height:66px!important;
    padding:8px 9px!important;
    margin-top:0!important;
    border-radius:14px!important;
  }
  #fileComposer.has-file .fileico{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  #fileComposer.has-file .fileinfo{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  #fileComposer.has-file .fileinfo strong{
    font-size:11px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #fileComposer.has-file .fileinfo span{
    font-size:9px!important;
  }
  #fileComposer.has-file .clean-chip{
    font-size:8.5px!important;
    padding:4px 6px!important;
  }
  #fileComposer.has-file .file-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    margin-top:5px!important;
  }
  #fileComposer.has-file .file-action{
    min-height:32px!important;
    padding:5px 6px!important;
    font-size:9.5px!important;
    border-radius:10px!important;
  }

  /* Once selected, recover the vertical space immediately. */
  #fileComposer.has-file + .privacy,
  #fileComposer.has-file ~ .privacy{
    margin-top:7px!important;
  }
}


/* V5.1 secure inline preview */
.file-preview{margin-top:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface2);overflow:hidden;text-align:left}
.file-preview.previewtext{padding:13px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}
.inline-preview-media{display:block;width:100%;max-height:460px;object-fit:contain;background:#0b1020}
.inline-preview-audio{display:block;width:100%;padding:14px;background:var(--surface2)}
.inline-preview-frame{display:block;width:100%;height:520px;border:0;background:#fff}
.file-fallback-preview{display:flex;flex-direction:column;gap:6px;padding:18px;text-align:left}
.file-fallback-preview strong{font-size:14px;color:var(--text)}
.file-fallback-preview span,.preview-hint{font-size:11px;color:var(--muted);line-height:1.45}
.preview-hint{margin:10px 0 0;text-align:left}
.file-preview-actions{margin-top:12px;display:flex;flex-direction:column;gap:10px}
@media(max-width:560px){.inline-preview-frame{height:420px}.inline-preview-media{max-height:360px}}

/* V5.1.3 — mobile receive choice and action bar */
.receive-choice{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.receive-choice.hidden{display:none}
.file-preview-actions{position:sticky;bottom:12px;padding:10px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);box-shadow:0 14px 32px rgba(20,31,53,.12)}
.file-preview-actions .btn.hidden{display:none}
.btn.ghost{background:transparent;color:var(--muted);border:1px solid transparent;box-shadow:none}
.btn.ghost:hover{border-color:var(--border);color:var(--text)}
@media(max-width:560px){
  .download-panel{position:static}
  .file-preview-actions{position:fixed;left:14px;right:14px;bottom:14px;z-index:30;margin-top:0}
  .file-preview-actions:not(.hidden)+.text-actions{margin-bottom:90px}
  .file-preview{margin-bottom:112px}
}

/* V5.1.4 — Premium mobile-first receive experience */
.receiver-panel{max-width:940px}
.receiver-panel .receiver-intro{display:none}
.receiver-layout{grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.receive-card,.download-panel{border-color:rgba(214,221,232,.9);box-shadow:0 18px 54px rgba(15,23,42,.07)}
.receive-card{padding:18px;text-align:left;overflow:hidden}
.receive-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center}
.receive-icon{width:58px;height:58px;margin:0;border-radius:18px;background:linear-gradient(145deg,#edf5ff,#e4eeff);color:#1769f5;font-size:11px;font-weight:900;letter-spacing:.05em;border:1px solid rgba(23,105,245,.08)}
.receive-icon span{display:block}
.receive-copy{min-width:0}
.receive-private-line{display:flex;align-items:center;gap:6px;color:#7c8798;font-size:10px;font-weight:800;letter-spacing:.02em}
.receive-private-line>span{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.08)}
.receive-card h2{font-size:20px;line-height:1.15;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em}
.receive-card .receive-copy>p{margin:5px 0 0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.encrypted-badge{margin:0;padding:7px 10px;background:#f2fbf5;color:#16803d;border:1px solid #dff2e5;font-size:10px;gap:5px;align-items:center}
.encrypted-badge span{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#dff5e6;font-size:9px}
.download-panel{padding:16px;background:rgba(255,255,255,.86);backdrop-filter:blur(18px)}
.receive-choice{margin:0}
.receive-choice-heading{font-size:12px;font-weight:850;letter-spacing:-.01em;margin:1px 0 10px;color:#344054}
.receive-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.receive-action{position:relative;min-height:132px;border-radius:22px;padding:15px;border:1px solid var(--border);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;background:#fff;color:var(--text);overflow:hidden}
.receive-action:active{transform:scale(.98)}
.receive-action:focus-visible{outline:3px solid rgba(23,105,245,.18);outline-offset:2px}
.receive-action-primary{background:linear-gradient(155deg,#2476ff 0%,#1769f5 52%,#0d58df 100%);border-color:transparent;color:#fff;box-shadow:0 12px 26px rgba(23,105,245,.24)}
.receive-action-secondary{background:linear-gradient(180deg,#fff,#fbfcfe)}
.receive-action-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(23,105,245,.08);color:#1769f5}
.receive-action-primary .receive-action-icon{background:rgba(255,255,255,.16);color:#fff}
.receive-action-icon svg,.preview-action-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.receive-action-copy{display:flex;flex-direction:column;gap:2px;width:100%}
.receive-action-copy strong{font-size:15px;letter-spacing:-.02em}
.receive-action-copy small{font-size:9.5px;color:#7b8798;font-weight:650;line-height:1.25}
.receive-action-primary .receive-action-copy small{color:rgba(255,255,255,.74)}
.receive-action.is-loading{pointer-events:none;opacity:.72}
.receive-action.is-loading:after{content:"";position:absolute;right:14px;top:14px;width:17px;height:17px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:nvSpin .75s linear infinite}
@keyframes nvSpin{to{transform:rotate(360deg)}}
.receive-choice-note{margin:10px 2px 0;color:#8b95a5;font-size:9.5px;line-height:1.4}
.receiver-timer-chip{margin:13px auto 0;background:#f5f8fd;color:#5d6b7e;border:1px solid #e8edf4;padding:6px 10px;font-size:10px}
.receiver-status{font-size:10px;margin-top:9px}
.delete-note{margin-top:10px;font-size:9px;color:#97a0af}
.receive-success{margin-top:10px;padding:9px 10px;border-radius:12px;background:#f4fbf6;border-color:#e0f1e5;text-align:left}
.receive-success strong{font-size:10.5px}
.receive-success span{font-size:9.5px;line-height:1.35}

/* Immersive preview mode */
.receiver-panel.preview-mode{max-width:820px}
.receiver-panel.preview-mode .receiver-layout{grid-template-columns:1fr;gap:10px}
.receiver-panel.preview-mode .receive-card{padding:0;border-radius:28px;background:#080b12;border-color:#080b12;box-shadow:0 24px 70px rgba(5,10,20,.22)}
.receiver-panel.preview-mode .receive-summary{padding:12px 14px;background:rgba(255,255,255,.98);border-bottom:1px solid rgba(229,234,241,.92)}
.receiver-panel.preview-mode .receive-icon{width:44px;height:44px;border-radius:14px;font-size:9px}
.receiver-panel.preview-mode .receive-card h2{font-size:15px}
.receiver-panel.preview-mode .receive-copy>p{font-size:9.5px;margin-top:3px}
.receiver-panel.preview-mode .receive-private-line{display:none}
.receiver-panel.preview-mode .encrypted-badge{padding:5px 8px;font-size:9px}
.receiver-panel.preview-mode .encrypted-badge span{display:none}
.file-preview{margin:0;border:0;border-radius:0;background:#080b12;overflow:hidden;text-align:left}
.file-preview.previewtext{margin:0;padding:22px;background:#111722;color:#edf2f8;max-height:min(68vh,640px);border:0;border-radius:0;font-size:13px;line-height:1.6}
.inline-preview-media{width:100%;max-height:min(72vh,720px);min-height:280px;object-fit:contain;background:#080b12}
.inline-preview-audio{width:100%;padding:28px 18px;background:#111722}
.inline-preview-frame{width:100%;height:min(72vh,720px);background:#fff}
.file-fallback-preview{min-height:320px;justify-content:center;align-items:center;text-align:center;background:#111722;color:#eaf0f8;padding:28px}
.file-fallback-preview strong{color:#fff;font-size:16px}
.file-fallback-preview span{max-width:340px;color:#9aa8ba;font-size:11px}
.preview-hint{margin:0;padding:10px 14px;text-align:center;background:#0f141d;color:#9ba8b9;font-size:9.5px;border-top:1px solid rgba(255,255,255,.05)}
.receiver-panel.preview-mode .download-panel{margin:0;padding:8px 0 0;background:transparent;border:0;box-shadow:none;backdrop-filter:none}
.receiver-panel.preview-mode .receiver-timer-chip{display:none}
.receiver-panel.preview-mode .delete-note{display:none}
.receiver-panel.preview-mode .receive-success{display:inline-flex;align-items:center;gap:5px;margin:4px auto 0;padding:6px 9px;border-radius:999px;width:max-content;max-width:100%;background:#f4fbf6}
.receiver-panel.preview-mode .receive-success strong{font-size:9px;white-space:nowrap}
.receiver-panel.preview-mode .receive-success span{display:none}
.receiver-panel.preview-mode .receiver-status{margin:5px 0 0;min-height:18px}

/* Compact native-style preview action dock */
.file-preview-actions{position:sticky;bottom:12px;z-index:35;margin:0 auto;padding:9px 13px;display:flex;justify-content:center;align-items:flex-start;gap:20px;width:max-content;max-width:100%;border:1px solid rgba(222,228,236,.9);border-radius:24px;background:rgba(255,255,255,.88);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);box-shadow:0 18px 48px rgba(15,23,42,.16)}
.preview-action{min-width:58px;border:0;background:transparent;color:#344054;padding:0;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;font-weight:750}
.preview-action-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#f1f4f8;color:#344054;border:1px solid #e6eaf0;transition:transform .14s ease,background .14s ease}
.preview-action:active .preview-action-icon{transform:scale(.94)}
.preview-action-save .preview-action-icon{background:linear-gradient(155deg,#2476ff,#0f5ae8);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(23,105,245,.2)}
.preview-action.used .preview-action-icon{background:#edf7f0;color:#16803d;border-color:#dcefe2;box-shadow:none}
.preview-action:disabled{opacity:.68;cursor:default}
.preview-action.hidden{display:none!important}
.preview-action-label{line-height:1}

@media(max-width:820px){
  .receiver-panel{max-width:100%}
  .receiver-layout{display:block}
  .receive-card{padding:14px;border-radius:22px}
  .download-panel{margin-top:10px;padding:13px;border-radius:22px}
  .receive-summary{grid-template-columns:auto minmax(0,1fr);gap:11px}
  .receive-icon{width:52px;height:52px;border-radius:16px}
  .receive-card h2{font-size:18px}
  .encrypted-badge{grid-column:2;justify-self:start;margin-top:-4px;padding:5px 8px}
  .receive-choice-heading{display:none}
  .receive-choice-grid{gap:8px}
  .receive-action{min-height:124px;border-radius:20px;padding:13px}
  .receive-action-icon{width:40px;height:40px;border-radius:13px}
  .receive-action-copy strong{font-size:14px}
  .receive-action-copy small{font-size:9px}
  .receive-choice-note{text-align:center;margin-top:9px}
  .receiver-panel.preview-mode{max-width:100%}
  .receiver-panel.preview-mode .receive-card{border-radius:24px}
  .receiver-panel.preview-mode .receive-summary{grid-template-columns:auto minmax(0,1fr) auto;padding:10px 11px}
  .receiver-panel.preview-mode .receive-icon{width:40px;height:40px}
  .receiver-panel.preview-mode .encrypted-badge{grid-column:auto;justify-self:end;margin:0}
  .inline-preview-media{min-height:260px;max-height:66vh}
  .inline-preview-frame{height:66vh}
  .file-preview-actions{position:fixed;left:50%;right:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:auto;margin:0;padding:8px 12px;gap:18px;border-radius:23px}
  .receiver-panel.preview-mode .download-panel{padding-bottom:92px}
  .receiver-panel.preview-mode .receiver-status{margin-top:4px}
}

@media(max-width:480px){
  .main-shell{padding-top:8px}
  .receiver-panel{margin-top:3px}
  .receive-card{padding:12px}
  .receive-summary{gap:10px}
  .receive-icon{width:48px;height:48px;border-radius:15px;font-size:9px}
  .receive-card h2{font-size:17px}
  .receive-card .receive-copy>p{font-size:10px}
  .receive-action{min-height:116px;padding:12px;border-radius:19px}
  .receive-action-icon{width:38px;height:38px}
  .receive-action-copy strong{font-size:13.5px}
  .receive-action-copy small{font-size:8.7px}
  .receiver-timer-chip{margin-top:10px}
  .receiver-panel.preview-mode .receive-card{margin-left:-3px;margin-right:-3px;border-radius:22px}
  .receiver-panel.preview-mode .receive-summary{padding:9px 10px}
  .receiver-panel.preview-mode .receive-card h2{font-size:14px}
  .receiver-panel.preview-mode .encrypted-badge{font-size:8px}
  .inline-preview-media{min-height:240px;max-height:64vh}
  .file-preview-actions{gap:14px;padding:8px 10px}
  .preview-action{min-width:55px;font-size:9.5px}
  .preview-action-icon{width:44px;height:44px;border-radius:14px}
}

/* V5.1.5 — completion flow, horizontal action dock and resilient video fallback */
.encrypted-badge b{font:inherit;font-weight:800}
.encrypted-badge.completed{background:#f0fbf4;color:#157a3a;border-color:#d9efe1}
.receive-completion{margin-top:12px;padding:18px;border:1px solid #dcefe3;border-radius:20px;background:linear-gradient(180deg,#fbfffc,#f4fbf6);display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;text-align:left;box-shadow:0 12px 30px rgba(16,96,50,.06)}
.receive-completion.hidden{display:none}
.receive-completion-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#ddf7e6;color:#16803d;font-size:20px;font-weight:900}
.receive-completion-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.receive-completion-copy strong{font-size:15px;letter-spacing:-.02em;color:#172033}
.receive-completion-copy span{font-size:10px;line-height:1.45;color:#667085}
.receive-completion-cta{grid-column:1/-1;margin-top:2px;min-height:50px;border-radius:16px;background:linear-gradient(155deg,#2476ff,#0e5be7);color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:850;box-shadow:0 10px 22px rgba(23,105,245,.2)}
.receive-completion-cta:active{transform:scale(.985)}

/* Force the preview dock into one horizontal row. Earlier generic .actions rules used column layout. */
.file-preview-actions{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:min(390px,calc(100% - 24px));padding:8px!important;border-radius:20px!important}
.preview-action{flex:1;min-width:0!important;flex-direction:row!important;justify-content:center;gap:7px!important;padding:6px 8px!important;border-radius:14px;font-size:10px!important}
.preview-action-icon{width:34px!important;height:34px!important;border-radius:11px!important;flex:0 0 auto}
.preview-action-icon svg{width:18px;height:18px}
.preview-action-save{background:linear-gradient(155deg,#2476ff,#0e5be7)!important;color:#fff!important;box-shadow:0 7px 16px rgba(23,105,245,.18)}
.preview-action-save .preview-action-icon{background:rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important;border-color:rgba(255,255,255,.12)!important}
.preview-action-save.used{background:#edf7f0!important;color:#16803d!important;box-shadow:none}
.preview-action-save.used .preview-action-icon{background:#dff3e5!important;color:#16803d!important}
.preview-action-label{white-space:nowrap;font-weight:800}

.video-preview-fallback{background:#0b1018}
.video-fallback-preview{min-height:min(54vh,520px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:32px 24px;color:#fff}
.video-fallback-icon{width:62px;height:62px;border-radius:21px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);font-size:25px;padding-left:3px}
.video-fallback-preview strong{font-size:16px;letter-spacing:-.02em}
.video-fallback-preview span{max-width:360px;color:#9eabba;font-size:11px;line-height:1.5}

@media(max-width:820px){
  .file-preview-actions{position:sticky!important;left:auto!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;transform:none!important;margin:8px auto 0!important;width:min(390px,calc(100% - 20px))!important}
  .receiver-panel.preview-mode .download-panel{padding-bottom:14px!important}
}
@media(max-width:480px){
  .file-preview-actions{width:calc(100% - 16px)!important;gap:5px!important;padding:7px!important}
  .preview-action{gap:5px!important;padding:5px 6px!important;font-size:9.5px!important}
  .preview-action-icon{width:32px!important;height:32px!important}
  .receive-completion{padding:16px;border-radius:18px}
  .receive-completion-cta{min-height:48px}
}


/* V5.1.6 — always-visible floating glass action dock */
.file-preview-actions{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 14px)!important;
  transform:translateX(-50%)!important;
  z-index:80!important;
  margin:0!important;
  width:auto!important;
  max-width:calc(100vw - 24px)!important;
  padding:9px 11px!important;
  gap:10px!important;
  border:1px solid rgba(230,234,240,.72)!important;
  border-radius:25px!important;
  background:rgba(255,255,255,.58)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.25)!important;
  backdrop-filter:blur(20px) saturate(1.25)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.16)!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
}
.preview-action{
  flex:0 0 auto!important;
  min-width:72px!important;
  min-height:52px!important;
  padding:6px 10px!important;
  border:1px solid rgba(225,230,237,.86)!important;
  border-radius:17px!important;
  background:rgba(247,249,252,.82)!important;
  color:#172033!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  font-size:10px!important;
  box-shadow:0 5px 14px rgba(15,23,42,.07)!important;
}
.preview-action-icon{
  width:22px!important;
  height:22px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:currentColor!important;
  box-shadow:none!important;
}
.preview-action-icon svg{width:21px!important;height:21px!important}
.preview-action-save{
  background:linear-gradient(155deg,#2476ff,#0e5be7)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 8px 18px rgba(23,105,245,.22)!important;
}
.preview-action-save .preview-action-icon{background:transparent!important;color:#fff!important;border:0!important}
.preview-action:active{transform:scale(.96)}
.preview-action.used{opacity:.62!important;box-shadow:none!important}
.preview-action.hidden{display:none!important}
.receiver-panel.preview-mode .download-panel{padding-bottom:96px!important}
@media(max-width:480px){
  .file-preview-actions{
    bottom:calc(env(safe-area-inset-bottom, 0px) + 10px)!important;
    max-width:calc(100vw - 18px)!important;
    padding:8px 9px!important;
    gap:8px!important;
  }
  .preview-action{min-width:68px!important;min-height:50px!important;padding:5px 9px!important;font-size:9.5px!important}
  .preview-action-icon{width:21px!important;height:21px!important}
  .receiver-panel.preview-mode .download-panel{padding-bottom:90px!important}
}

/* V5.1.7 — screenshot-driven mobile floating actions
   Keep the three actions on one row. The outer dock itself is transparent;
   each action is its own floating surface so the preview stays unobstructed. */
.file-preview-actions{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 14px)!important;
  transform:translateX(-50%)!important;
  z-index:90!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  max-width:calc(100vw - 20px)!important;
  margin:0!important;
  padding:0!important;
  gap:10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
.file-preview-actions .preview-action{
  flex:0 0 68px!important;
  width:68px!important;
  min-width:68px!important;
  min-height:58px!important;
  padding:7px 6px!important;
  border:1px solid rgba(220,226,235,.88)!important;
  border-radius:19px!important;
  background:rgba(250,251,253,.84)!important;
  color:#172033!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  font-size:10px!important;
  font-weight:800!important;
  box-shadow:0 10px 24px rgba(15,23,42,.14)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
  backdrop-filter:blur(18px) saturate(1.15)!important;
}
.file-preview-actions .preview-action-save{
  background:linear-gradient(155deg,#2476ff,#0e5be7)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:0 11px 25px rgba(23,105,245,.28)!important;
}
.file-preview-actions .preview-action-icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:currentColor!important;
  box-shadow:none!important;
}
.file-preview-actions .preview-action-icon svg{width:21px!important;height:21px!important}
.file-preview-actions .preview-action-label{display:block!important;white-space:nowrap!important;line-height:1.05!important}
.file-preview-actions .preview-action:active{transform:scale(.96)!important}
.file-preview-actions .preview-action.used{opacity:.62!important;box-shadow:0 5px 14px rgba(15,23,42,.08)!important}
.file-preview-actions .preview-action.hidden{display:none!important}
.receiver-panel.preview-mode .download-panel{padding-bottom:88px!important}

@media(max-width:380px){
  .file-preview-actions{gap:8px!important;max-width:calc(100vw - 16px)!important}
  .file-preview-actions .preview-action{flex-basis:62px!important;width:62px!important;min-width:62px!important;min-height:56px!important;padding:6px 5px!important;font-size:9.5px!important;border-radius:18px!important}
  .receiver-panel.preview-mode .download-panel{padding-bottom:84px!important}
}

/* V5.1.8 — receiver state visibility fix
   The floating Save / Share / Done controls exist only while an actual
   decrypted local preview is open. They must never appear on the initial
   Preview / Download choice or over the positive completion screen. */
.file-preview-actions,
.file-preview-actions.hidden{
  display:none!important;
}
.receiver-panel.preview-mode .file-preview-actions:not(.hidden){
  display:flex!important;
}
.receiver-panel:not(.preview-mode) .file-preview-actions{
  display:none!important;
}
.receive-completion:not(.hidden) ~ .file-preview-actions,
.receive-completion:not(.hidden) .file-preview-actions{
  display:none!important;
}

/* V5.1.9 — consolidated active stylesheet and hardened receiver states.
   This release intentionally has no CSS @import dependency: the active cPanel
   package ships one versioned stylesheet plus styles.css as its byte-identical alias. */
.receiver-panel:not(.preview-mode) .file-preview-actions,
.receive-completion:not(.hidden) ~ .file-preview-actions,
.file-preview-actions.hidden{display:none!important}
.receiver-panel.preview-mode .file-preview-actions:not(.hidden){display:flex!important}


/* neevan brand v1.2.0 header sizing — cache-safe */
.brand-logo{display:block!important;width:126px!important;height:auto!important;max-height:39px!important;flex:0 0 auto!important}
@media(max-width:820px){.brand-logo{width:108px!important;max-height:34px!important}}
@media(max-width:380px){.brand-logo{width:96px!important;max-height:30px!important}}

/* V5.3 multi-file package */
.selected-files-list{display:none;margin:10px 0 0;gap:8px}
.selected-files-list.show{display:grid}
.selected-file-mini{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid rgba(11,18,32,.10);border-radius:12px;background:#fff}
.selected-file-mini-copy{display:grid;gap:2px;min-width:0}
.selected-file-mini-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#0b1220}
.selected-file-mini-copy span{font-size:12px;color:#667085}
.selected-file-remove{flex:none;width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:#667085;font-size:21px;line-height:1;cursor:pointer}
.selected-file-remove:hover,.selected-file-remove:focus-visible{background:rgba(11,18,32,.06);color:#0b1220;outline:none}
.package-list{display:grid;gap:9px;margin-top:14px}
.package-list.hidden{display:none}
.package-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid rgba(11,18,32,.10);border-radius:14px;background:#fff}
.package-row.downloaded{border-color:rgba(5,195,222,.35);background:rgba(5,195,222,.05)}
.package-row-copy{display:grid;gap:3px;min-width:0}
.package-row-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0b1220;font-size:14px}
.package-row-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:12px}
.package-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none}
.package-file-action{flex:none;min-width:58px;border:1px solid rgba(0,114,206,.24);background:#fff;color:#0072ce;border-radius:10px;padding:8px 10px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.package-file-action:hover{background:rgba(0,114,206,.06)}
.package-file-share{background:#0072ce;color:#fff;border-color:#0072ce}
.package-file-share:hover{background:#0068bc}
.package-file-action:disabled{cursor:default;color:#8090a0;border-color:rgba(11,18,32,.10);background:#f4f6f8;opacity:.68}
.package-actions{display:grid;gap:9px;margin-top:12px}
.package-actions.hidden{display:none}
.package-actions small{color:#667085;line-height:1.45;text-align:center}
@media(max-width:640px){
  .package-row{align-items:stretch;flex-direction:column}
  .package-row-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .package-file-action{width:100%;min-width:0;padding:9px 6px;font-size:11px}
  .selected-file-mini{align-items:flex-start}
}
