:root{color:#18242c;background:#fbfcfd;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-height:100%;background:#fbfcfd}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.workspace{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr) minmax(0,1fr);gap:1px;min-height:100vh;background:#fbfcfd}.workspace-panel{min-width:0;background:#fbfcfd}.mobile-panel-tabs{display:none}.sidebar,.pane{min-height:100vh;min-width:0;background:#fbfcfd}.sidebar{display:flex;flex-direction:column;gap:18px;padding:20px;overflow:auto}.sidebar h1{margin:0 0 6px;font-size:24px;line-height:1.15}.sidebar p,.muted{margin:0;color:#65737e}.upload-panel{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid #9fb0bd;border-radius:8px;background:#eef4f7;color:#183447;font-weight:700}.upload-panel input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0}.upload-panel:has(input:disabled){cursor:not-allowed;opacity:.65}.meta-block,.warning-block{display:grid;gap:6px;padding:12px;border-radius:8px;background:#f0f3f5;color:#31424d}.meta-block span{color:#65737e;font-size:13px}.warning-block{border:1px solid #e1b46a;background:#fff7e8;color:#744c07}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-row button:last-child{grid-column:1 / -1}.action-row button,.tabs button,.mobile-panel-tabs button,.card-meta button{min-height:36px;border:1px solid #aebbc5;border-radius:8px;background:#fff;color:#22323d;font-weight:700}.action-row button:hover:not(:disabled),.tabs button:hover,.mobile-panel-tabs button:hover,.card-meta button:hover:not(:disabled),.chunk-list button:hover{background:#edf3f6}.chunk-list{display:grid;gap:8px}.chunk-list button{display:grid;gap:3px;width:100%;padding:10px;border:1px solid #d3dbe1;border-radius:8px;background:#fff;color:#22323d;text-align:left}.chunk-list button.active,.text-card.active,.summary-card.active{border-color:#2f6f8f;background:#edf6f8}.chunk-list small{color:#65737e}.pane{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:100vh}.pane>header{display:flex;align-items:center;min-height:58px;padding:0 18px;border-bottom:1px solid #d8dee3}.pane h2{margin:0;font-size:18px}.pane-scroll{min-height:0;overflow:auto;padding:18px}.text-card,.summary-card{margin-bottom:14px;padding:14px;border:1px solid #d8dee3;border-radius:8px;background:#fff}.text-card{width:100%;text-align:left}.text-card p,.summary-card p{margin:10px 0 0;white-space:pre-wrap;line-height:1.65}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#65737e;font-size:13px}.source-badge{padding:3px 7px;border:1px solid #c9d5dc;border-radius:999px;background:#f2f6f8;color:#31424d}.inline-actions{display:flex;flex-wrap:wrap;gap:8px}.tabs{gap:8px}.tabs button{padding:0 14px}.tabs button.active{border-color:#2f6f8f;background:#2f6f8f;color:#fff}.summary-card h3{margin:18px 0 6px;font-size:15px}.summary-card h3:first-child{margin-top:0}.summary-card ul{margin:8px 0 0;padding-left:20px;line-height:1.6}.toast{position:fixed;right:18px;bottom:18px;max-width:min(420px,calc(100vw - 36px));padding:12px 14px;border:1px solid #9fb0bd;border-radius:8px;background:#fff;color:#22323d;box-shadow:0 12px 30px #18242c29}.toast.error,.error-text{color:#9d2f2f}.toast.error{border-color:#e1aaa5;background:#fff1f0}@media (max-width: 920px){.workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.mobile-panel-tabs{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;border-bottom:1px solid #d8dee3;background:#fbfcfd}.mobile-panel-tabs button{min-width:0;padding:0 8px}.mobile-panel-tabs button.active{border-color:#2f6f8f;background:#2f6f8f;color:#fff}.workspace-panel{display:none;min-height:0}.workspace-panel.mobile-active{display:block}.sidebar,.pane{max-height:none}.sidebar{overflow:visible}}
