.dialog{background:#fff;border:1px solid #a8a8a2;border-radius:12px;width:100%;max-width:580px;box-shadow:0 4px 20px #0000002e;overflow:hidden;display:flex;flex-direction:column;max-height:90vh;height:90vh;min-height:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:#1a1a18}.draft-banner{background:#7a4020;color:#fff;font-size:11px;font-weight:700;text-align:center;padding:3px 0;letter-spacing:.05em;border-radius:6px 6px 0 0;flex-shrink:0}.dh{background:#1a3a6e;padding:.8rem 1rem;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.dh-left{display:flex;align-items:center;gap:.6rem}.ai-dot{width:26px;height:26px;border-radius:50%;background:#4a90d9;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.dh-title{font-size:14px;font-weight:600;color:#fff}.dh-sub{font-size:11px;color:#a8c0e0;margin-top:1px}.dh-close{background:none;border:none;cursor:pointer;color:#a8c0e0;font-size:18px;padding:2px 5px;border-radius:4px;transition:background-color .15s,color .15s}.dh-close:hover{background:#ffffff1a;color:#fff}.dialog-body{overflow-y:auto;flex:1;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.85rem;min-height:0}.dialog-body::-webkit-scrollbar{width:6px}.dialog-body::-webkit-scrollbar-track{background:#f0f0ec;border-radius:10px}.dialog-body::-webkit-scrollbar-thumb{background-color:#b0b8cc;border-radius:10px}.section-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#3a3a36;border-bottom:1px solid #d0d0ca;padding-bottom:.3rem;margin-bottom:.5rem;display:flex;align-items:center}.task-card{background:#f4f8ff;border:1px solid #b8ccee;border-radius:8px;padding:.75rem}.task-card-handle{font-size:10px;font-weight:700;color:#1a3a6e;background:#eef2fa;border:1px solid #c0cce0;border-radius:3px;padding:1px 6px;display:inline-block;margin-bottom:6px;letter-spacing:.02em}.task-card-title{font-size:13px;font-weight:600;color:#1a1a18;margin-bottom:4px}.task-card-desc{font-size:12px;color:#555552;line-height:1.5;margin-bottom:4px}.task-card-notes{font-size:12px;color:#888882;line-height:1.5;font-style:italic}.task-card-notes:before{content:"Notes: ";font-style:normal;font-weight:600;color:#555552}.task-progress-card{background:#fff;border:1px solid #e0e0da;border-radius:6px;padding:10px 14px;margin-top:8px;display:flex;flex-direction:column;gap:6px}.progress-stats-row{display:flex;align-items:center;gap:1.8rem;font-size:12px;color:#555552;line-height:1.4;font-family:inherit}.progress-stat-item{display:inline-flex;align-items:center;gap:4px}.progress-stat-value{color:#1a1a18;font-weight:500}.progress-bar-track{height:8px;background:#e0e0da;border-radius:9999px;overflow:hidden;width:100%}.progress-bar-fill{height:100%;background:#1a5c30;border-radius:9999px;transition:width .35s ease-in-out}.subtask-list{display:flex;flex-direction:column;gap:6px}.subtask-row{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;background:#fafaf8;border:1px solid #e0e0da;border-radius:6px;cursor:pointer;transition:border-color .15s,opacity .15s,background-color .15s;position:relative}.subtask-row:hover{border-color:#8898b8}.subtask-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}.subtask-action-btn{background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#71717a;font-size:15px;display:flex;align-items:center;justify-content:center;transition:color .15s,background-color .15s}.subtask-action-btn:hover{background:#e4e4e7;color:#18181b}.subtask-action-btn.btn-remove:hover{background:#fee2e2;color:#ef4444}.subtask-action-btn.btn-save{color:#16a34a}.subtask-action-btn.btn-save:hover{background:#dcfce7;color:#15803d}.subtask-edit-title{width:100%;box-sizing:border-box;font-family:inherit;font-size:13px;font-weight:600;color:#1a1a18;padding:4px 6px;border:1px solid #0066ff;border-radius:4px;margin-top:2px;margin-bottom:2px;outline:none;background:#fff;resize:none;overflow:hidden;line-height:1.4;word-break:break-word;display:block}.subtask-edit-desc{width:100%;font-family:inherit;font-size:12px;color:#555552;padding:3px 6px;border:1px solid #cbd5e1;border-radius:4px;outline:none;background:#fff}.subtask-row input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1.5px solid #a0a09c;border-radius:4px;background-color:#fff;cursor:pointer;flex-shrink:0;margin-top:1px;display:grid;place-content:center;transition:border-color .15s,background-color .15s}.subtask-row input[type=checkbox]:hover{border-color:#70706c}.subtask-row input[type=checkbox]:checked{background-color:#06f;border-color:#06f}.subtask-row input[type=checkbox]:checked:before{content:"";width:9px;height:5px;border-left:2px solid #ffffff;border-bottom:2px solid #ffffff;transform:rotate(-45deg) translate(.5px,-.5px)}.subtask-row-body{flex:1;min-width:0}.subtask-code{font-size:10px;font-weight:700;color:#1a3a6e;background:#eef2fa;border:1px solid #c0cce0;border-radius:3px;padding:1px 5px;display:inline-block;margin-bottom:3px;letter-spacing:.02em;transition:color .15s,background .15s,border-color .15s}.subtask-title{font-size:13px;font-weight:600;color:#1a1a18;transition:color .15s}.subtask-desc{font-size:12px;color:#555552;margin-top:2px;line-height:1.4;transition:color .15s}.ai-wrap{background:#f4f8ff;border:1px solid #9ab8e0;border-radius:7px;overflow:hidden}.ai-hdr{background:#deeaf8;padding:.35rem .75rem;font-size:11px;font-weight:600;color:#1a3a6e;border-bottom:1px solid #9ab8e0;display:flex;align-items:center;gap:6px}.ai-textarea{width:100%;font-family:inherit;font-size:13px;color:#1a1a18;background:transparent;border:none;padding:.6rem .75rem;resize:none;outline:none;height:72px;line-height:1.5}.ai-textarea::-moz-placeholder{color:#8898b8}.ai-textarea::placeholder{color:#8898b8}.gen-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.gen-status{font-size:12px;color:#888882}.btn-generate{font-family:inherit;font-size:13px;font-weight:600;border-radius:6px;padding:.45rem 1.2rem;cursor:pointer;background:#1a3a6e;color:#fff;border:1px solid #142e58;white-space:nowrap;transition:background-color .15s}.btn-generate:hover{background:#142e58}.btn-generate:disabled{background:#8898b8;border-color:#7080a0;cursor:not-allowed}.preview-box{display:flex;flex-direction:column;gap:.5rem;border-top:1px solid #e0e0da;padding-top:.75rem;margin-top:.25rem}.preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.25rem}.preview-label{font-size:11px;font-weight:700;color:#1a5c30;text-transform:uppercase;letter-spacing:.04em}.preview-count{font-size:11px;color:#888882}.preview-items-list{display:flex;flex-direction:column}.preview-item-section{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#1a3a6e;background:#eef2fa;padding:4px 8px;border-radius:4px;margin:6px 0 2px}.preview-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid #f0f0ea}.preview-item:last-child{border-bottom:none}.preview-item input[type=checkbox]{width:16px;height:16px;margin-top:2px;cursor:pointer;flex-shrink:0;accent-color:#0066ff}.preview-label-text{flex:1;font-size:13px;color:#1a1a18;line-height:1.5;cursor:pointer}.preview-item.preview-done .preview-label-text{text-decoration:line-through;color:#888882}.df{padding:.65rem .85rem .75rem;border-top:1px solid #b8b8b2;background:#f5f5f2;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-shrink:0}.btn{font-family:inherit;font-size:13px;font-weight:600;border-radius:6px;padding:.45rem 1rem;cursor:pointer;white-space:nowrap;transition:background-color .15s}.btn-cancel{background:#fff;color:#3a3a36;border:1px solid #a8a8a2}.btn-cancel:hover{background:#f0f0ec}.btn-confirm{background:#1a5c30;color:#fff;border:1px solid #144824}.btn-confirm:hover{background:#144824}.btn-confirm:disabled{background:#8ec89e;border-color:#6aaa7e;cursor:not-allowed}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin-icon{animation:spin 1s linear infinite}
