:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #647269;
  --paper: #f4f1e9;
  --panel: #fffefa;
  --line: #d9ddd4;
  --green: #174f3c;
  --green-bright: #c7e96b;
  --red: #a63c32;
  --amber: #a76a16;
  font-family: Inter, "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .92); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--green-bright); font-family: Georgia, serif; }
.account { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; }
.text-button, .icon-button { border: 0; background: transparent; color: var(--green); font-weight: 700; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.login-layout { min-height: calc(100vh - 140px); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 8vw, 120px); align-items: center; }
.hero-copy h1, .intro h1 { margin: 8px 0 18px; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow), .intro > div > p:last-child { max-width: 600px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.eyebrow, .section-label { color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.trust-row { display: flex; gap: 9px; margin-top: 32px; }
.trust-row span, .step-badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.panel { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 18px 60px rgba(34, 48, 40, .06); }
.panel h2 { margin: 4px 0 24px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.75rem; font-weight: 500; }
label { display: grid; gap: 8px; margin: 18px 0; font-size: .82rem; font-weight: 750; }
input { width: 100%; padding: 13px 14px; border: 1px solid #cbd2ca; border-radius: 10px; background: white; color: var(--ink); }
input:focus { outline: 3px solid rgba(199, 233, 107, .5); border-color: var(--green); }
.primary { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 800; }
.primary:hover:not(:disabled) { background: #0f3d2e; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.fine-print { color: var(--muted); font-size: .75rem; text-align: center; }
.error { min-height: 1.3em; color: var(--red); font-size: .8rem; line-height: 1.5; }
.workspace { padding: 60px 0 80px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.intro h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.privacy-note { display: grid; min-width: 270px; gap: 4px; padding: 15px 18px; border-left: 4px solid var(--green-bright); background: #eef4df; font-size: .8rem; }
.privacy-note span { color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; }
.dropzone { place-items: center; min-height: 150px; padding: 22px; border: 1.5px dashed #9eaaa1; border-radius: 14px; background: #f8faf4; text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--green); background: #f3f8e8; }
.dropzone span:last-of-type { color: var(--muted); font-size: .75rem; font-weight: 500; }
.drop-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: white; font-size: 1.4rem; }
.dropzone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.file-list, .job-list { display: grid; gap: 10px; margin: 16px 0; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 32px; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.file-meta { min-width: 0; }
.file-meta b, .job-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span, .job-meta, .job-error { color: var(--muted); font-size: .72rem; }
.file-row input { padding: 8px; font-size: .78rem; }
.remove-file { border: 0; background: transparent; color: var(--red); font-size: 1.15rem; }
.empty-state { display: grid; place-items: center; min-height: 280px; color: var(--muted); text-align: center; }
.empty-state > span { font-size: 2rem; color: var(--green); }
.empty-state p { margin: 4px 0; font-size: .8rem; }
.job-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.job-head { display: flex; justify-content: space-between; gap: 12px; }
.status { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #e8eee9; color: var(--green); font-size: .7rem; font-weight: 800; }
.status.failed { background: #f8e8e6; color: var(--red); }
.status.succeeded { background: #e9f4cf; color: #315f1d; }
.progress-track { height: 7px; margin: 13px 0 8px; overflow: hidden; border-radius: 20px; background: #e7eae5; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.job-actions { display: flex; gap: 9px; margin-top: 12px; }
.job-actions a, .job-actions button { padding: 8px 11px; border: 1px solid var(--green); border-radius: 8px; background: transparent; color: var(--green); text-decoration: none; font-size: .76rem; font-weight: 800; }
.job-error { margin: 8px 0 0; color: var(--red); }
footer { padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-align: center; }
@media (max-width: 820px) {
  .login-layout, .workspace-grid { grid-template-columns: 1fr; }
  .login-layout { padding: 55px 0; }
  .intro { align-items: start; flex-direction: column; }
  .privacy-note { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
