:root{--primary: #0284c7;--primary-h: #0369a1;--bg: #f8fafc;--white: #ffffff;--text: #0f172a;--muted: #94a3b8;--secondary: #475569;--border: #e2e8f0;--border-d: #cbd5e1;--success: #16a34a;--warn: #ea580c;--sh: 0 1px 2px rgba(0,0,0,.05)}#root{margin:0;padding:0;width:100%}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}.app{display:flex;flex-direction:column;height:100vh}.header{background:var(--white);border-bottom:1px solid var(--border);padding:.85rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--sh);z-index:10}.header-l{display:flex;align-items:center;gap:.75rem}.logo{font-size:1.25rem;font-weight:800;color:var(--primary)}.badge{display:inline-flex;align-items:center;background:#dbeafe;color:var(--primary);padding:.22rem .5rem;border-radius:4px;font-size:.7rem;font-weight:700}.header-r{display:flex;align-items:center;gap:1rem}.status{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--secondary)}.dot{width:8px;height:8px;border-radius:50%;background:var(--success);animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.btn{border:none;border-radius:6px;cursor:pointer;padding:.5rem 1rem;font-size:.875rem;font-weight:600;display:inline-flex;align-items:center;gap:.5rem;transition:background .2s,transform .1s,box-shadow .1s}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-h)}.btn-primary.pressed{transform:scale(.95);box-shadow:inset 0 2px 4px #0003}.btn-secondary{background:var(--bg);border:1px solid var(--border);color:var(--text)}.btn-secondary:hover{background:var(--border)}.toolbar{background:var(--white);border-bottom:1px solid var(--border);padding:.7rem 2rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;box-shadow:var(--sh);z-index:9}.tgroup{display:flex;align-items:center;gap:.5rem}.tlabel{font-size:.72rem;font-weight:900;text-transform:uppercase;color:var(--muted);margin-right:.2rem}.pill{padding:.4rem .8rem;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-size:.85rem;color:var(--secondary);cursor:pointer;transition:all .2s;white-space:nowrap}.pill:hover{background:var(--border);color:var(--text)}.pill.active{background:#e0f2fe;border-color:var(--primary);color:var(--primary);font-weight:700}.tdiv{width:1px;height:22px;background:var(--border)}.main{flex:1;overflow:hidden;display:flex}.split{flex:1;display:flex;gap:1px;background:var(--border);overflow:hidden}.pane{flex:1;display:flex;flex-direction:column;background:var(--white)}.pane-hdr{padding:.9rem 1rem;border-bottom:1px solid var(--border);background:var(--bg);display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.pane-title{font-weight:700;font-size:.9rem;color:var(--secondary)}.pane-body{flex:1;overflow:hidden;display:flex;flex-direction:column}.scroll{overflow-y:auto}.scroll::-webkit-scrollbar{width:6px}.scroll::-webkit-scrollbar-thumb{background:var(--border-d);border-radius:3px}.scroll::-webkit-scrollbar-thumb:hover{background:var(--muted)}.notes-thread{flex:1;padding:1rem;overflow-y:auto}.note-entry{margin-bottom:.85rem;opacity:0;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease}.note-entry.visible{opacity:1;transform:translateY(0)}.note-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:.35rem}.note-meta{font-size:.72rem;color:var(--muted)}.chip{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.02em;color:var(--secondary);background:var(--bg);border:1px solid var(--border)}.chip-change{color:#9a3412;background:#ffedd5;border-color:#fed7aa}.chip-decision{color:#075985;background:#e0f2fe;border-color:#bae6fd}.chip-req{color:#1f2937;background:#e5e7eb;border-color:#d1d5db}.note-bubble{border:1px solid var(--border);border-radius:12px;padding:.75rem .9rem;box-shadow:var(--sh);background:#fff;font-size:.9rem;white-space:pre-wrap}.note-entry.change .note-bubble{background:#fff7ed;border-color:#fed7aa}.notes-composer{border-top:1px solid var(--border);padding:1rem;flex-shrink:0}.notes-row{display:flex;gap:.5rem;align-items:flex-end}.note-input{flex:1;min-height:46px;max-height:130px;border-radius:10px;border:1px solid var(--border);padding:.65rem .75rem;font-size:.9rem;resize:none;outline:none;line-height:1.35;transition:border-color .2s,box-shadow .2s}.note-input:focus,.note-input.focused{border-color:#7dd3fc;box-shadow:0 0 0 3px #0284c726}.hint{margin-top:.5rem;font-size:.75rem;color:var(--muted)}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(400%)}}.doc-view{flex:1;overflow-y:auto;padding:2rem;line-height:1.8;font-size:.95rem}.doc-heading{font-size:1.5rem;font-weight:800;margin-bottom:1.25rem}.doc-section-title{font-size:1.1rem;font-weight:800;margin-top:1.5rem;margin-bottom:.75rem;border-bottom:2px solid var(--primary);padding-bottom:.5rem}.doc-p{margin-bottom:1rem;color:var(--secondary)}.fact{display:inline;background:#fef3c7;padding:.1rem .35rem;border-radius:3px;border-bottom:1px dotted var(--warn)}@keyframes flashAnim{0%{background:#fde047;box-shadow:0 0 0 3px #eab30899}60%{background:#fef3c7;box-shadow:0 0 0 6px #eab30800}to{background:transparent;box-shadow:none}}.flash{animation:flashAnim 1.05s ease-out 1 forwards}.doc-li{display:block}#cursor{position:fixed;width:20px;height:20px;pointer-events:none;z-index:9999;transition:left .55s cubic-bezier(.4,0,.2,1),top .55s cubic-bezier(.4,0,.2,1)}#cursor svg{filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5))}#demoBar{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);z-index:9998;display:flex;gap:.75rem;align-items:center;background:#0f172ae0;color:#fff;border-radius:999px;padding:.6rem 1.25rem;box-shadow:0 4px 20px #0000004d;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:.875rem;transition:opacity .4s}#demoBar.hidden{opacity:0;pointer-events:none}#playBtn{background:var(--primary);color:#fff;border:none;border-radius:6px;padding:.4rem 1rem;font-size:.875rem;font-weight:700;cursor:pointer;transition:background .2s}#playBtn:hover{background:var(--primary-h)}#demoProgress{width:140px;height:4px;background:#fff3;border-radius:2px;overflow:hidden}#demoProgressFill{height:100%;background:#38bdf8;width:0%;transition:width .3s linear}.chat-layout{display:flex;flex-direction:column;height:100%}.chat-thread{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px}.chat-msg{display:flex;gap:10px}.chat-msg.user{display:flex;flex-direction:column;align-items:flex-end}.chat-bubble{background:#f1f5f9;padding:10px 14px;border-radius:12px;max-width:75%}.chat-msg.user .chat-bubble{background:#0284c7;color:#fff}.chat-input{border-top:1px solid #e2e8f0;padding:12px;display:flex;gap:8px;background:#fff}.chat-textarea{flex:1;resize:none;border:1px solid #e2e8f0;border-radius:8px;padding:8px}.doc-view{flex:1;overflow-y:auto;background:#f1f5f9;display:flex;justify-content:center;align-items:flex-start}.doc-page{width:800px;background:#fff;padding:40px 60px;border-radius:8px;box-shadow:0 4px 20px #00000014;height:auto}.doc-heading{font-size:28px;font-weight:700;margin-bottom:24px}.doc-section-title{font-size:18px;font-weight:600;margin-top:24px;margin-bottom:10px;border-bottom:1px solid #e2e8f0;padding-bottom:6px}.doc-p{font-size:15px;line-height:1.8;color:#334155}.doc-view{background:#f8fafc;padding:30px;display:flex;justify-content:center}.doc-page{background:#fff;width:800px;padding:40px;box-shadow:0 8px 25px #00000014;border-radius:6px}.doc-view h1{font-size:28px;margin-bottom:20px}.doc-view h2{font-size:22px;margin-top:20px}.doc-view p{line-height:1.6}.doc-view{white-space:pre-wrap}.doc-layout{display:flex;flex-direction:column;height:100%;flex:1}.doc-view{flex:1;overflow-y:auto;background:#f1f5f9;display:flex;justify-content:center;align-items:flex-start;padding:30px}.doc-page{background:#fff;width:800px;padding:40px 60px;border-radius:8px;box-shadow:0 4px 20px #00000014}.doc-page h1{font-size:28px;margin-bottom:20px}.doc-page h2{font-size:22px;margin-top:20px;margin-bottom:10px}.doc-page p{line-height:1.7;margin-bottom:14px;font-size:15px;color:#334155}.doc-page ul{padding-left:20px;margin-bottom:14px}.doc-page li{margin-bottom:6px}.doc-page br{display:block;margin-bottom:6px}.loader{border:3px solid #e2e8f0;border-top:3px solid #0284c7;border-radius:50%;width:18px;height:18px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.wizard{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f0f7ff,#e8f4fd,#f5f0ff);font-family:Inter,system-ui,sans-serif;padding:40px}.wizard .wizard-card{background:#fff;border-radius:20px;padding:40px 48px;max-width:560px;width:100%;text-align:center;box-shadow:0 20px 60px #0000001a}.wizard h2{font-size:1.4rem;font-weight:700;color:#0f172a;margin-bottom:10px}.wizard p{font-size:.9rem;color:#64748b;line-height:1.6;margin-bottom:18px}.wizard input,.wizard textarea{width:100%;padding:12px 14px;border-radius:10px;border:2px solid #e2e8f0;font-size:.9rem;outline:none;background:#f8fafc;transition:border-color .2s;margin-bottom:20px}.wizard input:focus,.wizard textarea:focus{border-color:#2563eb}.wizard textarea{resize:none;height:120px}.wizard .upload-row{display:flex;gap:12px;margin-bottom:20px}.wizard .upload-row button{flex:1;border:2px dashed #cbd5e1;border-radius:10px;padding:14px;background:#fff;cursor:pointer;font-size:.85rem;transition:all .2s}.wizard .upload-row button:hover{border-color:#2563eb;background:#f0f6ff}.wizard .summary{background:#f8fafc;border-radius:10px;padding:16px;text-align:left;margin-bottom:20px;border:1px solid #e2e8f0}.wizard .summary p{margin-bottom:6px;font-size:.85rem;color:#334155}.wizard .hint{font-size:.78rem;color:#94a3b8;margin-bottom:20px}.wizard button{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border:none;border-radius:10px;padding:12px 26px;font-size:.95rem;font-weight:600;cursor:pointer;box-shadow:0 4px 14px #2563eb59;transition:all .15s}.wizard button:hover{transform:translateY(-1px);box-shadow:0 6px 20px #2563eb73}
