.custom-title-bar{position:fixed;top:0;left:0;right:0;height:40px;background:linear-gradient(to bottom,#2d3748,#1a202c);border-bottom:1px solid #4a5568;z-index:10000;display:flex;align-items:center}.title-bar-drag-region{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;-webkit-app-region:drag;-webkit-user-select:none;user-select:none}.title-bar-left{display:flex;align-items:center;padding-left:16px}.app-name{font-size:14px;font-weight:600;color:#fff;letter-spacing:.5px}.title-bar-right{display:flex;align-items:center;-webkit-app-region:no-drag}.title-bar-button{width:46px;height:40px;border:none;background:transparent;color:#e2e8f0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease;padding:0}.title-bar-button:hover{background-color:#ffffff1a}.title-bar-button.close:hover{background-color:#e53e3e;color:#fff}.title-bar-button:active{background-color:#ffffff26}.title-bar-button.close:active{background-color:#c53030}.title-bar-button svg{pointer-events:none}@media (platform: macos){.title-bar-left{padding-left:80px}}.home-page{padding:1.5rem;max-width:1400px;margin:0 auto}.home-title{font-size:2rem;font-weight:700;color:#1a1a1a;margin:0 0 .5rem}.home-subtitle{font-size:1rem;color:#6b7280;margin:0}.home-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:1rem}.home-content{display:flex;flex-direction:column;gap:2rem}.home-section{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.section-title{font-size:1.25rem;font-weight:600;color:#1a1a1a;margin:0 0 1rem}.para-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.para-stat-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:linear-gradient(135deg,#f9fafb,#fff);border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s}.para-stat-card:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea26;transform:translateY(-2px)}.para-stat-icon{font-size:2rem;flex-shrink:0}.para-stat-content{flex:1;min-width:0}.para-stat-label{font-size:.875rem;font-weight:600;color:#374151;margin-bottom:.25rem}.para-stat-count{font-size:1.5rem;font-weight:700;color:#667eea}.recent-entries-list{display:flex;flex-direction:column;gap:.75rem}.recent-entry-card{padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;transition:all .2s}.recent-entry-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a;transform:translate(4px)}.recent-entry-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.5rem}.recent-entry-title{font-size:1rem;font-weight:600;color:#1a1a1a;margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-entry-date{font-size:.75rem;color:#9ca3af;flex-shrink:0}.recent-entry-description{font-size:.875rem;color:#6b7280;margin:0 0 .5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.recent-entry-tags{display:flex;flex-wrap:wrap;gap:.375rem}.entry-tag{display:inline-flex;align-items:center;padding:.25rem .5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:4px;font-size:.75rem;font-weight:500}.entry-tag-more{display:inline-flex;align-items:center;padding:.25rem .5rem;background:#e5e7eb;color:#6b7280;border-radius:4px;font-size:.75rem;font-weight:500}.quick-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.quick-action-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s}.quick-action-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #667eea4d}.quick-action-icon{font-size:2rem}.quick-action-label{font-size:.875rem;font-weight:600;text-align:center}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center}.empty-state p{font-size:1rem;color:#6b7280;margin:0}@media (max-width: 768px){.home-page{padding:1rem}.home-title{font-size:1.5rem}.para-stats-grid{grid-template-columns:1fr}.recent-entry-header{flex-direction:column;align-items:flex-start}}.markdown-editor{display:flex;flex-direction:column;height:100%;border:1px solid #e5e7eb;border-radius:4px;overflow:hidden;background:#fff}.markdown-editor-header{background:linear-gradient(135deg,#f9fafb,#fff);border-bottom:1px solid #e5e7eb;padding:.375rem .5rem}.markdown-editor-tabs{display:flex;gap:.5rem}.markdown-tab{padding:.375rem .75rem;border:none;background:transparent;color:#6b7280;font-size:.75rem;font-weight:600;cursor:pointer;border-radius:4px;transition:all .2s}.markdown-tab:hover{background:#667eea1a;color:#667eea}.markdown-tab.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.markdown-editor-content{flex:1;overflow:hidden}.markdown-editor-wrapper{position:relative;width:100%;height:100%}.markdown-textarea{width:100%;height:100%;padding:.75rem;border:none;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6;resize:none;outline:none}.markdown-preview{width:100%;height:100%;padding:.75rem;overflow-y:auto;font-size:.875rem;line-height:1.6}.markdown-preview h1{font-size:2rem;font-weight:700;margin-bottom:.5rem;margin-top:0;color:#1a1a1a}.markdown-preview h1:not(:first-child){margin-top:1.5rem}.markdown-preview h2{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;margin-top:1rem;color:#1a1a1a}.markdown-preview h3{font-size:1.25rem;font-weight:600;margin-bottom:.375rem;margin-top:.75rem;color:#374151}.markdown-preview strong{font-weight:700;color:#1a1a1a}.markdown-preview em{font-style:italic;color:#4b5563}.markdown-preview a{color:#667eea;text-decoration:underline}.markdown-preview a:hover{color:#5568d3}.markdown-preview a.backlink{color:#667eea;text-decoration:none;padding:.125rem .375rem;border-radius:4px;background:#667eea1a;font-weight:500;transition:all .2s;cursor:pointer}.markdown-preview a.backlink:hover{background:#667eea33;color:#5568d3}.markdown-preview .backlink-missing{color:#dc2626;padding:.125rem .375rem;border-radius:4px;background:#dc26261a;font-weight:500;cursor:not-allowed}.markdown-preview code{background:#f3f4f6;padding:.2rem .4rem;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#e53e3e}.markdown-preview pre{background:#1a1a1a;color:#f9fafb;padding:1rem;border-radius:8px;overflow-x:auto;margin:1rem 0}.markdown-preview pre code{background:transparent;color:inherit;padding:0;font-size:.875rem}.markdown-preview ul{list-style:disc;padding-left:2rem;margin:.5rem 0}.markdown-preview li{margin-bottom:.25rem;padding-left:0}.markdown-empty{color:#9ca3af;font-style:italic;text-align:center;padding:4rem 2rem}.backlink-autocomplete{position:absolute;z-index:1000;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 25px #0000001a;min-width:300px;max-width:400px;max-height:400px;display:flex;flex-direction:column;overflow:hidden}.autocomplete-header{padding:.75rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:.8125rem;font-weight:600;border-bottom:1px solid #e5e7eb}.autocomplete-list{flex:1;overflow-y:auto;max-height:320px}.autocomplete-item{padding:.75rem 1rem;cursor:pointer;transition:background-color .15s;border-bottom:1px solid #f3f4f6}.autocomplete-item:hover,.autocomplete-item.selected{background-color:#f9fafb}.autocomplete-item.selected{background:linear-gradient(90deg,#667eea1a,#764ba20d);border-left:3px solid #667eea}.autocomplete-item-name{font-size:.875rem;font-weight:600;color:#1a1a1a;margin-bottom:.25rem}.autocomplete-item-description{font-size:.75rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.autocomplete-empty{padding:2rem 1rem;text-align:center;color:#9ca3af;font-size:.875rem}.autocomplete-footer{padding:.5rem 1rem;background:#f9fafb;border-top:1px solid #e5e7eb;font-size:.6875rem;color:#6b7280;text-align:center}.file-upload{width:100%}.file-upload-dropzone{border:1px dashed #d1d5db;border-radius:6px;padding:.5rem .75rem;text-align:center;transition:all .3s;background:#f9fafb;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.75rem}.file-upload-dropzone:hover:not(.disabled){border-color:#667eea;background:#f3f4f6}.file-upload-dropzone.active{border-color:#667eea;background:#667eea0d;transform:scale(1.02)}.file-upload-dropzone.disabled{opacity:.5;cursor:not-allowed}.file-upload-input{display:none}.file-upload-content{display:flex;align-items:center;gap:.5rem;flex:1}.file-upload-icon{font-size:1.25rem}.file-upload-text{font-size:.8125rem;color:#374151;margin:0}.file-upload-text strong{color:#667eea;font-weight:600}.file-upload-hint{font-size:.75rem;color:#9ca3af;margin:0}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.pdf-viewer-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.pdf-viewer-modal{background:#fff;border-radius:12px;width:90vw;max-width:1200px;height:90vh;display:flex;flex-direction:column;box-shadow:0 25px 50px -12px #00000080}.pdf-viewer-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:2px solid #e5e7eb;background:linear-gradient(135deg,#fff,#f9fafb);border-radius:12px 12px 0 0}.pdf-viewer-title{display:flex;align-items:center;gap:.75rem;font-size:1.125rem;font-weight:600;color:#1a1a1a}.pdf-icon{font-size:1.5rem}.pdf-viewer-close{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:#ef44441a;color:#ef4444;border-radius:8px;cursor:pointer;transition:all .2s;font-size:1.25rem;font-weight:700}.pdf-viewer-close:hover{background:#ef444433;transform:scale(1.1)}.pdf-viewer-controls{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #e5e7eb;background:#f9fafb;gap:.75rem;flex-wrap:nowrap;min-height:48px}.pdf-viewer-nav{display:flex;align-items:center;gap:.5rem}.pdf-page-info{font-size:.75rem;font-weight:600;color:#374151;min-width:90px;text-align:center;white-space:nowrap}.pdf-viewer-zoom{display:flex;align-items:center;gap:.5rem}.pdf-zoom-level{font-size:.75rem;font-weight:600;color:#374151;min-width:42px;text-align:center}.pdf-viewer-controls button{padding:.25rem .5rem!important;font-size:.75rem!important;min-height:28px!important;height:28px!important}.pdf-viewer-content{flex:1;overflow:auto;padding:2rem;background:#e5e7eb;display:flex;align-items:flex-start;justify-content:center}.pdf-viewer-content .react-pdf__Document{display:inline-block;min-width:min-content}.pdf-viewer-content .react-pdf__Page{position:relative;box-shadow:0 4px 20px #00000026;margin:0 auto;background:#fff}.pdf-viewer-content .react-pdf__Page__canvas{display:block}.pdf-viewer-content .react-pdf__Page__textContent{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;overflow:hidden!important;opacity:.2;line-height:1!important;margin:0!important;user-select:text!important;-webkit-user-select:text!important;-moz-user-select:text!important;pointer-events:none!important}.pdf-viewer-content .react-pdf__Page__textContent span{color:transparent!important;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%;pointer-events:auto!important}.pdf-viewer-content .react-pdf__Page__textContent ::selection{background:#007bff4d}.pdf-page-container{position:relative;display:inline-block}.pdf-highlight-overlay{border-radius:2px;transition:opacity .2s;position:relative;z-index:100}.pdf-highlight-overlay:hover{opacity:.5!important}.pdf-highlight-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;box-shadow:0 4px 6px #0000001a;transition:all .2s;white-space:nowrap;opacity:.85;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.pdf-highlight-button:hover{transform:translateY(-2px);box-shadow:0 6px 8px #00000026;opacity:1}.pdf-highlight-button:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a;opacity:.95}.pdf-viewer-content .react-pdf__Page__annotations{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important}.pdf-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:4rem}.pdf-loading p{font-size:1rem;color:#6b7280}.pdf-viewer-embedded{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:12px;overflow:hidden}.pdf-viewer-embedded .pdf-viewer-controls{border-radius:0}.pdf-viewer-embedded .pdf-viewer-content{flex:1;overflow:auto;padding:.5rem;background:#e5e7eb;display:flex;align-items:flex-start;justify-content:flex-start}@media (max-width: 768px){.pdf-viewer-modal{width:95vw;height:95vh}.pdf-viewer-controls{flex-direction:column;align-items:stretch}.pdf-viewer-nav,.pdf-viewer-zoom{justify-content:center}.pdf-viewer-content{padding:1rem}.entry-detail-content.split-view{flex-direction:column}}.pdf-highlight-overlay.clickable{cursor:pointer;transition:opacity .2s}.pdf-highlight-overlay.clickable:hover{opacity:.5!important}.pdf-highlight-chat-icon{position:absolute;top:-28px;right:-28px;width:32px;height:32px;background:#fff;border:2px solid #667eea;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 2px 12px #0003;opacity:.7;transition:all .2s;pointer-events:auto!important;cursor:pointer;z-index:1000}.pdf-highlight-overlay.clickable:hover .pdf-highlight-chat-icon{opacity:1;transform:scale(1.1);box-shadow:0 4px 16px #667eea66}.image-preview-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .2s ease-out}.image-preview-modal{display:flex;flex-direction:column;width:90vw;height:90vh;max-width:1400px;background:#1a1a1a;border-radius:12px;overflow:hidden;box-shadow:0 20px 60px #00000080}.image-preview-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:#2a2a2a;border-bottom:1px solid #3a3a3a}.image-preview-title{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}.image-icon{font-size:1.5rem;flex-shrink:0}.image-title-text{display:flex;flex-direction:column;gap:.25rem;min-width:0}.image-name{font-size:1rem;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-metadata{font-size:.75rem;color:#9ca3af}.image-preview-close{padding:.5rem;background:transparent;border:none;color:#9ca3af;font-size:1.5rem;cursor:pointer;border-radius:6px;transition:all .2s;flex-shrink:0}.image-preview-close:hover{background:#3a3a3a;color:#fff}.image-preview-controls{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:#2a2a2a;border-bottom:1px solid #3a3a3a;gap:1rem}.image-preview-zoom{display:flex;align-items:center;gap:.5rem}.image-zoom-level{min-width:50px;text-align:center;font-size:.875rem;font-weight:600;color:#e5e7eb}.image-preview-actions{display:flex;align-items:center;gap:.5rem}.image-preview-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#1a1a1a;position:relative;-webkit-user-select:none;user-select:none}.image-preview-img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;will-change:transform}.image-preview-hint{padding:.75rem 1.5rem;background:#2a2a2a;border-top:1px solid #3a3a3a;text-align:center;font-size:.75rem;color:#9ca3af}@media (max-width: 768px){.image-preview-modal{width:100vw;height:100vh;border-radius:0}.image-preview-controls{flex-direction:column;align-items:stretch}.image-preview-zoom,.image-preview-actions{justify-content:center}.image-preview-hint{display:none}}.attachment-list{display:flex;flex-direction:column;gap:.75rem}.attachment-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;transition:all .2s}.attachment-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.attachment-icon{font-size:1.5rem;flex-shrink:0}.attachment-info{flex:1;min-width:0}.attachment-name{font-size:.9375rem;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-meta{font-size:.8125rem;color:#9ca3af;margin-top:.25rem}.attachment-actions{display:flex;gap:.5rem;flex-shrink:0}.attachment-list-empty{text-align:center;padding:3rem 2rem;color:#9ca3af}.empty-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}.attachment-list-empty p{font-size:.9375rem}.image-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#000000d9;display:flex;align-items:center;justify-content:center;padding:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.image-preview-container{display:flex;flex-direction:column;max-width:90vw;max-height:90vh;background:#1a1a1a;border-radius:12px;overflow:hidden;box-shadow:0 25px 60px #00000080}.image-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#111;border-bottom:1px solid #333}.image-preview-name{font-size:.9375rem;color:#e5e5e5;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.image-preview-close{background:#ffffff1a;border:none;color:#e5e5e5;width:32px;height:32px;border-radius:8px;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}.image-preview-close:hover{background:#fff3}.image-preview-body{display:flex;align-items:center;justify-content:center;overflow:auto;padding:1rem}.image-preview-img{max-width:100%;max-height:calc(90vh - 60px);object-fit:contain;border-radius:4px}@media (max-width: 768px){.attachment-item{flex-wrap:wrap}.attachment-actions{width:100%;justify-content:flex-end}}.url-clip-card{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s}.url-clip-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.url-clip-content{display:flex;gap:.75rem;flex:1;min-width:0}.url-clip-image{width:100px;height:60px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#e5e7eb}.url-clip-image img{width:100%;height:100%;object-fit:cover}.url-clip-info{display:flex;flex-direction:column;gap:.25rem;flex:1;min-width:0}.url-clip-header{display:flex;align-items:center;gap:.375rem}.url-clip-favicon{width:14px;height:14px;border-radius:2px}.url-clip-domain{font-size:.6875rem;color:#9ca3af;font-weight:500}.url-clip-title{font-size:.9375rem;font-weight:600;color:#1a1a1a;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.url-clip-description{font-size:.8125rem;color:#9ca3af;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.url-clip-footer{display:flex;align-items:center;justify-content:space-between;gap:.375rem;font-size:.6875rem;color:#9ca3af}.url-clip-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.url-clip-date{flex-shrink:0}.url-clip-actions{display:flex;gap:.375rem;flex-shrink:0}@media (max-width: 768px){.url-clip-card{flex-direction:column;align-items:stretch}.url-clip-content{flex-direction:column}.url-clip-image{width:100%;height:120px}.url-clip-actions{justify-content:flex-end}}.url-clip-form{display:flex;flex-direction:column;gap:1rem}.url-clip-form-input-group{display:flex;gap:.75rem;align-items:flex-start}.url-clip-form-input{flex:1;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.875rem;transition:all .2s}.url-clip-form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.url-clip-form-input:disabled{background:#f3f4f6;cursor:not-allowed}.url-clip-form-actions{display:flex;gap:.5rem}.url-clip-form-error{padding:.75rem;background:#fee2e2;border:1px solid #fecaca;border-radius:6px;color:#991b1b;font-size:.875rem}.url-clip-form-preview{display:flex;flex-direction:column;gap:.75rem}.url-clip-preview-label{font-size:.875rem;font-weight:600;color:#374151}.url-clip-preview-card{display:flex;gap:1rem;padding:1rem;background:#f9fafb;border:2px solid #667eea;border-radius:8px}.url-clip-preview-image{width:120px;height:80px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#e5e7eb}.url-clip-preview-image img{width:100%;height:100%;object-fit:cover}.url-clip-preview-info{display:flex;flex-direction:column;gap:.5rem;flex:1;min-width:0}.url-clip-preview-header{display:flex;align-items:center;gap:.5rem}.url-clip-preview-favicon{width:16px;height:16px;border-radius:2px}.url-clip-preview-site{font-size:.75rem;color:#6b7280;font-weight:500}.url-clip-preview-title{font-size:1rem;font-weight:600;color:#1a1a1a;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.url-clip-preview-description{font-size:.875rem;color:#6b7280;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media (max-width: 768px){.url-clip-form-input-group{flex-direction:column}.url-clip-form-actions{width:100%;justify-content:stretch}.url-clip-form-actions button{flex:1}.url-clip-preview-card{flex-direction:column}.url-clip-preview-image{width:100%;height:120px}}.url-clip-list{display:flex;flex-direction:column;gap:.5rem}.url-clip-list-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.url-clip-list-title{font-size:.8125rem;font-weight:600;color:#1a1a1a;margin:0;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;gap:.375rem;transition:color .2s}.url-clip-list-title:hover{color:#667eea}.url-clip-list-toggle{display:inline-block;font-size:.75rem;transition:transform .2s}.url-clip-list-count{font-size:.8125rem;font-weight:500;color:#9ca3af;margin-left:.25rem}.url-clip-list-add-btn{padding:.25rem .5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:4px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;flex-shrink:0}.url-clip-list-add-btn:hover{transform:translateY(-1px);box-shadow:0 2px 8px #667eea4d}.url-clip-list-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;gap:1rem}.loading-spinner{font-size:2rem;animation:spin 2s linear infinite}.url-clip-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center}.empty-icon{font-size:3rem;margin-bottom:1rem}.url-clip-list-empty p{font-size:1rem;color:#6b7280;margin:0}.url-clip-list-items{display:flex;flex-direction:column;gap:.75rem}.backlink-list{display:flex;flex-direction:column;gap:.5rem}.backlink-list-title{font-size:.8125rem;font-weight:600;color:#1a1a1a;margin:0;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;gap:.375rem;transition:color .2s}.backlink-list-title:hover{color:#667eea}.backlink-list-toggle{display:inline-block;font-size:.75rem;transition:transform .2s}.backlink-list-count{font-size:.8125rem;font-weight:500;color:#9ca3af;margin-left:.25rem}.backlink-list-content{display:flex;flex-direction:column;gap:1rem;margin-top:.5rem}.backlink-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;gap:.5rem}.loading-spinner{font-size:1.5rem;animation:spin 2s linear infinite}.backlink-section{display:flex;flex-direction:column;gap:.5rem}.backlink-section-title{font-size:.75rem;font-weight:600;color:#6b7280;margin:0;text-transform:uppercase;letter-spacing:.05em}.backlink-items{display:flex;flex-direction:column;gap:.5rem}.backlink-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s}.backlink-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.backlink-item-icon{font-size:1.25rem;flex-shrink:0}.backlink-item-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.backlink-item-name{font-size:.9375rem;font-weight:600;color:#1a1a1a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backlink-item-description{font-size:.8125rem;color:#9ca3af;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backlink-item-tags{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.25rem}.backlink-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center;color:#9ca3af}.empty-icon{font-size:2rem;margin-bottom:.5rem;opacity:.5}.backlink-empty p{margin:.25rem 0;font-size:.875rem}.backlink-empty-hint{font-size:.75rem;color:#d1d5db}.backlink{color:#667eea;text-decoration:underline;cursor:pointer;transition:color .2s}.backlink:hover{color:#764ba2}.chat-popup-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-popup{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;width:95%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #e5e7eb;flex-shrink:0}.chat-popup-title{font-size:18px;font-weight:600;color:#1f2937;margin:0}.chat-popup-close{background:none;border:none;font-size:24px;color:#6b7280;cursor:pointer;padding:4px 8px;line-height:1;transition:color .2s}.chat-popup-close:hover{color:#1f2937}.chat-popup-context{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom:1px solid #e5e7eb;flex-shrink:0}.chat-popup-context-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;opacity:.9}.chat-popup-context-text{font-size:14px;line-height:1.5;background:#ffffff1a;padding:8px 12px;border-radius:6px;max-height:100px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.chat-popup-content{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0}.chat-popup-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#6b7280}.chat-popup-loading .loading-spinner{font-size:32px;margin-bottom:12px;animation:spin 2s linear infinite}.chat-popup-content .chat-panel{border:none;border-radius:0;background:transparent;height:100%}.chat-popup-content .chat-panel-header{display:none}.entry-detail-page{display:flex;flex-direction:column;height:100vh;background:#f5f5f5}.entry-detail-header{display:flex;align-items:center;padding:.375rem .75rem;background:#fff;border-bottom:1px solid #e5e7eb;gap:.75rem}.entry-back-button{background:transparent;border:1px solid #e5e7eb;color:#6b7280;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;flex-shrink:0}.entry-back-button:hover{background:#f3f4f6;border-color:#667eea;color:#667eea}.entry-detail-title{font-size:.875rem;font-weight:600;color:#1a1a1a;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;display:flex;align-items:center;gap:.375rem;border-radius:4px;padding:.125rem .25rem;transition:background .15s}.entry-detail-title:hover{background:#f3f4f6}.entry-detail-title-edit-icon{font-size:.75rem;color:#9ca3af;opacity:0;transition:opacity .15s;flex-shrink:0}.entry-detail-title:hover .entry-detail-title-edit-icon{opacity:1}.entry-detail-title-input{flex:1;font-size:.875rem;font-weight:600;color:#1a1a1a;padding:.25rem .5rem;border:1px solid #667eea;border-radius:4px;outline:none;background:#fff;font-family:inherit;box-shadow:0 0 0 2px #667eea26}.entry-detail-meta-edit{padding:0 .75rem .5rem;background:#fff;border-bottom:1px solid #e5e7eb}.entry-detail-desc-input{width:100%;font-size:.8125rem;color:#374151;padding:.5rem;border:1px solid #d1d5db;border-radius:4px;outline:none;background:#f9fafb;font-family:inherit;resize:vertical;line-height:1.5;transition:border-color .15s}.entry-detail-desc-input:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea26;background:#fff}.entry-detail-header-right{display:flex;gap:.5rem;flex-shrink:0}.entry-detail-content{flex:1;padding:.5rem;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}.entry-detail-content.split-view{flex-direction:row;gap:.5rem;padding:.5rem}.entry-detail-content.fullscreen-view{flex-direction:column;padding:.5rem}.entry-detail-content.fullscreen-view .split-view-pdf{flex:1;max-height:none}.entry-detail-main{flex:1;display:flex;flex-direction:column;gap:.5rem;min-width:0}.split-view-pdf{flex:1;display:flex;flex-direction:column;min-width:0;max-height:100%;overflow:hidden}.split-view-pdf-header{padding-bottom:.25rem;border-bottom:1px solid #e5e7eb}.split-view-pdf-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.entry-detail-section{background:#fff;border-radius:4px;padding:.5rem;box-shadow:0 1px 2px #0000000d;display:flex;flex-direction:column;overflow:hidden}.entry-detail-section.notes-section{flex:1;min-height:400px}.entry-detail-section.attachments-section{flex:0 0 auto}.attachments-section:not(:has(.attachments-content)){padding:.5rem .75rem}.attachments-section>*+*{margin-top:.5rem}.attachments-section .attachment-list{max-height:120px;overflow-y:auto;padding-right:.5rem}.attachments-section .attachment-list::-webkit-scrollbar{width:6px}.attachments-section .attachment-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.attachments-section .attachment-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.attachments-section .attachment-list::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.split-view .entry-detail-section.notes-section{flex:1;min-height:400px}.split-view .split-view-pdf{flex:1;min-width:0}.entry-detail-section-title{font-size:.8125rem;font-weight:600;color:#1a1a1a;margin-bottom:.375rem;display:flex;align-items:center;gap:.375rem;flex-shrink:0}.attachments-header{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .2s;margin-bottom:0}.attachments-header:hover{color:#667eea}.attachments-toggle{font-size:.75rem;display:inline-block;transition:transform .2s}.attachments-count{font-size:.8125rem;color:#9ca3af;font-weight:500;margin-left:.25rem}.attachments-content{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.attachments-loading{text-align:center;padding:2rem;color:#9ca3af;font-style:italic}.entry-detail-footer{padding:1rem 2rem;background:#fff;border-top:2px solid #e5e7eb}.entry-detail-tags{display:flex;flex-wrap:wrap;gap:.5rem}.entry-detail-loading,.entry-detail-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:1rem}.error-icon{font-size:4rem}.entry-detail-loading p,.entry-detail-error p{font-size:1.125rem;color:#6b7280}@media (max-width: 768px){.entry-detail-header{flex-direction:column;gap:1rem}.entry-detail-header-left{flex-direction:column;width:100%}.entry-detail-header-right{width:100%}.entry-detail-content{padding:1rem}}.help-page{padding:2rem;max-width:800px;margin:0 auto}.help-header{margin-bottom:2.5rem}.help-title{font-size:2rem;font-weight:700;color:#1a1a1a;margin:0 0 .5rem}.help-subtitle{font-size:1rem;color:#6b7280;margin:0;line-height:1.6}.help-section{margin-bottom:2.5rem}.help-section-title{font-size:1.375rem;font-weight:700;color:#1a1a1a;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.help-section-desc{font-size:.9375rem;color:#374151;line-height:1.7;margin:0 0 1rem}.help-para-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}.help-para-card{display:flex;gap:1rem;padding:1.25rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;transition:all .2s}.help-para-card:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea1a}.help-para-icon{font-size:2rem;flex-shrink:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#f3f4f6;border-radius:10px}.help-para-card-content{flex:1;min-width:0}.help-para-card-title{font-size:1rem;font-weight:700;color:#1a1a1a;margin:0 0 .25rem}.help-para-card-label{font-size:.75rem;font-weight:600;color:#667eea;text-transform:uppercase;letter-spacing:.05em;margin:0 0 .375rem}.help-para-card-desc{font-size:.875rem;color:#6b7280;margin:0 0 .5rem;line-height:1.5}.help-para-card-examples{font-size:.8125rem;color:#9ca3af;margin:0;font-style:italic}.help-entry-section{background:linear-gradient(135deg,#f0f0ff,#faf5ff);border:1px solid #e0e0ff;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.help-entry-title{font-size:1.125rem;font-weight:700;color:#1a1a1a;margin:0 0 .75rem}.help-entry-desc{font-size:.9375rem;color:#374151;line-height:1.7;margin:0 0 1rem}.help-feature-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.625rem}.help-feature-list li{display:flex;align-items:flex-start;gap:.625rem;font-size:.9375rem;color:#374151;line-height:1.5}.help-feature-icon{flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:.875rem}.help-steps{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.help-step{display:flex;gap:1rem;padding:1rem 1.25rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.help-step-number{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:.875rem;font-weight:700;border-radius:50%}.help-step-content{flex:1}.help-step-title{font-size:.9375rem;font-weight:600;color:#1a1a1a;margin:0 0 .25rem}.help-step-desc{font-size:.875rem;color:#6b7280;margin:0;line-height:1.5}.help-tip-box{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:1rem 1.25rem;margin-bottom:1.5rem}.help-tip-title{font-size:.875rem;font-weight:700;color:#92400e;margin:0 0 .5rem}.help-tip-text{font-size:.875rem;color:#78350f;margin:0;line-height:1.6}.help-code{display:inline;padding:.125rem .375rem;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;font-family:SF Mono,Fira Code,monospace;font-size:.8125rem;color:#667eea}.help-kbd{display:inline-block;padding:.125rem .5rem;background:#f9fafb;border:1px solid #d1d5db;border-radius:4px;font-family:inherit;font-size:.8125rem;font-weight:600;color:#374151;box-shadow:0 1px #d1d5db}@media (max-width: 640px){.help-page{padding:1rem}.help-title{font-size:1.5rem}.help-para-card{flex-direction:column;gap:.75rem}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#0f0c29,#302b63,#24243e);position:relative;overflow:hidden}.auth-page:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 50%,rgba(102,126,234,.08) 0%,transparent 50%),radial-gradient(circle at 70% 50%,rgba(118,75,162,.08) 0%,transparent 50%);animation:auth-bg-drift 20s ease-in-out infinite alternate}@keyframes auth-bg-drift{0%{transform:translate(0)}to{transform:translate(-2%,2%)}}.auth-container{width:100%;max-width:420px;position:relative;z-index:1;animation:auth-fade-in .5s cubic-bezier(.16,1,.3,1)}@keyframes auth-fade-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.auth-brand{text-align:center;margin-bottom:2rem}.auth-brand-logo{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,#667eea,#a78bfa,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.03em;margin-bottom:.5rem}.auth-brand-tagline{font-size:.9375rem;color:#ffffff80;letter-spacing:.01em}.auth-card{background:#ffffff0d;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:2.5rem;box-shadow:0 25px 50px -12px #0006,0 0 0 1px #ffffff0d}.auth-card-title{font-size:1.375rem;font-weight:700;color:#fff;margin:0 0 1.75rem;letter-spacing:-.01em}.auth-error{padding:.75rem 1rem;background:#ef44441a;border:1px solid rgba(239,68,68,.25);border-radius:10px;color:#fca5a5;font-size:.875rem;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem;line-height:1.5}.auth-error:before{content:"!";flex-shrink:0;width:20px;height:20px;background:#ef444433;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#fca5a5}.auth-form{display:flex;flex-direction:column;gap:1.25rem}.auth-field{display:flex;flex-direction:column;gap:.5rem}.auth-label{font-size:.8125rem;font-weight:600;color:#ffffffb3;text-transform:uppercase;letter-spacing:.05em}.auth-input{width:100%;padding:.8125rem 1rem;background:#ffffff12;border:1px solid rgba(255,255,255,.12);border-radius:10px;font-size:.9375rem;color:#fff;font-family:inherit;transition:all .2s ease;outline:none}.auth-input::placeholder{color:#ffffff4d}.auth-input:hover{border-color:#fff3;background:#ffffff17}.auth-input:focus{border-color:#667eea;background:#ffffff1a;box-shadow:0 0 0 3px #667eea26}.auth-submit{width:100%;padding:.875rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:.9375rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .2s ease;margin-top:.5rem;position:relative;overflow:hidden}.auth-submit:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,rgba(255,255,255,.1) 0%,transparent 100%);opacity:0;transition:opacity .2s}.auth-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px #667eea59}.auth-submit:hover:not(:disabled):before{opacity:1}.auth-submit:active:not(:disabled){transform:translateY(0);box-shadow:0 4px 12px #667eea40}.auth-submit:disabled{opacity:.5;cursor:not-allowed}.auth-submit-loading{display:inline-flex;align-items:center;gap:.5rem}.auth-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:auth-spin .6s linear infinite}@keyframes auth-spin{to{transform:rotate(360deg)}}.auth-footer{text-align:center;margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);font-size:.875rem;color:#ffffff73}.auth-footer-link{color:#a78bfa;text-decoration:none;font-weight:600;transition:color .15s}.auth-footer-link:hover{color:#c4b5fd}@media (max-width: 480px){.auth-page{padding:1rem}.auth-card{padding:1.75rem}.auth-brand-logo{font-size:2rem}}*{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-color:#f5f5f5}.layout{display:flex;min-height:100vh}.custom-title-bar+.layout{padding-top:40px}.main-content{flex:1;padding:2rem;overflow-y:auto}.sidebar{width:220px;background-color:#1a1a1a;color:#fff;display:flex;flex-direction:column;border-right:1px solid #333;position:relative;transition:width .3s ease}.sidebar.collapsed{width:50px}.sidebar.collapsed .sidebar-header,.sidebar.collapsed .sidebar-search,.sidebar.collapsed .sidebar-nav,.sidebar.collapsed .sidebar-footer{display:none}.sidebar-toggle{position:absolute;top:1rem;right:-12px;width:24px;height:24px;background:#1a1a1a;border:1px solid #333;border-radius:50%;color:#888;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.625rem;transition:all .2s;z-index:10}.sidebar-toggle:hover{background:#2a2a2a;color:#fff;transform:scale(1.1)}.sidebar-header{padding:1.5rem;border-bottom:1px solid #333}.sidebar-title{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.sidebar-subtitle{font-size:.875rem;color:#888}.sidebar-nav{flex:1;overflow-y:auto;padding:1rem 0}.sidebar-footer{padding:.75rem 1rem;border-top:1px solid #333}.sidebar-footer-btn{width:100%;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:transparent;border:1px solid #333;border-radius:6px;color:#888;font-size:.8125rem;cursor:pointer;transition:all .15s}.sidebar-footer-btn:hover{background:#2a2a2a;color:#fff;border-color:#555}.sidebar-footer-btn span:first-child{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:#333;border-radius:50%;font-size:.75rem;font-weight:700;flex-shrink:0}.para-section{margin-bottom:.5rem}.para-section-header{width:100%;display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:none;border:none;color:#fff;cursor:pointer;font-size:.875rem;font-weight:600;transition:background-color .2s}.para-section-header:hover{background-color:#2a2a2a}.para-section-icon{font-size:.75rem;color:#888}.para-section-emoji{font-size:1rem}.para-section-label{flex:1}.para-section-count{color:#666;font-size:.75rem}.para-section-content{padding-left:.5rem}.para-add-button{width:calc(100% - 1rem);margin:.5rem;padding:.5rem 1rem;background:#3b82f61a;border:1px dashed rgba(59,130,246,.3);border-radius:6px;color:#3b82f6;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.para-add-button:hover{background:#3b82f626;border-color:#3b82f680;transform:translateY(-1px)}.para-loading,.para-empty{padding:.75rem 1rem;color:#666;font-size:.875rem;font-style:italic}.para-node-list{list-style:none}.para-node-item{margin-bottom:.125rem}.para-node-link{display:flex;align-items:center;padding:.5rem 1rem;color:#ccc;text-decoration:none;font-size:.875rem;transition:all .2s;border-radius:.25rem;margin:0 .5rem}.para-node-link:hover{background-color:#2a2a2a;color:#fff}.para-node-link.active{background-color:#3b82f6;color:#fff}.para-node-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.para-node-actions{display:none;align-items:center;gap:2px;flex-shrink:0;margin-left:.25rem}.para-node-link:hover .para-node-actions{display:flex}.para-node-action-btn{background:transparent;border:none;color:#888;cursor:pointer;font-size:.875rem;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:3px;padding:0;line-height:1;transition:all .15s}.para-node-action-btn:hover{background:#ffffff26;color:#fff}.para-node-action-btn--danger:hover{background:#ef44444d;color:#fca5a5}.home-page{max-width:800px}.home-header{margin-bottom:2rem}.home-title{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;color:#1a1a1a}.home-subtitle{font-size:1.125rem;color:#666}.home-content{background:#fff;border-radius:.5rem;padding:2rem;box-shadow:0 1px 3px #0000001a}.home-section{margin-bottom:2rem}.home-section:last-child{margin-bottom:0}.home-section h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:#1a1a1a}.home-list{list-style:none;padding-left:0}.home-list li{padding:.5rem 0 .5rem 1.5rem;position:relative}.home-list li:before{content:"•";position:absolute;left:.5rem;color:#3b82f6;font-weight:700}.para-page-header{margin-bottom:2rem}.para-page-title{font-size:2rem;font-weight:700;color:#1a1a1a;margin-bottom:.5rem}.para-page-subtitle{color:#666;font-size:.875rem}.entry-list{background:#fff;border-radius:.5rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.entry-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e5e5e5}.entry-list-title{font-size:1.5rem;font-weight:600;color:#1a1a1a}.entry-list-loading,.entry-list-empty{text-align:center;padding:4rem 2rem;color:#666}.entry-list-loading{display:flex;flex-direction:column;align-items:center;gap:1rem}.loading-spinner{font-size:3rem;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.empty-state{display:flex;flex-direction:column;align-items:center;gap:1rem}.empty-icon{font-size:4rem;opacity:.5}.empty-state p{font-size:1.125rem;color:#9ca3af}.entry-list-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.entry-card{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px #0000000d;display:flex;flex-direction:column}.entry-card:hover{box-shadow:0 10px 25px #0000001a,0 4px 10px #0000000d;transform:translateY(-4px);border-color:#3b82f6}.entry-card-header{margin-bottom:.875rem}.entry-card-title{font-size:1.125rem;font-weight:600;color:#1a1a1a;margin-bottom:0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:1.4em}.entry-card-description{color:#666;font-size:.9375rem;margin-bottom:1rem;line-height:1.6}.entry-card-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.entry-tag{display:inline-flex;align-items:center;padding:.375rem .875rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:.75rem;font-weight:600;letter-spacing:.025em;box-shadow:0 2px 4px #667eea33;transition:all .2s}.entry-tag:hover{transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d}.entry-card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.75rem;border-top:1px solid #f0f0f0;margin-top:auto}.entry-card-date{font-size:.8125rem;color:#888;font-weight:500;display:flex;align-items:center;gap:.25rem}.entry-card-actions{display:flex;gap:.375rem}.entry-card-actions .btn{padding:.25rem .625rem;font-size:.75rem;min-width:auto;gap:.25rem;box-shadow:none;border-radius:6px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;box-shadow:0 1px 3px #0000001a}.btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.btn:active{transform:translateY(0);box-shadow:0 1px 3px #0000001a}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{background:linear-gradient(135deg,#5568d3,#653a8b)}.btn-secondary{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb}.btn-secondary:hover{background:#e5e7eb;color:#1f2937}.btn-danger{background:linear-gradient(135deg,#f56565,#c53030);color:#fff}.btn-danger:hover{background:linear-gradient(135deg,#e53e3e,#b91c1c)}.btn-ghost{background:transparent;color:#6b7280;box-shadow:none;border:1px solid #e5e7eb}.btn-ghost:hover{background:#f9fafb;color:#374151;border-color:#d1d5db}.btn-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-sm{padding:.5rem 1rem;font-size:.875rem;min-width:70px}.btn-md{padding:.75rem 1.5rem;font-size:.9375rem;min-width:100px}.btn-lg{padding:.875rem 2rem;font-size:1rem;min-width:120px;font-weight:600}.form-input,.form-textarea{width:100%;padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:8px;font-size:.9375rem;transition:all .15s ease;background:#fff;font-family:inherit;line-height:1.5;color:#111827}.form-input:hover,.form-textarea:hover{border-color:#9ca3af}.form-input:focus,.form-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-input::placeholder,.form-textarea::placeholder{color:#9ca3af}.form-textarea{resize:vertical;min-height:80px}.form-label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:.5rem}.form-error{color:#dc2626;font-size:.875rem;margin-top:.5rem;padding:.75rem 1rem;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;display:flex;align-items:center;gap:.5rem}.modal-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;animation:modal-fade-in .2s ease-out}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:modal-backdrop-fade-in .2s ease-out}@keyframes modal-backdrop-fade-in{0%{opacity:0}to{opacity:1}}.modal-container{position:relative;z-index:10;width:100%;max-width:500px;animation:modal-slide-up .3s cubic-bezier(.16,1,.3,1)}@keyframes modal-slide-up{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-content{background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a,0 0 0 1px #0000000d;overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.5rem 1rem;border-bottom:1px solid #e5e7eb}.modal-title{font-size:1.25rem;font-weight:600;color:#111827;margin:0;letter-spacing:-.01em}.modal-close-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:#6b7280;border-radius:8px;cursor:pointer;transition:all .15s ease;font-size:1.25rem;font-weight:500;line-height:1;padding:0}.modal-close-btn:hover{background:#f3f4f6;color:#111827}.modal-close-btn:active{background:#e5e7eb;transform:scale(.95)}.modal-body{padding:1.5rem}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.entry-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #f0f0f0}.entry-list-title{font-size:1.5rem;font-weight:700;color:#1a1a1a;display:flex;align-items:center;gap:.5rem}@keyframes modal-slide-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-modal-slide-up{animation:modal-slide-up .3s ease-out}.space-y-4>*+*{margin-top:1.25rem}.w-full{width:100%}form .space-y-4>div{margin-bottom:.25rem}.sidebar-search{padding:.75rem 1rem;border-bottom:1px solid #333}.sidebar-search-inner{display:flex;align-items:center;gap:.5rem;background-color:#2a2a2a;border:1px solid #444;border-radius:8px;padding:.5rem .75rem;transition:border-color .2s}.sidebar-search-inner:focus-within{border-color:#3b82f6}.sidebar-search-icon{font-size:.875rem;flex-shrink:0}.sidebar-search-input{background:none;border:none;outline:none;color:#e5e5e5;font-size:.875rem;width:100%}.sidebar-search-input::placeholder{color:#666}.search-page{max-width:800px}.search-page-header{margin-bottom:2rem}.search-page-title{font-size:2rem;font-weight:700;color:#1a1a1a;margin-bottom:1rem}.search-bar-inline{display:flex;gap:.75rem}.search-input-inline{flex:1;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:10px;font-size:1rem;background:#fff;transition:border-color .2s,box-shadow .2s}.search-input-inline:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.search-submit-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:.9375rem;font-weight:600;cursor:pointer;transition:opacity .2s}.search-submit-btn:hover{opacity:.9}.search-submit-btn:disabled{opacity:.6;cursor:not-allowed}.search-results{background:#fff;border-radius:.5rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.search-count{color:#666;font-size:.9375rem;margin-bottom:1.25rem}.search-result-list{display:flex;flex-direction:column;gap:.75rem}.search-result-card{padding:1rem 1.25rem;border:1px solid #e5e5e5;border-radius:10px;cursor:pointer;transition:all .2s}.search-result-card:hover{border-color:#3b82f6;box-shadow:0 4px 12px #3b82f61a;transform:translateY(-1px)}.search-result-title{font-size:1.0625rem;font-weight:600;color:#1a1a1a;margin-bottom:.375rem}.search-result-description{color:#666;font-size:.875rem;line-height:1.5;margin-bottom:.5rem}.search-result-date{font-size:.8125rem;color:#9ca3af;display:block;margin-top:.5rem}.search-status{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem 0;color:#666}.search-empty{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:4rem 2rem;color:#9ca3af;text-align:center}.search-empty .empty-icon{font-size:3.5rem;opacity:.6}.search-empty p{font-size:1rem;color:#6b7280}.search-empty-hint{font-size:.875rem!important;color:#9ca3af!important}@media (max-width: 768px){.sidebar{width:200px}.sidebar.collapsed{width:50px}.main-content{padding:1rem}.entry-list-grid{grid-template-columns:1fr}}.chat-panel{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:12px;box-shadow:0 4px 24px #0000001a;overflow:hidden}.chat-panel-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.chat-panel-title h3{margin:0;font-size:1.125rem;font-weight:600}.chat-panel-subtitle{display:block;font-size:.75rem;opacity:.9;margin-top:.25rem}.chat-panel-close{background:#fff3;border:none;color:#fff;width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.25rem;transition:background .2s}.chat-panel-close:hover{background:#ffffff4d}.chat-panel-messages{flex:1;overflow-y:auto;padding:.75rem;background:#f9fafb;display:flex;flex-direction:column;gap:.75rem}.chat-panel-messages::-webkit-scrollbar{width:8px}.chat-panel-messages::-webkit-scrollbar-track{background:#f3f4f6}.chat-panel-messages::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}.chat-panel-messages::-webkit-scrollbar-thumb:hover{background:#9ca3af}.chat-panel-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6b7280;padding:2rem}.chat-panel-empty p{margin:.5rem 0}.chat-panel-input{padding:.75rem 1rem;border-top:1px solid #e5e7eb;background:#fff}.chat-message{display:flex;flex-direction:column;gap:.5rem;max-width:85%;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.chat-message.user{align-self:flex-end}.chat-message.assistant{align-self:flex-start}.message-header{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280}.message-role{font-weight:600}.message-time{opacity:.7}.message-content{padding:.875rem 1.125rem;border-radius:12px;line-height:1.6;word-wrap:break-word;white-space:pre-wrap}.chat-message.user .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:4px}.chat-message.assistant .message-content{background:#fff;color:#1f2937;border:1px solid #e5e7eb;border-bottom-left-radius:4px;box-shadow:0 2px 8px #0000000d}.chat-message.assistant .message-content h1{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;margin-top:0;color:#1a1a1a}.chat-message.assistant .message-content h2{font-size:1.25rem;font-weight:600;margin-bottom:.375rem;margin-top:.75rem;color:#1a1a1a}.chat-message.assistant .message-content h3{font-size:1.125rem;font-weight:600;margin-bottom:.25rem;margin-top:.5rem;color:#374151}.chat-message.assistant .message-content strong{font-weight:700;color:#1a1a1a}.chat-message.assistant .message-content em{font-style:italic;color:#4b5563}.chat-message.assistant .message-content a{color:#667eea;text-decoration:underline}.chat-message.assistant .message-content a:hover{color:#5568d3}.chat-message.assistant .message-content code{background:#f3f4f6;padding:.125rem .375rem;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.8125rem;color:#e53e3e}.chat-message.assistant .message-content pre{background:#1a1a1a;color:#f9fafb;padding:.75rem;border-radius:6px;overflow-x:auto;margin:.5rem 0}.chat-message.assistant .message-content pre code{background:transparent;color:inherit;padding:0;font-size:.8125rem}.chat-message.assistant .message-content ul{list-style:disc;padding-left:1.5rem;margin:.375rem 0}.chat-message.assistant .message-content li{margin-bottom:.25rem}.chat-input-form{display:flex;gap:.75rem;align-items:flex-end}.chat-input-textarea{flex:1;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:.875rem;font-family:inherit;resize:none;max-height:120px;min-height:42px;transition:border-color .2s}.chat-input-textarea:focus{outline:none;border-color:#667eea}.chat-input-textarea:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed}.chat-input-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s;white-space:nowrap}.chat-input-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.chat-input-button:active:not(:disabled){transform:translateY(0)}.chat-input-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.chat-session-list{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:12px;box-shadow:0 2px 12px #00000014;overflow:hidden}.chat-session-list-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#f9fafb}.chat-session-list-header h3{margin:0;font-size:1rem;font-weight:600;color:#1f2937}.btn-new-session{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-new-session:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.chat-session-list-items{flex:1;overflow-y:auto;padding:.5rem}.chat-session-list-items::-webkit-scrollbar{width:6px}.chat-session-list-items::-webkit-scrollbar-track{background:#f3f4f6}.chat-session-list-items::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.chat-session-list-empty{padding:3rem 1.5rem;text-align:center;color:#6b7280}.chat-session-list-empty p{margin:.5rem 0}.chat-session-item{padding:1rem;margin-bottom:.5rem;border:1px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .2s;background:#fff}.chat-session-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a;transform:translate(2px)}.chat-session-item.active{border-color:#667eea;background:linear-gradient(135deg,#667eea0d,#764ba20d)}.chat-session-item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.chat-session-item-title{font-weight:600;font-size:.875rem;color:#1f2937;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-session-item-delete{background:transparent;border:none;color:#9ca3af;width:20px;height:20px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:all .2s;flex-shrink:0}.chat-session-item-delete:hover{background:#fee2e2;color:#ef4444}.chat-session-item-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.5rem}.chat-session-item-type{padding:.125rem .5rem;background:#f3f4f6;border-radius:4px;font-weight:500}.chat-session-item-date{opacity:.8}.chat-session-item-preview{font-size:.75rem;color:#6b7280;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-chat-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.entry-chat-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#1f2937}.entry-chat-grid{display:grid;grid-template-columns:300px 1fr;gap:1.5rem;min-height:500px}@media (max-width: 1024px){.entry-chat-grid{grid-template-columns:1fr}}.para-node-drag-handle,.entry-drag-handle{opacity:.3;margin-right:.5rem;cursor:grab;-webkit-user-select:none;user-select:none;transition:opacity .2s}.para-node-item:hover .para-node-drag-handle,.entry-card:hover .entry-drag-handle{opacity:.6}.para-node-item[draggable]:active .para-node-drag-handle,.entry-card[draggable]:active .entry-drag-handle{cursor:grabbing;opacity:1}.para-node-item.dragging,.entry-card.dragging{opacity:.5;cursor:grabbing}.para-section.drag-over{background:#f0f9ff;border-left:3px solid #3b82f6;transition:all .2s}.para-node-item{position:relative;transition:all .2s}.para-node-item.drag-over-node{border-top:2px solid #3b82f6;margin-top:2px}.para-node-item.entry-drop-target{background:#3b82f626;border-left:3px solid #3b82f6;border-radius:4px;transition:background .15s,border-left .15s}.entry-card-header{display:flex;align-items:center;gap:.5rem}.entry-card.dragging{transform:rotate(2deg);box-shadow:0 8px 16px #0003}.para-node-item[draggable],.entry-card[draggable]{-webkit-user-drag:element;-webkit-user-select:none;user-select:none}
