.landing-page{width:100%;padding:2rem}.container{max-width:1200px;margin:0 auto}.hero{text-align:center;color:#fff}.hero h1{font-size:4rem;font-weight:700;margin-bottom:1rem;background:linear-gradient(135deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.tagline{font-size:1.5rem;margin-bottom:1rem;opacity:.95}.description{font-size:1.1rem;max-width:700px;margin:0 auto 3rem;line-height:1.6;opacity:.9}.cta-buttons{margin-bottom:4rem}.btn{padding:1rem 2.5rem;font-size:1.1rem;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .3s ease;text-decoration:none;display:inline-block}.btn-primary{background:#fff;color:#667eea;box-shadow:0 4px 15px #0003}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0000004d}.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-top:4rem;padding:2rem}.feature{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:2rem;border-radius:12px;border:1px solid rgba(255,255,255,.2)}.feature-icon{font-size:3rem;margin-bottom:1rem}.feature h3{font-size:1.3rem;margin-bottom:.5rem}.feature p{opacity:.9;line-height:1.5}.auth-status{margin-top:3rem}.status-badge{display:inline-block;padding:.75rem 1.5rem;background:#fff3;border-radius:25px;font-size:.9rem;border:1px solid rgba(255,255,255,.3)}.status-badge.authenticated{background:#4caf504d;border-color:#4caf5080}.user-greeting{margin-top:1rem;font-size:1.1rem;color:#fff;opacity:.9}.dashboard-container{min-height:100vh;width:100vw;max-width:100%;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.dashboard-nav{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100}.nav-brand{display:flex;align-items:center;gap:.75rem}.logo{font-size:1.5rem}.brand-name{font-size:1.25rem;font-weight:600;color:#1e293b}.nav-user{display:flex;align-items:center;gap:1rem}.user-email{color:#64748b;font-size:.875rem}.btn-logout{background:transparent;border:1px solid #e2e8f0;color:#64748b;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.btn-logout:hover{background:#f1f5f9;color:#475569}.dashboard-content{width:100%;max-width:100%;margin:0 auto;padding:2rem}@media (min-width: 1920px){.dashboard-content{padding:2rem 4rem}}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.dashboard-header h1{margin:0 0 .25rem;font-size:1.875rem;color:#1e293b;font-weight:600}.subtitle{margin:0;color:#64748b;font-size:1rem}.btn-primary{background:#4f46e5;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;transition:all .2s;display:inline-flex;align-items:center;gap:.5rem}.btn-large{padding:.75rem 1.5rem;font-size:1rem}.btn-secondary{background:#fff;color:#64748b;border:1px solid #e2e8f0;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;transition:all .2s}.btn-secondary:hover{background:#f8fafc;color:#475569}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem}.modal{background:#fff;border-radius:12px;padding:1.5rem;width:100%;max-width:480px;box-shadow:0 20px 25px -5px #0000001a}.modal h2{margin:0 0 1.5rem;font-size:1.25rem;color:#1e293b}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:#374151}.form-group input{width:100%;padding:.625rem .875rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.9375rem;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.empty-state{text-align:center;padding:4rem 2rem;background:#fff;border-radius:12px;border:2px dashed #e2e8f0}.empty-icon{font-size:3rem;margin-bottom:1rem}.empty-state h3{margin:0 0 .5rem;color:#1e293b;font-size:1.25rem}.empty-state p{margin:0 0 1.5rem;color:#64748b}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem;width:100%}@media (min-width: 1400px){.projects-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}}@media (min-width: 1920px){.projects-grid{grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:2rem}}.project-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.25rem;cursor:pointer;transition:all .2s}.project-card:hover{border-color:#cbd5e1;box-shadow:0 4px 6px -1px #0000001a;transform:translateY(-2px)}.project-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.status-badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:500;text-transform:capitalize}.status-badge.draft{background:#fef3c7;color:#92400e}.status-badge.review{background:#dbeafe;color:#1e40af}.status-badge.complete{background:#d1fae5;color:#065f46}.btn-delete{background:transparent;border:none;color:#94a3b8;font-size:1.25rem;cursor:pointer;padding:.25rem;line-height:1;transition:color .2s}.btn-delete:hover{color:#ef4444}.project-name{margin:0 0 .375rem;font-size:1.125rem;font-weight:600;color:#1e293b}.project-title{margin:0 0 1rem;color:#64748b;font-size:.875rem;line-height:1.5}.project-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#94a3b8}.loading-spinner{display:flex;align-items:center;justify-content:center;min-height:60vh;color:#64748b;font-size:1.125rem}@media (max-width: 640px){.dashboard-content{padding:1rem}.dashboard-header{flex-direction:column;align-items:flex-start;gap:1rem}.projects-grid{grid-template-columns:1fr}.nav-user .user-email{display:none}}.refinement-input-container{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.refinement-form{display:flex;flex-direction:column}.refinement-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid #e2e8f0}.refinement-icon{font-size:1rem}.refinement-title{font-size:.875rem;font-weight:600;color:#1e293b}.refinement-textarea{width:100%;padding:.875rem 1rem;border:none;resize:vertical;font-family:inherit;font-size:.875rem;line-height:1.5;color:#334155;background:#fff;min-height:80px}.refinement-textarea:focus{outline:none}.refinement-textarea:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.refinement-textarea::placeholder{color:#94a3b8}.refinement-footer{display:flex;flex-direction:column;gap:.75rem;padding:.75rem 1rem;background:#f8fafc;border-top:1px solid #e2e8f0}.suggestions{display:flex;flex-direction:column;gap:.375rem}.suggestions-label{font-size:.6875rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.suggestion-chips{display:flex;flex-wrap:wrap;gap:.375rem}.suggestion-chip{background:#fff;border:1px solid #e2e8f0;border-radius:9999px;padding:.25rem .625rem;font-size:.6875rem;color:#475569;cursor:pointer;transition:all .15s;white-space:nowrap}.suggestion-chip:hover:not(:disabled){background:#f1f5f9;border-color:#cbd5e1}.suggestion-chip:disabled{opacity:.5;cursor:not-allowed}.btn-submit-refinement{display:flex;align-items:center;justify-content:center;gap:.5rem;background:#4f46e5;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;width:100%}.btn-submit-refinement:hover:not(:disabled){background:#4338ca}.btn-submit-refinement:disabled{opacity:.6;cursor:not-allowed}.change-group-card{border:1px solid #e2e8f0;border-radius:8px;background:#fff;overflow:hidden;margin-bottom:.75rem}.change-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid #e2e8f0}.change-group-info{flex:1;min-width:0}.change-group-label{margin:0 0 .25rem;font-size:.875rem;font-weight:600;color:#1e293b}.change-group-reason{margin:0;font-size:.75rem;color:#64748b}.change-group-actions{display:flex;gap:.25rem;flex-shrink:0}.btn-accept,.btn-reject{width:28px;height:28px;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:600;display:flex;align-items:center;justify-content:center;transition:all .15s}.btn-accept{background:#dcfce7;color:#15803d}.btn-accept:hover{background:#bbf7d0}.btn-reject{background:#fee2e2;color:#dc2626}.btn-reject:hover{background:#fecaca}.btn-toggle-diff{width:100%;padding:.5rem 1rem;display:flex;align-items:center;justify-content:space-between;background:none;border:none;font-size:.75rem;color:#64748b;cursor:pointer}.btn-toggle-diff:hover{background:#f8fafc}.diff-preview{padding:.75rem 1rem;border-top:1px solid #f1f5f9;background:#fff}.diff-section{margin-bottom:.75rem}.diff-section:last-child{margin-bottom:0}.diff-label{display:block;font-size:.6875rem;font-weight:500;color:#94a3b8;margin-bottom:.25rem;text-transform:uppercase;letter-spacing:.05em}.diff-original,.diff-proposed{padding:.5rem .75rem;border-radius:4px;font-size:.75rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}.diff-original{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.diff-proposed{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.diff-original del,.diff-proposed ins{text-decoration:none}.change-group-list{margin-top:1rem}.bulk-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid #e2e8f0}.changes-count{font-size:.8125rem;color:#64748b}.bulk-buttons{display:flex;align-items:center;gap:.5rem}.btn-accept-all,.btn-reject-all{background:none;border:none;font-size:.75rem;font-weight:500;cursor:pointer;padding:.25rem .5rem;border-radius:4px;transition:all .15s}.btn-accept-all{color:#15803d}.btn-accept-all:hover{background:#dcfce7}.btn-reject-all{color:#dc2626}.btn-reject-all:hover{background:#fee2e2}.divider{color:#cbd5e1}.changes-container{max-height:none;overflow-y:visible}.retry-section{padding:.75rem 1rem;border-top:1px solid #f1f5f9;background:#fefce8;display:flex;flex-direction:column;gap:.5rem}.retry-comment-label{font-size:.6875rem;font-weight:500;color:#713f12}.retry-comment-input{width:100%;padding:.5rem .75rem;border:1px solid #fde047;border-radius:4px;font-size:.75rem;font-family:inherit;resize:vertical;min-height:48px;background:#fff}.retry-comment-input:focus{outline:none;border-color:#eab308;box-shadow:0 0 0 2px #eab30833}.retry-comment-input::placeholder{color:#a3a3a3}.btn-retry-opus{width:100%;padding:.5rem .75rem;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .15s}.btn-retry-opus:hover:not(:disabled){background:linear-gradient(135deg,#6d28d9,#7c3aed);transform:translateY(-1px);box-shadow:0 2px 8px #7c3aed4d}.btn-retry-opus:disabled{opacity:.7;cursor:not-allowed}.change-group-card.retrying{opacity:.7;pointer-events:none}.ideate-panel{padding:16px}.ideate-header h4{margin:0 0 8px;font-size:16px}.ideate-description{color:#666;font-size:13px;margin-bottom:8px}.ideate-warning{color:#d97706;font-size:12px;margin:8px 0;padding:8px;background:#fef3c7;border-radius:4px;border:1px solid #fcd34d}.creativity-selector{margin-bottom:16px;margin-top:12px}.creativity-selector label{display:block;font-weight:500;margin-bottom:8px;font-size:13px}.creativity-buttons{display:flex;gap:8px}.creativity-buttons button{flex:1;padding:8px 12px;font-size:12px;border:1px solid #ddd;background:#f5f5f5;border-radius:4px;cursor:pointer;transition:all .2s}.creativity-buttons button:hover{background:#e5e5e5}.creativity-buttons button.active{background:#4f46e5;color:#fff;border-color:#4f46e5}.ideate-input{margin-bottom:16px}.ideate-input label{display:block;font-weight:500;margin-bottom:8px;font-size:13px}.ideate-input textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:4px;font-size:14px;resize:vertical;font-family:inherit}.ideate-input textarea:focus{outline:none;border-color:#4f46e5}.btn-ideate{width:100%;padding:12px;background:#4f46e5;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s}.btn-ideate:hover:not(:disabled){background:#4338ca}.btn-ideate:disabled{background:#ccc;cursor:not-allowed}.ideate-error{color:#dc2626;font-size:13px;margin-top:12px;padding:10px;background:#fef2f2;border-radius:4px;border:1px solid #fecaca}.ideate-debug{color:#6b7280;font-size:11px;margin-top:8px;padding:8px;background:#f3f4f6;border-radius:4px;font-family:monospace}.suggestions-list{margin-top:16px}.suggestions-list h4{font-size:14px;margin-bottom:12px;color:#1f2937}.suggestion-card{border:1px solid #e5e7eb;border-radius:6px;padding:12px;margin-bottom:12px;background:#fff}.suggestion-type{font-size:11px;color:#4f46e5;text-transform:uppercase;margin-bottom:8px;font-weight:600}.suggestion-text{font-size:13px;margin-bottom:8px;line-height:1.5;color:#1f2937}.suggestion-rationale{font-size:12px;color:#6b7280;margin-bottom:12px;line-height:1.4}.suggestion-actions{display:flex;gap:8px}.suggestion-actions button{flex:1;padding:8px 12px;font-size:12px;font-weight:500;border:1px solid #e5e7eb;background:#fff;border-radius:4px;cursor:pointer;transition:all .15s}.suggestion-actions button:hover{background:#f9fafb}.suggestion-actions button:first-child{background:#4f46e5;color:#fff;border-color:#4f46e5}.suggestion-actions button:first-child:hover{background:#4338ca}.error{color:#c00;font-size:13px;margin-top:12px}.qa-panel{padding:0 16px 16px}.qa-start-screen{display:flex;flex-direction:column}.qa-header{text-align:center;margin-bottom:24px;padding-top:8px}.qa-icon{font-size:48px;margin-bottom:12px}.qa-header h3{margin:0 0 12px;font-size:18px;font-weight:600;color:#333}.qa-description{margin:0;color:#666;font-size:13px;line-height:1.6}.qa-instruction{margin-bottom:20px}.qa-instruction label{display:block;font-size:13px;font-weight:500;color:#555;margin-bottom:8px}.qa-instruction textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:14px;line-height:1.5;resize:vertical;min-height:60px;transition:border-color .2s}.qa-instruction textarea:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.btn-start-interview{width:100%;padding:14px 16px;background:linear-gradient(135deg,#9333ea,#7c3aed);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .2s;box-shadow:0 2px 8px #9333ea40}.btn-start-interview:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed,#6d28d9);transform:translateY(-1px);box-shadow:0 4px 12px #9333ea59}.btn-start-interview:disabled{background:#ccc;cursor:not-allowed;box-shadow:none}.btn-start-interview .spinner-small{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}.qa-error{margin-top:12px;padding:10px 12px;background:#fff5f5;border:1px solid #feb2b2;border-radius:6px;color:#c53030;font-size:13px}.qa-hints{margin-top:24px;padding-top:20px;border-top:1px dashed #e0e0e0}.qa-hints p{margin:0 0 10px;font-size:12px;color:#666;line-height:1.5}.qa-hints p:last-child{margin-bottom:0}.qa-interview-screen{display:flex;flex-direction:column;height:100%}.qa-progress-header{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e0e0e0;margin-bottom:16px}.qa-progress-bar{flex:1;height:6px;background:#e0e0e0;border-radius:3px;overflow:hidden}.qa-progress-fill{height:100%;background:linear-gradient(90deg,#9333ea,#7c3aed);border-radius:3px;transition:width .3s ease}.qa-progress-info{display:flex;flex-direction:column;align-items:flex-end;min-width:100px}.qa-progress-text{font-size:12px;font-weight:600;color:#333}.qa-progress-stats{font-size:11px;color:#888}.btn-abandon{padding:4px 8px;background:transparent;border:none;color:#999;font-size:16px;cursor:pointer;transition:color .2s;border-radius:4px}.btn-abandon:hover{color:#c53030;background:#fff5f5}.qa-question-card{flex:1;display:flex;flex-direction:column;gap:16px}.question-meta{display:flex;align-items:center;gap:10px}.question-section{display:inline-block;padding:4px 10px;background:#f0f0f0;color:#555;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border-radius:4px}.priority-badge{display:inline-block;padding:3px 8px;background:#fef3c7;color:#92400e;font-size:10px;font-weight:600;border-radius:4px}.question-text{margin:0;font-size:16px;font-weight:500;color:#333;line-height:1.5}.qa-answer-input{flex:1;min-height:120px}.qa-answer-input textarea{width:100%;height:100%;min-height:120px;padding:14px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;line-height:1.6;resize:vertical;transition:border-color .2s}.qa-answer-input textarea:focus{outline:none;border-color:#9333ea;box-shadow:0 0 0 4px #9333ea1a}.qa-answer-input textarea::placeholder{color:#aaa}.skip-reason-input{animation:slideDown .2s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.skip-reason-input input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:13px;transition:border-color .2s}.skip-reason-input input:focus{outline:none;border-color:#9333ea}.qa-actions{display:flex;gap:12px}.qa-actions button{flex:1;padding:12px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-skip{background:#fff;color:#666;border:1px solid #ddd}.btn-skip:hover:not(:disabled){background:#f5f5f5;border-color:#999;color:#333}.btn-submit{background:linear-gradient(135deg,#9333ea,#7c3aed);color:#fff;border:none}.btn-submit:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed,#6d28d9);transform:translateY(-1px);box-shadow:0 2px 8px #9333ea4d}.qa-actions button:disabled{opacity:.6;cursor:not-allowed}.btn-submit .spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}.qa-completing{display:flex;align-items:center;justify-content:center;min-height:300px;padding:32px}.qa-completing-content{text-align:center}.qa-spinner{width:48px;height:48px;border:4px solid #e0e0e0;border-top-color:#9333ea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}.qa-completing h4{margin:0 0 8px;font-size:18px;font-weight:600;color:#333}.qa-completing p{margin:0;font-size:14px;color:#666}.review-sidebar{width:320px;min-width:320px;border-left:1px solid #e2e8f0;background:#fafafa;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto}.review-tabs{display:flex;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}.review-tab{flex:1;padding:.75rem 1rem;border:none;background:transparent;cursor:pointer;font-size:.875rem;font-weight:500;color:#64748b;border-bottom:2px solid transparent;transition:all .15s}.review-tab:hover{color:#1e293b;background:#f1f5f9}.review-tab.active{color:#4f46e5;border-bottom-color:#4f46e5;background:#fff}.review-content{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column}.refine-panel{display:flex;flex-direction:column;gap:1rem}.refinement-modes{display:flex;gap:.5rem;padding:.5rem;background:#f1f5f9;border-radius:8px}.mode-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem;border:none;background:transparent;border-radius:6px;cursor:pointer;transition:all .15s}.mode-btn:hover{background:#e2e8f0}.mode-btn.active{background:#fff;box-shadow:0 1px 3px #0000001a}.mode-icon{font-size:1.25rem}.mode-label{font-size:.75rem;font-weight:500;color:#475569}.mode-btn.active .mode-label{color:#4f46e5}.pending-changes-section{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem;padding:1rem;background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px}.pending-changes-title{margin:0;font-size:.9rem;font-weight:600;color:#0369a1}.pending-changes-hint{margin:0;font-size:.8rem;color:#0c4a6e;opacity:.8}.versions-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center}.versions-empty-icon{font-size:2rem;margin-bottom:.5rem}.versions-empty-title{margin:0 0 .25rem;font-weight:600;color:#1e293b}.versions-empty-hint{margin:0;font-size:.875rem;color:#64748b}.review-section{display:flex;flex-direction:column;gap:1rem;height:100%}.review-section .review-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.review-section .review-content{flex:1;height:calc(100vh - 400px)}.review-textarea{width:100%;min-height:500px;padding:1.5rem;border:1px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:14px;line-height:1.6;resize:vertical}.review-textarea:focus{outline:none;border-color:#4f46e5}.review-actions{display:flex;gap:.5rem;flex-wrap:wrap}.btn-secondary{padding:.5rem 1rem;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.drawings-modal{max-width:90vw;max-height:90vh}.drawings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.drawing-thumb{border:1px solid #e2e8f0;border-radius:8px;padding:.5rem;background:#fff}.drawing-thumb img{max-width:100%;max-height:200px;object-fit:contain}.claims-sidebar{width:320px;border-left:1px solid #e2e8f0;background:#fafafa;display:flex;flex-direction:column;overflow-y:auto}.claims-actions-top{padding:1rem;border-bottom:1px solid #e2e8f0;background:#fff}.btn-accept-continue{width:100%;padding:.75rem 1rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .15s}.btn-accept-continue:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.btn-accept-continue:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.btn-revert-draft{width:100%;margin-top:.5rem;padding:.5rem 1rem;background:#fff;color:#64748b;border:1px solid #e2e8f0;border-radius:6px;font-size:.813rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-revert-draft:hover{background:#f8fafc;color:#475569;border-color:#cbd5e1}.sidebar-title{margin:0 0 .75rem;font-size:.875rem;font-weight:600;color:#1e293b}.refine-panel{padding:1rem;flex:1;overflow-y:auto}.btn-quick-actions-toggle{width:100%;padding:.5rem;margin-top:.75rem;background:none;border:1px dashed #cbd5e1;border-radius:4px;font-size:.75rem;color:#64748b;cursor:pointer;transition:all .15s}.btn-quick-actions-toggle:hover{background:#f1f5f9;border-color:#94a3b8}.quick-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding:.75rem;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.btn-quick-action{width:100%;padding:.5rem .75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px;font-size:.75rem;color:#475569;cursor:pointer;text-align:left;transition:all .15s}.btn-quick-action:hover:not(:disabled){background:#fff;border-color:#3b82f6;color:#3b82f6}.btn-quick-action:disabled{opacity:.5;cursor:not-allowed}.pending-changes-section{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.pending-changes-title{margin:0 0 .75rem;font-size:.8125rem;font-weight:600;color:#64748b}.claim-stats{padding:1rem;border-top:1px solid #e2e8f0;background:#fff}.claim-stats h4{margin:0 0 .75rem;font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;font-size:.8125rem;color:#475569;border-bottom:1px solid #f1f5f9}.stat-row:last-child{border-bottom:none}.stat-value{font-weight:600;color:#1e293b}.brief-drawings-sidebar{width:380px;height:100%;background:var(--bg-secondary, #f8f9fa);border-left:1px solid var(--border-color, #dee2e6);display:flex;flex-direction:column;overflow-y:auto;padding:16px;gap:16px}.bd-actions-top{display:flex;flex-direction:column;gap:8px}.btn-accept-continue{background:var(--success-color, #28a745);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.bd-progress{display:flex;justify-content:space-between;padding:8px 12px;background:var(--bg-tertiary, #fff);border-radius:6px;font-size:13px}.progress-label{color:var(--text-secondary, #666)}.progress-value{font-weight:600;color:var(--text-primary, #333)}.sidebar-title{font-size:14px;font-weight:600;color:var(--text-primary, #333);margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border-color, #dee2e6)}.figures-section{flex:1;display:flex;flex-direction:column;min-height:0}.figures-list{display:flex;flex-direction:column;gap:12px;overflow-y:auto}.figure-card{background:var(--bg-tertiary, #fff);border:1px solid var(--border-color, #dee2e6);border-radius:8px;padding:12px;cursor:pointer;transition:all .2s}.figure-card:hover{border-color:var(--primary-color, #007bff);box-shadow:0 2px 8px #007bff1a}.figure-card.selected{border-color:var(--primary-color, #007bff);box-shadow:0 0 0 2px #007bff33}.figure-card.accepted{border-left:3px solid var(--success-color, #28a745)}.figure-card.pending{border-left:3px solid var(--warning-color, #ffc107)}.figure-card.editing{border-left:3px solid var(--info-color, #17a2b8)}.figure-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.figure-header-main{display:flex;align-items:center;gap:6px;min-width:0}.figure-number{font-weight:700;font-size:13px;color:var(--text-primary, #333)}.figure-status{font-size:16px}.figure-status.accepted{color:var(--success-color, #28a745)}.figure-status.pending{color:var(--warning-color, #ffc107)}.figure-view-type-chip{font-size:12px;color:var(--text-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.figure-card.collapsed{padding:10px 12px}.figure-card.collapsed .figure-header{margin-bottom:0}.figure-card.collapsed:hover{box-shadow:0 1px 6px #007bff14}.inline-edit{width:100%;border:1px solid transparent;background:transparent;padding:4px 6px;border-radius:4px;font-size:13px;transition:all .2s}.inline-edit:hover{border-color:var(--border-color, #dee2e6);background:var(--bg-input, #f8f9fa)}.inline-edit:focus{border-color:var(--primary-color, #007bff);background:var(--bg-input, #f8f9fa);outline:none;box-shadow:0 0 0 2px #007bff1a}.description-edit{resize:vertical;min-height:60px;font-family:inherit;line-height:1.4}.figure-actions{display:flex;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border-color, #eee)}.btn-accept-figure{flex:1;background:var(--success-color, #28a745);color:#fff;border:none;padding:6px 12px;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.btn-accept-figure:hover{background:var(--success-hover, #218838)}.btn-chat-edit{flex:1;background:var(--info-color, #17a2b8);color:#fff;border:none;padding:6px 12px;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.btn-chat-edit:hover{background:var(--info-hover, #138496)}.btn-figure-expand{background:transparent;color:var(--primary-color, #007bff);border:1px solid var(--border-color, #dee2e6);padding:4px 8px;border-radius:999px;font-size:11px;font-weight:600;cursor:pointer;transition:all .2s;flex-shrink:0}.btn-figure-expand:hover{border-color:var(--primary-color, #007bff);background:#007bff0f}.chat-edit-panel{display:flex;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border-color, #eee)}.chat-input{flex:1;border:1px solid var(--border-color, #dee2e6);padding:8px 10px;border-radius:4px;font-size:12px}.chat-input:focus{border-color:var(--primary-color, #007bff);outline:none;box-shadow:0 0 0 2px #007bff1a}.btn-submit-chat{background:var(--primary-color, #007bff);color:#fff;border:none;padding:8px 14px;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap}.btn-submit-chat:hover:not(:disabled){background:var(--primary-hover, #0056b3)}.btn-submit-chat:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed}.reference-numerals-section{border-top:1px solid var(--border-color, #dee2e6);padding-top:16px}.numerals-table{display:flex;flex-direction:column;gap:4px}.numerals-header{display:flex;gap:8px;font-size:11px;font-weight:600;color:var(--text-secondary, #666);text-transform:uppercase;padding:4px 6px}.num-col{width:60px;flex-shrink:0}.desc-col{flex:1}.numeral-row{display:flex;gap:8px}.numeral-input{border:1px solid transparent;background:transparent;padding:4px 6px;border-radius:4px;font-size:12px}.numeral-input:hover{border-color:var(--border-color, #dee2e6);background:var(--bg-input, #f8f9fa)}.numeral-input:focus{border-color:var(--primary-color, #007bff);background:var(--bg-input, #f8f9fa);outline:none}.numeral-input.num-col{text-align:center;width:60px;flex-shrink:0}.bd-actions-bottom{padding-top:12px;border-top:1px solid var(--border-color, #dee2e6)}.btn-accept-all{width:100%;background:var(--success-color, #28a745);color:#fff;border:none;padding:10px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s}.btn-accept-all:hover:not(:disabled){background:var(--success-hover, #218838)}.btn-accept-all:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed}.plan-section{display:flex;flex-direction:column;gap:16px}.suggested-count{display:flex;gap:8px;padding:10px 12px;background:var(--bg-tertiary, #fff);border-radius:6px;font-size:13px}.suggested-label{color:var(--text-secondary, #666)}.suggested-value{font-weight:600;color:var(--text-primary, #333)}.btn-plan-figures{width:100%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:14px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-plan-figures:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-plan-figures:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.qa-notes{padding:10px 12px;background:#fef3c7;border-left:3px solid #f59e0b;border-radius:0 6px 6px 0;font-size:13px;color:#92400e}.qa-notes strong{color:#92400e}.validation-warning{padding:10px 12px;background:#fef2f2;border-left:3px solid #ef4444;border-radius:0 6px 6px 0;font-size:13px;color:#991b1b}.planned-figures-section{display:flex;flex-direction:column;gap:12px}.planned-figures-list{display:flex;flex-direction:column;gap:10px}.planned-figure-card{background:var(--bg-tertiary, #fff);border:1px solid var(--border-color, #dee2e6);border-radius:8px;padding:12px;transition:all .2s}.planned-figure-card.required{border-left:3px solid #10b981}.planned-figure-card.optional{border-left:3px solid #6b7280}.planned-figure-card.disabled{opacity:.6;background:var(--bg-secondary, #f8f9fa)}.planned-figure-card.enabled{opacity:1}.planned-figure-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.planned-figure-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.figure-type-badge{font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;text-transform:uppercase}.figure-type-badge.required{background:#d1fae5;color:#065f46}.figure-type-badge.optional{background:#e5e7eb;color:#374151}.figure-view-type{font-size:11px;color:var(--text-secondary, #666);background:var(--bg-secondary, #f3f4f6);padding:2px 6px;border-radius:4px}.toggle-optional{display:flex;align-items:center;cursor:pointer}.toggle-optional input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--primary-color, #007bff)}.planned-figure-title{font-weight:600;font-size:14px;color:var(--text-primary, #333);margin-bottom:6px}.claim-support{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:6px}.claim-label{font-size:11px;color:var(--text-secondary, #666);margin-right:4px}.claim-badge{font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;background:#dbeafe;color:#1e40af}.figure-reason{margin-top:8px;padding:8px;background:var(--bg-secondary, #f8f9fa);border-radius:4px;font-size:12px;color:var(--text-secondary, #666);line-height:1.4}.must-show{margin-top:8px;font-size:11px;display:flex;gap:4px}.must-show-label{color:var(--text-secondary, #666)}.must-show-items{color:var(--text-primary, #333)}.claim-matrix-section{margin-top:8px}.btn-toggle-matrix{width:100%;background:var(--bg-tertiary, #fff);color:var(--text-primary, #333);border:1px solid var(--border-color, #dee2e6);padding:10px 12px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;text-align:left}.btn-toggle-matrix:hover{background:var(--bg-secondary, #f8f9fa);border-color:var(--primary-color, #007bff)}.claim-matrix{margin-top:8px;overflow-x:auto}.claim-matrix table{width:100%;border-collapse:collapse;font-size:11px}.claim-matrix th,.claim-matrix td{padding:6px 8px;border:1px solid var(--border-color, #dee2e6);text-align:center}.claim-matrix th{background:var(--bg-secondary, #f8f9fa);font-weight:600;color:var(--text-primary, #333)}.claim-matrix th.required{color:#065f46}.claim-matrix th.optional{color:#6b7280}.claim-matrix td.claim-num{font-weight:600;text-align:left;background:var(--bg-secondary, #f8f9fa)}.claim-matrix td.matrix-cell{color:#10b981;font-weight:700}.uncovered-warning{margin-top:8px;padding:8px 10px;background:#fef3c7;border-radius:4px;font-size:11px;color:#92400e}.btn-generate-descriptions{width:100%;background:var(--success-color, #10b981);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-generate-descriptions:hover:not(:disabled){background:#059669;transform:translateY(-1px)}.btn-generate-descriptions:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.btn-replan{width:100%;background:transparent;color:var(--text-secondary, #666);border:1px solid var(--border-color, #dee2e6);padding:10px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.btn-replan:hover:not(:disabled){background:var(--bg-secondary, #f8f9fa);border-color:var(--primary-color, #007bff);color:var(--primary-color, #007bff)}.btn-replan:disabled{opacity:.5;cursor:not-allowed}.btn-add-figure{width:100%;padding:10px 16px;background:var(--bg-tertiary, #fff);border:2px dashed var(--border-color, #dee2e6);border-radius:8px;color:var(--text-secondary, #6c757d);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;margin-bottom:12px}.btn-add-figure:hover:not(:disabled){border-color:var(--primary-color, #007bff);color:var(--primary-color, #007bff);background:var(--bg-hover, #f0f8ff)}.btn-add-figure:disabled{opacity:.5;cursor:not-allowed}.btn-delete-figure{padding:6px 12px;background:transparent;border:1px solid var(--danger-color, #dc3545);border-radius:6px;color:var(--danger-color, #dc3545);font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.btn-delete-figure:hover:not(:disabled){background:var(--danger-color, #dc3545);color:#fff}.btn-delete-figure:disabled{opacity:.5;cursor:not-allowed}.sidebar-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.btn-add-numeral{padding:4px 12px;background:var(--bg-tertiary, #fff);border:1px solid var(--border-color, #dee2e6);border-radius:4px;color:var(--text-secondary, #6c757d);font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.btn-add-numeral:hover:not(:disabled){border-color:var(--primary-color, #007bff);color:var(--primary-color, #007bff)}.btn-add-numeral:disabled{opacity:.5;cursor:not-allowed}.numerals-header .action-col{width:30px}.btn-delete-numeral{width:30px;height:30px;padding:0;background:transparent;border:1px solid var(--danger-color, #dc3545);border-radius:4px;color:var(--danger-color, #dc3545);font-size:18px;font-weight:700;line-height:1;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.btn-delete-numeral:hover:not(:disabled){background:var(--danger-color, #dc3545);color:#fff}.btn-delete-numeral:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 1200px){.brief-drawings-sidebar{width:320px}}.phase-sidebar{width:380px;height:100%;background:var(--bg-secondary, #f8f9fa);border-left:1px solid var(--border-color, #dee2e6);display:flex;flex-direction:column;overflow-y:auto;padding:16px;gap:16px}.phase-header h3{margin:0 0 4px;font-size:16px;font-weight:600;color:var(--text-primary, #212529)}.phase-subtitle{margin:0;font-size:13px;color:var(--text-secondary, #6c757d)}.phase-progress{display:flex;align-items:center;gap:8px;padding:12px;background:var(--bg-tertiary, #fff);border-radius:8px}.phase-step{display:flex;align-items:center;gap:6px;opacity:.4;transition:opacity .3s}.phase-step.active{opacity:1}.phase-step.complete{opacity:.7}.step-number{width:24px;height:24px;border-radius:50%;background:var(--primary-color, #007bff);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.phase-step.complete .step-number{background:var(--success-color, #28a745)}.step-label{font-size:12px;font-weight:500;color:var(--text-primary, #212529)}.phase-connector{flex:1;height:2px;background:var(--border-color, #dee2e6);min-width:20px}.phase-section{display:flex;flex-direction:column;gap:12px}.phase-section-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.phase-section-header h4{margin:0;font-size:14px;font-weight:600;color:var(--text-primary, #212529)}.phase-instructions{margin:0;font-size:13px;color:var(--text-secondary, #6c757d);line-height:1.5}.phase-textarea{width:100%;min-height:200px;padding:12px;border:1px solid var(--border-color, #dee2e6);border-radius:6px;font-family:Monaco,Menlo,Courier New,monospace;font-size:13px;line-height:1.5;resize:vertical;background:var(--bg-tertiary, #fff);color:var(--text-primary, #212529)}.phase-textarea:focus{outline:none;border-color:var(--primary-color, #007bff);box-shadow:0 0 0 2px #007bff1a}.btn-generate{background:var(--primary-color, #007bff);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.btn-generate:hover:not(:disabled){background:var(--primary-hover, #0056b3);transform:translateY(-1px)}.btn-generate:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.btn-approve{background:var(--success-color, #28a745);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.btn-approve:hover:not(:disabled){background:var(--success-hover, #218838);transform:translateY(-1px)}.btn-approve:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.btn-revert{background:var(--warning-color, #ffc107);color:#212529;border:none;padding:8px 16px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.btn-revert:hover{background:#e0a800;transform:translateY(-1px)}.phase-section-approved{background:var(--success-bg, #d4edda);border-color:var(--success-border, #c3e6cb)}.phase-section-approved .phase-section-header h4{color:var(--success-color, #155724)}.phase-approved-summary{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#fff;border-radius:6px;margin-top:8px}.approved-count{color:var(--text-secondary, #666);font-size:13px}.btn-generate-final{background:var(--success-color, #28a745);color:#fff;border:none;padding:14px 20px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;width:100%}.btn-generate-final:hover:not(:disabled){background:var(--success-hover, #218838);transform:translateY(-1px)}.btn-generate-final:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.phase-nav{display:flex;gap:8px;padding-top:8px;border-top:1px solid var(--border-color, #dee2e6);margin-top:auto}.btn-back{background:transparent;color:var(--text-secondary, #6c757d);border:1px solid var(--border-color, #dee2e6);padding:8px 16px;border-radius:6px;font-size:13px;cursor:pointer;transition:all .2s}.btn-back:hover{background:var(--bg-tertiary, #fff);color:var(--text-primary, #212529)}.phase-error{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--error-bg, #fff5f5);border:1px solid var(--error-color, #dc3545);border-radius:6px;color:var(--error-color, #dc3545);font-size:13px}.phase-error button{background:none;border:none;color:var(--error-color, #dc3545);font-size:18px;cursor:pointer;padding:0;line-height:1}.phase-error button:hover{opacity:.7}.title-sidebar{width:380px;padding:1.5rem;background:#fff;border-left:1px solid #e2e8f0;overflow-y:auto;display:flex;flex-direction:column;gap:1rem}.title-actions-top{display:flex;flex-direction:column;gap:.75rem}.btn-accept-continue{background:#10b981;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:.95rem;transition:all .2s}.btn-accept-continue:hover:not(:disabled){background:#059669;transform:translateY(-1px)}.btn-accept-continue:disabled{opacity:.5;cursor:not-allowed;transform:none}.sidebar-title{margin:0;font-size:1rem;font-weight:600;color:#1e293b}.sidebar-hint{margin:0;font-size:.85rem;color:#64748b}.no-titles{color:#64748b;font-style:italic}.title-options{display:flex;flex-direction:column;gap:.75rem}.title-option{padding:1rem;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s}.title-option:hover{border-color:#94a3b8;background:#f8fafc}.title-option.selected{border-color:#4f46e5;background:#f0f0ff}.title-text{font-weight:600;color:#1e293b;line-height:1.4;margin-bottom:.5rem}.title-rationale{font-size:.8rem;color:#64748b;font-style:italic}.selected-title-display{padding:1rem;background:#f0fdf4;border:1px solid #86efac;border-radius:8px}.selected-title-display h4{margin:0 0 .5rem;font-size:.85rem;color:#16a34a}.selected-title{margin:0;font-weight:600;color:#1e293b;line-height:1.4}.field-display{padding:1rem;background:#f0f9ff;border:1px solid #7dd3fc;border-radius:8px}.field-display h4{margin:0 0 .5rem;font-size:.85rem;color:#0369a1}.field-text{margin:0;color:#1e293b;line-height:1.6;font-size:.95rem}.title-actions{display:flex;flex-direction:column;gap:.5rem}.btn-primary{background:#4f46e5;color:#fff;border:none;padding:.625rem 1rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s}.btn-primary:hover:not(:disabled){background:#4338ca}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;padding:.625rem 1rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s}.btn-secondary:hover:not(:disabled){background:#e2e8f0}.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.refine-input-panel{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.refine-input-panel label{font-size:.85rem;font-weight:500;color:#475569}.refine-input-panel textarea{padding:.75rem;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;resize:vertical;font-family:inherit}.refine-input-panel textarea:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.description-sidebar{width:380px;height:100%;background:var(--bg-secondary, #f8f9fa);border-left:1px solid var(--border-color, #dee2e6);display:flex;flex-direction:column;overflow-y:auto;padding:16px;gap:16px}.description-sidebar h3{font-size:16px;font-weight:600;color:var(--text-primary, #333);margin:0;padding-bottom:12px;border-bottom:1px solid var(--border-color, #dee2e6)}.no-figures-message{padding:20px;background:var(--bg-tertiary, #fff);border:1px dashed var(--border-color, #dee2e6);border-radius:8px;text-align:center;color:var(--text-secondary, #666);font-size:14px}.generation-progress{display:flex;align-items:center;gap:10px;padding:12px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;font-size:14px;font-weight:500}.description-progress{display:flex;justify-content:space-between;padding:8px 12px;background:var(--bg-tertiary, #fff);border-radius:6px;font-size:13px}.description-progress .progress-label{color:var(--text-secondary, #666)}.description-progress .progress-value{font-weight:600;color:var(--text-primary, #333)}.session-usage{padding:6px 12px;background:var(--bg-tertiary, #fff);border-radius:6px;font-size:12px;color:var(--text-secondary, #666);text-align:right}.figure-list{flex:1;display:flex;flex-direction:column;gap:12px;overflow-y:auto;min-height:0}.figure-item{background:var(--bg-tertiary, #fff);border:1px solid var(--border-color, #dee2e6);border-radius:8px;padding:12px;transition:all .2s}.figure-item:hover{border-color:var(--primary-color, #007bff);box-shadow:0 2px 8px #007bff1a}.figure-item.complete{border-left:3px solid var(--success-color, #28a745)}.figure-item.pending{border-left:3px solid var(--warning-color, #ffc107)}.figure-item.generating{border-left:3px solid var(--primary-color, #007bff);background:#007bff0d}.figure-item .figure-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.figure-item .figure-number{font-weight:700;font-size:14px;color:var(--text-primary, #333)}.figure-badge{font-size:11px;font-weight:600;padding:3px 8px;border-radius:12px}.figure-badge.complete{background:#d1fae5;color:#065f46}.figure-badge.pending{background:#fef3c7;color:#92400e}.figure-view-type{font-size:11px;color:var(--text-secondary, #666);background:var(--bg-secondary, #f3f4f6);padding:2px 6px;border-radius:4px;display:inline-block;margin-bottom:6px}.figure-brief{font-size:12px;color:var(--text-secondary, #666);line-height:1.4;margin-bottom:10px}.figure-error{font-size:11px;color:#dc2626;background:#fef2f2;padding:6px 8px;border-radius:4px;margin-bottom:8px}.btn-generate-single{width:100%;background:var(--primary-color, #007bff);color:#fff;border:none;padding:8px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px}.btn-generate-single:hover:not(:disabled){background:var(--primary-hover, #0056b3);transform:translateY(-1px)}.btn-generate-single:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.btn-generate-single.regenerate{background:transparent;color:var(--text-secondary, #666);border:1px solid var(--border-color, #dee2e6)}.btn-generate-single.regenerate:hover:not(:disabled){background:var(--bg-secondary, #f8f9fa);border-color:var(--primary-color, #007bff);color:var(--primary-color, #007bff)}.description-actions{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--border-color, #dee2e6)}.btn-generate-all{width:100%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-generate-all:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-generate-all:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none;box-shadow:none}.btn-accept-continue{width:100%;background:var(--success-color, #28a745);color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.btn-accept-continue:hover:not(:disabled){background:var(--success-hover, #218838);transform:translateY(-1px)}.btn-accept-continue:disabled{background:var(--disabled-bg, #ccc);cursor:not-allowed;transform:none}.spinner-small{width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}.spinner-tiny{width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}.generation-progress .spinner-small{border-color:#ffffff4d;border-top-color:#fff}.btn-generate-single:not(:disabled) .spinner-tiny{border-color:#ffffff4d;border-top-color:#fff}.btn-generate-single:disabled .spinner-tiny{border-color:#0000001a;border-top-color:#0000004d}@media (max-width: 1200px){.description-sidebar{width:320px}}.regenerate-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.regenerate-modal{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:90%;max-width:480px;padding:1.5rem;animation:slideUp .2s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-title{margin:0 0 1.25rem;font-size:1.125rem;font-weight:600;color:#1e293b}.modal-section{margin-bottom:1.25rem}.modal-label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:#475569}.modal-textarea{width:100%;padding:.75rem;border:1px solid #e2e8f0;border-radius:6px;font-size:.875rem;font-family:inherit;resize:vertical;transition:all .15s}.modal-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.modal-textarea::placeholder{color:#94a3b8}.preset-feedback{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.preset-btn{padding:.375rem .75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;font-size:.6875rem;color:#64748b;cursor:pointer;transition:all .15s}.preset-btn:hover{background:#fff;border-color:#3b82f6;color:#3b82f6}.model-options{display:flex;flex-direction:column;gap:.75rem}.model-option{display:flex;align-items:flex-start;gap:.75rem;padding:.875rem;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .15s}.model-option:hover{border-color:#cbd5e1;background:#f8fafc}.model-option.selected{border-color:#3b82f6;background:#eff6ff}.model-option input[type=radio]{margin-top:2px;cursor:pointer}.model-info{display:flex;flex-direction:column;gap:.125rem}.model-name{font-size:.875rem;font-weight:600;color:#1e293b}.model-desc{font-size:.75rem;color:#64748b}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e2e8f0}.btn-cancel{padding:.625rem 1.25rem;background:#fff;border:1px solid #e2e8f0;border-radius:6px;font-size:.875rem;font-weight:500;color:#64748b;cursor:pointer;transition:all .15s}.btn-cancel:hover{background:#f8fafc;border-color:#cbd5e1}.btn-regenerate{padding:.625rem 1.5rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .15s}.btn-regenerate:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.drawing-editor{display:grid;gap:12px;padding:12px;background:#f7fafc;border:1px solid #dbe2ea;border-radius:12px}.drawing-editor.empty{background:#fff;border-style:dashed;color:#475569}.drawing-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.drawing-editor-header h3{margin:0;font-size:1rem;color:#0f172a}.drawing-editor-header p{margin:2px 0 0;color:#64748b;font-size:.85rem}.figure-select{min-width:220px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:8px 10px}.drawing-tool-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.tool-group{display:flex;flex-wrap:wrap;gap:8px}.tool-btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:8px 10px;border-radius:8px;font-size:.85rem;cursor:pointer}.tool-btn.active{background:#0f766e;color:#fff;border-color:#0f766e}.drawing-status{display:flex;align-items:center;gap:8px;color:#475569;font-size:.85rem}.status-pill{text-transform:capitalize;padding:4px 8px;border-radius:999px;font-weight:600;border:1px solid #cbd5e1;background:#fff}.status-pill.generating{background:#fef3c7;border-color:#f59e0b}.status-pill.final{background:#dcfce7;border-color:#16a34a}.btn-danger-sm{padding:6px 12px;background:#fef2f2;color:#dc2626;border:1px solid #fecaca;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .15s ease}.btn-danger-sm:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.btn-danger-sm:disabled{opacity:.5;cursor:not-allowed}.pending-line{color:#0f766e;font-weight:600}.drawing-canvas{position:relative;width:100%;max-width:827px;margin:0 auto;background:linear-gradient(90deg,rgba(148,163,184,.15) 1px,transparent 1px),linear-gradient(rgba(148,163,184,.15) 1px,transparent 1px),#fff;background-size:20px 20px;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.annotation-layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;cursor:crosshair;background:#fff}.annotation-selected circle{stroke:#0f766e;stroke-width:.45}.drawing-panel{border:1px solid #dbe2ea;background:#fff;border-radius:10px;padding:10px 12px}.layer-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#334155;font-size:.9rem}.layer-controls label{display:inline-flex;align-items:center;gap:4px}.generation-controls{display:grid;gap:10px}.model-field{display:grid;gap:6px;color:#334155;font-size:.9rem}.model-field select{border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;background:#fff}.action-row{display:flex;flex-wrap:wrap;gap:8px}.action-row button,.annotations-header button,.annotation-actions button{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:7px 10px;cursor:pointer}.action-row button:first-child{background:#0f172a;color:#fff;border-color:#0f172a}.action-row button:disabled{opacity:.6;cursor:not-allowed}.cost-note,.empty-note{margin:0;color:#64748b;font-size:.85rem}.annotations-panel{display:grid;gap:10px}.annotations-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.annotations-header h4{margin:0;color:#0f172a;font-size:.95rem}.annotation-list{display:grid;gap:8px;max-height:400px;overflow-y:auto;padding-right:4px}.annotation-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px}.annotation-item.selected{border-color:#0f766e;background:#f0fdfa}.annotation-main{display:grid;gap:2px}.annotation-main strong{font-size:.9rem;color:#0f172a}.annotation-main span{color:#64748b;font-size:.8rem}.annotation-actions{display:flex;gap:6px}@media (max-width: 900px){.drawing-editor-header,.drawing-tool-row,.annotations-header,.annotation-item{flex-direction:column;align-items:stretch}.figure-select{min-width:0;width:100%}.annotation-actions{justify-content:flex-end}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:12px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e2e8f0}.modal-header h3{margin:0;font-size:1.1rem;color:#0f172a}.modal-close{background:none;border:none;font-size:1.5rem;color:#64748b;cursor:pointer;padding:0;line-height:1}.modal-close:hover{color:#0f172a}.modal-body{padding:20px;display:grid;gap:16px}.refine-preview{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px;display:flex;justify-content:center}.refine-preview img{max-width:100%;max-height:300px;object-fit:contain;border-radius:4px}.refine-feedback-field{display:grid;gap:8px}.refine-feedback-field span{font-weight:600;color:#0f172a;font-size:.9rem}.refine-feedback-field textarea{border:1px solid #cbd5e1;border-radius:8px;padding:12px;font-size:.95rem;resize:vertical;min-height:100px;font-family:inherit}.refine-feedback-field textarea:focus{outline:none;border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1a}.refine-hint{margin:0;font-size:.85rem;color:#64748b}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #e2e8f0;background:#f7fafc;border-radius:0 0 12px 12px}.modal-footer .btn-cancel{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:10px 16px;cursor:pointer;font-size:.9rem}.modal-footer .btn-cancel:hover{background:#f1f5f9}.modal-footer .btn-primary{border:none;background:#0f766e;color:#fff;border-radius:8px;padding:10px 16px;cursor:pointer;font-size:.9rem;font-weight:600}.modal-footer .btn-primary:hover:not(:disabled){background:#0d5f58}.modal-footer .btn-primary:disabled{opacity:.6;cursor:not-allowed}.review-main{display:flex;flex-direction:column;gap:1rem;flex:1;min-width:0;overflow:hidden}.review-export-bar{display:flex;gap:.5rem;flex-wrap:wrap;padding:.5rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0;flex-shrink:0}.review-export-bar .btn-export{padding:.5rem 1rem;background:#4f46e5;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.review-export-bar .btn-export:hover:not(:disabled){background:#4338ca}.review-export-bar .btn-export:disabled{opacity:.5;cursor:not-allowed}.drawings-preview{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;max-height:200px;overflow-y:auto;flex-shrink:0}.drawings-preview h4{margin:0 0 .75rem;font-size:.9rem;color:#475569}.drawings-grid{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.5rem}.drawing-thumb{flex-shrink:0;width:120px;border:1px solid #e2e8f0;border-radius:6px;padding:.5rem;background:#fafafa;text-align:center}.drawing-thumb img{max-width:100%;max-height:150px;object-fit:contain}.drawing-placeholder{width:100%;height:100px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:4px;color:#94a3b8;font-size:.75rem}.drawing-label{font-size:.75rem;font-weight:600;color:#1e293b;margin-top:.5rem}.review-editor{flex:1;min-height:400px;font-size:14px;line-height:1.7;resize:none}.rich-text-editor{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.rich-text-editor.loading{padding:2rem;text-align:center;color:#64748b}.editor-toolbar{display:flex;align-items:center;gap:.25rem;padding:.5rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0}.toolbar-group{display:flex;gap:.25rem}.toolbar-divider{width:1px;height:24px;background:#e2e8f0;margin:0 .5rem}.editor-toolbar button{padding:.375rem .625rem;background:#fff;border:1px solid #e2e8f0;border-radius:4px;cursor:pointer;font-size:.875rem;min-width:32px;transition:all .15s;color:#374151}.editor-toolbar button:hover:not(:disabled){background:#f3f4f6;border-color:#d1d5db}.editor-toolbar button.active{background:#4f46e5;color:#fff;border-color:#4f46e5}.editor-toolbar button:disabled{opacity:.5;cursor:not-allowed}.editor-content{padding:1.5rem}.editor-content .tiptap{outline:none;font-size:.9375rem;line-height:1.7;color:#1e293b}.editor-content .tiptap:focus{outline:none}.editor-content .ProseMirror{overflow:visible!important}.editor-content .tiptap h1{font-size:1.75rem;font-weight:700;margin:1.5rem 0 1rem;color:#0f172a;border-bottom:2px solid #e2e8f0;padding-bottom:.5rem}.editor-content .tiptap h2{font-size:1.375rem;font-weight:600;margin:1.25rem 0 .75rem;color:#1e293b}.editor-content .tiptap h3{font-size:1.125rem;font-weight:600;margin:1rem 0 .5rem;color:#334155}.editor-content .tiptap p{margin:0 0 1rem}.editor-content .tiptap ul,.editor-content .tiptap ol{margin:0 0 1rem;padding-left:1.5rem}.editor-content .tiptap li{margin:.25rem 0}.editor-content .tiptap strong{font-weight:600;color:#0f172a}.editor-content .tiptap em{font-style:italic}.editor-content .tiptap u{text-decoration:underline}.editor-placeholder{position:absolute;top:4.5rem;left:1.5rem;color:#94a3b8;pointer-events:none;font-style:italic}.editor-content .tiptap>p:first-child{margin-top:0}.editor-content .tiptap code{background:#f1f5f9;padding:.125rem .375rem;border-radius:4px;font-family:SF Mono,Monaco,monospace;font-size:.875em}.editor-content .tiptap blockquote{border-left:3px solid #4f46e5;padding-left:1rem;margin:1rem 0;color:#64748b;font-style:italic}.editor-content .tiptap hr{border:none;border-top:1px solid #e2e8f0;margin:1.5rem 0}*{box-sizing:border-box}.editor-container{min-height:100vh;display:flex;flex-direction:column;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.editor-nav{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1.5rem;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100}.nav-left{display:flex;align-items:center;gap:1rem}.btn-back{background:transparent;border:none;color:#64748b;cursor:pointer;font-size:.875rem;padding:.5rem;display:flex;align-items:center;gap:.5rem;transition:color .2s}.btn-back:hover{color:#1e293b}.nav-divider{width:1px;height:24px;background:#e2e8f0}.project-name{margin:0;font-size:1rem;font-weight:600;color:#1e293b}.nav-right{display:flex;align-items:center;flex:1;justify-content:flex-end;gap:1rem}.ai-usage-bar{display:flex;align-items:center;gap:1rem;background:#f8fafc;padding:.5rem 1rem;border-radius:8px;border:1px solid #e2e8f0}.model-selector{position:relative}.model-select-btn{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #e2e8f0;padding:.5rem .75rem;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.model-select-btn:hover{border-color:#cbd5e1;background:#f8fafc}.model-icon{font-size:1rem}.model-name-text{font-weight:500;color:#1e293b;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-arrow{color:#94a3b8;font-size:.75rem}.model-dropdown{position:absolute;top:100%;left:0;margin-top:.5rem;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a;z-index:1000;min-width:320px;max-height:400px;overflow-y:auto}.model-option{display:block;width:100%;padding:.75rem 1rem;border:none;border-bottom:1px solid #f1f5f9;background:#fff;text-align:left;cursor:pointer;transition:background .15s}.model-option:last-child{border-bottom:none}.model-option:hover,.model-option.active{background:#f8fafc}.model-option.active{border-left:3px solid #4f46e5}.model-option-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.model-option-name{font-weight:600;color:#1e293b;font-size:.875rem}.model-option-cost{font-size:.75rem;color:#64748b;background:#f1f5f9;padding:.125rem .5rem;border-radius:4px}.model-option-desc{margin:0;font-size:.75rem;color:#94a3b8}.token-stats{display:flex;align-items:center;gap:.75rem;font-size:.75rem}.token-stat{display:flex;align-items:center;gap:.25rem;color:#64748b;background:#fff;padding:.375rem .625rem;border-radius:4px;border:1px solid #e2e8f0}.token-stat.cost{color:#059669;font-weight:600;background:#d1fae5;border-color:#a7f3d0}.generating-badge{color:#4f46e5;font-weight:500;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.project-totals{display:flex;flex-direction:column;align-items:flex-end;gap:.125rem}.totals-label{font-size:.625rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.totals-value{font-size:1rem;font-weight:700;color:#1e293b}.totals-detail{font-size:.625rem;color:#64748b}.progress-bar{display:flex;align-items:center;gap:.75rem;background:#f1f5f9;padding:.5rem .875rem;border-radius:9999px}.progress-bar span{font-size:.75rem;color:#64748b;font-weight:500;white-space:nowrap}.progress-fill{height:6px;background:#4f46e5;border-radius:3px;transition:width .3s ease}.editor-layout{display:flex;flex:1;overflow:hidden}.section-sidebar{width:300px;min-width:300px;background:#fff;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;overflow:hidden}@media (min-width: 1920px){.section-sidebar{width:340px;min-width:340px}}.sidebar-header{padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0}.sidebar-header h3{margin:0;font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.section-list{flex:1;overflow-y:auto;padding:.5rem}.section-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;border:none;background:transparent;border-radius:8px;cursor:pointer;width:100%;text-align:left;transition:all .15s;margin-bottom:.25rem}.section-item:hover{background:#f8fafc}.section-item.active{background:#eef2ff}.section-number{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:#e2e8f0;border-radius:50%;font-size:.75rem;font-weight:600;color:#64748b;flex-shrink:0}.section-item.active .section-number{background:#4f46e5;color:#fff}.section-details{flex:1;min-width:0}.section-title{display:block;font-weight:500;font-size:.875rem;color:#1e293b;margin-bottom:.125rem}.section-item.active .section-title{color:#4f46e5}.section-desc{display:block;font-size:.75rem;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:6px}.status-indicator.empty{background:#e2e8f0}.status-indicator.draft{background:#fbbf24}.status-indicator.reviewed{background:#60a5fa}.status-indicator.final{background:#34d399}.status-tick{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:#10b981;color:#fff;border-radius:50%;font-size:.75rem;font-weight:700;flex-shrink:0;margin-top:4px}.editor-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#fff;border-bottom:1px solid #e2e8f0}.toolbar-info h2{margin:0 0 .25rem;font-size:1.25rem;color:#1e293b}.toolbar-info p{margin:0;color:#64748b;font-size:.875rem}.toolbar-actions{display:flex;align-items:center;gap:1rem}.save-status{font-size:.875rem;font-weight:500}.save-status.saved{color:#10b981}.save-status.saving{color:#f59e0b}.save-status.unsaved{color:#64748b}.btn-generate{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.btn-generate:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-generate:disabled{opacity:.7;cursor:not-allowed}.btn-finalise{background:#10b981;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.btn-finalise:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 4px 12px #10b98166}.btn-finalise:disabled{opacity:.5;cursor:not-allowed}.btn-export{background:#6366f1;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.btn-export:hover{background:#4f46e5;transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.btn-revert-draft{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0;padding:.625rem 1.25rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.875rem;transition:all .2s}.btn-revert-draft:hover{background:#e2e8f0;color:#475569}.claims-setup-panel{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;max-width:600px;margin:0 auto}.claims-setup-panel h3{margin:0 0 .5rem;font-size:1.5rem;color:#1e293b}.setup-description{margin:0 0 2rem;color:#64748b;text-align:center}.setup-option{width:100%;margin-bottom:1.5rem}.setup-option label{display:block;margin-bottom:.75rem;font-weight:600;color:#374151;font-size:.875rem}.option-buttons{display:flex;gap:.75rem}.option-btn{flex:1;display:flex;flex-direction:column;align-items:center;padding:1rem;background:#fff;border:2px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:all .2s}.option-btn:hover{border-color:#cbd5e1;background:#f8fafc}.option-btn.active{border-color:#4f46e5;background:#eef2ff}.option-title{font-weight:600;font-size:1rem;color:#1e293b;margin-bottom:.25rem}.option-desc{font-size:.75rem;color:#64748b;text-align:center}.option-btn.active .option-title{color:#4f46e5}.number-options .option-btn{flex-direction:row;justify-content:center;padding:.875rem 1rem}.number-btn .option-title,.number-btn{font-size:.9375rem}.btn-generate-claims{margin-top:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.875rem 2rem;border-radius:10px;cursor:pointer;font-weight:600;font-size:1rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .2s}.btn-generate-claims:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.btn-generate-claims:disabled{opacity:.5;cursor:not-allowed}.editor-workspace{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#fff}.generation-banner{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#eef2ff;border-bottom:1px solid #e0e7ff;color:#4f46e5;font-size:.875rem}.content-editor{flex:1;width:100%;padding:1.5rem;border:none;resize:none;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:.9375rem;line-height:1.7;color:#1e293b;background:#fff;-moz-tab-size:2;tab-size:2}@media (min-width: 1600px){.content-editor{padding:2rem 3rem;font-size:1rem}}@media (min-width: 1920px){.content-editor{padding:2rem 4rem;font-size:1.0625rem}}.content-editor:focus{outline:none}.content-editor::placeholder{color:#94a3b8}.editor-help-panel{padding:1rem 1.5rem;background:#f8fafc;border-top:1px solid #e2e8f0}.editor-help-panel h4{margin:0 0 .75rem;font-size:.875rem;color:#374151;font-weight:600}.editor-help-panel ul{margin:0;padding-left:1.25rem;color:#64748b;font-size:.875rem}.editor-help-panel li{margin-bottom:.375rem}.editor-loading,.editor-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:1rem;color:#64748b}.editor-error{color:#dc2626}.editor-error button{background:#4f46e5;color:#fff;border:none;padding:.625rem 1.25rem;border-radius:6px;cursor:pointer;font-weight:500}.spinner{width:40px;height:40px;border:3px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;animation:spin 1s linear infinite}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 768px){.section-sidebar{display:none}.editor-toolbar{flex-direction:column;align-items:flex-start;gap:1rem}.toolbar-actions{width:100%;justify-content:space-between}}.disclosure-workspace{flex:1;display:flex;flex-direction:column;overflow:hidden}.disclosure-tabs{display:flex;gap:0;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:0 1rem}.tab-btn{padding:.875rem 1.25rem;background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;font-weight:500;color:#64748b;transition:all .15s}.tab-btn:hover{color:#1e293b;background:#f1f5f9}.tab-btn.active{color:#4f46e5;border-bottom-color:#4f46e5;background:#fff}.disclosure-inputs-panel{flex:1;overflow-y:auto;padding:1.5rem}.add-input-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.input-textarea{width:100%;padding:.75rem;border:1px solid #e2e8f0;border-radius:6px;resize:vertical;font-family:inherit;font-size:.875rem;line-height:1.6;margin-bottom:.75rem}.input-textarea:focus{outline:none;border-color:#4f46e5}.btn-add-input{background:#4f46e5;color:#fff;border:none;padding:.625rem 1rem;border-radius:6px;cursor:pointer;font-weight:500;font-size:.875rem;transition:all .15s}.btn-add-input:hover:not(:disabled){background:#4338ca}.btn-add-input:disabled{opacity:.5;cursor:not-allowed}.inputs-list{display:flex;flex-direction:column;gap:.75rem}.no-inputs{text-align:center;padding:2rem;color:#94a3b8;background:#f8fafc;border-radius:8px;border:2px dashed #e2e8f0}.input-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.input-header{display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:.75rem}.input-type{background:#4f46e5;color:#fff;padding:.25rem .5rem;border-radius:4px;font-weight:500;text-transform:uppercase;font-size:.625rem;letter-spacing:.05em}.input-date{color:#64748b;margin-left:auto}.btn-delete-input{background:#fee2e2;color:#dc2626;border:none;width:24px;height:24px;border-radius:4px;cursor:pointer;font-size:1.125rem;line-height:1;display:flex;align-items:center;justify-content:center}.btn-delete-input:hover{background:#fecaca}.input-content{padding:.875rem;font-size:.875rem;line-height:1.6;color:#374151;white-space:pre-wrap;word-break:break-word}.generated-preview{margin-top:1.5rem;padding:1rem;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px}.generated-preview h4{margin:0 0 .75rem;color:#059669;font-size:.875rem}.generated-content-box{font-size:.875rem;line-height:1.6;color:#374151;white-space:pre-wrap;background:#fff;padding:1rem;border-radius:6px;border:1px solid #d1fae5}.btn-use-generated{display:block;margin-top:1rem;background:#059669;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-weight:500;font-size:.875rem}.btn-use-generated:hover{background:#047857}.model-dropdown-loading{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:2rem;color:#64748b}.model-dropdown-footer{padding:.75rem;border-top:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;gap:.5rem}.btn-refresh-models{background:#f1f5f9;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.875rem;color:#475569;transition:all .15s;width:100%}.btn-refresh-models:hover:not(:disabled){background:#e2e8f0}.btn-refresh-models:disabled{opacity:.6;cursor:not-allowed}.models-error{font-size:.75rem;color:#dc2626}.project-totals.clickable{cursor:pointer;transition:all .15s}.project-totals.clickable:hover{background:#f1f5f9;border-radius:8px;padding:.25rem .5rem;margin:-.25rem -.5rem}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;width:90%;max-width:800px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid #e2e8f0}.modal-header h3{margin:0;font-size:1.125rem;color:#1e293b}.modal-close{background:#f1f5f9;border:none;width:32px;height:32px;border-radius:6px;font-size:1.5rem;line-height:1;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#e2e8f0;color:#1e293b}.modal-body{padding:1.5rem;overflow-y:auto}.modal-loading,.modal-empty{text-align:center;padding:3rem 2rem;color:#64748b}.modal-loading .spinner{margin-bottom:1rem}.modal-empty p{margin:0 0 .5rem;font-size:1rem}.modal-hint{font-size:.875rem;color:#94a3b8}.usage-table{width:100%;border-collapse:collapse;font-size:.9375rem}.usage-table th,.usage-table td{padding:.875rem 1rem;text-align:left;border-bottom:1px solid #e2e8f0}.usage-table th{font-weight:600;color:#475569;background:#f8fafc;border-top:1px solid #e2e8f0}.usage-table tbody tr:hover{background:#f8fafc}.usage-table .model-name{font-weight:500;color:#1e293b;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-table .cost-cell{font-weight:600;color:#059669;text-align:right}.usage-table tfoot{background:#f0fdf4;border-top:2px solid #a7f3d0}.usage-table tfoot td{border-bottom:none;color:#065f46}.confirm-modal{max-width:480px}.confirm-message{padding:1.5rem 0}.confirm-message p{margin:0 0 .75rem;color:#334155;line-height:1.6}.confirm-message p:last-child{margin-bottom:0}.confirm-warning{color:#dc2626!important;font-weight:500;background:#fef2f2;padding:.75rem 1rem;border-radius:8px;border-left:3px solid #dc2626}.confirm-actions{display:flex;gap:1rem;justify-content:flex-end;padding-top:1.5rem;border-top:1px solid #e2e8f0}.btn-cancel{background:#f1f5f9;color:#475569;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-cancel:hover{background:#e2e8f0}.btn-confirm-regenerate{background:#dc2626;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .15s;display:flex;align-items:center;gap:.5rem}.btn-confirm-regenerate:hover{background:#b91c1c}.disclosure-workspace-with-sidebar{display:flex;flex-direction:row;flex:1;overflow:hidden}.disclosure-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.disclosure-workspace-with-sidebar .review-sidebar{display:flex;flex-shrink:0}.disclosure-content-panel{flex:1;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;position:relative}.edit-toolbar{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid #e2e8f0}.btn-edit-mode{background:#4f46e5;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;display:flex;align-items:center;gap:.5rem}.btn-edit-mode:hover:not(:disabled){background:#4338ca}.btn-edit-mode:disabled{opacity:.5;cursor:not-allowed}.edit-actions{display:flex;gap:.5rem}.btn-save-edit{background:#10b981;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-save-edit:hover{background:#059669}.btn-cancel-edit{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-cancel-edit:hover{background:#e2e8f0}.edit-disabled-hint{font-size:.75rem;color:#f59e0b;margin-left:auto}.content-display{flex:1;overflow:auto;padding:1.5rem;background:#fff}.content-pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:inherit;font-size:.9375rem;line-height:1.7;color:#334155}.content-editor.editing{flex:1;width:100%;padding:1.5rem;border:none;resize:none;font-family:inherit;font-size:.9375rem;line-height:1.7;color:#334155;background:#fff;outline:none}.claims-workspace-with-sidebar{display:flex;flex-direction:row;flex:1;overflow:hidden;height:100%}.claims-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0;height:100%}.claims-workspace-with-sidebar .review-sidebar{display:flex;flex-shrink:0}.claims-editor{flex:1;padding:1.5rem;font-family:SF Mono,Monaco,Cascadia Code,monospace;font-size:.875rem;line-height:1.6}.brief-drawings-preview{padding:1.5rem;overflow-y:auto;height:100%}.brief-drawings-preview h3{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0 0 1.5rem;padding-bottom:.75rem;border-bottom:2px solid #e2e8f0}.brief-drawings-preview .prose-content{line-height:1.8;color:#1e293b}.brief-drawings-preview .prose-content p{margin:0 0 1rem;font-size:.95rem}.brief-drawings-preview h4{font-size:1rem;font-weight:600;color:#1e293b;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid #e2e8f0}.figures-preview-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.figure-preview-item{padding:.875rem 1rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;border-left:3px solid #94a3b8}.figure-preview-item.accepted{border-left-color:#22c55e;background:#f0fdf4}.figure-preview-item.pending{border-left-color:#f59e0b;background:#fffbeb}.figure-preview-item strong{color:#1e293b;font-size:.9rem}.figure-preview-item p{margin:.5rem 0 0;color:#64748b;font-size:.85rem;line-height:1.5}.numerals-preview{display:flex;flex-wrap:wrap;gap:.5rem}.numeral-chip{display:inline-flex;padding:.25rem .625rem;background:#e2e8f0;border-radius:12px;font-size:.75rem;color:#475569}.numeral-chip.more{background:#cbd5e1;color:#64748b;font-style:italic}.brief-drawings-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:3rem;text-align:center}.brief-drawings-empty h3{font-size:1.5rem;font-weight:600;color:#1e293b;margin:0 0 1.5rem}.brief-drawings-empty p{color:#64748b;font-size:.95rem;max-width:500px;line-height:1.6;margin:0 0 1rem}.brief-drawings-empty ol{text-align:left;margin:1.5rem 0;padding-left:1.5rem}.brief-drawings-empty ol li{color:#475569;font-size:.9rem;line-height:1.8;margin-bottom:.75rem}.brief-drawings-empty ol li strong{color:#1e293b}.title-formatted-display{width:100%;height:100%;padding:2rem;background:#fff;overflow-y:auto}.title-formatted-display pre{font-family:inherit;font-size:1rem;line-height:1.8;color:#1e293b;white-space:pre-wrap;word-wrap:break-word;margin:0}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}#root{min-height:100vh;width:100%}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
