@charset "UTF-8";
.ingest-root{--ingest-green:#397759;--ingest-yellow:#fff6dd;color:var(--ink,#292538);display:grid;gap:20px;max-width:1180px;margin:auto;min-width:0}
.ingest-root *{box-sizing:border-box}.ingest-root button,.ingest-root input,.ingest-root select,.ingest-root textarea{font:inherit}.ingest-root button{cursor:pointer}.ingest-root button:disabled{cursor:default;opacity:.52}.ingest-root button:focus-visible,.ingest-root input:focus-visible,.ingest-root textarea:focus-visible,.ingest-root summary:focus-visible,.ingest-root a:focus-visible{outline:3px solid var(--accent,#7560c7);outline-offset:3px}.ingest-root p{line-height:1.65}.ingest-root h2{font-size:20px;line-height:1.25;margin:0 0 9px}.ingest-root h3{font-size:17px;margin:0 0 8px}.ingest-root label{font-size:13px}.ingest-root input,.ingest-root select,.ingest-root textarea{border:1px solid #d8d1e1;padding:11px 12px;background:white;color:var(--ink);border-radius:11px;min-width:0;width:100%}.ingest-root textarea{min-height:90px;resize:vertical;font-size:14px;line-height:1.7}.ingest-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;background:linear-gradient(115deg,#eee7fc,#fbf0df);border:1px solid #e1d5ef;border-radius:24px;overflow:hidden}.ingest-heading h1{font-size:clamp(25px,2.9vw,36px);margin:9px 0 11px;line-height:1.1}.ingest-heading p{font-size:13px;max-width:590px;margin:0;color:#72617e}.ingest-kicker{color:var(--accent-dark,#554393);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ingest-book{flex:0 0 145px}.ingest-book svg{width:100%;height:auto}.ingest-panel{background:white;border:1px solid var(--line,#e7e3ed);border-radius:21px;padding:23px;min-width:0}.ingest-panel p{font-size:13px;margin:0 0 16px}.ingest-start{display:flex;align-items:center;gap:24px;background:#fffdf7}.ingest-orb{width:66px;height:66px;flex:0 0 66px;display:grid;place-items:center;background:#ffe3af;border:2px solid #f1c77b;border-radius:23px;font-size:35px;color:#876624;transform:rotate(-5deg)}.ingest-start p{max-width:670px}.ingest-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fff;color:var(--accent-dark,#554393);border:1px solid #dcd3e8;border-radius:12px;padding:11px 15px;min-height:44px;font-weight:700!important;font-size:12px!important;line-height:1.4;text-align:center;touch-action:manipulation}.ingest-button:hover{background:var(--soft,#eee9fc)}.ingest-button.ingest-primary{background:var(--accent-dark,#554393);color:#fff;border-color:var(--accent-dark,#554393)}.ingest-button.ingest-primary:hover{background:#45347d}.ingest-button.ingest-quiet{background:transparent;border-color:transparent;color:#796786;padding:10px}.ingest-button.ingest-quiet:hover{background:#f3edf9}.ingest-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.ingest-status{min-height:24px;font-size:12px;color:var(--ingest-green);line-height:1.6;position:sticky;top:4px;background:#f8f7fbf5;backdrop-filter:blur(8px);border-radius:9px;padding:6px 9px;margin-top:-10px;margin-bottom:-8px;z-index:3}.ingest-status:empty{display:none}.ingest-status.ingest-error{background:#fff0e9;color:#983e2e;border:1px solid #edc9b9;padding:12px}.ingest-conflict{padding:18px;border:1px solid #e8c089;border-radius:15px;background:var(--ingest-yellow);font-size:13px}.ingest-conflict[hidden]{display:none}.ingest-top-actions{display:flex;justify-content:space-between;margin-top:-12px;margin-bottom:-12px}.ingest-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.ingest-section-heading h2{margin:5px 0}.ingest-section-heading>span{font-size:12px;color:var(--muted)}.ingest-drafts{list-style:none;padding:0;margin:0}.ingest-drafts li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid var(--line)}.ingest-drafts li:last-child{padding-bottom:0}.ingest-drafts strong,.ingest-drafts small{display:block}.ingest-drafts strong{font-size:14px;overflow-wrap:anywhere}.ingest-drafts small{margin-top:5px;color:var(--muted)}.ingest-settings summary{cursor:pointer;font-weight:750;font-size:15px;line-height:1.5}.ingest-settings summary span{font-weight:400;font-size:12px;color:var(--muted);margin-left:14px;overflow-wrap:anywhere}.ingest-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.ingest-wide{grid-column:1/-1}.ingest-meta-grid textarea{min-height:82px}.ingest-root .ingest-muted{font-size:11px;color:var(--muted,#706c7d);line-height:1.6;margin:9px 0 12px}.ingest-acquisition{background:#fdfbf7}.ingest-acquisition>div>p{max-width:690px;color:var(--muted);font-size:12px}.ingest-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}.ingest-manual{display:grid;gap:15px;margin-top:20px;border-top:1px solid var(--line);padding-top:20px}.ingest-manual .ingest-button{justify-self:start}.ingest-manual .ingest-muted{margin:0}.ingest-workbench{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start;min-width:0}.ingest-pages{min-width:0}.ingest-pages>.ingest-section-heading{padding:0 5px;margin-bottom:11px}.ingest-pages h2{font-size:16px}.ingest-pages ol{list-style:none;margin:0;padding:0;display:grid;gap:13px}.ingest-page-card{border:1px solid #e0d9e8;border-radius:17px;background:#fff;overflow:hidden}.ingest-page-card.ingest-current{border:2px solid #9e82c9;box-shadow:0 5px 16px #735a9b12}.ingest-page-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 11px 0;gap:8px}.ingest-root .ingest-check{display:flex;align-items:flex-start;gap:9px;min-height:35px;font-weight:500;font-size:12px;line-height:1.6;cursor:pointer}.ingest-root .ingest-check input{appearance:auto;width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:var(--accent-dark,#554393);padding:0}.ingest-order{display:grid;place-items:center;border-radius:8px;background:#f0e9fb;color:#78648c;min-width:22px;height:22px;font-size:11px;align-self:flex-start}.ingest-page-open{width:100%;border:0;background:transparent;display:flex;gap:10px;align-items:center;text-align:left;padding:9px 11px;color:var(--ink);min-height:89px;min-width:0}.ingest-page-open img{width:48px;height:69px;object-fit:contain;border:1px solid #e6dfeb;border-radius:6px;background:#faf8f3;flex-shrink:0}.ingest-page-open>span{min-width:0}.ingest-page-open strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.ingest-page-open small{display:block;font-size:10px;margin-top:7px;color:#7b6a88;line-height:1.5}.ingest-text-thumb{display:grid;place-items:center;width:48px;flex:0 0 48px;height:66px;border-radius:8px;background:#faefd3;color:#997b34;font-family:Georgia,serif;font-size:24px}.ingest-page-order{display:flex;padding:0 5px 5px;justify-content:space-around;border-top:1px solid #f0eaf5}.ingest-page-order .ingest-button{min-height:40px;font-size:11px!important;padding:8px}.ingest-editor{padding:22px;min-width:0}.ingest-editor>.ingest-section-heading{align-items:flex-start}.ingest-editor>.ingest-section-heading .ingest-button{font-size:11px!important;max-width:110px}.ingest-editor h2{overflow-wrap:anywhere}.ingest-review-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:18px;margin-top:17px}.ingest-source{min-width:0}.ingest-source>a{display:block;position:relative;background:#f5f0e7;border:1px solid #e6ded0;border-radius:11px;overflow:hidden;text-align:center;padding:7px}.ingest-source>a>img{width:100%;height:auto;max-height:470px;object-fit:contain;display:block}.ingest-source .ingest-actions{margin-top:11px;gap:7px}.ingest-source .ingest-button{font-size:11px!important;padding:9px 10px;flex:1}.ingest-text{min-width:0}.ingest-text textarea{width:100%;min-height:340px;font-size:13px;line-height:1.75}.ingest-manual-source{height:100%;min-height:235px;background:#fbf4df;border:1px dashed #e2cba3;border-radius:15px;padding:24px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.ingest-manual-source>span{font-family:Georgia,serif;font-size:53px;color:#b58e47;margin-bottom:18px}.ingest-manual-source p{font-size:12px;color:#8a7857;margin:0}.ingest-ocr-label{font-size:10px;color:#746780}.ingest-warnings{margin:12px 0 0;padding:12px 12px 12px 26px;background:#fff6de;border-radius:11px;font-size:11px;line-height:1.6;color:#8c6b32}.ingest-issues{border:1px solid #e9d8bc;background:#fffcf3;border-radius:15px;padding:16px;margin:22px 0 17px;min-width:0}.ingest-issues legend{font-weight:750;font-size:13px;padding:0 7px;color:#806239}.ingest-issues>p{font-size:11px;color:#8a7a60;margin:0 0 12px}.ingest-issues>div{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}.ingest-issues .ingest-check{font-size:11px}.ingest-review-confirm{padding:17px;border-radius:14px;background:var(--soft,#eee9fc)}.ingest-review-confirm p{font-size:12px;color:#72617f;margin:0 0 12px}.ingest-review-confirm.ingest-reviewed{background:#e4f3e9}.ingest-review-confirm.ingest-reviewed p{color:#3c7554}.ingest-empty{text-align:center;padding:50px 35px;background:#fffdf8}.ingest-empty>span{font-size:47px;color:#e5b361;display:block;margin-bottom:19px}.ingest-empty p{max-width:430px;margin:auto;color:var(--muted)}.ingest-final{border-color:#d7e4d9;background:#f4fbf5}.ingest-final>.ingest-section-heading .ingest-count{color:#4b7855;padding:8px 10px;background:#e1f0e2;border-radius:11px;text-align:center}.ingest-final-list{list-style:decimal;margin:0 0 22px;padding:0 0 0 24px}.ingest-final-list li{position:relative;padding:15px 0;border-bottom:1px solid #dce9dc;font-size:12px}.ingest-final-list strong{display:block;font-size:13px}.ingest-final-list small{display:block;color:#707b70;font-size:11px;margin:7px 0;overflow-wrap:anywhere}.ingest-final-list .ingest-button{margin-left:10px;font-size:11px!important}.ingest-ok{color:#397759;font-size:11px;font-weight:700}.ingest-not-ready{color:#9a6330;font-size:11px;font-weight:700}.ingest-root .ingest-complete{font-size:13px;background:white;border:1px solid #d9e6db;border-radius:13px;padding:16px;align-items:flex-start}.ingest-root .ingest-warning{color:#8b622c;background:#fff2d8;border:1px solid #ead7b5;border-radius:11px;padding:12px;font-size:12px;margin:15px 0}.ingest-privacy{font-size:10px;color:var(--muted);text-align:center;margin:0;padding:0 15px}.ingest-saved{text-align:center;padding:36px}.ingest-saved .ingest-orb{margin:0 auto 25px;background:#dcefdc;color:#5b895b;border-color:#bad7ba}.ingest-saved>.ingest-button{margin:5px}.ingest-crop{margin-top:24px}.ingest-crop>p{font-size:12px;color:var(--muted)}.ingest-crop-preview{position:relative;width:min(100%,440px);margin:18px auto;background:#f6f1e7;overflow:hidden}.ingest-crop-preview>img{display:block;width:100%;height:auto}.ingest-crop-rect{position:absolute;border:3px solid #7650c6;background:#9970df20;box-shadow:0 0 0 500px #22182d66;pointer-events:none}.ingest-crop-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ingest-crop-controls label{font-size:11px}.ingest-crop-controls input{padding:10px 8px;min-height:43px}
@media(min-width:1450px){.ingest-workbench{grid-template-columns:215px minmax(0,1fr)}}
@media(max-width:1100px){.ingest-review-grid{grid-template-columns:1fr}.ingest-source>a>img{max-height:370px}.ingest-manual-source{min-height:160px}.ingest-manual-source>span{font-size:38px;margin-bottom:12px}.ingest-text textarea{min-height:290px}.ingest-issues>div{grid-template-columns:1fr}.ingest-heading{padding:23px}.ingest-book{flex-basis:115px}}
@media(max-width:700px){.ingest-root{gap:15px}.ingest-heading{padding:21px;gap:9px}.ingest-heading h1{font-size:27px}.ingest-heading p{font-size:12px}.ingest-book{display:none}.ingest-kicker{font-size:9px}.ingest-panel{padding:18px;border-radius:17px}.ingest-start{gap:17px;align-items:flex-start}.ingest-start .ingest-orb{width:45px;height:45px;flex-basis:45px;border-radius:15px;font-size:28px}.ingest-root h2{font-size:18px}.ingest-meta-grid{gap:15px;grid-template-columns:1fr}.ingest-settings summary span{display:block;margin:7px 0 0}.ingest-workbench{grid-template-columns:1fr}.ingest-pages ol{display:flex;overflow-x:auto;padding-bottom:9px;scroll-snap-type:x proximity}.ingest-page-card{flex:0 0 174px;scroll-snap-align:start}.ingest-pages>.ingest-section-heading{margin-bottom:8px}.ingest-editor{padding:18px}.ingest-issues>div{grid-template-columns:1fr}.ingest-review-grid{gap:18px}.ingest-final>.ingest-section-heading{align-items:flex-start}.ingest-count{max-width:110px}.ingest-drafts li{align-items:flex-start;flex-wrap:wrap}.ingest-drafts .ingest-actions{margin-left:auto}.ingest-crop-controls{grid-template-columns:1fr 1fr}.ingest-button{font-size:12px!important}.ingest-acquisition>.ingest-actions>.ingest-button{flex:1 1 145px}.ingest-top-actions{margin-block:-6px}.ingest-root .ingest-complete{font-size:12px;padding:13px}.ingest-saved{padding:30px 18px}}
@media(prefers-reduced-motion:reduce){.ingest-root *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.ingest-camera-dialog{width:min(640px,calc(100% - 32px));max-height:90dvh;overflow:auto;border:1px solid #d9cce8;border-radius:24px;padding:25px;background:#fffdf7;box-shadow:0 25px 100px #1e183a40;gap:16px}.ingest-camera-dialog:not([open]){display:none}.ingest-camera-dialog::backdrop{background:#211a3b99;backdrop-filter:blur(4px)}.ingest-camera-dialog [hidden]{display:none!important}.ingest-camera-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.ingest-camera-heading h2{margin-top:8px}.ingest-camera-dialog p{margin:0;font-size:13px}.ingest-camera-dialog video{display:block;width:100%;max-height:48dvh;object-fit:contain;background:#262239;border-radius:15px}.ingest-camera-dialog [data-camera-status]{padding:13px;border-radius:12px;background:#eee8fa;color:#51416f}.ingest-camera-dialog .ingest-actions{gap:12px}
