*{box-sizing:border-box}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#15324d;background:#eef4f9}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at 82% -10%,#fff 0,rgba(255,255,255,.78) 28%,transparent 55%),linear-gradient(180deg,#f7fbff,#edf4f8)}
button,input{font:inherit}
button{touch-action:manipulation}
[hidden]{display:none!important}
.sd-shell{width:min(760px,calc(100% - 28px));margin:0 auto;padding:22px 0 56px}
.sd-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}
.sd-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#173752}
.sd-brand img{width:38px;height:44px}
.sd-brand span,.sd-brand strong,.sd-brand small{display:block}
.sd-brand strong{font-size:20px;letter-spacing:-.02em}.sd-brand small{font-size:12px;color:#71869a;margin-top:1px;font-weight:650}
.sd-language{display:flex;background:#fff;border:1px solid #d6e2eb;border-radius:999px;padding:3px;box-shadow:0 8px 24px rgba(24,55,79,.06)}
.sd-language button{min-width:42px;height:34px;border:0;border-radius:999px;background:transparent;color:#71869a;font-size:12px;font-weight:850;cursor:pointer}
.sd-language button.active{background:#1d6598;color:#fff}
.sd-main-card{background:#fff;border:1px solid #d8e4ed;border-radius:26px;padding:clamp(24px,5vw,42px);box-shadow:0 22px 70px rgba(31,69,98,.11);text-align:center}
.sd-main-card+ .sd-main-card{margin-top:18px}
.sd-icon-circle,.sd-success-mark{width:70px;height:70px;border-radius:22px;display:grid;place-items:center;margin:0 auto 17px;background:#edf6fc;color:#1f6b9f;font-size:34px;font-weight:900}
.sd-success-mark{background:#ecf9f1;color:#238353}
.sd-eyebrow{margin:0 0 7px;color:#4e7c9e;font-size:11px;font-weight:900;letter-spacing:.16em}
.sd-main-card h1{margin:0;color:#123552;font-size:clamp(34px,7vw,54px);line-height:.98;letter-spacing:-.045em}
.sd-lead{max-width:570px;margin:14px auto 0;color:#6a8093;font-size:16px;line-height:1.55}
.sd-upload-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;text-align:left;margin-bottom:24px}
.sd-upload-heading h1{font-size:clamp(32px,6vw,48px)}
.sd-status{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border:1px solid #d4e1ea;background:#f8fbfd;color:#5d788d;border-radius:999px;padding:0 11px;font-size:11px;font-weight:850;white-space:nowrap}
.sd-label,.sd-copy-field{display:grid;gap:8px;text-align:left;margin:22px 0 0;color:#31536d;font-size:12px;font-weight:850}
.sd-label>input,.sd-copy-field input,.sd-password-shell{width:100%;min-width:0;border:1px solid #cbdbe7;background:#fbfdff;border-radius:13px;outline:0;color:#17354f;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.sd-label>input,.sd-copy-field input{height:52px;padding:0 15px}
.sd-label>input:focus,.sd-copy-field input:focus,.sd-password-shell:focus-within{border-color:#4a85af;box-shadow:0 0 0 4px rgba(72,132,175,.12)}
.sd-label small{color:#7b8d9d;font-weight:550;line-height:1.4}
.sd-access-label{max-width:480px;margin:24px auto 0}
.sd-password-shell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;overflow:hidden}
.sd-password-shell input{height:50px;border:0;background:transparent;outline:0;padding:0 8px 0 15px;color:#17354f;min-width:0}
.sd-password-toggle{height:36px;margin-right:7px;border:0;border-radius:9px;background:#edf5fa;color:#2a668e;padding:0 12px;font-size:12px;font-weight:850;cursor:pointer}
.sd-drop-zone{min-height:220px;border:2px dashed #b9cfdf;border-radius:22px;background:#f8fbfd;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;cursor:pointer;transition:.15s ease;text-align:center}
.sd-drop-zone:hover,.sd-drop-zone.dragover{border-color:#2f78aa;background:#f1f8fc;transform:translateY(-1px)}
.sd-drop-zone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sd-upload-arrow{width:62px;height:62px;border-radius:19px;background:#e6f2fa;color:#1f699c;display:grid;place-items:center;font-size:32px;font-weight:900;margin-bottom:12px}
.sd-drop-zone strong{font-size:22px;color:#173a56}.sd-drop-zone small{margin-top:4px;color:#7990a2;font-size:13px}
.sd-selected-file{margin-top:13px;border-radius:999px;background:#e9f5fc;color:#245f86;padding:8px 12px;font-size:12px;font-weight:850;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-button{border:0;border-radius:14px;min-height:50px;padding:0 20px;font-weight:900;cursor:pointer;transition:.12s ease}
.sd-button:not(:disabled):active{transform:translateY(1px)}.sd-button:disabled{opacity:.5;cursor:not-allowed}
.sd-primary{background:#1d679b;color:#fff;box-shadow:0 12px 28px rgba(29,103,155,.2)}
.sd-secondary{background:#edf5fa;color:#225d84;border:1px solid #d4e3ed}
.sd-big{width:100%;min-height:58px;margin-top:22px;font-size:17px}
.sd-text-button{border:0;background:transparent;color:#2b688f;font-weight:800;padding:12px 8px;cursor:pointer}.sd-text-button.danger{color:#a34444}
.sd-resume-note{margin:16px 0 0;text-align:left;border-radius:14px;background:#fff8e9;border:1px solid #f0dfb8;padding:13px 15px;color:#735a22}
.sd-resume-note strong,.sd-resume-note span{display:block}.sd-resume-note strong{font-size:13px}.sd-resume-note span{margin-top:3px;font-size:12px;line-height:1.45}
.sd-progress-wrap{margin-top:22px;text-align:left}.sd-progress-line{display:flex;justify-content:space-between;gap:14px;color:#31556f;font-size:13px}.sd-progress-line strong{font-weight:850}.sd-progress{height:13px;border-radius:999px;background:#e5eef4;overflow:hidden;margin:9px 0}.sd-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1d6699,#69add7);transition:width .18s ease}.sd-progress-wrap small{color:#7890a2;font-size:12px}
.sd-message{min-height:20px;margin:12px 0 0;color:#6e8395;font-size:13px;line-height:1.45}.sd-message.error{color:#aa3e3e}.sd-message.success{color:#28734a}
.sd-assurance{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid #e4ecf2}.sd-assurance span{font-size:11px;color:#688093;line-height:1.35}.sd-assurance b{display:block;margin-top:3px;color:#31546e}
.sd-background-note{margin:14px 0 0;color:#8293a1;font-size:11px;line-height:1.45}
.sd-copy-field{margin-top:24px}.sd-copy-field input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;text-align:left}
.sd-complete-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:7px}
.sd-details{margin-top:18px;border:1px solid #dbe6ee;border-radius:16px;background:#fff;text-align:left;overflow:hidden}.sd-details summary{cursor:pointer;padding:15px 17px;color:#355a74;font-size:13px;font-weight:850;list-style:none}.sd-details summary::-webkit-details-marker{display:none}.sd-details summary:after{content:"+";float:right;font-size:18px;line-height:1}.sd-details[open] summary:after{content:"−"}.sd-details-body{padding:0 17px 17px;color:#6c8193;font-size:13px;line-height:1.55}.sd-details-body p{margin:0 0 13px}.sd-details-body .sd-label{margin-top:13px}.sd-security-details{box-shadow:none;background:rgba(255,255,255,.72)}
.sd-receive-card .sd-details{margin-top:24px}.sd-receive-card .sd-details-body{text-align:left}
@media(max-width:640px){
 .sd-shell{width:min(100% - 16px,760px);padding:14px 0 36px}.sd-header{margin-bottom:14px}.sd-brand strong{font-size:18px}.sd-main-card{border-radius:20px;padding:24px 18px}.sd-main-card h1{font-size:36px}.sd-upload-heading{display:block;text-align:center}.sd-upload-heading .sd-status{margin-top:12px}.sd-drop-zone{min-height:190px}.sd-assurance{grid-template-columns:1fr}.sd-assurance span{display:grid;grid-template-columns:22px 1fr;align-items:center;text-align:left}.sd-assurance b{display:inline;margin:0}.sd-complete-actions{display:grid;gap:0}.sd-language button{min-width:39px}.sd-big{min-height:56px}
}

/* v0.4.6 — upload direct sans code + navigation upload/download */
.sd-header-actions{display:flex;align-items:center;gap:10px}
.sd-mode-nav{display:flex;background:#fff;border:1px solid #d6e2eb;border-radius:999px;padding:3px;box-shadow:0 8px 24px rgba(24,55,79,.06)}
.sd-mode-nav a{min-width:86px;height:34px;padding:0 14px;border-radius:999px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#627b8e;font-size:12px;font-weight:850}
.sd-mode-nav a.active{background:#e9f3f9;color:#1c628f}
.sd-link-button{display:flex;align-items:center;justify-content:center;text-decoration:none}
.sd-code-field input{height:66px;text-align:center;font-size:clamp(22px,5vw,32px);font-weight:950;letter-spacing:.11em;color:#154b70;background:#f7fbfe}
.sd-found-file{margin-top:22px;border:1px solid #cfe2d6;background:#f2fbf6;border-radius:18px;padding:16px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;text-align:left}
.sd-found-icon{width:48px;height:48px;border-radius:15px;background:#dff4e7;color:#25754a;display:grid;place-items:center;font-size:24px;font-weight:950}
.sd-found-text strong,.sd-found-text span{display:block}.sd-found-text strong{color:#20533b}.sd-found-text span{margin-top:4px;color:#678177;font-size:12px;line-height:1.4}
.sd-found-file .sd-button{min-height:46px;white-space:nowrap}
.sd-direct-link-details .sd-copy-field{margin-top:0}
@media(max-width:700px){
  .sd-header{align-items:flex-start}.sd-header-actions{align-items:flex-end;flex-direction:column}.sd-mode-nav a{min-width:72px;padding:0 10px}.sd-found-file{grid-template-columns:48px 1fr}.sd-found-file .sd-button{grid-column:1/-1;width:100%}
}
@media(max-width:460px){
  .sd-header{display:grid;grid-template-columns:1fr auto}.sd-header-actions{grid-column:1/-1;width:100%;flex-direction:row;align-items:center;justify-content:space-between}.sd-mode-nav{flex:1}.sd-mode-nav a{flex:1;min-width:0}.sd-code-field input{font-size:22px;letter-spacing:.07em}
}

/* v0.4.7 — concurrent packages + multi-file package */
.sd-package-files{display:grid;gap:9px;margin-top:14px}
.sd-package-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dbe6ee;border-radius:13px;background:#f8fbfd;padding:11px 12px}
.sd-package-file span{min-width:0;text-align:left}
.sd-package-file strong,.sd-package-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-package-file strong{color:#274d68;font-size:13px}.sd-package-file small{color:#7890a2;font-size:11px;margin-top:2px}
.sd-package-file button{min-height:38px;padding:0 13px;border:0;border-radius:10px;background:#1d679b;color:#fff;font-weight:850;cursor:pointer}
@media(max-width:520px){.sd-package-file{grid-template-columns:1fr}.sd-package-file button{width:100%}}

/* v0.4.8 — three dedicated modes + explicit post-unlock download */
.sd-decrypt-card .sd-found-file{margin-top:22px}
.sd-decrypt-card .sd-progress-wrap{margin-top:18px}
@media(max-width:460px){
  .sd-mode-nav a{font-size:11px;padding:0 8px}
}

/* v0.4.9 — custom full-area encrypted archive picker */
.sd-archive-field{display:grid;gap:8px;text-align:left}
.sd-archive-zone{position:relative;min-height:150px;border:2px dashed #b9cfdf;border-radius:20px;background:#f8fbfd;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;cursor:pointer;text-align:center;transition:.15s ease;color:#173a56}
.sd-archive-zone:hover,.sd-archive-zone:focus-within{border-color:#2f78aa;background:#f1f8fc;transform:translateY(-1px);box-shadow:0 0 0 4px rgba(72,132,175,.08)}
.sd-archive-zone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.sd-archive-icon{width:54px;height:54px;border-radius:17px;background:#e6f2fa;color:#1f699c;display:grid;place-items:center;font-size:30px;font-weight:900;margin-bottom:10px}
.sd-archive-zone strong{font-size:18px;color:#173a56}.sd-archive-zone small{margin-top:4px;color:#7990a2;font-size:12px;font-weight:600}
.sd-archive-zone .sd-selected-file{margin-top:12px;max-width:min(100%,560px)}
