:root {
  --canvas: #f3f5f2; --surface: #fff; --surface-muted: #f0f3f0; --line: #d5ddd7; --ink: #17231e; --muted: #66736b; --accent: #176b59; --accent-dark: #0e4d41; --accent-soft: #e3f0e9; --coral: #b65d45; --danger: #a84742; --success: #267354; --shadow: 0 10px 28px rgb(27 52 42 / 0.06);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, a { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button:focus-visible, a:focus-visible, .dropzone:focus-visible { outline: 3px solid #72b7a3; outline-offset: 3px; }
h1, h2, p { margin: 0; } h1, h2 { letter-spacing: -0.025em; text-wrap: balance; }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 30px auto 30px; }
.section-heading, .summary-heading, .progress-meta { display: flex; align-items: center; }
.section-kicker { color: var(--muted); font-size: 11px; font-weight: 700; } h1 { font-size: 20px; line-height: 1; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); } .intro h2 { font-size: 30px; line-height: 1.1; font-weight: 760; } .intro-copy { max-width: 48ch; padding-bottom: 2px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: 20px; align-items: start; } .primary-column, .summary-panel, .files-section { min-width: 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 198px; padding: 24px; border: 1px dashed #8fac9f; border-radius: 6px; color: var(--ink); background: #f8fbf9; cursor: pointer; transition: border-color .2s ease, background .2s ease; } .dropzone:hover, .dropzone.dragging, .dropzone:focus-visible { border-color: var(--accent); background: #edf6f1; } .dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-symbol { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border: 1px solid #b3d0c2; border-radius: 5px; color: var(--accent-dark); background: #fff; font-size: 20px; font-weight: 500; line-height: 1; } .drop-title { font-size: 15px; font-weight: 800; } .drop-subtitle { margin-top: 4px; color: var(--muted); font-size: 12px; } .drop-limit { margin-top: 14px; padding-top: 9px; border-top: 1px solid #c9ddd2; color: var(--accent-dark); font-size: 11px; font-weight: 750; }
.files-section { margin-top: 25px; } .section-heading { justify-content: space-between; gap: 16px; margin-bottom: 13px; } .section-heading h2, .summary-heading h2 { margin-top: 5px; font-size: 17px; } .section-heading h2 span { color: var(--muted); font-size: 13px; font-weight: 650; }
.text-button { padding: 5px 0; border: 0; color: var(--accent); background: none; font-size: 12px; font-weight: 800; cursor: pointer; } .text-button:hover:not(:disabled) { color: var(--accent-dark); text-decoration: underline; } .text-button:disabled { color: #a3b0a9; cursor: not-allowed; }
.file-list { overflow: hidden; border-top: 1px solid var(--line); } .file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 8px; border-bottom: 1px solid var(--line); } .file-info { min-width: 0; } .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; } .file-size { margin-top: 3px; color: var(--muted); font-size: 11px; }
.file-status { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 750; white-space: nowrap; } .file-status.success { color: var(--success); border-color: #b9d9c8; background: #eff9f2; } .file-status.error { color: var(--danger); border-color: #e5c2bf; background: #fff4f2; } .file-status.loading { color: var(--accent-dark); border-color: #b6d9ca; background: var(--accent-soft); } .remove-button { padding: 5px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; } .remove-button:hover { color: var(--danger); }
.empty-state { padding: 28px 12px; color: var(--muted); text-align: center; } .empty-line { display: block; width: 36px; height: 1px; margin: 0 auto 13px; background: #aebeb5; } .empty-state p { font-size: 13px; font-weight: 750; } .empty-state small { display: block; margin-top: 4px; font-size: 11px; }
.summary-panel { position: sticky; top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); } .summary-heading { justify-content: space-between; gap: 12px; align-items: start; } .batch-badge { padding: 5px 8px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; font-weight: 850; } .batch-badge[data-state="done"] { color: var(--success); background: #e1f2e8; } .batch-badge[data-state="error"] { color: var(--danger); background: #fbe7e3; }
.summary-copy { min-height: 42px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; } .metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 21px 0 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); } .metric { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); } .metric strong { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; } .metric span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.progress-meta { justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 750; } .progress-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; } progress { display: block; width: 100%; height: 8px; margin-top: 9px; overflow: hidden; border: 0; border-radius: 99px; background: var(--surface-muted); accent-color: var(--accent); } progress::-webkit-progress-bar { background: var(--surface-muted); border-radius: 99px; } progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; transition: width .2s ease; }
.actions { display: grid; gap: 9px; margin-top: 24px; } .primary-button, .download-button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 11px 13px; border: 1px solid var(--accent-dark); border-radius: 8px; color: #fff; background: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease; } .primary-button:hover:not(:disabled), .download-button:hover { background: #083d34; transform: translateY(-1px); } .primary-button:disabled { opacity: .45; cursor: not-allowed; } .button-arrow { font-size: 19px; font-weight: 400; } .download-button { color: var(--accent-dark); border-color: #b5d3c5; background: var(--accent-soft); } .download-button:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
 .hidden { display: none !important; } .notice { margin-top: 14px; padding: 11px 12px; border: 1px solid #e4c4b0; border-radius: 7px; color: #785033; background: #fff8ef; font-size: 11px; line-height: 1.4; }
@media (max-width: 780px) { .app-shell { width: min(100% - 30px, 620px); margin-top: 24px; } .intro { display: block; } .intro-copy { margin-top: 16px; } .workspace { grid-template-columns: 1fr; } .summary-panel { position: static; } }
@media (max-width: 480px) { .app-shell { width: min(100% - 22px, 620px); margin-top: 17px; } .intro h2 { font-size: 26px; } .dropzone { min-height: 210px; padding: 22px; } .summary-panel { padding: 18px; } .file-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 12px 4px; } .file-status { grid-column: 2; grid-row: 1; } .remove-button { grid-column: 2; grid-row: 2; justify-self: end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #151b18;
    --surface: #1d2521;
    --surface-muted: #242e29;
    --line: #34423b;
    --ink: #edf4ef;
    --muted: #a5b2aa;
    --accent: #70c3a4;
    --accent-dark: #a6e0c5;
    --accent-soft: #253d34;
    --coral: #e49a7d;
    --danger: #f0a09a;
    --success: #8fd7ad;
    --shadow: 0 10px 28px rgb(0 0 0 / 0.24);
  }

  body { background: var(--canvas); }
  .dropzone { border-color: #668b7b; background: #1b2923; }
  .dropzone:hover, .dropzone.dragging, .dropzone:focus-visible { background: #233a30; }
  .upload-symbol { border-color: #668b7b; background: var(--surface); }
  .file-status { background: var(--surface); }
  .file-status.success { background: #20392b; }
  .file-status.error { background: #422725; }
  .file-status.loading { background: #253d34; }
  .primary-button { color: #10221a; background: var(--accent); border-color: var(--accent); }
  .primary-button:hover:not(:disabled) { color: #10221a; background: #8bd4b6; }
  .download-button { color: var(--accent-dark); border-color: #527e6b; background: var(--accent-soft); }
  .download-button:hover { color: #10221a; border-color: var(--accent); background: var(--accent); }
  .notice { color: #f2c69b; border-color: #765333; background: #34291e; }
  .batch-badge { color: var(--accent-dark); background: var(--accent-soft); }
  .batch-badge[data-state="done"] { color: var(--success); background: #20392b; }
  .batch-badge[data-state="error"] { color: var(--danger); background: #422725; }
  progress, progress::-webkit-progress-bar { background: #2b3731; }
  progress::-webkit-progress-value { background: var(--accent); }
}
