:root{color:#16231f;font-synthesis:none;text-rendering:optimizelegibility;--ink:#16231f;--muted:#5c6b65;--line:#d6ddd8;--green:#0a6b50;--green-dark:#074b39;--green-soft:#e4f4ed;--amber:#a75508;--amber-soft:#fff3dd;--red:brown;--red-soft:#fff0ee;--surface:#fff;--shadow:0 18px 55px #18342a14;--radius-panel:12px;--radius-card:10px;--radius-control:8px;--radius-pill:999px;background:#f5f7f3;font-family:Inter,Segoe UI,Hiragino Kaku Gothic ProN,Yu Gothic UI,Meiryo,sans-serif}*{box-sizing:border-box}html{min-width:320px}body{background:radial-gradient(circle at 85% 0,#c7e6d773,#0000 32rem),#f5f7f3;min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,.drop-zone:focus-within{outline-offset:3px;outline:3px solid #4c9ffe}.app-shell{width:min(1180px,100% - 40px);margin:0 auto}.hero{justify-content:space-between;align-items:flex-start;gap:24px;padding:28px 0 0;display:flex}.hero-copy{min-width:0;max-width:790px}.hero-title-row{flex-wrap:wrap;align-items:flex-end;gap:8px 12px;display:flex}.step-label,.eyebrow{color:var(--green);letter-spacing:.14em;margin:0 0 10px;font-size:.75rem;font-weight:800}h1,h2,h3,p{overflow-wrap:anywhere}h1{letter-spacing:-.03em;white-space:nowrap;max-width:100%;margin:0;font-size:clamp(1.2rem,2.4vw,1.75rem);font-weight:800;line-height:1.2}.hero-description{color:#4a5568;max-width:720px;margin:6px 0 24px;font-size:.875rem;line-height:1.55}.privacy-badge{border-radius:var(--radius-control);color:#334155;white-space:nowrap;background:#f8fafc;border:1px solid #cbd5e1;flex:none;align-items:center;gap:6px;margin-top:0;padding:6px 10px;font-size:.78rem;font-weight:600;display:inline-flex}.privacy-badge-icon{width:16px;height:16px;color:var(--green-dark);flex:none}.workspace,.results{border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--surface);box-shadow:var(--shadow);margin:0 0 28px;padding:clamp(18px,3.2vw,34px)}.section-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:16px;display:flex}.section-heading .step-label{margin-bottom:6px}.section-heading h2{letter-spacing:-.025em;margin:0;font-size:clamp(1.25rem,2.2vw,1.5rem)}.section-heading>p{max-width:470px;color:var(--muted);text-align:right;margin:0;font-size:.84rem;line-height:1.55}.drop-zone{border-radius:var(--radius-card);min-height:220px;color:var(--ink);text-align:center;cursor:pointer;background:#f9fbf9;border:2px dashed #9fb8ad;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:28px;transition:border-color .16s,background .16s,transform .16s;display:flex}.drop-zone:hover{border-color:var(--green);background:var(--green-soft);transform:translateY(-2px)}.drop-zone.is-dragging{border-style:solid;border-color:var(--green);background:#e6f4f1;transform:translateY(-2px)}.drop-zone.is-disabled{cursor:not-allowed;opacity:.65;transform:none}.drop-zone input{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.drop-icon{border-radius:var(--radius-card);color:#fff;background:var(--green);place-items:center;width:48px;height:48px;margin-bottom:6px;font-size:1.5rem;display:grid}.drop-zone strong{font-size:1.1rem}.drop-zone>span:not(.drop-icon),.drop-zone small{color:var(--muted)}.drop-zone small{margin-top:10px;line-height:1.55}.boundary-info{color:#525252;flex-wrap:wrap;align-items:center;gap:7px 18px;margin:11px 4px 0;padding:0;font-size:.78rem;line-height:1.55;list-style:none;display:flex}.boundary-info li{align-items:center;gap:6px;min-width:0;display:inline-flex}.boundary-info li+li:before{color:var(--line);content:"|";margin-right:11px}.boundary-info-icon{color:var(--green-dark);flex:none;justify-content:center;align-items:center;font-size:.88rem;line-height:1;display:inline-flex}.selection-notice,.operation-notice{min-height:1.4em;color:var(--red);margin:10px 0 0;font-size:.86rem}.queue-panel{border:1px solid var(--line);border-radius:var(--radius-card);margin-top:25px;overflow:hidden}.queue-heading,.result-heading{justify-content:space-between;align-items:center;gap:18px;display:flex}.queue-heading{border-bottom:1px solid var(--line);background:#f7f9f7;padding:18px 20px}.queue-heading h3{margin:0;font-size:1rem}.queue-heading span{color:var(--muted);font-size:.82rem}.file-list{margin:0;padding:0;list-style:none}.file-list li{border-bottom:1px solid #e9eeeb;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:16px 20px;display:grid}.file-list li:last-child{border-bottom:0}.file-order{color:#8a9993;font-variant-numeric:tabular-nums;font-size:.76rem;font-weight:800}.file-details{min-width:0}.file-details strong,.file-details>span{display:block}.file-details strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-details>span{color:var(--muted);margin-top:3px;font-size:.8rem}.inline-error{color:var(--red);margin:7px 0 0;font-size:.83rem;line-height:1.5}.selection-controls{max-width:390px;margin-top:10px}.selection-controls.has-page-break-option{flex-wrap:wrap;gap:10px;max-width:820px;display:flex}.selection-summary{background:var(--green-soft);justify-content:space-between;align-items:center;gap:14px;min-width:0;padding:10px 12px;display:flex}.selection-controls.has-page-break-option .selection-summary{flex:280px;min-width:260px}.option-row{min-width:0;color:var(--ink);cursor:pointer;background:#f7faf8;border:1px solid #c8d8d1;align-items:flex-start;gap:10px;padding:12px;display:flex}.selection-controls.has-page-break-option .option-row{flex:1.2 360px;min-width:320px}.option-row input{accent-color:var(--green);flex:none;margin-top:3px}.option-row span{gap:3px;display:grid}.option-row strong{font-size:.8rem}.option-row small{color:var(--muted);font-size:.76rem;line-height:1.45}.selection-summary span{gap:2px;display:grid}.selection-summary span strong{text-overflow:clip;white-space:normal;font-size:.78rem;overflow:visible}.selection-summary small{color:var(--muted);font-size:.78rem}.selection-summary button,.sheet-actions button{color:var(--green-dark);background:0 0;border:0;flex:none;font-weight:750;text-decoration:underline}.status,.format-chip{border-radius:var(--radius-pill);justify-content:center;align-items:center;padding:6px 10px;font-size:.76rem;font-weight:700;display:inline-flex}.status-inspecting,.status-queued,.status-cancelled{color:#51615a;background:#edf1ef}.modal-backdrop{z-index:50;background:#12242694;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.selection-dialog{border-radius:var(--radius-panel);background:#fffefa;width:min(560px,100%);max-height:calc(100vh - 40px);padding:28px;overflow:auto;box-shadow:0 24px 80px #0a191a4d}.selection-dialog h2{color:var(--ink);margin:6px 0;font-family:Georgia,Yu Mincho,serif;font-size:1.8rem}.selection-dialog h2:focus{outline:none}.dialog-file{color:var(--muted);word-break:break-all;margin:0 0 22px}.scope-options{gap:12px;display:grid}.scope-options label,.sheet-list label{border:1px solid var(--line);cursor:pointer;align-items:center;gap:10px;padding:12px;display:flex}.scope-options input,.sheet-list input{accent-color:var(--green)}.range-fields{background:#f3f5f0;justify-content:center;align-items:end;gap:12px;margin-top:18px;padding:18px;display:flex}.range-fields label{color:var(--muted);gap:6px;font-size:.78rem;display:grid}.range-fields input{background:#fff;border:1px solid #aebbb7;width:110px;padding:9px}.sheet-list{gap:7px;max-height:280px;margin-top:16px;display:grid;overflow:auto}.sheet-list label span{align-items:center;gap:8px;display:flex}.sheet-list small{color:#755c31;background:#f5e8c9;padding:2px 6px}.sheet-actions{background:#fffefa;justify-content:flex-end;gap:10px;padding:6px;display:flex;position:sticky;top:0}.document-scope-notice{border-left:3px solid var(--green);background:var(--green-soft);padding:18px}.document-scope-notice p{color:var(--muted);margin-bottom:0;line-height:1.65}.selection-error{color:var(--red);margin:12px 0 0;font-size:.86rem}.dialog-actions{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.status-converting{color:#125287;background:#e5f2ff}.status-completed{color:var(--amber);background:var(--amber-soft)}.status-partial{color:#784408;background:#fff0cf}.status-failed{color:var(--red);background:var(--red-soft)}.queue-actions,.result-actions{flex-wrap:wrap;gap:10px;display:flex}.queue-actions{border-top:1px solid var(--line);background:#fbfcfb;padding:20px}.primary-button,.secondary-button,.danger-button,.text-button{border-radius:var(--radius-control);min-height:43px;padding:10px 16px;font-weight:750}.primary-button{border:1px solid var(--green);color:#fff;background:var(--green)}.primary-button:hover:not(:disabled){background:var(--green-dark)}.secondary-button{color:var(--green-dark);background:#fff;border:1px solid #9db4aa}.danger-button{color:var(--red);background:var(--red-soft);border:1px solid #dca7a1}.text-button{color:var(--muted);background:0 0;border:1px solid #0000}.worker-note{color:var(--muted);background:#fbfcfb;margin:0;padding:0 20px 18px;font-size:.82rem}.result-list{gap:22px;min-width:0;display:grid}.result-card{border:1px solid var(--line);border-radius:var(--radius-card);min-width:0;max-width:100%;padding:clamp(18px,3vw,28px)}.result-heading h3{max-width:760px;margin:0;font-size:1.16rem}.result-handoff{max-width:480px;color:var(--green-dark);text-align:right;align-items:flex-start;gap:6px;margin:0;font-size:.82rem;line-height:1.55;display:inline-flex}.result-handoff>span{flex:none;font-size:.95rem}.format-chip{color:var(--green-dark);background:var(--green-soft);text-transform:uppercase;flex:none}.quality-panel{border-radius:var(--radius-card);background:#fff9ed;border:1px solid #efc98c;margin:20px 0;padding:17px 19px}.quality-panel>strong{color:#784408}.quality-panel ul{margin:10px 0;padding-left:20px}.quality-panel li{color:#704b1d;margin:6px 0;font-size:.86rem;line-height:1.55}.quality-panel li[data-severity=high]{color:#952b24;font-weight:650}.quality-panel small{color:var(--muted)}.result-failed .quality-panel{background:var(--red-soft);border-color:#e7aaa5}.blocked-output{border-radius:var(--radius-card);color:var(--red);background:#fff7f6;border:1px solid #e7aaa5;margin:18px 0 0;padding:16px 18px;font-weight:700}.tabs{border-bottom:1px solid var(--line);gap:4px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;margin-bottom:-1px;padding:11px 16px;font-weight:700}.tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green-dark)}.preview-shell{border-radius:var(--radius-card);background:#fbfcfb;border:1px solid #e0e6e2;min-width:0;max-width:100%;min-height:220px;max-height:620px;margin:18px 0;padding:20px;overflow:auto}.plain-preview{color:#27332f;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font:.9rem/1.75 ui-monospace,SFMono-Regular,Consolas,monospace}.markdown-preview{min-width:0;max-width:100%;line-height:1.75}.markdown-preview>:first-child{margin-top:0}.markdown-preview>:last-child{margin-bottom:0}.markdown-table-scroll{overscroll-behavior-inline:contain;max-width:100%;overflow-x:auto}.markdown-table-scroll:focus-visible{outline-offset:2px;outline:3px solid #4c9ffe}.markdown-preview table{border-collapse:collapse;width:max-content;min-width:100%}.markdown-preview th,.markdown-preview td{border:1px solid var(--line);text-align:left;padding:8px 10px}.markdown-preview code{background:#e9efec;border-radius:4px;padding:.12em .35em}.markdown-preview pre code{padding:14px;display:block;overflow:auto}.blocked-reference{color:#41564d;border-bottom:1px dotted #70877d}.blocked-image{border:1px solid var(--line);color:var(--muted);background:#eef2f0;border-radius:5px;padding:4px 8px;font-size:.86em;display:inline-block}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:780px){.app-shell{width:min(100% - 24px,1180px)}.hero{flex-direction:column;padding:24px 0 0}.privacy-badge{margin-top:0}.section-heading{flex-direction:column;align-items:flex-start;gap:8px}.section-heading>p{text-align:left}.boundary-info{gap:6px;margin-inline:2px;display:grid}.boundary-info li+li:before{display:none}.selection-controls.has-page-break-option{max-width:390px}.selection-controls.has-page-break-option .selection-summary,.selection-controls.has-page-break-option .option-row{flex-basis:100%;min-width:0}.drop-zone{min-height:220px;padding:25px 18px}.file-list li{grid-template-columns:auto minmax(0,1fr)}.file-list .status{grid-column:2;justify-self:start}.result-heading{flex-direction:column;align-items:flex-start}.result-handoff{text-align:left}}@media (max-width:440px){.workspace,.results{border-radius:var(--radius-panel);padding:18px 14px}.queue-actions,.result-actions{flex-direction:column}.queue-actions button,.result-actions button{width:100%}.tabs button{flex:1;padding-inline:8px}.preview-shell{padding:14px}.modal-backdrop{padding:10px}.selection-dialog{max-height:calc(100vh - 20px);padding:20px 16px}.range-fields{align-items:center;padding:14px 10px}.range-fields input{width:min(32vw,110px)}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
