:root{--bg:#f3f4f6;--paper:#fff;--ink:#172b38;--muted:#526474;--line:#d8e0e7;--blue:#1659cd;--soft:#edf4ff;--green:#176647;--red:#a62e3b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;font-size:14px}header{height:76px;max-width:1440px;margin:auto;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}a{color:var(--blue)}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:20px;text-decoration:none;color:var(--ink)}.logo{background:var(--ink);color:#fff;border-radius:10px;padding:8px;font-size:19px}.tag{font-size:10px;letter-spacing:.08em;background:#e4e9ed;padding:5px 7px;border-radius:5px;margin-left:12px}main{max-width:1440px;margin:auto;padding:34px 36px 28px}.intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}h1{font-size:30px;letter-spacing:-.035em;line-height:1.25;margin:0 0 9px}p{line-height:1.6;margin:0}.intro p{color:var(--muted)}.local{font-size:12px;color:var(--green);white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 22px #172b3806}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}h2{font-size:17px;margin:0;font-weight:700}.step{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}button,input,textarea{font:inherit}button,.download{min-height:44px;border:1px solid var(--blue);border-radius:7px;background:var(--blue);color:#fff;padding:10px 16px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.download:hover{filter:brightness(.92)}button:disabled{cursor:not-allowed;background:#e9edf1;color:#526474;border-color:#d8e0e7;filter:none}.quiet{background:transparent;border-color:transparent;color:var(--blue);padding:9px;font-size:13px}.secondary{background:#fff;color:var(--blue);border-color:#b7cbea}.danger{color:var(--red)}:focus-visible{outline:3px solid #e6a238;outline-offset:3px}.drop{margin:22px;border:1.5px dashed #a6b8cd;border-radius:10px;background:#f8faff;padding:22px;text-align:center}.drop.over{background:#e2ecff;border-color:var(--blue)}.drop-icon{font-size:30px;color:var(--blue);line-height:1}.drop p{margin:8px 0 14px}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}small{font-size:12px;line-height:1.6;color:var(--muted);display:block}.drop small{margin-top:14px}.status{margin:12px 22px;color:var(--muted);font-size:13px}.status:empty{display:none}.empty{text-align:center;color:var(--muted);padding:26px 24px 48px}.file-list{padding:0 22px}.file-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;padding:17px 0;border-top:1px solid var(--line);align-items:start}.file-row.excluded{background:#f6f7f9}.file-row>input{width:19px;height:19px;accent-color:var(--blue);margin:12px 0}.file-original{font-size:12px;color:var(--muted);overflow-wrap:anywhere;display:block;margin:4px 0}.target-label{font-size:10px;letter-spacing:.05em;color:var(--muted);margin:0 0 5px!important}.file-row .path{width:100%;font-family:ui-monospace,SFMono-Regular,monospace;font-size:13px}.file-row .row-actions{display:flex;align-items:center;flex-direction:column;gap:0}.row-actions button{font-size:12px;min-height:36px;padding:6px}.file-meta{font-size:12px;color:var(--muted);margin:5px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.badge{font-size:11px;padding:3px 7px;border-radius:4px;background:#edf3fa;color:#345776}.badge.bad{background:#ffedf0;color:var(--red)}.badge.warn{background:#fff4d8;color:#795000}.file-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.output{padding:0 22px 22px}.output .panel-head{margin:0 -22px 20px}.output label{font-weight:650;font-size:12px;display:block;margin:18px 0 8px}input:not([type=checkbox]),textarea{padding:11px 12px;border:1px solid #bac8d3;border-radius:6px;background:#fff;color:var(--ink);width:100%;min-height:44px}textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,monospace;font-size:13px;line-height:1.5}.output small{margin-top:7px}.primary{width:100%;margin-top:18px}.output .status{margin:12px 0}.checks{margin-top:18px}.check-message{margin-top:8px;line-height:1.5;font-size:13px;overflow-wrap:anywhere;padding:10px 12px;border-radius:6px;background:#ffedf0;color:var(--red)}.check-message.ok{background:#eaf6ef;color:var(--green)}.check-message.warn{background:#fff4d8;color:#795000}.requirements{margin-top:16px;font-size:13px}.requirement{padding:5px 0;overflow-wrap:anywhere}.ready{padding:16px;background:#eaf6ef;border:1px solid #b6d9c5;border-radius:8px;margin-top:16px}.ready strong{font-size:13px;color:var(--green)}.ready p{font-size:12px;margin:7px 0 12px;overflow-wrap:anywhere}.ready .download{width:100%}.help{margin-top:25px;color:var(--muted);max-width:1000px;font-size:13px}.help summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:650;color:var(--ink)}.help p{margin:10px 0}.help a{display:inline-flex;align-items:center;min-height:24px}dialog{border:1px solid var(--line);border-radius:12px;max-width:800px;width:calc(100% - 40px);max-height:85vh;padding:22px;color:var(--ink);overflow:auto}dialog::backdrop{background:#172b3880}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{overflow-wrap:anywhere;min-width:0}dialog p{color:var(--muted);font-size:13px;margin:12px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f5f8;padding:16px;border-radius:6px;max-height:50vh;overflow:auto;font:13px/1.6 ui-monospace,monospace}dialog img{max-width:100%;max-height:50vh;object-fit:contain}.skip{position:absolute;top:-80px;left:20px;background:var(--ink);color:#fff;padding:12px;z-index:10}.skip:focus{top:12px}[hidden]{display:none!important}@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 320px}}@media(max-width:800px){header{padding:0 20px;height:66px}main{padding:26px 20px}.workspace{grid-template-columns:1fr}.intro{align-items:start;flex-direction:column;gap:9px}.tag{display:none}h1{font-size:26px}.panel-head{padding:16px}.panel-head .quiet{max-width:150px;text-align:right}.drop{margin:16px;padding:18px 12px}.file-list{padding:0 16px}.file-row{gap:8px;grid-template-columns:22px minmax(0,1fr)}.file-row .row-actions{grid-column:2;flex-direction:row;justify-content:flex-end}.file-footer{padding:12px 16px}.output{padding:0 18px 18px}.output .panel-head{margin:0 -18px 18px}.local{font-size:12px}.file-row>input{min-width:19px}.row-actions button{min-height:44px}.file-row .path{font-size:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}} 
/* Keep frequent file actions visible as the package grows. */
.drop.compact{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px;text-align:left}.drop.compact .drop-icon,.drop.compact>p{display:none}.drop.compact .actions{justify-content:flex-start}.drop.compact small{margin:0;flex:1;min-width:180px}.file-footer{flex-wrap:wrap;gap:8px}.file-footer>div{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.package-options{margin-top:16px;border-top:1px solid var(--line);padding-top:5px}.package-options summary{cursor:pointer;padding:12px 0;min-height:44px;font-size:13px;font-weight:650}.package-options select,.requirement-fix select{font:inherit;width:100%;min-width:0;border:1px solid #bac8d3;border-radius:6px;color:var(--ink);background:#fff;padding:10px;min-height:44px}.requirement{padding:9px 0;border-bottom:1px solid #e9edf1}.requirement-fix{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:9px}.requirement-fix button{font-size:12px;padding:8px}.requirement-fix select{font-size:12px}.mobile-package{display:none}#retryCompression{width:100%;margin-top:8px}#package:focus-visible{outline-offset:5px}
@media(max-width:800px){body{padding-bottom:85px}.mobile-package{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;align-items:center;justify-content:space-between;background:var(--paper);border-top:1px solid var(--line);padding:8px 20px;box-shadow:0 -3px 18px #172b3810;gap:12px}.mobile-package span{font-size:13px;color:var(--muted)}.mobile-package a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;text-decoration:none;padding:8px 12px;border-radius:6px;background:var(--soft)}.drop.compact{gap:10px}.drop.compact small{font-size:11px;min-width:100%}.file-footer>div{margin-left:auto}.requirement-fix{gap:6px}}
