:root{font-family:Segoe UI,Noto Sans KR,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#17201c;background:#ebe6dc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #fbfaf6;--paper-strong: #fffefa;--ink: #17201c;--muted: #66736b;--line: #d7d0c3;--line-strong: #b9ae9f;--green: #256f55;--green-deep: #164835;--red: #a83b32;--amber: #9a6a21;--shadow: 0 18px 50px rgba(37, 48, 42, .12)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit}button{border:0}button:disabled{cursor:not-allowed;opacity:.52}a{color:inherit}.app-shell{display:grid;grid-template-columns:96px minmax(0,1fr);min-height:100vh;background:linear-gradient(90deg,rgba(37,111,85,.05),transparent 38%),radial-gradient(circle at 78% 12%,rgba(168,59,50,.08),transparent 28%),var(--paper)}.tool-rail{position:sticky;top:0;height:100vh;padding:18px 12px;background:#17201c;color:#f9f3e8;display:flex;flex-direction:column;align-items:center;gap:12px}.rail-mark{width:52px;height:52px;border:1px solid rgba(249,243,232,.22);display:grid;place-items:center;color:#dbeee5;margin-bottom:10px}.rail-button{width:70px;min-height:66px;border-radius:6px;display:grid;place-items:center;gap:5px;color:#f9f3e8b8;background:transparent;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.rail-button span{font-size:12px;font-weight:700}.rail-button:hover:not(:disabled),.rail-button.active{color:#fff;background:#ffffff1c}.rail-button.active{box-shadow:inset 3px 0 #8cd5b7}.workspace{padding:22px;display:flex;flex-direction:column;gap:18px}.topbar,.drop-zone,.document-stage,.ocr-output,.site-footer{border:1px solid var(--line);background:#fffefad4;box-shadow:var(--shadow)}.topbar{min-height:92px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand-row{display:flex;align-items:center;gap:10px;font-size:clamp(22px,2.2vw,34px);font-weight:850;letter-spacing:0;color:var(--ink);text-decoration:none}.brand-row svg{color:var(--green)}.topbar p,.drop-copy p,.mode-hint,.fine-print,.site-footer span{color:var(--muted);margin:4px 0 0;line-height:1.55}.top-actions,.queue-stats,.file-actions,.site-footer nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.privacy-pill,.queue-stats span{min-height:36px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#f3efe6;color:var(--green-deep);padding:0 12px;border-radius:999px;font-size:13px;font-weight:800}.drop-zone{position:relative;min-height:136px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-style:dashed}.drop-zone input[type=file]{display:none}.drop-copy{display:flex;align-items:center;gap:16px}.drop-copy svg{color:var(--green);flex:0 0 auto}.drop-copy h1{margin:0;font-size:clamp(24px,3vw,46px);line-height:1.08;letter-spacing:0}.primary-button,.secondary-button,.action-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:6px;cursor:pointer;font-weight:850;letter-spacing:0}.primary-button,.action-button{background:var(--green);color:#fff;padding:0 18px}.primary-button:hover,.action-button:hover{background:var(--green-deep)}.secondary-button{background:#efe9dc;color:var(--green-deep);border:1px solid var(--line);padding:0 14px}.document-stage{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:500px}.stage-main{padding:20px;min-width:0}.stage-header{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:14px}.section-label{text-transform:uppercase;color:var(--green);font-size:12px;font-weight:900;letter-spacing:.08em}.stage-header h2,.inspector h2,.ocr-output h2{margin:4px 0 0;font-size:22px;line-height:1.2}.empty-preview{min-height:390px;border:1px solid var(--line);background:linear-gradient(90deg,transparent 0 31px,rgba(23,32,28,.045) 32px),linear-gradient(transparent 0 31px,#17201c0b 32px),#f5f1e9;background-size:32px 32px;display:grid;place-items:center;text-align:center;color:var(--muted);padding:32px}.empty-preview p{max-width:360px}.file-list{display:grid;gap:12px}.file-card{display:grid;grid-template-columns:58px 82px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--line);background:#fffefa;padding:10px;cursor:pointer;transition:border .16s ease,box-shadow .16s ease,transform .16s ease}.file-card:hover,.file-card.selected{border-color:var(--green);box-shadow:0 10px 26px #256f551f}.file-card.selected{transform:translate(2px)}.drag-handle{color:var(--muted);display:flex;align-items:center;gap:4px;font-weight:800}.file-card img{width:82px;height:104px;object-fit:cover;border:1px solid var(--line);background:#f2eadc}.file-meta{min-width:0;display:grid;gap:6px}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta span,.selected-box small,.policy-card p{color:var(--muted);font-size:13px}.page-input{display:flex;align-items:center;gap:8px;color:var(--green-deep);font-size:13px;font-weight:800}.page-input input{width:118px;height:34px;border:1px solid var(--line);border-radius:5px;background:#f8f4ed;padding:0 9px;color:var(--ink)}.file-actions button{width:38px;height:34px;min-width:38px;border:1px solid var(--line);border-radius:5px;background:#f3efe6;color:var(--ink);cursor:pointer;display:inline-grid;place-items:center}.file-actions button:hover,.file-actions button:focus-visible{border-color:var(--green)}.inspector{border-left:1px solid var(--line);background:#f4efe6;padding:20px;display:flex;flex-direction:column;gap:14px}.selected-box,.status-card,.policy-card,.ocr-meter{border:1px solid var(--line);background:#fffefac7;padding:14px}.selected-box{display:grid;gap:6px}.selected-box span{color:var(--green);font-size:12px;font-weight:900;text-transform:uppercase}.status-card,.policy-card{display:flex;gap:10px;align-items:flex-start}.status-card svg,.policy-card svg{color:var(--green);flex:0 0 auto}.ocr-meter{display:grid;gap:10px}.ocr-meter div{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;font-weight:800}progress{width:100%;height:10px;border:0;border-radius:999px;overflow:hidden}progress::-webkit-progress-bar{background:#ddd5c7}progress::-webkit-progress-value{background:var(--green)}.ocr-output{padding:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start}.ocr-output textarea{grid-column:1 / -1;min-height:190px;resize:vertical;border:1px solid var(--line);background:#fffefa;color:var(--ink);padding:14px;line-height:1.65;border-radius:6px}.site-footer{padding:16px 18px;display:flex;justify-content:space-between;gap:16px;align-items:center;box-shadow:none}.site-footer div{display:grid;gap:4px}.site-footer a{color:var(--green-deep);font-weight:800}@media(max-width:1080px){.app-shell{grid-template-columns:1fr}.tool-rail{position:static;height:auto;flex-direction:row;justify-content:flex-start;overflow-x:auto}.document-stage{grid-template-columns:1fr}.inspector{border-left:0;border-top:1px solid var(--line)}}@media(max-width:720px){.workspace{padding:12px}.topbar,.drop-zone,.stage-header,.site-footer{align-items:flex-start;flex-direction:column}.drop-zone{min-height:auto}.drop-copy{align-items:flex-start}.file-card{grid-template-columns:38px 70px minmax(0,1fr)}.file-actions{grid-column:2 / -1}.file-card img{width:70px;height:88px}}@media(min-width:1081px){.app-shell{grid-template-columns:88px minmax(0,1fr)}.workspace{padding:18px 20px}.drop-zone{min-height:118px}.document-stage{grid-template-columns:minmax(0,1fr) 300px;min-height:460px}}@media(max-width:1080px){.tool-rail{position:sticky;top:0;z-index:20}}@media(max-width:720px){.brand-row{font-size:22px}.privacy-pill{min-height:32px}.empty-preview{min-height:260px}}
