:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background: #090e12;
  color: #e4edf0;
  --accent: #b2ecd8;
  --line: #b6d4dd14;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 50% 45%, #244b421c, transparent 60%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #6eaa9555; color: #d4ffed; }
.panel { width: min(460px, 100%); padding: 28px; border: 1px solid #bed9e120; border-radius: 20px; background: linear-gradient(145deg, #151e26, #10191f); box-shadow: 0 24px 80px #0004, inset 0 1px #ffffff04; }
.header { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 43px; flex-shrink: 0; border: 1px solid #a9e6cf33; border-radius: 11px; background: #a2e5cd0b; color: #b5efda; font-size: 24px; font-weight: 650; }
.brand h1 { font-size: 20px; font-weight: 580; letter-spacing: -.6px; margin: 0 0 5px; }
.brand p { margin: 0; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2.5px; color: #7e9e9e; }
.service-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 10px; color: #8b9da4; white-space: nowrap; }
.service-status i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.service-status.ready { color: #a6d7c1; }
.service-status.unready { color: #c4a58c; }
.upload-section { margin: 24px 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 200px; background: #75bba603; border: 1px dashed #9ecfc038; border-radius: 11px; color: inherit; padding: 25px 18px; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.dragover { border-color: #a7ebce8c; background: #a1dfc809; }
.upload-icon { color: #96bdb3; margin-bottom: 17px; }
.drop-title { font-size: 15px; font-weight: 500; color: #d5e2e5; }
.drop-copy { font-size: 12px; color: #7e969f; margin-top: 9px; }
.browse { color: #b2dece; }
.upload-hint { margin-top: 20px; color: #728b95; font-size: 10px; }
.file-card { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 17px 15px; border: 1px solid #a9d9c72b; border-radius: 11px; background: #8ed2b907; }
.file-icon { color: #99c7b9; flex-shrink: 0; }
.file-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.file-info strong { font-size: 12px; line-height: 1.6; font-weight: 500; color: #d7e6e7; overflow-wrap: anywhere; }
.file-info > span { font: 10px ui-monospace, SFMono-Regular, monospace; color: #8aa3aa; }
.icon-button { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; color: #8aa2a7; border: 0; border-radius: 6px; background: transparent; }
.icon-button:hover { background: #b5d0d210; color: #cee5de; }
.file-check { color: #a5e6c9; font-size: 17px; padding: 0 5px; }
.processing { margin-top: 21px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #a2c4ba; margin-bottom: 11px; }
.progress-label > span + span { font: 10px ui-monospace, SFMono-Regular, monospace; }
progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 3px; border: 0; border-radius: 10px; overflow: hidden; background: #b2d9cc13; }
progress::-webkit-progress-bar { background: #b2d9cc13; border-radius: 10px; }
progress::-webkit-progress-value { background: #ace8d1; border-radius: 10px; transition: width .2s; }
progress::-moz-progress-bar { background: #ace8d1; border-radius: 10px; }
progress:not([value]) { background: linear-gradient(90deg, transparent, #a5e4cc 45%, #a5e4cc 55%, transparent) no-repeat #b2d9cc13; background-size: 45% 100%; animation: progress 1.8s ease-in-out infinite; }
progress:not([value])::-webkit-progress-bar { background: transparent; }
.processing > p { color: #8098a1; font-size: 11px; margin: 10px 0 0; line-height: 1.6; }
.result { margin: 17px 0 0; font-size: 12px; color: #a6dbc4; }
.notice { margin-top: 16px; border: 1px solid #d6a58029; border-radius: 9px; padding: 11px 13px; color: #d5b19a; background: #d6a58007; font-size: 12px; line-height: 1.7; }
.notice p { margin: 0; overflow-wrap: anywhere; }
.primary { width: 100%; height: 45px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #b5f1db80; border-radius: 9px; background: linear-gradient(105deg, #b9efdc, #96d7c2); color: #183d33; font-size: 13px; font-weight: 600; text-decoration: none; position: relative; transition: filter .2s, opacity .2s; }
.primary svg { position: absolute; right: 16px; opacity: .6; }
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.primary:disabled { opacity: .38; }
.primary.busy { opacity: .7; }
.primary.busy .button-arrow { display: none; }
.spinner { display: none; width: 13px; height: 13px; border: 1.5px solid #245a4440; border-top-color: #245a44; border-radius: 50%; animation: spin .9s linear infinite; }
.primary.busy .spinner { display: block; position: absolute; right: 18px; }
.reset { display: block; margin: 15px auto 0; padding: 4px 8px; background: transparent; border: 0; color: #a1bfb3; font-size: 12px; }
.reset:hover { color: #c0efdb; }
.footnote { text-align: center; color: #8098a1; font-size: 10px; margin: 14px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { from { background-position: -80% 0; } to { background-position: 180% 0; } }
@media (max-width: 420px) { .panel { padding: 23px; border-radius: 17px; } .brand h1 { font-size: 18px; } .service-status { font-size: 9px; } .dropzone { min-height: 185px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
