/* Google-like minimal style */
:root{
  --bg:#fff;
  --text:#1f1f1f;
  --muted:#5f6368;
  --border:#e0e0e0;
  --primary:#1a73e8;
  --primary-fg:#fff;
  --surface:#fafafa;
  --success:#1e8e3e;
  --shadow:0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Roboto,system-ui,-apple-system,Segoe UI,Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;}
.container{max-width:960px;margin:0 auto;padding:0 16px}
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:#202124;font-size:18px}
.nav{display:flex;gap:16px}
.nav-link{color:#3c4043;text-decoration:none;padding:6px 8px;border-radius:8px}
.nav-link:hover{background:var(--surface)}
.nav-link.active{color:var(--primary)}
.hero{padding:40px 0 24px}
.hero h1{margin:0 0 8px;font-size:32px;letter-spacing:-0.02em}
.lead{margin:0;color:var(--muted)}
.tool-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;margin:20px 0;box-shadow:var(--shadow)}
.dropzone{border:2px dashed var(--border);border-radius:12px;padding:28px;text-align:center;background:var(--surface);transition:.15s ease-in-out;outline:none}
.dropzone:focus{box-shadow:0 0 0 3px rgba(26,115,232,.2)}
.dropzone.drag{border-color:var(--primary);background:#f5f9ff}
.drop-icon{font-size:40px;margin-bottom:8px}
.hint{margin-top:6px;color:var(--muted);font-size:14px}
.file-list{margin-top:16px;border-top:1px dashed var(--border);padding-top:12px;display:grid;gap:8px}
.file-list.is-empty{display:none}
.file-item{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);border-radius:10px;padding:8px 12px;background:#fff}
.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}
.file-meta{color:var(--muted);font-size:13px}
.file-remove{background:none;border:none;color:#c62828;cursor:pointer}
.actions{display:flex;gap:10px;margin-top:16px}
.btn{appearance:none;border:1px solid var(--border);padding:10px 14px;border-radius:999px;font-weight:500;cursor:pointer;background:#fff;transition:.15s ease-in-out}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-fg)}
.btn-primary:hover{filter:brightness(.95)}
.btn-secondary{background:#fff;border-color:var(--primary);color:var(--primary)}
.btn-secondary:hover{background:#f5f9ff}
.btn-ghost{background:transparent;color:#3c4043;border-color:var(--border)}
.progress-wrap{margin-top:16px}
.progress-wrap.is-hidden{display:none}
.progress-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.progress-label{color:#3c4043}
.progress-pct{color:var(--muted);font-variant-numeric:tabular-nums}
.progress-bar{height:10px;background:#eee;border-radius:999px;overflow:hidden;border:1px solid var(--border)}
.progress-inner{height:100%;width:0;background:var(--primary);transition:width .2s ease}
.stage-text{color:var(--muted);font-size:14px;margin-top:6px}
.result-wrap{margin-top:16px}
.result-wrap.is-hidden{display:none}
.result-row{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;justify-content:space-between;align-items:center;background:#f7fbf7}
.result-actions{display:flex;gap:8px;align-items:center}
.article{padding:16px 0 40px}
.article h2{font-size:24px;margin-top:8px}
.article h3{font-size:18px;margin-top:20px}
.article details{border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff;margin:8px 0}
.article summary{cursor:pointer;font-weight:500}
.site-footer{border-top:1px solid var(--border);padding:20px 0;color:var(--muted);font-size:14px;margin-top:24px}
