.navigator{display:flex;flex-direction:column;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.nav-search{padding:1rem;border-bottom:1px solid #333;position:relative;display:flex;gap:.5rem;align-items:center;background:#1a1a1a}.search-input{flex:1;padding:.6rem 2rem .6rem .8rem;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#e0e0e0;font-size:.9rem}.search-input:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 2px #4a9eff1a}.clear-search{position:absolute;right:4rem;top:50%;transform:translateY(-50%);background:none;border:none;color:#888;cursor:pointer;font-size:1rem;padding:.2rem;transition:color .2s}.clear-search:hover{color:#e0e0e0}.filter-toggle{background:#2a2a2a;border:1px solid #444;color:#888;padding:.5rem .7rem;border-radius:4px;cursor:pointer;font-size:.9rem;transition:all .2s}.filter-toggle:hover{background:#333;color:#4a9eff;border-color:#4a9eff}.nav-filters{padding:1rem;background:#28283280;border-bottom:1px solid #333;display:flex;flex-direction:column;gap:.8rem}.filter-group{display:flex;flex-direction:column;gap:.3rem}.filter-group label{font-size:.75rem;color:#888;text-transform:uppercase;font-weight:600}.filter-group select{padding:.4rem;background:#2a2a2a;border:1px solid #444;border-radius:3px;color:#e0e0e0;font-size:.85rem}.filter-group select:focus{outline:none;border-color:#4a9eff}.clear-filters{padding:.5rem;background:#dc3c3c33;border:1px solid rgba(220,60,60,.5);color:#ff8080;border-radius:4px;cursor:pointer;font-size:.8rem;transition:all .2s}.clear-filters:hover{background:#dc3c3c4d}.nav-main{flex:1;overflow-y:auto;overflow-x:hidden;padding:1rem}.nav-todos{border-top:2px solid #444;padding:1rem;background:#151515;max-height:200px;overflow-y:auto}.nav-todos h3{margin-bottom:.8rem;color:#888;font-size:.85rem;text-transform:uppercase}.todo-list{display:flex;flex-direction:column;gap:.5rem}.todo-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;padding:.4rem;border-radius:3px;background:#1a1a1a}.todo-item input[type=checkbox]{cursor:pointer}.todo-empty{font-size:.85rem;color:#555;font-style:italic}.nav-section{margin-bottom:2rem}.nav-section h3{margin-bottom:1rem;color:#888;font-size:.9rem;text-transform:uppercase}.world-section{border-top:1px solid #333;padding-top:1rem}.world-category{margin-bottom:.8rem}.world-category-title{font-size:.8rem;color:#666;margin-bottom:.4rem;padding-left:.2rem;font-weight:500}.node-world-section{margin-top:.5rem;padding-left:.5rem;border-left:1px dashed #444}.world-category-inline{margin-bottom:.6rem}.world-category-title-inline{font-size:.75rem;color:#555;margin-bottom:.3rem;font-weight:500;font-style:italic}.tree-node{margin-left:.5rem}.node-label{padding:.4rem .6rem;cursor:pointer;border-radius:4px;transition:all .2s;display:flex;align-items:center;gap:.5rem;border-left:3px solid transparent;position:relative;-webkit-user-select:none;user-select:none}.node-label:hover{background:#2a2a2acc}.node-label.active{background:#3a3a3ae6;color:#fff;font-weight:500}.node-label.drag-over{background:#4a9eff33!important;border-left-color:#4a9eff!important;border-left-width:4px}.node-label.dragging{opacity:.5;cursor:grabbing}.node-label.scope-bible{font-weight:600;font-size:1rem}.node-label.scope-volume{font-weight:600;font-size:.95rem}.node-label.scope-module,.node-label.scope-chapter{font-weight:500;font-size:.9rem}.node-label.scope-scene{font-size:.85rem}.node-label.project-root-node{border-left-width:4px;font-weight:700;letter-spacing:.01em}.root-badge{font-size:.62rem;color:#cfd8ff;border:1px solid rgba(127,156,255,.6);border-radius:999px;padding:.1rem .35rem;background:#4f6eff2e;margin-left:.5rem;font-weight:700}.node-label.scope-character,.node-label.scope-location,.node-label.scope-artifact,.node-label.scope-rule,.node-label.scope-plotline{font-size:.85rem;font-style:italic}.scope-icon{font-size:.85rem;flex-shrink:0;width:16px;text-align:center}.node-title{font-size:inherit;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.word-count{font-size:.7rem;color:#888;background:#50507833;padding:.15rem .4rem;border-radius:3px;margin-left:auto;font-weight:500;white-space:nowrap}.node-title-edit{flex:1;background:#222;border:1px solid #4a9eff;color:#ddd;padding:.2rem .4rem;border-radius:3px;font-size:.85rem;outline:none}.sync-indicator.sync-green{color:#40ff40}.sync-indicator.sync-yellow{color:#fc0}.sync-indicator.sync-red{color:#ff4040}.sync-indicator{font-size:.6rem;line-height:1;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.node-label.sync-green{border-left:3px solid #40ff40}.node-label.sync-yellow{border-left:3px solid #ffcc00}.node-label.sync-red{border-left:3px solid #ff4040}.node-children{margin-left:.8rem;border-left:1px solid #333;padding-left:.5rem}.collapse-btn{background:none;border:none;color:#666;cursor:pointer;padding:0;margin-right:.1rem;font-size:.7rem;transition:all .2s;width:14px;height:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.collapse-btn:hover{color:#4a9eff;transform:scale(1.2)}.node-title-edit{flex:1;background:#2a2a2a;border:1px solid #4a9eff;border-radius:3px;color:#e0e0e0;padding:.2rem .4rem;font-size:.9rem;outline:none}.context-menu{position:fixed;background:#2a2a2a;border:1px solid #444;border-radius:6px;box-shadow:0 4px 12px #00000080;min-width:180px;max-height:calc(100vh - 16px);overflow-y:auto;padding:4px;z-index:10000;animation:contextMenuFadeIn .1s ease}@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.context-menu-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;border-radius:4px;font-size:.85rem;color:#ddd;transition:all .15s;-webkit-user-select:none;user-select:none}.context-menu-item:hover{background:#4a9eff33;color:#4a9eff}.context-menu-item.danger{color:#ff8080}.context-menu-item.danger:hover{background:#dc3c3c33;color:#ff6060}.context-menu-item.highlight{color:#fbbf24;font-weight:600}.context-menu-item.highlight:hover{background:#fbbf2433;color:#fcd34d}.context-menu-item i{width:16px;text-align:center;font-size:.9rem}.context-menu-divider{height:1px;background:#444;margin:4px 0}.context-menu-job-panel{border-top:1px solid #3f3f3f;margin-top:6px;padding:8px 8px 4px}.context-menu-job-title{font-size:.72rem;color:#9aa1ac;margin-bottom:6px}.context-menu-job-empty{font-size:.75rem;color:#777}.context-menu-job-lock{font-size:.75rem;color:#f59e0b;margin-bottom:6px}.context-menu-job-item{display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:wrap}.job-dot{width:7px;height:7px;border-radius:999px;background:#6b7280}.job-dot.running{background:#22c55e}.job-dot.queued{background:#f59e0b}.job-dot.failed,.job-dot.cancelled{background:#ef4444}.job-dot.done{background:#60a5fa}.job-label{font-size:.73rem;color:#bcc2cc}.job-cancel-btn{margin-left:auto;border:1px solid #555;background:#2f2f2f;color:#ddd;border-radius:4px;font-size:.72rem;line-height:1;padding:2px 5px;cursor:pointer}.job-cancel-btn:hover{background:#4b1d1d;border-color:#7f1d1d;color:#fecaca}.job-log-line{width:100%;font-size:.68rem;color:#8f96a3;padding-left:14px}.organize-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:10001;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.organize-modal{background:#1a1a1a;border:1px solid #333;border-radius:8px;width:90%;max-width:900px;height:80vh;display:flex;flex-direction:column;animation:slideUp .3s ease;box-shadow:0 8px 32px #00000080}.organize-modal-overlay.mobile-fullscreen-overlay{background:#0a0a0a;align-items:stretch;justify-content:stretch}.organize-modal.mobile-fullscreen{width:100vw;max-width:none;height:100dvh;min-height:100dvh;border-radius:0;border:none;animation:none}.mobile-simple-layout{display:flex;flex-direction:column;gap:.75rem;flex:1;min-height:0;padding:.9rem;padding-bottom:calc(.9rem + env(safe-area-inset-bottom))}.mobile-feedback-field{flex:1;min-height:0;overflow-y:auto;border:1px solid #2a2a2a;border-radius:8px;background:#121212;color:#d7d7d7;padding:.75rem;white-space:pre-wrap;line-height:1.45}.mobile-answer-field textarea{width:100%;border:1px solid #2f2f2f;border-radius:8px;background:#101010;color:#e0e0e0;padding:.65rem;font-size:1rem;line-height:1.5;resize:none;outline:none}.mobile-send-btn{width:100%;justify-content:center}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.organize-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #333}.organize-modal-header-actions{display:inline-flex;align-items:center;gap:.35rem}.organize-modal-back{font-size:1.2rem}.organize-modal.mobile-fullscreen .organize-modal-header{padding-top:calc(.75rem + env(safe-area-inset-top));padding-right:max(.85rem,env(safe-area-inset-right));padding-left:max(.85rem,env(safe-area-inset-left));padding-bottom:.75rem}.organize-modal.mobile-fullscreen .organize-modal-header h2{font-size:1rem}.organize-modal-header h2{margin:0;font-size:1.25rem;color:#ddd}.organize-modal-close{background:transparent;border:none;color:#888;font-size:1.5rem;cursor:pointer;padding:.5rem;transition:color .2s}.organize-modal-close:hover{color:#ddd}.organize-context-info{display:flex;gap:1rem;padding:1rem 1.5rem;background:#1e1e2d80;border-bottom:1px solid #333}.context-badge{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#aaa;padding:.4rem .8rem;background:#32324680;border-radius:4px}.context-toggle{border:1px solid #3b4a66;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}.context-toggle.is-enabled{background:#2c599c66;border-color:#4a9eff;color:#d7e6ff}.context-toggle.is-disabled{background:#32324640;border-color:#3a3f4d;color:#8f98a9}.context-toggle:disabled{cursor:not-allowed;opacity:.55}.context-badge i{color:#4a9eff}.model-select-badge select{background:transparent;border:none;color:#ddd;font-size:.82rem;min-width:180px}.model-select-badge{margin-left:auto}.current-model-label{color:#9fb4d4;font-size:.8rem;white-space:nowrap}.model-select-badge select:focus{outline:none}.model-select-badge select:disabled{opacity:.6}.organize-messages{flex:1;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.organize-messages::-webkit-scrollbar{width:8px}.organize-messages::-webkit-scrollbar-track{background:#1a1a1a}.organize-messages::-webkit-scrollbar-thumb{background:#333;border-radius:4px}.organize-messages::-webkit-scrollbar-thumb:hover{background:#444}.organize-message{display:flex;gap:1rem;animation:messageSlide .3s ease}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1.2rem}.organize-message.user .message-avatar{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.organize-message.assistant .message-avatar{background:linear-gradient(135deg,#4a9eff,#2563eb);color:#fff}.ask-telemetry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .7rem;font-size:.77rem;color:#d9e2f2}.ask-telemetry-grid strong{color:#b6c5dd;font-weight:600}.focus-question-panel{margin-top:.72rem;padding:.62rem .7rem;border-radius:8px;border:1px solid rgba(98,144,255,.55);background:#3f63b033}.focus-question-title{font-size:.74rem;text-transform:uppercase;letter-spacing:.04em;color:#c3d4ff;margin-bottom:.34rem}.focus-question-text{color:#eef4ff;font-size:.91rem;line-height:1.45;font-weight:600}.suggestion-rating{margin-top:.75rem;display:inline-flex;align-items:center;gap:.45rem;flex-wrap:wrap}.suggestion-rating-label{font-size:.78rem;color:#aeb9cc}.suggestion-rate-btn{border:1px solid #41506b;border-radius:6px;min-width:2rem;height:1.9rem;padding:0 .55rem;background:#3b568440;color:#dbe6ff;cursor:pointer;font-weight:600}.suggestion-rate-btn:hover:not(:disabled){background:#4a85ff59;border-color:#5b8cff}.suggestion-rate-btn:disabled{opacity:.6;cursor:not-allowed}.proposal-meta-line{display:flex;gap:.45rem;margin-bottom:.55rem;opacity:.82}.meta-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.12rem .4rem;border-radius:999px;font-size:.72rem;color:#9fb4d4;background:#465a7833;border:1px solid rgba(100,120,150,.25)}.meta-pill i{font-size:.66rem}.message-loading{display:flex;gap:.5rem}.message-loading span{width:8px;height:8px;border-radius:50%;background:#4a9eff;animation:bounce 1.4s infinite ease-in-out both}.message-loading span:nth-child(1){animation-delay:-.32s}.message-loading span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.organize-input-area{border-top:1px solid #333;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.organize-input-area textarea{width:100%;padding:1rem;background:#222;border:1px solid #333;border-radius:6px;color:#ddd;font-size:.95rem;font-family:inherit;resize:none;transition:border-color .2s}.organize-input-area textarea:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 3px #4a9eff1a}.organize-input-area textarea:disabled{opacity:.5;cursor:not-allowed}.organize-input-actions{display:flex;gap:1rem;justify-content:flex-end}.organize-btn-primary,.organize-btn-secondary{padding:.75rem 1.5rem;border-radius:6px;border:none;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem;font-size:.95rem}.organize-btn-primary{background:linear-gradient(135deg,#4a9eff,#2563eb);color:#fff}.organize-btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #4a9eff66}.organize-btn-primary:disabled{opacity:.5;cursor:not-allowed}.organize-btn-secondary{background:#28283cb3;color:#ddd;border:1px solid #444}.organize-btn-secondary:hover:not(:disabled){background:#323246e6;border-color:#555}.organize-btn-secondary:disabled{opacity:.5;cursor:not-allowed}.prompt-log-panel{margin-top:.8rem;border:1px solid #333;border-radius:6px;background:#14141ee6;max-height:260px;overflow:hidden}.prompt-log-header{padding:.55rem .7rem;border-bottom:1px solid #333;color:#aab4c5;font-size:.82rem;text-transform:uppercase;font-weight:600}.prompt-log-list{max-height:220px;overflow-y:auto;padding:.6rem;display:flex;flex-direction:column;gap:.6rem}.prompt-log-entry{margin:0;white-space:pre-wrap;word-break:break-word;font-size:.76rem;line-height:1.35;color:#c8d1df;background:#28283c73;border:1px solid #303748;border-radius:4px;padding:.55rem}.prompt-log-empty{padding:.75rem;color:#8f98a9;font-size:.84rem}.create-node-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1200}.create-node-modal{width:min(560px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:#1a1a1a;border:1px solid #333;border-radius:10px;box-shadow:0 14px 40px #00000073}.create-node-modal-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1rem;border-bottom:1px solid #333}.create-node-modal-header h3{margin:0;font-size:1rem;color:#e6e6e6}.create-node-close{background:transparent;border:none;color:#9aa0a6;cursor:pointer;font-size:14px}.create-node-form{display:flex;flex-direction:column;gap:.7rem;padding:1rem}.create-node-label{font-size:.82rem;color:#9aa0a6;text-transform:uppercase;font-weight:600}.create-node-groups{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.type-group{border:1px solid #333;border-radius:6px;padding:.6rem;background:#141414}.type-group-title{font-size:.78rem;color:#b6bcc4;margin-bottom:.4rem;text-transform:uppercase}.type-option{display:flex;align-items:center;gap:.45rem;padding:.25rem 0;color:#d4d4d4;font-size:.9rem}.type-empty{color:#8b949e;font-size:.82rem;font-style:italic;padding:.2rem 0}.create-node-input{padding:.55rem .65rem;background:#121212;border:1px solid #333;border-radius:6px;color:#e6e6e6;font-size:.95rem}.create-node-input:focus{outline:none;border-color:#4a9eff}.create-node-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:.4rem}.create-node-btn{border:1px solid #444;border-radius:6px;padding:.5rem .8rem;cursor:pointer}.create-node-btn.secondary{background:transparent;color:#b8b8b8}.create-node-btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}.create-node-btn.primary:disabled{opacity:.55;cursor:not-allowed}.node-export-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:2000}.node-export-modal{width:min(640px,92vw);background:#1a1a1a;border:1px solid #333;border-radius:8px;color:#e5e7eb;box-shadow:0 16px 40px #00000073}.node-export-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1rem;border-bottom:1px solid #2f2f2f}.node-export-header h3{margin:0;font-size:1rem;font-weight:600}.node-export-header button{background:transparent;border:none;color:#999;cursor:pointer}.node-export-body{padding:1rem;display:grid;gap:.9rem}.node-export-option{display:flex;align-items:center;gap:.5rem}.node-export-group{display:grid;gap:.5rem;padding:.7rem;border:1px solid #333;border-radius:6px}.group-title{font-size:.85rem;color:#9ca3af}.node-export-group input[type=text],.node-export-group input[type=number]{background:#111;border:1px solid #333;color:#e5e7eb;border-radius:4px;padding:.45rem .55rem}.node-export-footer{display:flex;justify-content:flex-end;gap:.6rem;padding:.85rem 1rem;border-top:1px solid #2f2f2f}.node-export-footer button{border:1px solid #333;border-radius:4px;padding:.45rem .7rem;cursor:pointer;color:#e5e7eb}.node-export-footer .secondary{background:#202020}.node-export-footer .primary{background:#2563eb;border-color:#2563eb}.node-export-footer button:disabled{opacity:.6;cursor:not-allowed}.level-settings-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000db;display:flex;align-items:center;justify-content:center;z-index:10002;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.level-settings-modal{width:min(1040px,94vw);height:min(84vh,820px);background:linear-gradient(180deg,#1b1b1b,#151515);border:1px solid #343434;border-radius:14px;display:flex;flex-direction:column;box-shadow:0 26px 80px #00000080}.level-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.15rem 1.25rem 1rem;border-bottom:1px solid #2f2f2f}.level-settings-header h3{margin:0;font-size:1.1rem;color:#f1f1f1}.level-settings-subtitle{margin:.35rem 0 0;color:#a5a5a5;font-size:.84rem}.level-settings-close{background:transparent;border:1px solid #373737;color:#a2a2a2;font-size:1.2rem;cursor:pointer;width:34px;height:34px;border-radius:8px}.level-settings-close:hover{color:#ececec;border-color:#4c4c4c}.level-settings-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding:.85rem 1.25rem;border-bottom:1px solid #2b2b2b}.level-settings-field{display:flex;flex-direction:column;gap:.35rem}.level-settings-field span{color:#b3b3b3;font-size:.78rem}.level-settings-select{min-width:230px;background:#101010;border:1px solid #383838;border-radius:8px;color:#e0e0e0;padding:.45rem .6rem;font-size:.86rem}.level-settings-select:focus{outline:none;border-color:#4a9eff}.level-settings-meta{display:flex;gap:.5rem}.meta-chip{font-size:.76rem;color:#c2d1f4;border:1px solid rgba(110,140,220,.35);background:#506ec81f;border-radius:999px;padding:.24rem .64rem}.level-settings-tools{display:flex;gap:.5rem;padding:.65rem 1.25rem 0}.level-settings-textarea{flex:1;margin:.8rem 1.25rem .65rem;background:#0f0f0f;border:1px solid #373737;border-radius:10px;color:#ddd;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.85rem;line-height:1.45;padding:.92rem;resize:none}.level-settings-textarea:focus{outline:none;border-color:#4a9eff}.level-settings-error{margin:0 1.25rem .72rem;padding:.55rem .68rem;border:1px solid rgba(233,85,85,.65);color:#ffc9c9;background:#b42d2d33;border-radius:8px;font-size:.82rem}.level-settings-actions{padding:.85rem 1.25rem 1rem;border-top:1px solid #303030;display:flex;justify-content:flex-end;gap:.5rem}.level-settings-btn{border:1px solid #3b3b3b;border-radius:8px;padding:.45rem .88rem;cursor:pointer;font-size:.86rem}.level-settings-btn.secondary{background:#1a1a1a;color:#d4d4d4}.level-settings-btn.ghost{background:transparent;color:#c7c7c7}.level-settings-btn.primary{background:#2f62cc;border-color:#4e85ff;color:#fff}.level-settings-btn:hover:not(:disabled){border-color:#515151}.level-settings-btn:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 900px){.level-settings-toolbar{align-items:stretch;flex-direction:column}.level-settings-meta{flex-wrap:wrap}.level-settings-select{min-width:0;width:100%}}.restructure-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d6;display:flex;align-items:center;justify-content:center;z-index:10003}.restructure-modal{width:min(760px,92vw);background:#171717;border:1px solid #333;border-radius:12px;box-shadow:0 18px 50px #0000007a}.restructure-header{padding:1rem 1.1rem;border-bottom:1px solid #2c2c2c;display:flex;justify-content:space-between;align-items:center}.restructure-header h3{margin:0;color:#f0f0f0;font-size:1.02rem}.restructure-close{border:1px solid #3c3c3c;border-radius:8px;width:32px;height:32px;color:#bdbdbd;background:transparent;cursor:pointer}.restructure-loading{padding:1.1rem;color:#d0d0d0}.restructure-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;padding:.9rem 1.1rem .4rem;color:#d7d7d7;font-size:.86rem}.restructure-fields{display:grid;grid-template-columns:1fr 180px;gap:.7rem;padding:.7rem 1.1rem}.restructure-fields label{display:flex;flex-direction:column;gap:.36rem}.restructure-fields label span{color:#b2b2b2;font-size:.78rem}.restructure-fields input,.restructure-fields select{border:1px solid #3a3a3a;border-radius:8px;background:#101010;color:#e5e5e5;padding:.45rem .55rem}.restructure-rationale{margin:0;padding:.25rem 1.5rem .8rem;color:#bfcbe8;font-size:.82rem}.restructure-error{margin:0 1.1rem .7rem;padding:.55rem .66rem;border:1px solid rgba(233,85,85,.65);border-radius:8px;color:#ffd2d2;background:#b42d2d33}.restructure-actions{display:flex;justify-content:flex-end;gap:.5rem;border-top:1px solid #2d2d2d;padding:.85rem 1.1rem}.restructure-btn{border:1px solid #3b3b3b;border-radius:8px;padding:.45rem .86rem;cursor:pointer}.restructure-btn.secondary{background:transparent;color:#d0d0d0}.restructure-btn.primary{background:#2f62cc;border-color:#4e85ff;color:#fff}.analysis-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d6;display:flex;align-items:center;justify-content:center;z-index:10003}.analysis-modal{width:min(900px,94vw);max-height:86vh;overflow:hidden;display:flex;flex-direction:column;background:#171717;border:1px solid #333;border-radius:12px}.analysis-header{padding:1rem 1.1rem;border-bottom:1px solid #2c2c2c;display:flex;justify-content:space-between;align-items:center}.analysis-header h3{margin:0;color:#f0f0f0;font-size:1.02rem}.analysis-close{border:1px solid #3c3c3c;border-radius:8px;width:32px;height:32px;color:#bdbdbd;background:transparent;cursor:pointer}.analysis-body{overflow:auto;padding:1rem 1.1rem}.analysis-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.analysis-card{background:#101010;border:1px solid #303030;border-radius:10px;padding:.72rem}.analysis-card-title{color:#a8a8a8;font-size:.78rem;margin-bottom:.24rem}.analysis-card-value{color:#efefef;font-size:.95rem;font-weight:600}.analysis-card-status{color:#c9c9c9;font-size:.8rem;margin-top:.22rem}.analysis-sections,.analysis-recos{margin-top:1rem}.analysis-sections h4,.analysis-recos h4{color:#e8e8e8;margin:0 0 .5rem}.analysis-section-list{display:grid;gap:.4rem}.analysis-section-item{display:flex;justify-content:space-between;border:1px solid #303030;border-radius:8px;padding:.5rem .6rem;color:#d8d8d8;font-size:.82rem}.analysis-section-item.quality-good{border-color:#3caa5a99}.analysis-section-item.quality-weak{border-color:#d69e2e99}.analysis-section-item.quality-missing{border-color:#c84e4eb3}.analysis-recos ul{margin:0;padding-left:1.2rem;color:#d3d3d3;font-size:.86rem}.analysis-recos p{color:#c7c7c7;font-size:.86rem}.analysis-loading,.analysis-error{padding:1rem 1.1rem;color:#d5d5d5}.analysis-error{color:#fcc}.analysis-hint{margin:.7rem 1.1rem 0;padding:.55rem .68rem;border-radius:8px;border:1px solid rgba(80,130,220,.45);color:#cfddff;background:#3c5faa29;font-size:.82rem}.analysis-actions{border-top:1px solid #2d2d2d;padding:.8rem 1.1rem;display:flex;justify-content:flex-end}.analysis-btn{border:1px solid #3a3a3a;border-radius:8px;padding:.44rem .82rem;background:transparent;color:#ddd;cursor:pointer}.analysis-btn.primary{border-color:#4e85ff;background:#2f62cc;color:#fff}.analysis-btn:disabled{opacity:.6;cursor:not-allowed}.text-editor{display:flex;flex-direction:column;height:100%;overflow:hidden}.text-editor.empty{display:flex;align-items:center;justify-content:center;color:#666;font-size:1.1rem}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #333;gap:1rem}.breadcrumb{flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;font-size:.9rem}.breadcrumb-item a{color:#4a9eff;cursor:pointer;text-decoration:none}.breadcrumb-item a:hover{text-decoration:underline}.breadcrumb-item .separator{color:#666;margin:0 .2rem}.editor-actions{display:flex;gap:.8rem;align-items:center}.editor-lock-banner{margin:8px 12px 0;padding:8px 10px;border:1px solid #7c2d12;background:#b453092e;color:#fcd34d;border-radius:6px;font-size:.82rem}.continuous-toggle{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:#aaa;cursor:pointer}.continuous-toggle input[type=checkbox]{cursor:pointer}.editor-header button{padding:.5rem 1rem;background:#4a9eff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-weight:500}.editor-header button:hover:not(:disabled){background:#3a8eef}.autosave-indicator{font-size:.75rem;color:#4a9eff;opacity:.7}.continuous-content{flex:1;overflow-y:auto;padding:1rem}.continuous-load-hint{margin:10px 0 18px;text-align:center;font-size:.78rem;color:#7a7f89}.content-section{margin-bottom:0}.section-separator{display:flex;align-items:center;margin:1.5rem 0 1rem;position:relative;cursor:pointer}.section-chevron{color:#6b7280;font-size:.72rem;width:.75rem;margin-right:.35rem;line-height:1;-webkit-user-select:none;user-select:none;opacity:.9}.section-separator.first{margin-top:0}.section-separator:before{content:"";flex:1;margin-right:1rem}.section-separator:after{content:"";flex:1;margin-left:1rem}.section-title{font-size:.82rem;font-weight:500;color:#6b7280;white-space:nowrap;padding:0 .5rem;letter-spacing:0}.section-separator:hover .section-title,.section-separator:hover .section-chevron{color:#9ca3af}.section-separator.collapsed{margin-bottom:.35rem}.section-title.text,.section-title.context,.section-title.project{color:#6b7280;font-size:.82rem;font-weight:500}.separator-bible:before,.separator-bible:after{border-top:4px solid #000}.separator-volume:before,.separator-volume:after{border-top:3px solid #222}.separator-module:before,.separator-module:after{border-top:2px dashed #444}.separator-chapter:before,.separator-chapter:after{border-top:1px solid #555}.separator-scene:before,.separator-scene:after{border-top:1px dotted #666}.separator-default:before,.separator-default:after{border-top:1px dotted #777}.section-textarea{width:100%;min-height:60px;height:auto;background:#1a1a1a;color:#e0e0e0;border:none;font-family:Courier New,monospace;font-size:.95rem;line-height:1.6;resize:none;cursor:text;transition:background .2s;overflow:hidden;border-left:none;padding:1rem}.markdown-editor-shell{position:relative;border-left:3px solid transparent;transition:border-color .2s,box-shadow .2s}.markdown-editor-shell.active.text{border-left-color:#2563eb;box-shadow:inset 1px 0 #2563eb59}.markdown-editor-shell.active.context{border-left-color:#059669;box-shadow:inset 1px 0 #05966959}.markdown-editor-shell.active.project{border-left-color:#a855f7;box-shadow:inset 1px 0 #a855f759}.markdown-highlight-layer{position:absolute;top:0;right:0;bottom:0;left:0;padding:1rem;font-family:Courier New,monospace;font-size:.95rem;line-height:1.6;color:#e0e0e0;pointer-events:none;white-space:pre-wrap;overflow:hidden;-moz-tab-size:2;tab-size:2}.markdown-source{position:relative;background:transparent;color:transparent!important;-webkit-text-fill-color:transparent;caret-color:#e0e0e0;text-shadow:none;overflow-y:hidden!important;-moz-tab-size:2;tab-size:2}.markdown-source:hover,.markdown-source.active,.markdown-source:focus{background:transparent!important;box-shadow:none!important}.markdown-source::selection{background:#4a9eff4d}.md-h1{color:#cbd5e1;font-size:inherit;font-weight:inherit;line-height:inherit}.md-h2,.md-h3{color:#94a3b8;font-size:inherit;font-weight:inherit;line-height:inherit}.md-hash{opacity:.45;font-weight:560}.md-heading-text{opacity:1;font-weight:inherit}.markdown-editor-shell .md-h1 .md-heading-text{text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}.markdown-editor-shell.text .md-h1{color:#bfdbfe}.markdown-editor-shell.text .md-h2{color:#93c5fd}.markdown-editor-shell.text .md-h3{color:#60a5fa}.markdown-editor-shell.context .md-h1{color:#86efac}.markdown-editor-shell.context .md-h2{color:#6ee7b7}.markdown-editor-shell.context .md-h3{color:#34d399}.markdown-editor-shell.project .md-h1{color:#e9d5ff}.markdown-editor-shell.project .md-h2{color:#d8b4fe}.markdown-editor-shell.project .md-h3{color:#c084fc}.md-inline-bold,.md-bold-line{color:#fde68a;font-weight:700}.section-textarea:hover{background:#1e1e1e}.section-textarea.active{background:#1e1e1e;box-shadow:inset 0 0 0 1px #ffffff0a}.section-textarea.preview{cursor:pointer;opacity:.9;overflow-y:hidden!important;resize:none;height:auto}.section-textarea.preview:focus{outline:1px solid #2f3b52}.section-textarea:focus{outline:1px solid #333;background:#1e1e1e}.section-textarea.locked,.section-textarea.locked:focus,.section-textarea.locked:hover{cursor:not-allowed;opacity:.75}.text-editor textarea:not(.markdown-source){flex:1;padding:1rem;background:#1a1a1a;color:#e0e0e0;border:none;font-family:Courier New,Monaco,monospace;font-size:.95rem;line-height:1.6;resize:none;overflow-y:auto}.text-editor textarea:not(.markdown-source):focus{outline:none;background:#1e1e1e}.editor-header-bar{background:#1a1a1a;border-bottom:1px solid #333}.editor-header-top{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem;min-height:48px}.breadcrumb{flex:1;display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#888;min-width:0}.breadcrumb-item{display:flex;align-items:center;white-space:nowrap}.breadcrumb-item a{color:#888;cursor:pointer;text-decoration:none;transition:color .2s}.breadcrumb-item a:hover{color:#4a9eff}.separator{color:#555;margin:0 .3rem}.editor-header-controls{display:flex;align-items:center;gap:12px}.control-group{display:flex;align-items:center;gap:6px;padding:4px 8px;background:#28283c80;border-radius:4px;border:1px solid rgba(80,80,120,.3)}.node-actions-group{padding:2px 4px;gap:4px}.node-action-compact{background:transparent;border:1px solid transparent;color:#888;cursor:pointer;padding:4px 8px;border-radius:3px;transition:all .2s;font-size:14px}.hidden-file-input{display:none}.node-action-compact:hover{background:#4a9eff33;color:#4a9eff;border-color:#4a9eff80}.node-action-compact.delete:hover{background:#dc3c3c33;color:#ff8080;border-color:#dc3c3c80}.control-label{font-size:11px;color:#888;text-transform:uppercase;font-weight:600}.icon-selector-compact{display:flex;gap:2px}.icon-btn-compact{background:transparent;border:1px solid transparent;color:#666;padding:4px 6px;border-radius:3px;cursor:pointer;transition:all .2s;font-size:13px}.icon-btn-compact:hover{background:#4a9eff1a;color:#4a9eff;border-color:#4a9eff4d}.icon-btn-compact.active{background:#4a9eff33;color:#4a9eff;border-color:#4a9eff80}.todos-toggle{background:transparent;border:none;color:#888;cursor:pointer;font-size:16px;padding:4px 8px;border-radius:3px;transition:all .2s;position:relative}.todos-toggle:hover{color:#4a9eff;background:#4a9eff1a}.todos-toggle.active{color:#4a9eff;background:#4a9eff26}.continuous-toggle{background:transparent;border:none;color:#888;cursor:pointer;font-size:16px;padding:4px 8px;border-radius:3px;transition:all .2s;position:relative}.continuous-toggle:hover{color:#10b981;background:#10b9811a}.continuous-toggle.active{color:#10b981;background:#10b98126}.continuous-filter-toggle{background:transparent;border:none;color:#888;cursor:pointer;font-size:15px;padding:4px 8px;border-radius:3px;transition:all .2s}.continuous-filter-toggle:hover{color:#4a9eff;background:#4a9eff1a}.todos-badge{position:absolute;top:0;right:2px;background:#ff8040;color:#1a1a1a;font-size:9px;padding:1px 3px;border-radius:8px;font-weight:600;line-height:1}.editor-todos{padding:8px 12px 12px;background:#1e1e2d4d;border-top:1px solid rgba(80,80,120,.2);animation:slideDown .2s ease}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:500px}}.todo-list{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:#1a1a1a;border-radius:4px;max-height:400px;overflow-y:auto}.todo-list-loading,.todo-list-empty{padding:1rem;text-align:center;color:#666;font-size:.85rem}.todo-add-form{display:flex;gap:.5rem;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:1px solid #333}.todo-input{flex:1;padding:.4rem .6rem;background:#222;border:1px solid #333;border-radius:4px;color:#ddd;font-size:.85rem}.todo-input:focus{outline:none;border-color:#4a9eff;box-shadow:0 0 0 2px #4a9eff1a}.todo-add-btn{padding:.4rem .75rem;background:#4a9eff;border:none;border-radius:4px;color:#fff;cursor:pointer;transition:background .2s;font-size:.85rem}.todo-add-btn:hover{background:#3a8eef}.todo-section-label{font-size:.75rem;color:#888;text-transform:uppercase;font-weight:600;letter-spacing:.5px;margin-bottom:.5rem;margin-top:.5rem}.todo-own-section{display:flex;flex-direction:column;gap:.3rem}.todo-separator{height:1px;background:linear-gradient(to right,transparent,#444,transparent);margin:.75rem 0}.todo-children-section{display:flex;flex-direction:column;gap:.3rem}.todo-child-section{display:flex;flex-direction:column;gap:.3rem;border-left:2px solid #333;padding-left:.5rem}.todo-item{display:flex;align-items:center;gap:.5rem;padding:.4rem;background:#28283c4d;border-radius:3px;transition:background .2s}.todo-item:hover{background:#28283c80}.todo-checkbox{width:16px;height:16px;cursor:pointer;flex-shrink:0}.todo-text{flex:1;font-size:.85rem;color:#ddd;cursor:pointer}.todo-text:hover{color:#4a9eff;text-decoration:underline}.todo-node-label{font-size:.75rem;color:#888;font-style:italic;cursor:pointer;transition:color .2s}.todo-node-label:hover{color:#4a9eff}.todo-child-todos{display:flex;flex-direction:column;gap:.3rem}.todo-list::-webkit-scrollbar{width:6px}.todo-list::-webkit-scrollbar-track{background:#1a1a1a}.todo-list::-webkit-scrollbar-thumb{background:#333;border-radius:3px}.todo-list::-webkit-scrollbar-thumb:hover{background:#444}.attribute-panel{padding:1rem;overflow-y:auto;height:100%}.attribute-panel.empty{display:flex;align-items:center;justify-content:center;color:#666}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.panel-header h3{color:#888;font-size:.9rem;text-transform:uppercase;margin:0}.save-attrs{padding:.4rem .8rem;background:#2a7a3a;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:.8rem;font-weight:500}.autosave-indicator{font-size:.75rem;color:#2a7a3a}.attr-field-readonly{margin-bottom:.8rem;display:flex;justify-content:space-between;align-items:center}.attr-field-readonly label{font-size:.85rem;color:#888}.attr-value{font-size:.9rem;color:#aaa;font-family:monospace}.attr-field textarea{padding:.5rem;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#e0e0e0;font-size:.9rem;font-family:inherit;resize:vertical}.attr-field-icons{margin-bottom:.8rem}.attr-field-icons label{font-size:.85rem;color:#888;display:block;margin-bottom:.4rem}.icon-selector{display:flex;gap:.5rem}.icon-btn{padding:.6rem .9rem;background:#2a2a2a;border:2px solid #444;border-radius:6px;color:#aaa;font-size:1.1rem;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;min-width:45px}.icon-btn i{font-size:1.1rem}.icon-btn:hover{background:#3a3a3a;border-color:#555;color:#e0e0e0}.icon-btn.active{background:#4a9eff;border-color:#4a9eff;color:#fff;box-shadow:0 0 8px #4a9eff4d}.attr-field{margin-bottom:.8rem;display:flex;flex-direction:column;gap:.3rem}.attr-field label{font-size:.85rem;color:#888}.attr-field input[type=text],.attr-field input[type=number],.attr-field select{padding:.5rem;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#e0e0e0;font-size:.9rem}.attr-field input[type=text]:disabled,.attr-field input[type=number]:disabled{background:#1a1a1a;color:#666;cursor:not-allowed}.attr-field input[type=checkbox]{width:1.2rem;height:1.2rem;cursor:pointer}.attr-group{margin-top:1.2rem;padding-top:1rem;border-top:1px solid #333}.attr-group-title{font-size:.8rem;color:#666;text-transform:uppercase;margin-bottom:.8rem;font-weight:600}.chat{display:flex;flex-direction:column;height:100%;background:#151515}.chat-warning{padding:.5rem;background:#3a2a00;color:#fc0;font-size:.75rem;text-align:center;border-bottom:1px solid #444}.chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-message{display:flex;gap:.8rem;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.chat-message.user{flex-direction:row-reverse}.message-role{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1.1rem;color:#aaa}.message-content{flex:1;padding:.8rem;border-radius:8px;line-height:1.5;font-size:.9rem;white-space:pre-wrap;word-wrap:break-word}.chat-message.user .message-content{background:#2a4a6a;color:#e0e0e0}.chat-message.assistant .message-content{background:#2a2a2a;color:#e0e0e0}.message-action{margin-top:.5rem;padding-top:.5rem;border-top:1px solid #444;color:#888;font-size:.75rem}.chat-message.loading .message-content{display:flex;align-items:center;min-height:40px}.typing-indicator{display:flex;gap:.3rem}.typing-indicator span{width:8px;height:8px;background:#666;border-radius:50%;animation:bounce 1.4s infinite ease-in-out both}.typing-indicator span:nth-child(1){animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.chat-input{display:flex;gap:.5rem;padding:1rem;border-top:1px solid #333;background:#1a1a1a}.chat-input textarea{flex:1;padding:.6rem;background:#2a2a2a;border:1px solid #444;border-radius:6px;color:#e0e0e0;font-size:.9rem;font-family:inherit;resize:none;min-height:40px;max-height:120px}.chat-input textarea:focus{outline:none;border-color:#4a9eff}.chat-input textarea:disabled{opacity:.5;cursor:not-allowed}.chat-input button{width:50px;background:#4a9eff;border:none;border-radius:6px;color:#fff;font-size:1.2rem;cursor:pointer;transition:background .2s;flex-shrink:0}.chat-input button:hover:not(:disabled){background:#3a8eef}.chat-input button:disabled{opacity:.5;cursor:not-allowed}.chat-messages::-webkit-scrollbar{width:8px}.chat-messages::-webkit-scrollbar-track{background:#0a0a0a}.chat-messages::-webkit-scrollbar-thumb{background:#333;border-radius:4px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#444}.ghost-mobile-screen{height:100vh;display:flex;flex-direction:column;background:#0a0a0a;color:#e0e0e0}.ghost-mobile-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1rem;border-bottom:1px solid #222;background:#121212}.ghost-mobile-header h1{font-size:1rem;font-weight:600;margin:0}.ghost-mobile-refresh{border:1px solid #2d3d5d;background:#1a2538;color:#d4e2ff;border-radius:6px;padding:.35rem .65rem;font-size:.8rem}.ghost-mobile-header-actions{display:flex;align-items:center;gap:.45rem}.ghost-mobile-icon-btn{width:2rem;height:2rem;border:1px solid #2d3d5d;background:#1a2538;color:#d4e2ff;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:.9rem}.ghost-mobile-icon-btn.active{border-color:#0f766e;background:#0d948838;color:#99f6e4}.ghost-mobile-tree{flex:1;overflow-y:auto;padding:.35rem 0}.ghost-mobile-editor{flex:1;min-height:0}.ghost-mobile-tree-node{width:100%}.ghost-mobile-node-row{width:100%;display:flex;align-items:center;gap:.5rem;min-height:2.2rem;padding-right:.7rem;border:none;border-bottom:1px solid #1f1f1f;background:#0d0d0d;color:#d9d9d9;text-align:left}.ghost-mobile-node-row:active{background:#4a9eff29}.ghost-mobile-expand{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;color:#8fa7c7;font-size:.9rem}.ghost-mobile-expand-empty{opacity:.45}.ghost-mobile-node-title{font-size:.9rem;line-height:1.35}.ghost-mobile-node-icon{width:1rem;display:inline-flex;align-items:center;justify-content:center;color:#8fb7ff;font-size:.85rem}.ghost-mobile-node-row.type-book .ghost-mobile-node-icon,.ghost-mobile-node-row.type-chapter .ghost-mobile-node-icon,.ghost-mobile-node-row.type-scene .ghost-mobile-node-icon{color:#b6a6ff}.ghost-mobile-node-row.type-character .ghost-mobile-node-icon,.ghost-mobile-node-row.type-location .ghost-mobile-node-icon,.ghost-mobile-node-row.type-object .ghost-mobile-node-icon{color:#7fd6b0}.ghost-mobile-node-row.type-text .ghost-mobile-node-icon,.ghost-mobile-node-row.type-note .ghost-mobile-node-icon{color:#ffd27a}.ghost-mobile-node-row.type-world .ghost-mobile-node-icon,.ghost-mobile-node-row.type-root .ghost-mobile-node-icon,.ghost-mobile-node-row.type-context .ghost-mobile-node-icon{color:#8fb7ff}.ghost-mobile-info{padding:1rem;color:#a3a3a3;font-size:.9rem}.ghost-mobile-error{color:#ff8f8f}.backlog-screen{min-height:100vh;background:#0b0b0b;color:#e5e5e5;padding:1rem;display:flex;flex-direction:column;gap:.9rem}.backlog-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;border-bottom:1px solid #1f1f1f;padding-bottom:.75rem}.backlog-header h1{margin:0;font-size:1.2rem;display:flex;align-items:center;gap:.5rem}.backlog-header p{margin:.35rem 0 0;color:#a6a6a6;font-size:.9rem}.backlog-sort-btn,.backlog-add-btn{border:1px solid #2f4670;background:#16253d;color:#d8e6ff;border-radius:8px;padding:.55rem .85rem;display:inline-flex;align-items:center;gap:.5rem}.backlog-sort-btn:disabled,.backlog-add-btn:disabled{opacity:.5}.backlog-input-panel{display:flex;flex-direction:column;gap:.55rem;border:1px solid #202020;border-radius:10px;padding:.75rem;background:#101010}.backlog-input-panel textarea{width:100%;border:1px solid #2a2a2a;border-radius:8px;background:#0d0d0d;color:#e5e5e5;padding:.65rem;resize:vertical;outline:none}.backlog-summary{display:flex;flex-wrap:wrap;gap:.8rem;font-size:.88rem;padding:.65rem .75rem;border:1px solid #252525;border-radius:8px;background:#101215}.backlog-clusters{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.55rem}.cluster-card{border:1px solid #2a2a2a;border-radius:8px;background:#101010;padding:.6rem}.cluster-card .cluster-title{display:flex;align-items:center;gap:.45rem;font-size:.86rem}.cluster-card .cluster-count{margin-top:.25rem;font-size:.8rem;color:#9aa3b3}.backlog-tabs{display:flex;gap:.5rem;flex-wrap:wrap}.tab-btn{border:1px solid #2b2b2b;background:#141414;color:#d7d7d7;border-radius:999px;padding:.45rem .8rem;display:inline-flex;align-items:center;gap:.45rem}.tab-btn.active{border-color:#4b72b8;background:#1a2a45;color:#dbe8ff}.tab-btn .tab-count{background:#ffffff1a;border-radius:999px;padding:.05rem .45rem;font-size:.78rem}.status-new{border-left:3px solid #5ca3ff}.status-unclear{border-left:3px solid #f5c870}.status-conflicting{border-left:3px solid #ff8181}.backlog-error{color:#ff9b9b;font-size:.9rem}.backlog-info{color:#a5a5a5;font-size:.9rem;padding:.25rem}.backlog-list{display:flex;flex-direction:column;gap:.6rem}.backlog-item{border:1px solid #282828;border-radius:10px;background:#121212;padding:.7rem}.item-content{white-space:pre-wrap;line-height:1.45}.item-reason{margin-top:.45rem;color:#b8c0cf;font-size:.86rem}.item-target{margin-top:.35rem;font-size:.82rem;color:#9ab6e3}.item-actions{margin-top:.55rem;display:flex;flex-wrap:wrap;gap:.4rem}.item-actions button{border:1px solid #2f2f2f;background:#181818;color:#d8d8d8;border-radius:6px;padding:.3rem .6rem;font-size:.78rem}.item-actions button.danger{border-color:#5f2a2a;color:#ffc2c2;background:#2b1414}@media (max-width: 900px){.backlog-header{flex-direction:column;align-items:stretch}.backlog-sort-btn{justify-content:center}}.app{display:grid;grid-template-columns:250px 6px 1fr 6px 350px;height:100vh;background:#0a0a0a}.resize-handle{background:#1a1a1a;cursor:col-resize;position:relative;display:flex;align-items:center;justify-content:center;border-left:1px solid #000;border-right:1px solid #000}.resize-handle:hover{background:#2a2a2a}.resize-indicator{width:3px;height:60px;background:#444;border-radius:2px;transition:background .2s}.resize-handle:hover .resize-indicator{background:#666}.left-panel,.center-panel,.right-panel{background:#1a1a1a;overflow:hidden;display:flex;flex-direction:column}.right-panel{overflow:hidden}.attributes-section{flex:1;overflow-y:auto;overflow-x:hidden}.chat-resize-handle{height:6px;background:#1a1a1a;cursor:row-resize;display:flex;align-items:center;justify-content:center;border-top:1px solid #000;border-bottom:1px solid #000}.chat-resize-handle:hover{background:#2a2a2a}.resize-indicator-horizontal{height:3px;width:60px;background:#444;border-radius:2px;transition:background .2s}.chat-resize-handle:hover .resize-indicator-horizontal{background:#666}.chat-section{overflow:hidden;background:#151515}.center-panel{border-left:1px solid #2a2a2a;border-right:1px solid #2a2a2a}.left-panel::-webkit-scrollbar,.right-panel::-webkit-scrollbar,.nav-main::-webkit-scrollbar,.attributes-section::-webkit-scrollbar{width:10px;height:10px}.left-panel::-webkit-scrollbar-track,.right-panel::-webkit-scrollbar-track,.nav-main::-webkit-scrollbar-track,.attributes-section::-webkit-scrollbar-track{background:#0a0a0a}.left-panel::-webkit-scrollbar-thumb,.right-panel::-webkit-scrollbar-thumb,.nav-main::-webkit-scrollbar-thumb,.attributes-section::-webkit-scrollbar-thumb{background:#333;border-radius:5px}.left-panel::-webkit-scrollbar-thumb:hover,.right-panel::-webkit-scrollbar-thumb:hover,.nav-main::-webkit-scrollbar-thumb:hover,.attributes-section::-webkit-scrollbar-thumb:hover{background:#555}.center-panel::-webkit-scrollbar{display:none}.center-panel{-ms-overflow-style:none;scrollbar-width:none}*{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;background:#0a0a0a;color:#e0e0e0;overflow:hidden}#root{height:100vh;display:flex;flex-direction:column;overflow:hidden}
