:root{color:#172026;font-synthesis:none;text-rendering:optimizelegibility;background:#eef2f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}*{box-sizing:border-box}[hidden]{display:none!important}body{min-width:320px;min-height:100vh;margin:0}body.has-preview-lightbox{overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}.shell{width:calc(100% - 16px);min-height:100vh;margin:0 auto;padding:8px 0}.panel{background:#fff;border:1px solid #d9e1e7;border-radius:8px;box-shadow:0 8px 24px #22303c0f}.upload-screen{place-items:center;min-height:calc(100vh - 40px);display:grid}.drop-zone{color:#365060;text-align:center;cursor:pointer;background:#fff;border:2px dashed #91a8b8;border-radius:8px;place-items:center;width:min(720px,100%);min-height:320px;padding:28px;transition:background .16s,border-color .16s,transform .16s;display:grid;box-shadow:0 8px 24px #22303c0f}.drop-zone input{display:none}.drop-zone.is-dragging{background:#f2f8fb;border-color:#17a;transform:translateY(-1px)}.drop-icon{color:#fff;background:#17a;border-radius:8px;place-items:center;width:58px;height:58px;margin-bottom:12px;display:grid}.drop-title{font-size:1.2rem;font-weight:800;display:block}.work-screen{gap:10px;display:grid}.top-row{grid-template-columns:minmax(220px,320px) minmax(0,1fr);align-items:stretch;gap:10px;min-width:0;display:grid}.work-header{align-content:start;gap:12px;min-width:0;padding:12px;display:grid}.status-card{color:#2b3a45;overflow-wrap:anywhere;align-items:center;gap:10px;min-width:0;font-weight:700;display:flex}.status-dot{background:#94a3b8;border-radius:999px;flex:none;width:10px;height:10px}.status-dot[data-tone=ready]{background:#0f9f6e}.status-dot[data-tone=busy]{background:#d97706}.status-dot[data-tone=error]{background:#d92d20}.loader-block{min-width:0}.progress-head{color:#607283;justify-content:space-between;gap:12px;font-size:.82rem;font-weight:800;display:flex}.progress-head span:last-child{color:#8a5b0f}.progress{background:#e3e9ee;border-radius:999px;height:10px;margin-top:7px;overflow:hidden}.progress span{background:#0f9f6e;width:0%;height:100%;transition:width .16s;display:block}.primary-btn{color:#fff;background:#166657;border-radius:8px;min-height:36px;padding:0 14px;font-weight:800}.primary-btn:hover:not(:disabled){background:#105449}.hidden-controls{display:none}.workspace{min-width:0;display:block}.document-panel,.sheet-panel{min-width:0;padding:14px}.section-heading{justify-content:space-between;align-items:center;gap:10px;min-height:36px;margin-bottom:10px;display:flex}.eyebrow{color:#607283;letter-spacing:0;text-transform:uppercase;margin:0 0 2px;font-size:.7rem;font-weight:800}h2{color:#172026;letter-spacing:0;margin:0;font-size:1rem}.button-row{flex-wrap:wrap;gap:8px;display:flex}.icon-btn{color:#2b3a45;background:#edf2f5;border-radius:8px;flex:none;place-items:center;width:36px;height:36px;display:inline-grid}.icon-btn:hover:not(:disabled){color:#fff;background:#17a}.preview-wrap{background:#e5ebef;border:1px solid #d8e0e7;border-radius:8px;place-items:center;width:100%;height:112px;display:grid;overflow:auto}.preview-wrap img{object-fit:contain;background:#fff;max-width:100%;max-height:none;display:block;box-shadow:0 8px 20px #1720261f}.preview-wrap.has-preview{cursor:zoom-in}.preview-wrap.has-preview:focus-visible{outline-offset:3px;outline:3px solid #1177aa52}.preview-wrap.has-preview img{cursor:zoom-in}.preview-wrap.is-empty,.preview-wrap.is-loading{background:#f7fafc;border-style:dashed;overflow:hidden}.empty-preview{color:#365060;text-align:center;place-items:center;height:100%;padding:14px;display:grid}.empty-preview svg{color:#17a;width:38px;height:38px;margin-bottom:8px}.empty-preview span{overflow-wrap:anywhere;white-space:normal;max-width:220px;font-weight:800;display:block}.preview-status{color:#607283;overflow-wrap:anywhere;min-height:20px;margin:8px 0 0;font-size:.82rem;font-weight:700}.page-controls{align-items:center;gap:6px;display:inline-flex}.page-controls span{color:#465767;text-align:center;min-width:50px;font-size:.82rem;font-weight:800}.preview-lightbox{z-index:1000;background:#0d141bf0;flex-direction:column;gap:12px;padding:14px;display:flex;position:fixed;inset:0}.preview-lightbox-toolbar{justify-content:space-between;align-items:center;gap:12px;min-height:40px;display:flex}.preview-lightbox-caption{color:#fff;text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:.92rem;font-weight:800;overflow:hidden}.preview-lightbox-actions{flex:none;align-items:center;gap:10px;display:inline-flex}.preview-lightbox-pages{background:#ffffff1a;border-radius:8px;padding:4px}.preview-lightbox-pages span{color:#fff}.preview-lightbox .icon-btn{color:#fff;background:#ffffff24;border:1px solid #ffffff2e}.preview-lightbox .icon-btn:hover:not(:disabled){background:#17a}.preview-lightbox-stage{flex:auto;place-items:center;min-height:0;padding:8px;display:grid;overflow:auto}.preview-lightbox-stage img{object-fit:contain;background:#fff;max-width:100%;max-height:100%;display:block;box-shadow:0 18px 52px #00000057}.sheet-wrap{background:#fff;border:1px solid #cfd9e1;border-radius:8px;width:100%;min-width:0;height:max(430px,100vh - 270px);overflow:auto}.appointment-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.76rem}.appointment-table th,.appointment-table td{border-bottom:1px solid #d9e1e7;border-right:1px solid #d9e1e7}.appointment-table thead th,.appointment-table .row-heading{z-index:2;color:#465767;text-align:center;white-space:nowrap;background:#edf2f5;height:29px;font-weight:800;position:sticky}.appointment-table thead th{min-width:88px;padding:0 7px;top:0}.appointment-table .row-heading{min-width:36px;left:0}.appointment-table thead .row-heading{z-index:3}.appointment-table td{background:#fff;min-width:88px;height:29px;padding:0}.appointment-table td:nth-child(2),.appointment-table thead th:nth-child(2){min-width:78px}.appointment-table td:nth-child(3),.appointment-table thead th:nth-child(3){min-width:58px}.appointment-table td:nth-child(4),.appointment-table thead th:nth-child(4){min-width:118px}.appointment-table td:nth-child(5),.appointment-table thead th:nth-child(5){min-width:96px}.appointment-table td:nth-child(6),.appointment-table thead th:nth-child(6){min-width:138px}.appointment-table td:nth-child(7),.appointment-table thead th:nth-child(7){min-width:156px}.appointment-table td:nth-child(8),.appointment-table thead th:nth-child(8){min-width:98px}.appointment-table td:nth-child(9),.appointment-table thead th:nth-child(9){min-width:126px}.appointment-table input{width:100%;min-width:inherit;color:#172026;background:0 0;border:0;height:29px;padding:4px 6px}.appointment-table input:focus{z-index:1;outline-offset:-2px;background:#f7fbfd;outline:2px solid #17a;position:relative}.debug-details{margin-top:12px}.debug-details summary{color:#2b3a45;cursor:pointer;align-items:center;gap:8px;font-weight:800;display:inline-flex}.debug-details svg{color:#166657}.debug-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.debug-field{color:#465767;gap:6px;font-size:.86rem;font-weight:800;display:grid}textarea{resize:vertical;color:#172026;background:#fbfdfe;border:1px solid #cfd9e1;border-radius:8px;width:100%;min-height:220px;padding:14px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.88rem;line-height:1.55}textarea[readonly]{color:#2f3f4a;background:#f7fafc}textarea:focus,input:focus,select:focus,.drop-zone:focus-within,button:focus-visible{outline-offset:2px;outline:3px solid #1177aa38}@media (width<=900px){.top-row,.workspace,.debug-grid{grid-template-columns:1fr}.preview-wrap{height:180px}.sheet-wrap{height:560px}}@media (width<=640px){.shell{width:min(100% - 10px,1320px);padding:10px 0}.upload-screen{min-height:calc(100vh - 20px)}.drop-zone{min-height:240px}.work-header,.document-panel,.sheet-panel{padding:12px}.section-heading{flex-direction:column;align-items:flex-start}.button-row,.page-controls{align-self:stretch}.preview-lightbox{gap:10px;padding:10px}.preview-lightbox-toolbar{flex-direction:column;align-items:stretch}.preview-lightbox-actions{justify-content:space-between}.preview-lightbox-pages{flex:auto;justify-content:space-between}}
