:root { color: #151515; background: #faf9f7; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page-shell { width: min(100% - 3rem, 1360px); min-height: 100dvh; margin: 0 auto; display: grid; place-items: center; }
.workspace { width: 100%; min-height: 32rem; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid #dedcd7; border-radius: 1.25rem; }
.upload-panel, .result-panel { padding: clamp(2rem, 5vw, 4.5rem); }
.upload-panel { display: flex; flex-direction: column; border-right: 1px solid #dedcd7; }
.result-panel { display: flex; flex-direction: column; background: #f3f2ee; }
.section-heading { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.section-heading span { color: #6d6a65; font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
h1, h2 { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.025em; }
.intro { max-width: 26rem; margin: 0 0 2rem; color: #686560; font-size: .94rem; line-height: 1.48; letter-spacing: -.01em; }
.dropzone { min-height: 12rem; display: grid; place-content: center; justify-items: center; gap: .55rem; padding: 1.5rem; color: #5e5b56; text-align: center; border: 1px dashed #c9c5bd; border-radius: .8rem; background: #fcfbfa; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.dropzone:hover, .dropzone.dragging { border-color: #151515; background: #f6f4ef; }
.dropzone:active { transform: scale(.99); }
.dropzone input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.upload-icon { width: 2rem; height: 2rem; display: grid; place-items: center; color: #fff; background: #151515; border-radius: 50%; font-size: 1.15rem; }
.dropzone-title { color: #252422; font-size: .88rem; font-weight: 650; }
.dropzone-detail { color: #8a8680; font-size: .74rem; }
.file-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding: .7rem .8rem; color: #56534e; font-size: .75rem; border-radius: .55rem; background: #f4f2ee; }
.file-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary button { width: 1.3rem; height: 1.3rem; display: grid; place-items: center; padding: 0; color: #65615c; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; line-height: 1; }
.file-summary button:hover { color: #151515; background: #e3e0da; }
.primary-button { min-height: 3.25rem; display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.5rem; color: #fff; border: 0; border-radius: .6rem; background: #151515; font-size: .88rem; font-weight: 650; transition: transform 150ms ease, opacity 150ms ease, background 150ms ease; }
.primary-button:hover { background: #33312f; }.primary-button:active { transform: scale(.98); }.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.privacy-note { margin: auto 0 0; padding-top: 2rem; color: #85817b; font-size: .72rem; }
.result-stage { position: relative; min-height: 22rem; display: grid; place-items: center; flex: 1; padding: 2rem; border-radius: .9rem; background: #fbfaf8; text-align: center; }
.empty-state, .loading-state, .success-state, .error-state { display: grid; justify-items: center; gap: .75rem; max-width: 18rem; }.empty-state p, .loading-state p, .success-state p, .error-state p { margin: 0; color: #88847e; font-size: .78rem; line-height: 1.45; }.loading-state strong, .success-state strong, .error-state strong { font-size: .88rem; letter-spacing: -.01em; }
.sheet-icon { width: 3.3rem; height: 4rem; position: relative; display: grid; align-content: center; gap: 4px; padding: .7rem; border: 2px solid #bbb7b0; border-radius: .22rem; }.sheet-icon i { height: 3px; display: block; background: #bbb7b0; }.sheet-icon i:nth-child(2) { width: 70%; }.sheet-icon i:nth-child(3) { width: 85%; }
.loader { width: 2rem; height: 2rem; border: 2px solid #dedbd5; border-top-color: #151515; border-radius: 50%; animation: spin .7s linear infinite; }.check, .error-mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #151515; font-size: 1.1rem; font-weight: 700; }.error-mark { background: #a85649; }.success-state button { min-height: 2.75rem; margin-top: .5rem; padding: 0 1rem; color: #151515; border: 1px solid #d4d0c9; border-radius: .55rem; background: transparent; font-size: .76rem; font-weight: 650; }.success-state button:hover { background: #edeae5; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .page-shell { width: min(100% - 2rem, 40rem); min-height: auto; padding: 1rem 0 2rem; display: block; }.workspace { grid-template-columns: 1fr; }.upload-panel { border-right: 0; border-bottom: 1px solid #dedcd7; }.result-stage { min-height: 18rem; }.privacy-note { margin-top: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
