:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#fff;background:#0a0a0a;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;background:#0a0a0a}
.shell{width:min(92vw,580px);padding:48px 0}.card{background:#141414;border:1px solid #2a2a2a;border-radius:20px;padding:36px}
.brand{display:flex;align-items:center;gap:10px;color:#9ca3af;font-size:13px;letter-spacing:.08em}.mark{background:#00d9a3;color:#0a0a0a;padding:6px 8px;border-radius:8px;font-weight:800;letter-spacing:0}
h1{font-size:32px;line-height:1.2;letter-spacing:0;margin:28px 0 12px}.muted{color:#9ca3af;line-height:1.7}.panel{display:grid;gap:14px;margin-top:28px}label{font-weight:650}
input{width:100%;padding:14px 16px;border:1px solid #3a3a3a;border-radius:10px;background:#0f0f0f;color:#fff;font:inherit}input:focus{outline:2px solid #00d9a3;outline-offset:2px;border-color:#00d9a3}
button,.download{border:0;border-radius:10px;padding:14px 18px;background:#00d9a3;color:#0a0a0a;font:inherit;font-weight:700;cursor:pointer;text-align:center;text-decoration:none}button:hover,.download:hover{background:#00b98c}button:disabled{background:#33443e;color:#899991;cursor:not-allowed}.download{display:block}
.hidden{display:none!important}.drop-zone{margin:28px 0 16px;padding:34px 18px;border:1.5px dashed #46534e;border-radius:16px;background:#101010;display:grid;gap:8px;text-align:center;cursor:pointer}.drop-zone span{font-weight:400;color:#9ca3af;font-size:14px}.drop-zone.drag{background:#10251e;border-color:#00d9a3}.drop-zone:focus-visible{outline:3px solid #00d9a3;outline-offset:4px;border-color:#00d9a3}.drop-zone[aria-disabled="true"]{opacity:.65;cursor:not-allowed}
.file-name{word-break:break-all;color:#9ca3af;margin:8px 0 16px}#start,#download,.secondary{width:100%;margin-top:12px}.secondary{background:transparent;color:#9ca3af}.secondary:hover{background:#1e1e1e;color:#fff}
.progress-track{height:8px;background:#2a2a2a;border-radius:8px;overflow:hidden;margin-top:24px}#progress-bar{height:100%;width:0;background:#00d9a3;transition:width .25s}.status{color:#9ca3af;font-size:14px;font-variant-numeric:tabular-nums}.message{min-height:24px;color:#ff6666;line-height:1.5}footer{text-align:center;color:#6b7280;font-size:13px;margin-top:20px}
@media(max-width:560px){.card{padding:26px;border-radius:18px}h1{font-size:27px}.shell{padding:24px 0}}

.result-panel{margin-top:24px;padding-top:22px;border-top:1px solid #2a2a2a}.result-label{display:block;color:#9ca3af;font-size:13px;margin-bottom:10px}.password-row{display:flex;align-items:center;gap:12px;justify-content:space-between}.password-row code,.history-result code{font-family:"SFMono-Regular",Consolas,monospace;color:#00d9a3;font-size:24px;letter-spacing:.12em}.password-row .secondary{margin:0;padding:8px 12px;flex:none}.history{margin-top:28px;padding-top:20px;border-top:1px solid #2a2a2a}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-heading h2{font-size:17px;margin:0}.history-heading .secondary{margin:0;padding:6px 10px;font-size:13px}.history-note{color:#6b7280;font-size:13px;line-height:1.6}#history-list{list-style:none;padding:0;margin:12px 0 0;max-height:330px;overflow:auto}.history-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #242424}.history-info{min-width:0;display:grid;gap:5px}.history-info strong{font-size:14px;overflow-wrap:anywhere}.history-info small{color:#6b7280}.history-result{display:flex;align-items:center;gap:12px;flex:none}.history-result code{font-size:16px}.history-result a{color:#00d9a3;font-size:14px}.history-result span{color:#6b7280;font-size:12px}.history-empty{color:#6b7280;text-align:center;padding:18px 0}@media(max-width:480px){.history-item{align-items:flex-start;flex-direction:column;gap:8px}.history-result{width:100%;justify-content:space-between}.password-row code{font-size:21px}}
