body{font-family:Crimson Text,serif;background:#fff;color:var(--color-text-primary);height:100vh;overflow:hidden}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}input,textarea{font-family:inherit}.modal-overlay{z-index:10001}.modal-overlay .modal-content{padding:0}.modal-body .form-group{margin-bottom:15px}.modal-body .form-group label{display:block;margin-bottom:8px;font-weight:600;color:#333;font-size:14px}.modal-body .form-group input,.modal-body .form-group textarea{width:100%;border:1px solid #ccc;border-radius:4px;padding:10px 12px;font-family:Crimson Text,serif;font-size:14px;resize:vertical;box-sizing:border-box}.modal-body .form-group input:focus,.modal-body .form-group textarea:focus{outline:none;border-color:var(--focus-border-color);box-shadow:var(--focus-shadow)}.modal-body .checkbox-label{display:flex;align-items:flex-start;cursor:pointer}.modal-body .checkbox-label input[type=checkbox]{width:auto;margin-top:3px}.confirm-dialog{max-width:400px}.confirm-dialog-message{margin:0;font-size:15px;line-height:1.5;color:var(--color-text-primary)}.confirm-dialog-buttons{display:flex;gap:10px;justify-content:flex-end}.confirm-dialog-btn{padding:8px 16px;border-radius:4px;font-family:Crimson Text,serif;font-size:14px;cursor:pointer;transition:background-color .15s,border-color .15s}.confirm-dialog-btn-cancel{background:var(--color-bg-white);border:1px solid var(--color-border-medium);color:var(--color-text-primary)}.confirm-dialog-btn-cancel:hover{background:var(--color-bg-tan);border-color:var(--color-border-dark)}.confirm-dialog-btn-confirm{background:var(--color-accent-blue);border:1px solid var(--color-accent-blue);color:#fff}.confirm-dialog-btn-confirm:hover{background:var(--color-accent-blue-dark, #1a5a8a);border-color:var(--color-accent-blue-dark, #1a5a8a)}.confirm-dialog-btn-confirm.danger{background:var(--color-primary);border-color:var(--color-primary)}.confirm-dialog-btn-confirm.danger:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.home-container{min-height:100vh;height:auto;display:flex;flex-direction:column;background:#fffc;overflow-y:auto;overflow-x:hidden}.home-header{text-align:center;padding:40px 20px;background:var(--beige-primary);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1.5px solid var(--beige-border);position:relative}.header-content{position:relative;max-width:1200px;margin:0 auto}.home-header h1{font-size:48px;color:var(--color-primary);margin-bottom:10px;font-weight:600;letter-spacing:-1px}.subtitle{font-size:var(--font-size-large);color:var(--color-text-secondary);font-family:Courier Prime,monospace;opacity:.8}.modules-grid{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:30px;padding:40px 30px;max-width:1200px;margin:0 auto;width:100%}.module-card{background:var(--beige-primary);border:1.5px solid var(--beige-border);border-radius:12px;padding:30px;transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 4px 20px #00000014;opacity:0;transform:translateY(30px);text-decoration:none;color:inherit;display:block}.module-card:hover{transform:translateY(-5px);border:2px solid var(--color-primary);box-shadow:0 12px 40px #80002033,0 0 20px #80002026,inset 0 0 20px #8000200d}.module-icon{width:60px;height:60px;margin-bottom:20px;position:relative}.timeline-icon{position:relative;width:100%;height:100%}.hourglass{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.hourglass-top{width:30px;height:15px;background:var(--color-primary);border-radius:15px 15px 0 0;border:2px solid var(--color-primary);border-bottom:none}.hourglass-middle{width:8px;height:8px;background:var(--color-primary);margin:-2px 0}.hourglass-bottom{width:30px;height:15px;background:var(--color-primary-hover);border-radius:0 0 15px 15px;border:2px solid var(--color-primary);border-top:none}.archive-icon{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}.bookshelf{display:flex;align-items:flex-end;gap:2px;height:100%;justify-content:center;padding:5px}.book{background:var(--color-primary);border-radius:1px;position:relative}.book1{width:8px;height:35px}.book2{width:10px;height:42px;background:var(--color-primary-hover)}.book3{width:7px;height:38px}.book4{width:9px;height:40px;background:#660018}.constellation-icon{position:relative;width:100%;height:100%}.star-pattern{position:absolute;inset:0}.star{position:absolute;width:5px;height:5px;background:var(--color-primary);border-radius:50%;transform:translate(-50%,-50%);opacity:1;box-shadow:0 0 3px #80002066}.constellation-lines{position:absolute;inset:0}.star-line{position:absolute;height:1px;border-top:1px dashed var(--color-primary);opacity:.6;transform-origin:left center}.line1{top:30%;left:25%;width:30px;transform:rotate(20deg)}.line2{top:45%;left:45%;width:25px;transform:rotate(-25deg)}.line3{top:55%;left:60%;width:20px;transform:rotate(35deg)}.conspiracy-icon{position:relative;width:100%;height:100%}.pushpin{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.pin-head{width:20px;height:20px;background:var(--color-primary);border-radius:50%;position:relative;box-shadow:0 2px 4px #0003}.pin-body{width:3px;height:25px;background:linear-gradient(to bottom,var(--color-text-secondary),#888);margin-top:-3px;border-radius:0 0 2px 2px}.pin-shadow{position:absolute;bottom:5px;width:15px;height:3px;background:#0000001a;border-radius:50%;transform:translate(8px)}.module-card h3{font-size:var(--font-size-xlarge);color:var(--color-text-primary);margin-bottom:12px;font-weight:600}.module-card p{font-size:var(--font-size-medium);line-height:1.5;color:var(--color-text-secondary);margin-bottom:20px}.module-features{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.feature{background:#8000201a;color:var(--color-primary);font-size:var(--font-size-small);font-family:Courier Prime,monospace;padding:4px 8px;border-radius:12px;border:1px solid rgba(128,0,32,.2)}.lessons-icon{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.book-open{position:relative;width:50px;height:35px;display:flex;justify-content:center}.page-left{position:absolute;left:0;width:22px;height:30px;background:var(--color-primary);border-radius:3px 0 0 3px;transform:perspective(30px) rotateY(25deg);transform-origin:right center}.page-right{position:absolute;right:0;width:22px;height:30px;background:var(--color-primary);border-radius:0 3px 3px 0;transform:perspective(30px) rotateY(-25deg);transform-origin:left center;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:6px}.book-spine{position:absolute;left:50%;transform:translate(-50%);width:3px;height:32px;background:var(--color-button-destructive);z-index:1}.text-line{width:12px;height:2px;background:#ffffff4d;margin:1px 0}.launch-btn{width:100%;background:var(--color-primary);color:#fff;border:none;padding:12px 20px;font-family:Courier Prime,monospace;font-size:var(--font-size-base);cursor:pointer;border-radius:var(--radius-medium);transition:all .3s ease;font-weight:400}.launch-btn:hover{background:var(--color-primary-hover);transform:translateY(-1px);box-shadow:0 4px 12px #8000204d}.launch-btn.coming-soon{background:#e8e8e8;color:var(--color-text-muted);cursor:not-allowed}.launch-btn.coming-soon:hover{background:#e8e8e8;transform:none;box-shadow:none}.module-card.coming-soon{cursor:default}.module-card.coming-soon:hover{transform:translateY(0);border:1px solid rgba(128,0,32,.1);box-shadow:0 4px 20px #00000014}@media (max-width: 768px){.modules-grid{grid-template-columns:1fr;gap:20px;padding:20px 15px}.home-header h1{font-size:36px}.module-card{padding:25px}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.module-card{animation:fadeInUp .6s ease forwards}.module-card:nth-child(1){animation-delay:.1s}.module-card:nth-child(2){animation-delay:.2s}.module-card:nth-child(3){animation-delay:.3s}.module-card:nth-child(4){animation-delay:.4s}.module-card:nth-child(5){animation-delay:.5s}.hashtag{font-family:Courier Prime,monospace;font-size:10px;color:#800020;background:#dc143c1a;padding:2px 6px;border-radius:10px;word-wrap:break-word;word-break:break-word;max-width:100%;display:inline-block;transition:all .3s ease}.hashtag.small{font-size:9px}.hashtag.clickable{cursor:pointer}.hashtag.clickable:hover{background:#dc143c33;color:#a0001c}.hashtag-container{display:flex;gap:6px;flex-wrap:wrap}.hashtag-container.small-gap{gap:4px}.sidebar-advanced-search{background:#fff;border:1px solid var(--beige-border);border-radius:var(--radius-medium);padding:var(--spacing-12);margin-top:8px}.visual-boolean-section{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}.boolean-row{display:flex;align-items:center;gap:6px}.boolean-terms-container{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.term-input{padding:4px 8px;border:1px solid var(--color-border-medium);border-radius:3px;font-family:Crimson Text,serif;font-size:var(--font-size-small);font-weight:400;background:#fff;min-width:60px;max-width:80px}.boolean-connector{font-family:Crimson Text,serif;font-weight:400;color:var(--color-text-secondary);font-size:var(--font-size-small);padding:0 3px;-webkit-user-select:none;user-select:none}.add-term-btn{width:18px;height:18px;border:1px solid var(--color-text-secondary);background:#fff;color:var(--color-text-secondary);border-radius:2px;cursor:pointer;font-size:10px;font-weight:400;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.add-term-btn:hover{background:var(--color-bg-light);color:var(--color-text-light)}.exclude-row{padding-top:6px}.exclude-label{font-family:Crimson Text,serif;font-weight:400;color:var(--color-text-secondary);font-size:var(--font-size-small);min-width:50px;-webkit-user-select:none;user-select:none}.exclude-input{flex:1;max-width:none}.search-field-toggles{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0;border-top:1px solid var(--color-border-standard);margin-top:12px}.search-field-toggles label{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:var(--color-text-primary)}.search-field-toggles input[type=checkbox]{cursor:pointer}.search-field-toggles span{-webkit-user-select:none;user-select:none}.sidebar-search-actions{display:flex;justify-content:space-between;gap:8px;padding-top:12px}.btn-secondary{background:#e8e8e8;color:var(--color-text-secondary);border:1px solid var(--color-border-medium);padding:6px 12px;border-radius:3px;cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-small);transition:all .3s ease}.btn-primary{background:var(--color-primary);color:#fff;border:none;padding:6px 12px;border-radius:3px;cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-small);transition:all .3s ease}.search-input-container input{width:100%;padding:10px 35px 10px 15px;border:1px solid var(--color-border-medium);border-radius:var(--radius-medium);font-family:Crimson Text,serif;font-size:var(--font-size-base);background:#fff}.search-input-container input.with-clear-btn{padding-right:65px}.search-input-container .advanced-search-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-muted);padding:var(--spacing-xs);display:flex;align-items:center;justify-content:center;transition:color .2s ease}.search-input-container .advanced-search-btn.with-clear{right:35px}.search-input-container .advanced-search-btn:hover{color:var(--color-primary)}.search-input-container .clear-search-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-muted);padding:var(--spacing-xs);display:flex;align-items:center;justify-content:center;transition:color .2s ease}.search-input-container .clear-search-btn:hover{color:var(--color-text-secondary)}.sidebar-search .search-input-container input{padding:8px 35px 8px 12px;border-radius:var(--radius-small)}.inline-memory-textarea{width:100%;border:none;outline:none;background:transparent;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;line-height:inherit;resize:none;overflow:hidden;padding:0;margin:0}.inline-memory-textarea:focus{border:none!important;outline:none!important;box-shadow:none!important}.inline-memory-textarea::placeholder{color:var(--color-text-muted)}.canvas-container{flex:1;position:relative;overflow:hidden;overscroll-behavior:none;touch-action:none}.canvas{position:absolute;top:0;left:0;width:10000px;height:8000px;background:#fff;overflow:visible}.canvas-empty-state{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-muted)}.empty-instructions{text-align:center;max-width:300px}.empty-instructions h3{color:var(--color-primary);margin-bottom:10px}.empty-instructions p{margin-bottom:20px;line-height:1.4}.empty-icon{font-size:3rem;opacity:.3}.dropped-memory{position:absolute;pointer-events:auto;z-index:1}.dropped-memory .memory-card{background:#faf8e9;border:.75px solid #e8e6d5;border-radius:6px;padding:15px;width:200px;min-height:120px;cursor:move;transition:box-shadow .2s ease;-webkit-user-select:none;user-select:none;position:relative;z-index:10}.dropped-memory:hover .memory-card{box-shadow:0 4px 12px #00000026}.dropped-memory.dragging{z-index:1000}.dropped-memory.dragging .memory-card{box-shadow:0 8px 20px #0003}.memory-pin{position:absolute;top:6px;right:6px;width:12px;height:12px;cursor:pointer;transition:opacity .2s ease,transform .2s ease;z-index:200;font-size:0;text-indent:-9999px;background:none;border:none}.memory-pin-circle{width:12px;height:12px;background:radial-gradient(circle at 30% 30%,var(--color-pin-highlight) 30%,var(--color-string-and-pin) 50%);border-radius:50%;position:absolute;top:2px;left:8px;transition:none;z-index:2}.memory-pin-tail{width:2px;height:12px;background:var(--color-text-muted);position:absolute;top:12px;left:12px;transform:rotate(15deg);transform-origin:top center;z-index:1}.btn-constellation-mode{padding:8px 16px;background:linear-gradient(135deg,var(--color-primary),#b8860b);color:#fff;border:none;border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-base);font-weight:600;transition:all .2s;box-shadow:0 2px 4px #0003}.btn-constellation-mode:hover{background:linear-gradient(135deg,var(--color-button-destructive),#8b6508);transform:translateY(-1px);box-shadow:0 3px 6px #0000004d}.constellation-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--color-border-gray)}.constellation-header h3{margin:0;color:var(--color-primary);font-size:var(--font-size-large)}.btn-exit-constellation{padding:6px 12px;background:var(--color-bg-light);color:var(--color-text-light);border:1px solid var(--color-border-standard);border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-small);transition:all .2s}.btn-exit-constellation:hover{background:var(--color-border-gray)}.constellation-info{margin-bottom:16px}.constellation-info p{margin:0 0 8px;color:var(--color-text-secondary);font-size:var(--font-size-base)}.constellation-visualization{margin:16px 0;display:flex;justify-content:center;align-items:center}.constellation-visualization svg{display:block;box-shadow:0 2px 8px #0000001a}.constellation-actions{display:flex;gap:8px}.btn-select-all,.btn-clear-selection{flex:1;padding:6px 12px;background:#fff;color:var(--color-primary);border:1px solid var(--color-primary);border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-small);transition:all .2s}.btn-select-all:hover,.btn-clear-selection:hover{background:var(--color-primary);color:#fff}.constellation-export{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding-top:16px;border-top:1px solid var(--color-border-gray)}.constellation-name-input{width:100%;padding:8px 12px;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);font-size:var(--font-size-base)}.btn-export-constellation{width:100%;padding:10px 16px;background:var(--color-accent-gold);color:var(--color-text-light);border:none;border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-base);font-weight:600;transition:all .2s}.btn-export-constellation:hover:not(:disabled){background:#ffc700;transform:translateY(-1px);box-shadow:0 2px 4px #0003}.btn-export-constellation:disabled{opacity:.5;cursor:not-allowed}.constellation-help{padding:var(--spacing-12);background:var(--beige-primary);border-radius:var(--radius-small);margin-top:12px}.constellation-help p{margin:0 0 6px;color:var(--color-text-secondary);font-size:var(--font-size-small);line-height:1.4}.constellation-help p:last-child{margin-bottom:0}.constellation-overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:8999}.constellation-overlay .constellation-node,.constellation-overlay .constellation-node-pin{pointer-events:all;transition:all .2s}.constellation-star-svg{display:block;position:relative;opacity:1}.constellation-star .star-fill{opacity:1}@keyframes dazzle{0%{opacity:0;transform:translate(-150%) translateY(0) rotate(-45deg) scaleX(0)}30%{opacity:1;transform:translate(-50%) translateY(0) rotate(-45deg) scaleX(1)}70%{opacity:1;transform:translate(50%) translateY(0) rotate(-45deg) scaleX(1)}to{opacity:0;transform:translate(150%) translateY(0) rotate(-45deg) scaleX(0)}}.star-dazzle{display:none}.star-dazzle-large{height:3px;width:180%}.memory-pin.constellation-star{background:transparent;border:none;width:60px;height:60px;position:absolute;top:-23px;right:-22px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:300}.memory-pin.constellation-star:hover{transform:none;box-shadow:none}.standalone-pin.constellation-star{width:60px;height:60px;margin-left:-20px;margin-top:-6px;z-index:300}@keyframes starPulse{0%,to{opacity:1;filter:drop-shadow(0 0 4px rgba(255,215,0,.8))}50%{opacity:.8;filter:drop-shadow(0 0 8px rgba(255,215,0,1))}}.connections-svg{position:absolute;top:0;left:0;pointer-events:none;z-index:2100}.connection-strings{position:absolute;top:0;left:0;pointer-events:none;z-index:1}.connection-line:hover{stroke-width:3!important;stroke:#ff4500!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.connection-line.constellation-selected:hover{stroke:url(#goldSheen)!important}.connection-tooltip{position:absolute;background:#fff;color:var(--color-text-light);border:2px solid var(--color-border-medium);padding:8px 12px;border-radius:50px;font-family:Crimson Text,serif;font-size:13px;line-height:1.4;max-width:300px;word-wrap:break-word;z-index:1000;pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.9);transition:all .3s ease;box-shadow:0 2px 8px #00000026}.connection-tooltip.show{opacity:1;transform:translate(-50%,-50%) scale(1)}.venn-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;z-index:10000;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}.venn-popup.show{opacity:1}.venn-popup.show .venn-popup-content{transform:scale(1)}.venn-popup-content{background:#fff;border:2px solid var(--beige-border);border-radius:12px;width:90%;max-width:550px;max-height:90%;overflow-y:auto;box-shadow:0 12px 32px #0000004d;transform:scale(.9);transition:transform .3s ease}.venn-header{display:flex;justify-content:space-between;align-items:center;padding:20px 25px 15px;border-bottom:1px solid var(--beige-border);background:var(--beige-primary);border-radius:12px 12px 0 0}.venn-header h3{margin:0;color:var(--color-primary);font-size:20px;font-weight:400}.venn-close{background:none;border:none;font-size:var(--font-size-xlarge);color:var(--color-primary);cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all .2s ease}.venn-close:hover{background:#8000201a}.venn-diagram-container{padding:40px 25px;text-align:center;display:flex;justify-content:center}.venn-diagram{width:100%;max-width:500px;height:auto;display:block}.venn-text{font-family:Crimson Text,serif;font-size:var(--font-size-small);fill:var(--color-text-primary);text-anchor:middle;dominant-baseline:central}.venn-text-small{font-size:10px}.venn-title{font-size:var(--font-size-base);font-weight:700;fill:#000}.venn-circle{fill:transparent;stroke:#000;stroke-width:2}.venn-intersection{fill:#0000001a;transition:opacity .5s ease-in-out}.venn-analysis-text{padding:0 25px 20px;font-size:var(--font-size-base);line-height:1.6;color:var(--color-text-primary)}.manual-input-section{padding:10px 20px 20px}.manual-input-section label{display:block;font-weight:600;margin-bottom:10px;color:var(--color-text-secondary);font-size:var(--font-size-medium);max-width:500px;margin-left:auto;margin-right:auto}.manual-input-section textarea{width:100%;max-width:500px;min-height:75px;padding:var(--spacing-12);border:2px solid var(--color-border-gray);border-radius:var(--radius-medium);font-family:Crimson Text,serif;font-size:var(--font-size-base);line-height:1.5;resize:vertical;margin-bottom:15px;margin-left:auto;margin-right:auto;display:block;transition:border-color .3s ease}.manual-input-actions{display:flex;gap:10px;justify-content:flex-end;max-width:500px;margin-left:auto;margin-right:auto}.add-memory-popup{position:fixed;inset:0;background:var(--color-bg-overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:var(--z-modal-backdrop);opacity:0;transition:opacity var(--transition-slow) ease}.add-memory-popup.show{opacity:1}.add-memory-popup-content{background:var(--color-bg-white);border-radius:var(--radius-large);box-shadow:var(--shadow-large);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;transform:scale(.9);transition:transform var(--transition-slow) ease;overflow:hidden}.add-memory-popup.show .add-memory-popup-content{transform:scale(1)}.add-memory-header{background:var(--color-bg-tan);padding:var(--spacing-md) var(--spacing-20) 0 var(--spacing-20);border-radius:var(--radius-large) var(--radius-large) 0 0;display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--color-border-divider)}.add-memory-header h3{margin:2px 0 0;margin-bottom:var(--spacing-sm);padding-bottom:var(--spacing-medium);font-size:var(--font-size-large);font-weight:400;color:var(--color-text-primary)}.add-memory-close{background:none;border:none;font-size:var(--font-size-xlarge);color:var(--color-text-secondary);cursor:pointer;padding:0;width:var(--spacing-lg);height:var(--spacing-lg);display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all var(--transition-normal) ease;margin-bottom:var(--spacing-sm)}.add-memory-close:hover{background:#0000001a;color:var(--color-text-light)}.memory-tabs{display:flex;gap:4px;margin-left:auto;margin-right:16px}.memory-tab{background:#fff;border:1px solid var(--color-border-standard);border-bottom:none;border-radius:var(--radius-medium) 6px 0 0;padding:6px 16px;font-family:Crimson Text,serif;font-size:var(--font-size-base);font-weight:400;color:var(--color-text-muted);cursor:pointer;transition:all .2s ease;position:relative;min-width:90px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.memory-tab:hover{color:var(--color-text-secondary);background:#fff}.memory-tab.active{background:#fff;color:var(--color-primary);border-color:var(--color-border-divider);border-bottom-color:#fff;z-index:1;margin-bottom:-1px;padding-bottom:7px}.add-memory-form{padding:var(--spacing-20);display:flex;flex-direction:column;gap:16px;height:100%;overflow:hidden}#memoryUnits{flex:1;overflow-y:auto;overflow-x:hidden;padding-right:10px;margin-right:-10px;margin-bottom:16px;min-height:300px;max-height:300px}#memoryUnits::-webkit-scrollbar{width:8px}#memoryUnits::-webkit-scrollbar-track{background:var(--color-bg-light);border-radius:var(--radius-small)}#memoryUnits::-webkit-scrollbar-thumb{background:var(--color-border-medium);border-radius:var(--radius-small)}#memoryUnits::-webkit-scrollbar-thumb:hover{background:#aaa}.memory-unit{margin-bottom:20px}.memory-unit:last-child{margin-bottom:0}.form-toggle-buttons{display:flex;gap:8px;margin-top:8px;margin-bottom:12px}.btn-toggle-section,.btn-add-new{background:transparent;border:1px solid var(--color-border-medium);border-radius:var(--radius-small);padding:6px 12px;cursor:pointer;color:var(--color-primary);transition:all .2s ease;display:flex;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:var(--font-size-small);min-height:32px}.btn-toggle-section:hover,.btn-add-new:hover{border-color:var(--color-text-muted);background:var(--maroon-bg-light)}.btn-toggle-section:active,.btn-add-new:active{border-color:var(--color-text-light);background:var(--maroon-bg-medium);transform:translateY(1px)}.btn-toggle-section.active{border-color:var(--color-primary);background:var(--maroon-bg-medium)}.btn-toggle-section.save-btn{margin-left:auto}.breadcrumb-card-container{background:var(--color-bg-card);border:1px solid var(--beige-border);border-radius:var(--radius-medium);padding:var(--spacing-12);min-height:60px}.breadcrumb-inputs-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.breadcrumb-input-wrapper{display:flex;align-items:center;gap:12px}.breadcrumb-input{padding:8px 12px;border:1px solid var(--color-border-divider);border-radius:var(--radius-small);font-family:inherit;font-size:var(--font-size-base);background:#fff;min-width:120px}.breadcrumb-input::placeholder{font-style:italic;color:var(--color-border-medium)}.breadcrumb-separator{color:var(--color-text-muted);font-size:var(--font-size-xlarge);font-weight:400}.breadcrumb-add-btn{background:transparent;border:1px solid var(--color-text-muted);border-radius:var(--radius-small);padding:4px 8px;color:var(--color-text-muted);font-size:var(--font-size-medium);cursor:pointer;transition:all .2s ease;font-weight:400;min-width:28px;min-height:28px;display:flex;align-items:center;justify-content:center}.breadcrumb-add-btn:hover{border-color:var(--color-text-secondary);color:var(--color-text-secondary)}.breadcrumb-add-btn:active{border-color:var(--color-text-light);color:var(--color-text-light)}.form-group{margin-bottom:12px}.form-row{display:flex;align-items:flex-start;gap:12px}.form-row label{min-width:80px;font-size:var(--font-size-base);font-weight:400;color:var(--color-text-primary);padding-top:4px;flex-shrink:0;display:flex;align-items:center;gap:4px}.tooltip-wrapper{position:relative;display:inline-flex;margin-left:4px}.tooltip-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--color-text-muted);color:#fff;font-size:11px;font-weight:700;cursor:help;border:none;padding:0;flex-shrink:0;position:relative;z-index:1}.tooltip-popup-below{position:absolute;bottom:calc(100% + 5px);left:0;background:var(--color-text-light);color:#fff;padding:8px 12px;border-radius:var(--radius-small);font-size:var(--font-size-small);white-space:nowrap;z-index:100000;pointer-events:none;font-family:Crimson Text,serif;font-weight:400;box-shadow:0 2px 8px #0000004d}.tooltip-popup-below:before{content:"";position:absolute;top:100%;left:8px;border:5px solid transparent;border-top-color:var(--color-text-light)}.memory-input,.additional-context{flex:1;padding:var(--spacing-12);border:1px solid var(--color-border-divider);border-radius:var(--radius-medium);font-family:inherit;font-size:var(--font-size-base);line-height:1.5;background:#fff;transition:all .2s ease;box-sizing:border-box}.title-input-row{display:flex;align-items:center;gap:8px;margin-bottom:12px;width:100%}.memory-title-input,.memory-hashtags-input{flex:1;padding:6px 8px;border:1px solid var(--color-border-divider);border-radius:var(--radius-medium);font-family:inherit;font-size:var(--font-size-base);line-height:1.5;background:#fff;transition:all .2s ease;box-sizing:border-box}.memory-title-input{padding:8px 12px;border-radius:var(--radius-small)}.btn-generate-title{flex-shrink:0;background:#fff;border:1px solid var(--color-border-medium);border-radius:var(--radius-small);padding:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:var(--font-size-medium);transition:all .2s ease}.btn-generate-title:hover{border-color:var(--color-text-muted);background:var(--maroon-bg-subtle)}.btn-generate-title:active{border-color:var(--color-text-secondary);background:var(--maroon-bg-light);transform:translateY(1px)}.memory-title-input::placeholder,.memory-input::placeholder{font-style:italic;color:var(--color-border-medium)}.add-memory-popup .memory-input{width:100%;min-height:120px;resize:vertical}.add-memory-popup .additional-context{min-height:80px;resize:vertical}.draft-status,.backup-status{font-size:var(--font-size-small);color:#28a745;font-style:italic}.backup-status{color:#17a2b8;font-weight:500}.add-memory-actions{display:flex;justify-content:space-between;align-items:center;padding-top:16px;border-top:1px solid var(--color-border-divider);background:#fff;margin-top:auto;flex-shrink:0}.btn-trash{background:none;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);padding:6px 8px;cursor:pointer;color:var(--color-primary);transition:all .2s ease;display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px}.btn-trash:hover{background:#f8f8f8;border-color:var(--color-primary)}.btn-trash:active{background:var(--color-bg-light);transform:translateY(1px)}.btn-trash svg{opacity:.8}.btn-trash:hover svg{opacity:1}.btn-primary{background:var(--color-primary);color:#fff;border:none;padding:10px 20px;border-radius:var(--radius-medium);font-size:var(--font-size-base);font-weight:500;cursor:pointer;transition:all .2s ease;font-family:Crimson Text,serif}.btn-primary:active{transform:translateY(1px)}.modal-overlay{z-index:10001!important;opacity:1!important}.settings-modal{background:#faf8e9;border-radius:12px;box-shadow:0 8px 32px #0003;width:90%;max-width:600px;max-height:80vh;display:flex;flex-direction:column;font-family:Crimson Text,serif}.settings-content{flex:1;overflow-y:auto;padding:24px}.settings-section{margin-bottom:32px}.settings-section:last-child{margin-bottom:0}.settings-section h3{margin:0 0 16px;color:#666;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.settings-option{width:100%;background:#fff;border:1px solid #e0d8c0;border-radius:8px;padding:16px;margin-bottom:12px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:all .2s ease;font-family:Crimson Text,serif;text-align:left}.settings-option:hover{background:#f5f3e8;border-color:#d0c8b0;transform:translate(2px)}.settings-option:last-child{margin-bottom:0}.option-icon{font-size:24px;flex-shrink:0}.option-details{flex:1;min-width:0}.option-label{font-size:18px;font-weight:600;color:#2f4f4f;margin-bottom:4px}.option-description{font-size:14px;color:#666;line-height:1.4}.option-arrow{font-size:24px;color:#999;flex-shrink:0}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:10001;opacity:1!important}.recently-deleted-modal{background:#faf8e9;border-radius:12px;box-shadow:0 8px 32px #0003;width:90%;max-width:800px;max-height:80vh;display:flex;flex-direction:column;font-family:Crimson Text,serif}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:2px solid #e0d8c0}.modal-header h2{margin:0;color:#2f4f4f;font-size:28px;font-weight:600}.close-button{background:none;border:none;font-size:32px;color:#666;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:color .2s ease}.close-button:hover{color:#2f4f4f}.empty-trash-message{padding:60px 24px;text-align:center;color:#666}.empty-trash-message p{margin:0 0 8px;font-size:18px}.empty-trash-message .help-text{font-size:14px;color:#999}.trash-actions{padding:16px 24px;border-bottom:1px solid #e0d8c0;display:flex;justify-content:space-between;align-items:center}.trash-count{margin:0;color:#666;font-size:16px}.empty-trash-button{background:#dc3545;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-family:Crimson Text,serif;font-size:16px;cursor:pointer;transition:background-color .2s ease}.empty-trash-button:hover{background:#c82333}.confirm-empty{display:flex;align-items:center;gap:12px}.warning-text{color:#dc3545;font-size:14px;font-weight:600}.confirm-button{background:#dc3545;color:#fff;border:none;padding:6px 12px;border-radius:4px;font-family:Crimson Text,serif;font-size:14px;cursor:pointer}.confirm-button:hover{background:#c82333}.cancel-button{background:#6c757d;color:#fff;border:none;padding:6px 12px;border-radius:4px;font-family:Crimson Text,serif;font-size:14px;cursor:pointer}.cancel-button:hover{background:#5a6268}.deleted-memories-list{flex:1;overflow-y:auto;padding:16px 24px}.deleted-memory-item{background:#fff;border:1px solid #e0d8c0;border-radius:8px;padding:16px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:16px}.memory-preview{flex:1;min-width:0}.deleted-date{margin-top:8px;font-size:12px;color:#999;font-style:italic}.memory-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.restore-button{background:#28a745;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-family:Crimson Text,serif;font-size:14px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease}.restore-button:hover{background:#218838}.permanent-delete-button{background:#dc3545;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-family:Crimson Text,serif;font-size:14px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease}.permanent-delete-button:hover{background:#c82333}.constellation-header{padding:16px 20px 0;background:var(--color-bg-tan);border-bottom:1px solid var(--color-border-divider)}.constellation-tabs{display:flex;gap:var(--spacing-xs);justify-content:flex-end}.constellation-tabs .tab{background:var(--color-bg-white);border:1px solid var(--color-border-standard);border-bottom:none;border-radius:var(--radius-medium) var(--radius-medium) 0 0;padding:6px 12px;font-family:var(--font-family-primary);font-size:var(--font-size-base);font-weight:400;color:var(--color-text-muted);cursor:pointer;transition:all var(--transition-normal);position:relative;min-width:70px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.constellation-tabs .tab:hover:not(.active){color:var(--color-text-secondary);background:var(--color-bg-white)}.constellation-tabs .tab.active{background:var(--color-bg-white);color:var(--color-primary);border-color:var(--color-border-divider);border-bottom-color:var(--color-bg-white);z-index:1;margin-bottom:-1px;padding-bottom:7px}.constellation-content{min-height:100%;cursor:default}.select-content,.networks-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.network-item{background:#191970;border:2px solid transparent;border-radius:var(--radius-large);padding:var(--spacing-md);cursor:pointer;transition:all var(--transition-normal)}.network-item.selected{border-color:var(--color-accent-gold);box-shadow:0 0 12px #ffd7004d}.mini-constellation{display:block;margin:0 auto var(--spacing-md);background:#191970;border-radius:var(--radius-small);max-width:100%;height:auto}.network-save-controls{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-md)}.name-input{flex:1;padding:var(--spacing-sm);border:1px solid var(--color-border-standard);border-radius:var(--radius-small);font-size:var(--font-size-small);font-family:var(--font-family-primary);transition:border-color var(--transition-normal)}.btn-save{background:none;border:1px solid var(--color-border-light);border-radius:var(--radius-small);padding:6px 8px;cursor:pointer;color:var(--color-primary);transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;font-size:var(--font-size-small);font-weight:600}.btn-save:hover:not(:disabled){background:var(--color-bg-card);border-color:var(--color-primary)}.btn-save:disabled{opacity:.4;cursor:not-allowed}.load-content,.saved-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.saved-item{background:#191970;border:2px solid var(--color-border-primary);border-radius:var(--radius-large);padding:var(--spacing-md);cursor:pointer;transition:all var(--transition-normal)}.saved-item.selected{border-color:var(--color-primary);box-shadow:0 0 12px #80002033}.saved-name{text-align:center;font-size:var(--font-size-base);font-weight:600;color:#fff;margin-top:var(--spacing-sm)}.saved-actions{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-md)}.btn-load{flex:1;padding:var(--spacing-sm);background:var(--color-primary);color:var(--color-text-white);border:none;border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-small);font-weight:600;transition:all var(--transition-normal)}.btn-load:hover{background:var(--color-primary-hover)}.btn-delete{padding:var(--spacing-sm) var(--spacing-md);background:var(--color-error);color:var(--color-text-white);border:none;border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-small);transition:all var(--transition-normal)}.btn-delete:hover{background:#c82333}.no-constellations{text-align:center;color:var(--color-text-muted);padding:40px 20px;font-size:var(--font-size-base)}.pin-edit-modal .modal-content{max-width:500px}.pin-edit-subtitle{margin:0 0 15px;color:var(--color-text-secondary);font-size:var(--font-size-base)}.pin-edit-input{width:100%;padding:var(--spacing-10);border:1px solid var(--color-border-medium);border-radius:var(--radius-small);font-family:Crimson Text,serif;font-size:var(--font-size-base);box-sizing:border-box}.pin-edit-input:focus{outline:none;border-color:var(--focus-border-color);box-shadow:var(--focus-shadow)}.pin-edit-buttons{display:flex;gap:10px;justify-content:flex-end}.pin-edit-buttons .btn-secondary{padding:8px 20px;background:var(--color-bg-white);border:1px solid var(--color-border-medium);border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;transition:background .2s ease}.pin-edit-buttons .btn-secondary:hover{background:var(--color-bg-tan);border-color:var(--color-border-dark)}.pin-edit-buttons .btn-primary{padding:8px 20px;background:var(--color-primary);color:#fff;border:1px solid var(--color-primary);border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;transition:background .2s ease}.pin-edit-buttons .btn-primary:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.pin-grid{pointer-events:none;opacity:.8}.pin-grid .grid-lines line{stroke:#999;stroke-width:.5}.pin-grid .grid-axes line{stroke:#000;stroke-width:2;stroke-dasharray:8 4}.pin-grid .grid-axes polygon{fill:#000}.dropdown-container{position:relative;display:inline-block;overflow:visible}.dropdown-container.disabled{opacity:.4;pointer-events:none;cursor:not-allowed}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1100;min-width:200px;margin-top:4px;background:var(--color-bg-white);border:1px solid var(--color-border-divider);border-radius:var(--radius-medium);box-shadow:var(--shadow-medium);overflow:hidden;animation:dropdownSlide var(--transition-fast) ease-out}.dropdown-menu:before{content:"";position:absolute;top:-20px;left:-10px;right:-10px;height:24px}.dropdown-menu-right{left:auto;right:-1px}@keyframes dropdownSlide{0%{opacity:0;transform:translateY(calc(-1 * var(--spacing-sm)))}to{opacity:1;transform:translateY(0)}}.dropdown-item{display:flex;align-items:center;width:100%;padding:var(--spacing-10) var(--spacing-md);border:none;background:none;color:var(--color-text-light);font-size:var(--font-size-base);text-align:left;cursor:pointer;transition:background-color var(--transition-fast)}.dropdown-item:hover:not(.disabled){background-color:var(--color-bg-light)}.dropdown-item.active{background-color:#e8f4f8;color:#06c}.dropdown-item.disabled{opacity:.5;cursor:not-allowed}.dropdown-item-icon{margin-right:var(--spacing-12);font-size:var(--font-size-medium);display:inline-flex;align-items:center;justify-content:center;width:var(--spacing-20);color:var(--color-text-secondary)}.dropdown-item-label{flex:1;color:inherit}.dropdown-item-shortcut{margin-left:var(--spacing-20);opacity:.6;font-size:var(--font-size-small);color:var(--color-text-muted)}.dropdown-separator{height:1px;margin:var(--spacing-xs) 0;background-color:var(--color-border-divider)}@media (prefers-color-scheme: dark){.dropdown-menu{background:#2a2a2a;border-color:#444}.dropdown-item{color:var(--color-border-gray)}.dropdown-item:hover:not(.disabled){background-color:#383838}.dropdown-item.active{background-color:#1a3a4a;color:#4a9eff}.dropdown-separator{background-color:#444}}.header-dropdown-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-medium) var(--spacing-10);background:transparent;border:none;border-radius:var(--radius-medium);color:var(--color-text-primary);font-size:var(--font-size-medium);cursor:pointer;transition:all var(--transition-normal)}.header-dropdown-btn:hover{background:#2f4f4f0d}.header-dropdown-btn.active{background:#2f4f4f1a}.header-dropdown-btn svg{width:var(--spacing-md);height:var(--spacing-md)}.dropdown-arrow{transition:transform var(--transition-normal)}.header-dropdown-btn.active .dropdown-arrow{transform:rotate(180deg)}.header-dropdown .dropdown-menu{margin-top:2px;min-width:220px;z-index:1100}@media (max-width: 768px){.app-header{padding:6px 15px}}.tabbed-sidebar-header{flex-shrink:0;padding:6px 15px 0;background:#fafafa;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;border-bottom:none}.search-toggle-btn{background:none;border:none;padding:6px;cursor:pointer;color:var(--color-text-muted);transition:all .2s ease;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);margin-bottom:7px}.search-toggle-btn:hover{color:var(--color-text-secondary);background:#0000000d}.search-toggle-btn.active{color:var(--color-primary)}.sidebar-tabs{display:flex;gap:4px;margin-left:auto;margin-bottom:-1px}.sidebar-tab{background:#f5f5f5;border:1px solid var(--color-border-gray);border-bottom:1px solid var(--color-border-gray);border-radius:var(--radius-medium) var(--radius-medium) 0 0;padding:6px 12px 7px;font-family:Crimson Text,serif;font-size:var(--font-size-base);font-weight:400;color:var(--color-text-muted);cursor:pointer;transition:all .2s ease;position:relative;text-align:center;-webkit-font-smoothing:antialiased;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:6px}.sidebar-tab:hover{color:var(--color-text-secondary);background:#fafafa}.sidebar-tab.active{background:#fff;color:var(--color-text-secondary);border-color:var(--color-border-gray);border-bottom-color:#fff;z-index:2;padding-bottom:8px;padding-left:16px;padding-right:16px}.tab-icon{display:flex;align-items:center;justify-content:center;line-height:1}.tab-label{line-height:1}.tabbed-sidebar-content{flex:1;overflow-y:auto;display:flex;flex-direction:column;background:#fff;border-top:1px solid var(--color-border-gray);position:relative;z-index:1}.tabbed-sidebar-content .sidebar{border-left:none;background:transparent}.tabbed-sidebar-content .memory-list{padding-top:0}.tabbed-sidebar-static-spacer{flex-shrink:0;padding:8px 15px;background:#fff;display:flex;align-items:center;position:sticky;top:0;z-index:1}.tabbed-sidebar-static-spacer.has-content{padding:10px 15px}.sidebar.has-filter .sidebar-tab.active{border-bottom-color:var(--color-border-gray)}.library-filter-indicator{display:flex;align-items:center;justify-content:center;width:100%;position:relative}.library-filter-name{font-family:Crimson Text,serif;font-size:14px;font-weight:600;color:#800020}.library-filter-clear{position:absolute;right:0;background:none;border:none;padding:4px;cursor:pointer;color:var(--color-text-muted);display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all .2s ease}.library-filter-clear:hover{color:var(--color-text-secondary);background:#0000000d}.library-card-header{margin-bottom:12px}.library-card-header-top{display:flex;align-items:center;gap:10px;margin-bottom:8px;color:#4a4a4a;padding-left:0}.library-card-header-top svg{margin-top:-2px;flex-shrink:0}.library-card-divider{height:1px;background:var(--color-border-gray);margin:0 4px}.library-card-title{font-size:var(--font-size-large);font-weight:600;color:#2f4f4f;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.library-lock-btn{background:none;border:none;padding:0;margin-left:auto;flex-shrink:0;cursor:pointer;display:flex;align-items:center;justify-content:center}.library-lock-btn:hover .library-lock-icon{color:#800020;transform:scale(1.1)}.library-lock-icon{margin-left:auto;flex-shrink:0;transition:all .2s ease}.library-card-description{color:var(--color-text-secondary);font-size:var(--font-size-base);line-height:1.4;margin-bottom:15px;max-height:2.8em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.library-memory-count{min-height:36px;height:36px;margin-top:auto;margin-bottom:8px;overflow:hidden;white-space:nowrap}.memory-squares{display:inline-flex;gap:2px;align-items:center;flex-wrap:nowrap}.memory-square{font-size:28px;color:#bbb;line-height:1;margin:0 -2px}.memory-square-spacer{width:2px}.memory-count-overflow{font-size:11px;color:#999;margin-left:6px}.library-search-terms{display:flex;gap:6px;flex-wrap:nowrap;align-items:center;margin-top:auto;min-height:24px;height:24px;overflow:hidden;white-space:nowrap}.library-search-terms .hashtag.exclude{background:#ffe5e5;color:#c62828}.library-search-terms .operator{font-family:Courier Prime,monospace;font-size:9px;color:#999;font-weight:500;padding:0 2px}.playground-modal-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:1000}.playground-modal-content{width:90vw;height:80vh;background:#fff;border:3px solid var(--color-accent-crimson);outline:4px solid #f5f5dc;border-radius:var(--radius-large);display:flex;flex-direction:column;box-shadow:0 10px 25px #0000004d;overflow:hidden}.playground-header{background:#faf8ea;padding:16px 20px;border-bottom:1px solid var(--color-border-divider);display:flex;align-items:center;justify-content:space-between}.playground-header h2{margin:0;font-size:20px;font-weight:600;color:var(--color-text-primary);font-family:Crimson Text,serif}.playground-header-controls{display:flex;align-items:center;gap:8px}.header-icon-btn{background:none;border:none;color:var(--color-text-secondary);cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all .2s ease}.header-icon-btn:hover{background:#0000001a;color:var(--color-primary)}.playground-header .modal-close{background:none;border:none;font-size:28px;color:var(--color-text-secondary);cursor:pointer;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all .2s ease}.playground-header .modal-close:hover{background:#0000001a;color:var(--color-text-light)}.playground-canvas-container{flex:1;overflow:auto;position:relative;background:#fff}.playground-canvas-container::-webkit-scrollbar{width:10px;height:10px}.playground-canvas-container::-webkit-scrollbar-track{background:var(--color-bg-light);border-radius:var(--radius-small)}.playground-canvas-container::-webkit-scrollbar-thumb{background:var(--color-border-medium);border-radius:var(--radius-small)}.playground-canvas-container::-webkit-scrollbar-thumb:hover{background:#aaa}.playground-canvas{position:relative;background:#fff;min-height:100%}.central-hashtag{position:absolute;top:40px;left:50%;transform:translate(-50%);border-radius:50px;padding:12px 32px;border:3px solid var(--color-accent-crimson);background:var(--crimson-bg-medium);color:#fff;font-family:Crimson Text,serif;font-weight:700;font-size:20px;text-align:center;cursor:context-menu;z-index:10;-webkit-user-select:none;user-select:none;box-shadow:0 2px 8px #00000026}.playground-memory-card{position:absolute;width:200px;background:var(--beige-primary);border:.5px solid var(--color-border-gray);border-radius:var(--radius-large);padding:var(--spacing-md);box-shadow:0 2px 8px #0000001a;cursor:grab;transition:box-shadow .2s ease;-webkit-user-select:none;user-select:none;font-family:Crimson Text,serif}.playground-memory-card:hover:not(.dragging){box-shadow:0 4px 12px #00000026;transform:translateY(-1px);background:#f5f2e0;border-color:var(--color-border-medium)}.playground-memory-card.dragging{cursor:grabbing;box-shadow:0 8px 24px #0000004d;opacity:.9;z-index:100;pointer-events:none;will-change:transform}.playground-memory-card .memory-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:8px}.playground-memory-card .memory-title{font-weight:600;font-size:var(--font-size-base);color:var(--color-text-primary);line-height:1.3;word-wrap:break-word}.playground-memory-card .memory-content{font-size:13px;line-height:1.4;color:#4a4a4a;margin-bottom:10px;word-wrap:break-word}.playground-memory-card .memory-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.playground-context-menu{position:fixed;background:#fff;border:1px solid var(--color-border-medium);border-radius:var(--radius-small);box-shadow:0 4px 16px #0003;z-index:3000;min-width:180px;font-family:Crimson Text,serif}.context-menu-item{padding:10px 16px;cursor:pointer;font-size:var(--font-size-base);color:var(--color-text-primary);transition:background .2s ease}.context-menu-item:first-child{border-radius:var(--radius-small) 4px 0 0}.context-menu-item:last-child{border-radius:0 0 4px 4px}.add-playground-memory-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:2000}.add-playground-memory-modal{background:#fff;border:2px solid var(--color-primary);border-radius:var(--radius-large);box-shadow:0 10px 32px #0006;width:90%;max-width:500px;max-height:600px;display:flex;flex-direction:column;font-family:Crimson Text,serif}.add-playground-memory-modal .modal-header{background:#faf8ea;padding:16px 20px;border-radius:var(--radius-large) 8px 0 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--color-border-divider)}.add-playground-memory-modal .modal-header h3{margin:0;font-size:var(--font-size-large);font-weight:600;color:var(--color-text-primary)}.add-playground-memory-modal .modal-close{background:none;border:none;font-size:var(--font-size-xlarge);color:var(--color-text-secondary);cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-small);transition:all .2s ease}.add-playground-memory-modal .modal-close:hover{background:#0000001a;color:var(--color-text-light)}.add-playground-memory-modal .modal-body{padding:var(--spacing-20);display:flex;flex-direction:column;gap:12px;flex:1}.add-playground-memory-modal textarea{width:100%;padding:var(--spacing-12);border:1px solid var(--color-border-divider);border-radius:var(--radius-medium);font-family:Crimson Text,serif;font-size:var(--font-size-base);line-height:1.5;background:#fff;resize:vertical;min-height:200px;transition:all .2s ease}.central-hashtag-notice{font-size:var(--font-size-small);color:var(--color-text-secondary);font-style:italic}.add-playground-memory-modal .modal-footer{padding:16px 20px;border-top:1px solid var(--color-border-divider);background:#fff;display:flex;gap:12px;justify-content:flex-end}.add-playground-memory-modal .btn-save{background:var(--color-primary);color:#fff;border:none;padding:10px 20px;border-radius:var(--radius-medium);font-size:var(--font-size-base);font-weight:500;cursor:pointer;transition:all .2s ease;font-family:Crimson Text,serif}.add-playground-memory-modal .btn-save:hover{background:var(--color-primary-hover)}.add-playground-memory-modal .btn-cancel{background:#e8e8e8;color:var(--color-text-secondary);border:1px solid var(--color-border-medium);padding:10px 20px;border-radius:var(--radius-medium);font-size:var(--font-size-base);cursor:pointer;transition:all .2s ease;font-family:Crimson Text,serif}.add-playground-memory-modal .btn-cancel:hover{background:var(--color-border-standard);color:var(--color-text-primary)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body{margin:0;padding:0;overflow:hidden}#root{height:100vh;width:100vw;overflow:hidden}.app-navigation{display:none;position:fixed;top:0;left:0;right:0;background:var(--color-primary);padding:12px 24px;gap:24px;z-index:10000;box-shadow:0 2px 8px #0003}.nav-link{color:#fff;text-decoration:none;padding:8px 16px;border-radius:var(--radius-small);transition:all .2s;font-family:Crimson Text,serif;font-size:var(--font-size-medium);font-weight:600}.nav-link:hover{background:#ffffff1a}.app-wrapper{height:100vh;overflow:visible}.app-wrapper>div{height:100%}.App{height:100vh;width:100vw;display:flex;flex-direction:column;background:var(--color-bg-card);overflow:visible;position:relative;margin-top:0}.app-header{flex-shrink:0;padding:8px 30px;background:var(--beige-primary);border-bottom:1px solid var(--color-border-gray);color:var(--color-text-primary);box-shadow:none;z-index:1000;min-height:auto;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:visible}.header-left{display:flex;align-items:center;gap:12px;flex:1}.header-center{display:flex;align-items:center;justify-content:center;flex:1}.board-name-display{margin:0;font-family:Crimson Text,serif;font-size:var(--font-size-xlarge);font-weight:400;color:var(--color-primary-hover)}.back-btn{background:none;border:none;padding:2px 4px;cursor:pointer;color:var(--color-primary);transition:all .3s ease;text-decoration:none;display:flex;align-items:center;justify-content:center}.back-btn:hover{color:var(--color-primary-hover);transform:scale(1.05)}.header-right{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end;overflow:visible}.app-header h1{margin:0;font-family:Crimson Text,serif;font-size:var(--font-size-xlarge);color:var(--color-primary);font-weight:400}.view-toggle-btn{background:none;color:var(--color-primary);border:1px solid var(--color-border-light);padding:6px 8px;border-radius:var(--radius-small);cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;transition:all .2s ease;outline:none}.view-toggle-btn:hover{background:var(--color-bg-card);border-color:var(--color-primary)}.view-toggle-btn:focus{outline:none}.view-toggle-btn svg{opacity:.8}.view-toggle-btn:hover svg{opacity:1}.opacity-toggle-btn,.insights-toggle-btn{background:none;color:var(--color-primary);border:1px solid var(--color-border-light);padding:6px 8px;border-radius:var(--radius-small);cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;transition:all .2s ease;outline:none}.opacity-toggle-btn:hover,.insights-toggle-btn:hover{background:var(--color-bg-card);border-color:var(--color-primary)}.opacity-toggle-btn:focus,.insights-toggle-btn:focus{outline:none}.opacity-toggle-btn svg,.insights-toggle-btn svg{opacity:.8}.opacity-toggle-btn:hover svg,.insights-toggle-btn:hover svg{opacity:1}.opacity-toggle-btn.active,.insights-toggle-btn.active{background:var(--beige-border);color:#fff;border-color:var(--beige-border)}.opacity-toggle-btn.active svg,.insights-toggle-btn.active svg{opacity:1}.opacity-toggle-btn.active:hover,.insights-toggle-btn.active:hover{background:#b88585}.board-dropdown-btn .board-name{flex:1;text-align:left;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-dropdown-btn .dropdown-arrow{transition:transform .2s ease;opacity:.7}.board-dropdown-btn:hover .dropdown-arrow{opacity:1}.board-dropdown-menu{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:1px solid var(--color-border-standard);border-radius:var(--radius-large);box-shadow:0 4px 16px #00000026;z-index:999999;min-width:280px;font-family:Crimson Text,serif;overflow:visible}.board-dropdown-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--color-bg-card);border-bottom:1px solid var(--color-border-gray)}.board-dropdown-header h3{margin:0;font-size:var(--font-size-medium);color:var(--color-primary);font-weight:600}.board-dropdown-close{background:none;border:none;font-size:var(--font-size-xlarge);color:var(--color-text-secondary);cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;transition:color .2s ease}.board-dropdown-close:hover{color:var(--color-primary)}.board-dropdown-content{padding:8px 0}.board-dropdown-item{width:100%;background:none;border:none;padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-base);color:var(--color-text-light);text-align:left;transition:all .2s ease}.board-dropdown-item:hover{background:#f8f8f8}.board-dropdown-item svg{flex-shrink:0;opacity:.7}.board-dropdown-item:hover svg{opacity:1}.board-dropdown-item.danger{color:#d32f2f}.board-dropdown-item.danger:hover{background:#ffebee}.board-dropdown-item.danger svg{color:#d32f2f}.board-dropdown-divider{height:1px;background:var(--color-border-gray);margin:8px 0}.app-header p{margin:5px 0 0;font-family:Courier Prime,monospace;font-size:var(--font-size-small);color:var(--color-text-secondary)}.app-layout{flex:1;display:flex;flex-direction:row;overflow:hidden;min-height:0;width:100%}.sidebar-wrapper{width:300px;flex-shrink:0;position:relative;transition:width .3s ease;z-index:10;overflow:visible}.sidebar-wrapper.closed{width:0}.sidebar{width:100%;background:#fff;border-left:1px solid var(--color-border-gray);display:flex;flex-direction:column;height:100%;overflow:visible}.sidebar-toggle-tab{position:absolute;right:300px;top:45px;width:20px;height:30px;max-height:30px;min-height:30px;background:#fff;border:1px solid var(--color-border-gray);border-right:1px solid #FFFFFF;border-radius:var(--radius-small) 0 0 4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;z-index:11;padding:0!important;margin:0!important;color:transparent;outline:none!important;box-sizing:border-box!important;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-shrink:0}.sidebar-toggle-tab svg{width:12px;height:12px;flex-shrink:0}.sidebar-toggle-tab *{outline:none!important}.sidebar-toggle-tab:hover{width:30px!important;max-width:30px!important;min-width:30px!important;height:30px!important;max-height:30px!important;min-height:30px!important;color:var(--color-border-medium);outline:none!important;border:1px solid var(--color-border-gray);border-right:1px solid #FFFFFF;line-height:1!important}.sidebar-toggle-tab:focus{outline:none!important}.sidebar-toggle-tab:active{outline:none!important}.sidebar-toggle-tab:focus-visible{outline:none!important}.sidebar-wrapper.closed .sidebar-toggle-tab{width:20px;left:-20px;right:auto}.sidebar-wrapper.closed .sidebar-toggle-tab:hover{width:30px;left:-30px}.sidebar-header{flex-shrink:0;padding:12px 15px;border-bottom:1px solid var(--color-border-gray);background:#fafafa;color:var(--color-text-primary)}.sidebar-header h2{margin:0 0 5px;font-family:Crimson Text,serif;font-size:var(--font-size-medium);color:var(--color-primary);font-weight:400}.memory-count{margin:0 0 15px;font-family:Courier Prime,monospace;font-size:var(--font-size-small);color:var(--color-text-secondary)}.search-input{width:100%;padding:var(--spacing-10);border:none;border-radius:var(--radius-medium);background:var(--color-bg-card);color:var(--color-text-light);font-size:.9rem}.search-input::placeholder{color:var(--color-text-muted)}.sidebar-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:15px;display:flex;flex-direction:column;min-height:0}.empty-state{color:var(--color-text-muted);text-align:center;padding:40px 20px;font-style:italic}.draggable-memory{cursor:grab;-webkit-user-select:none;user-select:none}.draggable-memory:active{cursor:grabbing}.draggable-memory.dragging{opacity:.6;transform:rotate(2deg)}.header-controls{display:flex;gap:10px;align-items:center}.btn-scatter,.btn-undo,.btn-redo{background:none;border:1px solid var(--color-border-light);color:var(--color-primary);padding:6px 12px;border-radius:var(--radius-small);cursor:pointer;transition:all .2s;font-size:.9rem;display:flex;align-items:center;gap:6px}.btn-scatter:hover,.btn-undo:hover:not(:disabled),.btn-redo:hover:not(:disabled){background:var(--color-bg-card);border-color:var(--color-primary)}.btn-scatter svg,.btn-view-toggle svg{fill:var(--color-primary);opacity:.8}.btn-scatter:hover svg,.btn-view-toggle:hover svg{opacity:1}.btn-view-toggle{background:none;border:1px solid var(--color-border-light);color:var(--color-primary);padding:6px 12px;border-radius:var(--radius-small);cursor:pointer;transition:all .2s;font-size:.9rem;display:flex;align-items:center;gap:6px}.btn-view-toggle:hover{background:var(--color-bg-card);border-color:var(--color-primary)}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:2000}.modal-content{background:var(--color-bg-card);border-radius:12px;padding:30px;max-width:500px;width:90%;max-height:80vh;overflow-y:auto;position:relative;box-shadow:0 10px 40px #0000004d}.modal-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:2rem;color:#999;cursor:pointer;transition:color .2s ease}.board-manager{position:fixed;bottom:20px;left:20px;background:var(--color-bg-card);border:1px solid var(--color-border-light);border-radius:var(--radius-large);padding:15px;z-index:100;max-width:250px}.board-actions{margin-bottom:15px}.btn-save-board{background:var(--color-primary);color:var(--color-bg-card);padding:8px 16px;border:none;border-radius:var(--radius-medium);cursor:pointer;transition:all .2s;width:100%}.btn-save-board:hover{background:var(--color-button-destructive)}.save-dialog{display:flex;gap:5px;margin-bottom:15px}.save-dialog input{flex:1;padding:6px;border:1px solid var(--color-border-light);border-radius:var(--radius-small)}.save-dialog button{padding:6px 12px;background:var(--color-primary);color:var(--color-bg-card);border:none;border-radius:var(--radius-small);cursor:pointer}.saved-boards h3{color:var(--color-primary);font-size:.9rem;margin-bottom:10px}.boards-list{max-height:200px;overflow-y:auto}.board-item{display:flex;justify-content:space-between;align-items:center;padding:6px;margin-bottom:5px;background:#8000200d;border-radius:var(--radius-small);cursor:pointer;transition:background .2s}.board-item:hover{background:#8000201a}.board-item span{flex:1;font-size:.85rem;color:#444}.delete-board{background:none;border:none;color:var(--color-primary);font-size:1.2rem;cursor:pointer;padding:0 5px;transition:transform .2s}.delete-board:hover{transform:scale(1.2)}.add-memory-btn{background:var(--color-primary);color:#fff;border:none;padding:8px 16px;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-base);transition:all .2s ease;display:flex;align-items:center;gap:8px;margin-bottom:12px}.add-memory-btn:hover{background:var(--color-button-destructive)}.add-memory-btn svg{width:16px;height:16px}.App{background:#fff;font-family:Crimson Text,serif;height:100vh;width:100vw;display:flex;flex-direction:column;overflow:visible;position:relative}.app-header{background:var(--beige-primary);padding:8px 30px;border-bottom:1px solid var(--color-border-gray);min-height:auto;box-shadow:none;overflow:visible;z-index:1000;position:relative}.app-header h1{font-size:var(--font-size-xlarge);color:var(--color-primary);font-weight:400}.sidebar-header{padding:12px 15px;border-bottom:1px solid var(--color-border-gray);background:#fafafa;flex-shrink:0}.sidebar-header h2,.sidebar-header h3{font-size:var(--font-size-medium);color:var(--color-primary);margin-bottom:5px;font-weight:400}.sidebar-header.search-active{padding-bottom:20px}.sidebar-header-top{display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:0}.scatter-memories-btn,.undo-btn,.reset-view-btn,.constellation-btn,.manage-constellations-btn,.search-toggle-btn,.standalone-pin-btn,.add-memory-btn-icon,.back-btn-sidebar,.view-toggle-btn-sidebar,.opacity-toggle-btn-sidebar,.insights-toggle-btn-sidebar,.board-dropdown-btn-sidebar{background:none;border:1px solid var(--color-border-light);border-radius:var(--radius-small);padding:6px 8px;cursor:pointer;color:var(--color-primary);transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;text-decoration:none;outline:none}.scatter-memories-btn:hover,.undo-btn:hover:not(:disabled),.reset-view-btn:hover,.constellation-btn:hover,.manage-constellations-btn:hover,.search-toggle-btn:hover,.standalone-pin-btn:hover,.add-memory-btn-icon:hover,.back-btn-sidebar:hover,.view-toggle-btn-sidebar:hover,.opacity-toggle-btn-sidebar:hover,.insights-toggle-btn-sidebar:hover,.board-dropdown-btn-sidebar:hover{background:var(--color-bg-card);border-color:var(--color-primary)}.scatter-memories-btn:focus,.undo-btn:focus,.reset-view-btn:focus,.constellation-btn:focus,.manage-constellations-btn:focus,.search-toggle-btn:focus,.standalone-pin-btn:focus,.add-memory-btn-icon:focus,.back-btn-sidebar:focus,.view-toggle-btn-sidebar:focus,.opacity-toggle-btn-sidebar:focus,.insights-toggle-btn-sidebar:focus,.board-dropdown-btn-sidebar:focus{outline:none}.scatter-memories-btn:active,.undo-btn:active:not(:disabled),.reset-view-btn:active,.constellation-btn:active,.manage-constellations-btn:active,.search-toggle-btn:active,.standalone-pin-btn:active,.add-memory-btn-icon:active,.back-btn-sidebar:active,.view-toggle-btn-sidebar:active,.opacity-toggle-btn-sidebar:active,.insights-toggle-btn-sidebar:active,.board-dropdown-btn-sidebar:active{background:var(--color-bg-light);transform:translateY(1px)}.constellation-btn.active,.view-toggle-btn-sidebar.active,.opacity-toggle-btn-sidebar.active,.insights-toggle-btn-sidebar.active,.board-dropdown-btn-sidebar.active{background:var(--color-border-primary);color:var(--color-text-white);border-color:var(--color-border-primary)}.constellation-btn.active:hover,.view-toggle-btn-sidebar.active:hover,.opacity-toggle-btn-sidebar.active:hover,.insights-toggle-btn-sidebar.active:hover,.board-dropdown-btn-sidebar.active:hover{background:var(--color-primary-light)}.scatter-memories-btn svg,.undo-btn svg,.reset-view-btn svg,.constellation-btn svg,.manage-constellations-btn svg,.search-toggle-btn svg,.standalone-pin-btn svg,.add-memory-btn-icon svg,.back-btn-sidebar svg,.view-toggle-btn-sidebar svg,.opacity-toggle-btn-sidebar svg,.insights-toggle-btn-sidebar svg,.board-dropdown-btn-sidebar svg{opacity:.8}.constellation-btn img{opacity:.8;filter:brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%)}.scatter-memories-btn:hover svg,.undo-btn:hover:not(:disabled) svg,.reset-view-btn:hover svg,.constellation-btn:hover svg,.manage-constellations-btn:hover svg,.search-toggle-btn:hover svg,.standalone-pin-btn:hover svg,.add-memory-btn-icon:hover svg,.back-btn-sidebar:hover svg,.view-toggle-btn-sidebar:hover svg,.opacity-toggle-btn-sidebar:hover svg,.insights-toggle-btn-sidebar:hover svg,.board-dropdown-btn-sidebar:hover svg{opacity:1}.constellation-btn:hover img{opacity:1}.constellation-btn.active svg,.view-toggle-btn-sidebar.active svg,.opacity-toggle-btn-sidebar.active svg,.insights-toggle-btn-sidebar.active svg,.board-dropdown-btn-sidebar.active svg{opacity:1}.constellation-btn.active img{opacity:1;filter:brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%);transform:scale(1.1)}.search-toggle-btn svg{fill:var(--color-primary)}.constellation-btn.active svg{fill:#fff!important;opacity:1}.undo-btn:disabled,.scatter-memories-btn:disabled,.standalone-pin-btn:disabled,.add-memory-btn-icon:disabled,.search-toggle-btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.undo-btn:disabled:hover,.scatter-memories-btn:disabled:hover,.standalone-pin-btn:disabled:hover,.add-memory-btn-icon:disabled:hover,.search-toggle-btn:disabled:hover{background:none;border-color:var(--beige-border)}.sidebar-search{padding:12px 15px;border-bottom:1px solid var(--color-border-gray);background:#fafafa;flex-shrink:0}.sidebar-search-header{display:flex;align-items:center;gap:8px}.close-search-bar-btn{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--color-text-muted);padding:6px;display:flex;align-items:center;justify-content:center;transition:color .2s ease,background-color .2s ease;border-radius:var(--radius-small)}.close-search-bar-btn:hover{color:var(--color-text-secondary);background-color:#0000000d}.search-input-container{position:relative;margin-bottom:0}.search-input-container input{width:100%;padding:8px 35px 8px 12px;border:1px solid var(--color-border-medium);border-radius:var(--radius-small);font-family:Crimson Text,serif;font-size:var(--font-size-base);font-weight:400;background:#fff}.search-input-container input:focus{outline:none;border-color:var(--focus-border-color);box-shadow:0 0 0 1px #0000000d}.sidebar .advanced-search-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-secondary);padding:var(--spacing-xs);display:flex;align-items:center;justify-content:center;transition:all .2s ease}.sidebar .advanced-search-btn:hover{color:var(--color-primary)}.context-menu{background:var(--color-bg-white);border:1px solid var(--color-border-standard);border-radius:var(--radius-medium);box-shadow:var(--shadow-small);min-width:180px;padding:var(--spacing-xs) 0;font-size:var(--font-size-base)}.context-menu-item{display:flex;align-items:center;padding:var(--spacing-sm) var(--spacing-12);cursor:pointer;transition:background-color .15s}.context-menu-item:hover{background:var(--beige-alt)}.context-menu-icon{margin-right:8px;width:16px;display:inline-flex;align-items:center;justify-content:center}.context-menu-shortcut{margin-left:auto;color:var(--color-text-muted);font-size:var(--font-size-small);padding-left:16px}.context-menu-separator{height:1px;background:var(--color-border-gray);margin:2px 0}.context-submenu .context-menu-separator{margin:0;height:1px;background:#ddd}.context-submenu .context-menu-item{padding:6px 10px;font-size:13px}.context-submenu .context-menu-icon{margin-right:0}.context-menu-item.has-submenu{position:relative}.context-menu-arrow{margin-left:auto;color:var(--color-text-muted);font-size:14px;padding-left:16px}.context-submenu{position:absolute;min-width:auto;padding:4px 0}.memory-count{font-family:Courier Prime,monospace;font-size:var(--font-size-small);color:var(--color-text-secondary);margin-bottom:15px}.memory-list{flex:1;overflow-y:auto;overflow-x:hidden;padding:15px;gap:12px;display:flex;flex-direction:column;min-height:0}.memory-list::-webkit-scrollbar,.sidebar-content::-webkit-scrollbar{width:6px}.memory-list::-webkit-scrollbar-track,.sidebar-content::-webkit-scrollbar-track{background:#f1f1f1}.memory-list::-webkit-scrollbar-thumb,.sidebar-content::-webkit-scrollbar-thumb{background:var(--color-border-medium);border-radius:3px}.memory-list::-webkit-scrollbar-thumb:hover,.sidebar-content::-webkit-scrollbar-thumb:hover{background:var(--color-text-muted)}.toggle-sidebar-btn{background:var(--color-primary);color:#fff;border:none;padding:10px 15px;border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-base);font-family:Crimson Text,serif;font-weight:400;display:flex;align-items:center;gap:8px;transition:all .3s ease}.toggle-sidebar-btn:hover{background:var(--color-primary-hover)}.sidebar-toggle-arrow{position:fixed;right:0;top:50%;transform:translateY(-50%);background:var(--color-primary);border:none;border-radius:var(--radius-small) 0 0 4px;padding:12px 4px;cursor:pointer;z-index:60;transition:all .3s ease}.sidebar-toggle-arrow:hover{background:var(--color-primary-hover);padding-left:8px}.sidebar-toggle-arrow.open{right:300px}.board-dropdown-container{position:relative}.board-dropdown-btn{background:none;border:1px solid var(--color-border-light);border-radius:var(--radius-medium);padding:8px 12px;display:flex;align-items:center;gap:8px;cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-base);font-weight:600;color:var(--color-text-primary);transition:all .2s ease;min-width:160px;justify-content:space-between}.board-dropdown-btn:hover{background:var(--color-bg-card);border-color:#bbb}.board-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;background:#fff;border:1px solid var(--color-border-light);border-radius:var(--radius-medium);box-shadow:0 4px 12px #00000026;z-index:1000;min-width:280px;font-family:Crimson Text,serif}.constellation-btn{background:none;border:1px solid var(--color-border-light);border-radius:var(--radius-small);padding:6px 8px;cursor:pointer;color:var(--color-primary);transition:all .2s ease}.constellation-btn:hover{background:var(--color-bg-card);border-color:var(--color-primary)}.constellation-btn.active{background:var(--beige-border);color:#fff;border-color:var(--beige-border)}.constellation-mode-panel{position:fixed;top:80px;right:20px;background:#fff;border:2px solid var(--color-accent-gold);border-radius:var(--radius-large);padding:var(--spacing-md);box-shadow:0 4px 12px #0003;z-index:9500;min-width:250px}@media (max-width: 768px){.app-header{padding:6px 15px}.sidebar{width:280px}}.board-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10002}.board-modal{background:#fff;padding:30px;border-radius:var(--radius-large);box-shadow:0 4px 20px #00000026;max-width:500px;width:90%;font-family:Crimson Text,serif}.board-modal h3{margin:0 0 10px;font-size:20px;color:var(--color-primary);font-weight:400}.board-modal-subtitle{margin:0 0 20px;font-size:var(--font-size-base);color:var(--color-text-secondary)}.board-modal-input{width:100%;padding:var(--spacing-10);font-size:var(--font-size-medium);font-family:Crimson Text,serif;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);margin-bottom:20px;box-sizing:border-box}.board-modal-buttons{display:flex;gap:10px;justify-content:flex-end}.board-modal-cancel{padding:8px 20px;background:var(--color-bg-light);color:var(--color-text-light);border:none;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;transition:background .2s ease}.board-modal-cancel:hover{background:var(--color-border-gray)}.board-modal-save{padding:8px 20px;background:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;transition:background .2s ease}.board-modal-save:hover{background:var(--color-button-destructive)}.load-board-modal{max-width:600px}.board-modal-empty{margin:20px 0;padding:30px;text-align:center;color:var(--color-text-secondary);font-size:var(--font-size-base);background:#f9f9f9;border-radius:var(--radius-small)}.saved-boards-list{margin:20px 0;max-height:400px;overflow-y:auto}.saved-board-item{display:flex;justify-content:space-between;align-items:center;padding:15px;margin-bottom:10px;background:var(--color-bg-card);border:1px solid #e5e3d4;border-radius:var(--radius-small);transition:background .2s ease}.saved-board-item:hover{background:#f5f3e4}.saved-board-info{flex:1}.saved-board-name{font-size:var(--font-size-medium);font-weight:700;color:var(--color-primary);margin-bottom:5px}.saved-board-date{font-size:var(--font-size-small);color:var(--color-text-secondary)}.saved-board-actions{display:flex;gap:8px}.saved-board-load,.saved-board-delete{padding:6px 16px;border:none;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-base);transition:all .2s ease}.saved-board-load{background:var(--color-primary);color:#fff}.saved-board-load:hover{background:var(--color-button-destructive)}.saved-board-delete{background:#fff;color:var(--color-primary);border:1px solid var(--color-primary)}.saved-board-delete:hover{background:var(--color-primary);color:#fff}.pan-container{transition:none}.pan-container.smooth-pan{transition:transform .5s ease-out}.pan-container.dragging{transition:none}.memory-card{background:var(--beige-primary);border:1px solid var(--beige-border);border-radius:var(--radius-medium);padding:var(--spacing-12);margin-bottom:0;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none;overflow:hidden;display:flex;flex-direction:column}.memory-card:hover{box-shadow:0 2px 8px #0000001a}.pin-selection-mode .memory-card:hover{box-shadow:none;cursor:default}.memory-card:active{cursor:grabbing}.memory-card.dragging{visibility:hidden}.memory-card-title{font-size:var(--font-size-base);font-weight:400;color:var(--color-text-primary);margin-bottom:6px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-height:1.3em}.memory-card.no-content .memory-card-title.title-only{font-size:var(--font-size-medium);white-space:normal;margin-bottom:0;text-align:left;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;max-height:none;width:100%;line-height:1.2;min-height:52px}.memory-card-title.full-height{margin-bottom:0;display:flex;align-items:flex-start;min-height:90px}.dropped-memory .memory-card-title{font-size:var(--font-size-medium);margin-bottom:8px}.dropped-memory .memory-card.no-content .memory-card-title.title-only{align-items:flex-start;min-height:90px}.memory-card-content{font-size:var(--font-size-small);color:var(--color-text-secondary);line-height:1.4;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.8em}.memory-card .hashtag-container{margin-top:auto;align-items:center;gap:4px;flex-wrap:nowrap;overflow:hidden;max-height:0;opacity:0;transition:max-height .2s ease,opacity .2s ease}.memory-card:hover .hashtag-container{max-height:24px;opacity:1}.memory-card .hashtag{white-space:nowrap;word-break:normal;flex-shrink:0}.dropped-memory .memory-card-content{font-size:13px;margin-bottom:10px;-webkit-line-clamp:4}.memory-card-date{font-family:Courier Prime,monospace;font-size:10px;color:var(--color-text-muted)}.dropped-memory .memory-card-date{font-size:9px}.memory-card-title.stacked{white-space:pre-line;text-align:center;line-height:1.2}.memory-card.stacked-view{width:120px;height:120px;min-height:120px;max-height:120px;padding:var(--spacing-10);display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}.dropped-memory.stacked-view .memory-card{width:120px;height:120px;padding:18px 8px 8px}.dropped-memory .memory-card-title.stacked{font-size:var(--font-size-medium);line-height:1.1;text-align:center;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;word-wrap:break-word;overflow:hidden}.memory-card .memory-card-title.stacked{font-size:var(--font-size-small);line-height:1.1}.memory-pin{position:absolute;top:-17px;right:-2px;width:20px;height:24px;cursor:pointer;z-index:200;background:none;border:none}.memory-pin-circle{width:12px;height:12px;background:radial-gradient(circle at 30% 30%,var(--color-pin-highlight) 30%,var(--color-string-and-pin) 50%);border-radius:50%;position:absolute;top:0;left:8px;transition:none;z-index:2}.memory-pin-tail{width:2px;height:14px;background:var(--color-text-muted);position:absolute;top:10px;left:12px;transform:rotate(15deg);transform-origin:top center;z-index:1}.memory-pin .pin-head-star{position:relative;display:flex;flex-direction:column;align-items:center}.memory-pin .pin-head-star svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}.memory-pin .pin-head-star .memory-pin-tail{position:relative;top:-2px;left:0;transform:none}.memory-pin .pin-head-flag{position:relative;display:flex;flex-direction:column;align-items:center}.memory-pin .pin-head-flag svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.15))}.memory-popup{position:absolute;background:var(--beige-primary);border:2px solid var(--beige-border);border-radius:var(--radius-large);padding:var(--spacing-20);min-width:300px;max-width:400px;box-shadow:0 8px 24px #00000026;z-index:10000;transform:translate(-50%,-50%);cursor:default}.memory-popup-title{font-size:var(--font-size-large);font-weight:400;color:var(--color-text-primary);margin-bottom:12px;line-height:1.3}.memory-popup-title.stacked{white-space:pre-line;text-align:center;line-height:1.2}.memory-popup-content{font-size:var(--font-size-base);color:var(--color-text-primary);line-height:1.5;margin-bottom:12px;position:relative}.memory-popup-date,.memory-popup-timestamp{font-family:Courier Prime,monospace;font-size:var(--font-size-small);color:var(--color-text-muted);text-align:right}.expand-btn{background:none;border:none;color:var(--color-primary);cursor:pointer;font-size:var(--font-size-small);padding:2px 4px;margin-left:8px;border-radius:2px;transition:all .2s ease}.expand-btn:hover{background:#8000201a}.btn-scatter,.btn-undo,.btn-redo,.btn-view-toggle{background:none;border:1px solid var(--beige-border);color:var(--color-primary);padding:6px 12px;border-radius:var(--radius-small);cursor:pointer;transition:all .2s ease;font-size:.9rem;display:flex;align-items:center;gap:6px}.btn-scatter:hover,.btn-undo:hover:not(:disabled),.btn-redo:hover:not(:disabled),.btn-view-toggle:hover{background:#f8f8f8;border-color:var(--color-primary);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.btn-undo:disabled,.btn-redo:disabled{opacity:.4;cursor:not-allowed}.connection-strings{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.connection-line{stroke:var(--color-string-and-pin);stroke-width:2;fill:none;pointer-events:stroke;cursor:pointer;transition:stroke-width .2s ease}.connection-line:hover{stroke-width:3;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.drag-overlay{pointer-events:none;z-index:500;display:block;visibility:visible;opacity:1}.drag-overlay>div{display:block;visibility:visible;opacity:1}.drag-overlay .memory-card{width:200px;min-height:120px;padding:15px;border-radius:var(--radius-medium);background:var(--beige-primary);border:.75px solid var(--beige-border);position:relative;cursor:move;-webkit-user-select:none;user-select:none;box-sizing:border-box;margin-bottom:0;box-shadow:0 8px 20px #0003;transition:none;display:block;visibility:visible;opacity:1}.drag-overlay .memory-card-title{font-size:var(--font-size-medium);margin-bottom:8px;line-height:1.3;font-weight:400;color:var(--color-text-primary)}.drag-overlay .memory-card-content{font-size:13px;margin-bottom:10px;line-height:1.4;color:var(--color-text-secondary);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.drag-overlay .memory-card-date{font-size:9px;font-family:Courier Prime,monospace;color:var(--color-text-muted)}.drag-overlay .memory-card.stacked-view{width:120px;height:120px;min-height:120px;max-height:120px;padding:10px;display:flex;align-items:center;justify-content:center}.drag-overlay .memory-card-title.stacked{font-size:var(--font-size-medium);line-height:1.1;text-align:center;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;word-wrap:break-word;overflow:hidden}.btn-standalone-pin{padding:8px 16px;background:#fff;color:var(--color-primary);border:1px solid var(--color-primary);border-radius:var(--radius-small);cursor:pointer;font-size:var(--font-size-base);font-weight:600;transition:all .2s}.btn-standalone-pin:hover,.btn-standalone-pin.active{background:var(--color-primary);color:#fff}.standalone-pin{position:absolute;width:20px;height:20px;cursor:grab;z-index:2200}.standalone-pin:active,.standalone-pin.dragging{cursor:grabbing}.standalone-pin-circle{width:12px;height:12px;background:radial-gradient(circle at 30% 30%,var(--color-pin-highlight) 30%,var(--color-string-and-pin) 50%);border-radius:50%;position:absolute;top:0;left:8px;transition:none;z-index:2}.standalone-pin-tail{width:2px;height:14px;background:var(--color-text-muted);position:absolute;top:10px;left:12px;transform:rotate(15deg);transform-origin:top center;z-index:1}.standalone-pin.placing{cursor:crosshair}.pin-head-star{position:relative;display:flex;flex-direction:column;align-items:center}.pin-head-star svg{position:relative;z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}.pin-head-star .standalone-pin-tail{left:8px;top:16px}.pin-head-flag{position:relative}.pin-head-flag svg{position:relative;z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.15))}.header-right{display:flex;align-items:center;gap:8px;overflow:visible}.header-dropdown{position:relative;overflow:visible}.header-dropdown .dropdown-menu{margin-top:2px;min-width:220px}.header-dropdown .dropdown-item svg{fill:currentColor}.header-dropdown .dropdown-item-icon svg{width:16px;height:16px}.board-dropdown .dropdown-menu{min-width:250px}.header-dropdown .dropdown-menu{z-index:1100}.header-dropdown-btn{height:32px;padding:0 8px}.constellation-btn,.add-memory-btn-icon{height:32px;width:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--beige-border);border-radius:var(--radius-medium);color:var(--color-text-primary);cursor:pointer;transition:all .2s}.constellation-btn:hover,.add-memory-btn-icon:hover{background:#2f4f4f0d;border-color:var(--color-text-primary)}.constellation-btn.active{background:#2f4f4f1a;border-color:var(--color-text-primary)}.constellation-btn.disabled{opacity:.4;pointer-events:none;cursor:not-allowed}.sidebar .memory-list.simplified-grid{margin-top:16px}.memory-list.simplified-grid{display:grid!important;grid-template-columns:repeat(2,120px);gap:16px;justify-content:center;padding:0 22px 16px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;align-content:start}.memory-list.simplified-grid .draggable-memory{width:100%;height:120px;box-sizing:border-box}.memory-list.simplified-grid .draggable-memory .memory-card{width:100%;height:100%;box-sizing:border-box}.memories-container.simplify-view .memory-content,.simplify-grid .memory-content,.simplify-view .memory-content,.memories-container.simplify-view .memory-hashtags,.simplify-grid .memory-hashtags,.simplify-view .memory-hashtags,.memories-container.simplify-view .hashtag-container,.simplify-grid .hashtag-container,.simplify-view .hashtag-container{display:none!important}.memories-container.simplify-view .memory-title,.simplify-grid .memory-title,.simplify-view .memory-title{line-height:1.1;text-align:center;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;font-size:var(--font-size-medium);font-weight:400;word-wrap:break-word;overflow:hidden}.simplify-grid{display:flex;flex-wrap:wrap;gap:15px;align-content:flex-start;padding:20px 15px;margin-left:0}.memories-container.simplify-view .memory-item,.simplify-grid .memory-item{min-height:120px;max-height:120px;padding:8px;width:120px;height:120px;flex:0 0 120px;display:flex;align-items:center;justify-content:center;margin-bottom:0;overflow:hidden}.memories-container.simplify-view .memory-header,.simplify-grid .memory-header{margin-bottom:0;width:100%;justify-content:center}.simplify-view-btn{background:none;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);padding:8px 12px;cursor:pointer;color:var(--color-text-secondary);transition:all .2s ease;display:flex;align-items:center;justify-content:center}.simplify-view-btn:hover{background:#f8f8f8;border-color:var(--color-primary);color:var(--color-primary)}.simplify-view-btn.active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.dropped-memory.stacked-view{width:120px;height:120px}.dropped-memory.stacked-view .memory-card{width:120px;height:120px;padding:var(--spacing-sm)}.dropped-memory.stacked-view .memory-card-content,.dropped-memory.stacked-view .memory-card-tags,.dropped-memory.stacked-view .hashtag-container{display:none!important}.dropped-memory.stacked-view .memory-card-title{line-height:1.1;text-align:center;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;font-size:var(--font-size-medium);word-wrap:break-word;overflow:hidden}.dropped-memory.stacked-view .memory-pin{top:-17px;right:-2px}.sidebar-libraries-grid{display:flex;flex-direction:column;gap:12px}.sidebar-library-card{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:var(--radius-large);padding:10px 15px 15px;cursor:pointer;transition:all .3s ease;position:relative;display:flex;flex-direction:column}.sidebar-library-card:hover{background:#ebebeb;border-color:#ccc;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.sidebar-library-card.active{background:#f5f5f5;border-color:var(--color-text-secondary);box-shadow:0 2px 8px #00000026}.sidebar-library-card.drag-over{border-color:var(--color-primary);background:#f8f0f0;box-shadow:0 4px 16px #8000204d}.sidebar-library-card.core-memories{border-color:#b1872f}.sidebar-library-card.coincidences{border-color:#9932cc}.sidebar-library-card.locked{opacity:.5;cursor:not-allowed}.sidebar-library-card.locked:hover{transform:none;box-shadow:none}.sidebar-library-card .library-card-title{font-size:var(--font-size-base)}.sidebar-library-card .library-card-description{font-size:var(--font-size-small);line-height:1.3;margin-bottom:10px}.sidebar-library-card .library-search-terms{gap:4px}.sidebar-library-card .library-search-terms .operator{font-size:8px;padding:0 1px}.sidebar-libraries-grid .empty-state{text-align:center;padding:40px 20px;color:var(--color-text-muted);font-style:italic;font-size:var(--font-size-base)}.sidebar-tags-cloud{display:flex;flex-wrap:wrap;gap:8px;padding:4px}.hashtag.tag-cloud{border:1px solid rgba(128,0,32,.15);-webkit-user-select:none;user-select:none}.hashtag.tag-cloud.selected{background:var(--crimson-bg-hover);color:var(--color-primary-hover);border-color:#8000204d}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Crimson Text,serif;background:#fff;color:var(--color-text-primary);overflow:hidden}input,textarea,select{font-family:Crimson Text,serif}input,textarea{-webkit-user-select:text;user-select:text}#root{overflow:hidden;height:100vh}.app-container{display:flex;flex-direction:column;height:100vh;overflow:hidden;-webkit-user-select:none;user-select:none}.archive-main-layout{display:flex;flex-direction:row;flex:1;min-height:0;overflow:hidden}.archive-content-area{flex:1;overflow-y:auto;overflow-x:hidden;min-width:0}.current-hashtag-display{display:flex;align-items:center;gap:10px}.current-hashtag-large{font-family:Courier Prime,monospace;font-size:var(--font-size-medium);color:var(--color-primary);background:var(--crimson-bg-light);padding:8px 16px;border-radius:20px;font-weight:400;cursor:pointer;transition:all .3s ease;display:flex;align-items:center}.current-hashtag-large:hover{background:var(--crimson-bg-hover);color:var(--color-primary-hover)}.hashtag-filters-display{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hashtag-pill{font-family:Courier Prime,monospace;font-size:var(--font-size-medium);color:var(--color-primary);background:var(--crimson-bg-light);padding:8px 16px;border-radius:20px;display:flex;align-items:center;transition:all .2s ease;cursor:pointer;-webkit-user-select:none;user-select:none}.hashtag-pill:hover{background:var(--crimson-bg-hover);color:var(--color-primary-hover)}.operator-toggle{font-family:Courier Prime,monospace;font-size:var(--font-size-small);font-weight:700;color:var(--color-text-secondary);background:var(--color-border-light);border:1px solid var(--color-border-medium);border-radius:4px;padding:4px 8px;cursor:pointer;transition:all .2s ease;min-width:32px;display:flex;align-items:center;justify-content:center}.operator-toggle:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.current-library-header{font-family:Crimson Text,serif;font-size:var(--font-size-xlarge);color:var(--color-primary);font-weight:600;text-transform:capitalize}.search-section{display:flex;flex-direction:column;width:200px;position:relative}.search-input-container{position:relative;flex:1}.search-input-container input{width:100%;padding:6px 30px 6px 12px;border:1px solid var(--color-border-medium);border-radius:var(--radius-medium);font-family:Crimson Text,serif;font-size:var(--font-size-small);height:32px;box-sizing:border-box}.search-input-container input.with-clear-btn{padding-right:55px}.app-container .advanced-search-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-secondary);padding:4px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.app-container .advanced-search-btn.with-clear{right:28px}.app-container .advanced-search-btn:hover{color:var(--color-primary)}.clear-search-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-muted);padding:4px;display:flex;align-items:center}.clear-search-btn:hover{color:var(--color-text-secondary)}.toolbar-buttons{display:flex;gap:8px}.toolbar-btn{background:none;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);padding:0 8px;height:32px;cursor:pointer;color:var(--color-text-secondary);transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:6px;font-family:Crimson Text,serif;font-size:var(--font-size-small);text-decoration:none}.toolbar-btn:hover{background:#f8f8f8;border-color:var(--color-primary);color:var(--color-primary)}.toolbar-btn.active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.toolbar-buttons a.btn-primary,.toolbar-buttons a.btn-secondary{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:var(--color-primary);color:#fff;border:none;padding:8px 16px;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-small);display:flex;align-items:center;gap:6px;transition:all .3s ease}.btn-primary:hover{background:var(--color-primary-hover)}.btn-secondary{background:#e8e8e8;color:var(--color-text-secondary);border:1px solid var(--color-border-medium);padding:8px 16px;border-radius:var(--radius-small);cursor:pointer;font-family:Crimson Text,serif;font-size:var(--font-size-small);transition:all .3s ease}.btn-secondary:hover{background:var(--color-border-standard);color:var(--color-text-primary)}.btn-secondary.active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.btn-icon{background:none;border:none;cursor:pointer;color:var(--color-text-secondary);padding:var(--spacing-xs);display:flex;align-items:center;transition:all .2s ease}.btn-icon:hover{color:var(--color-primary)}.memories-container{padding:20px 30px;display:flex;margin-left:-15px}.masonry-column{padding-left:15px;background-clip:padding-box}.empty-state{text-align:center;padding:60px 20px;color:var(--color-text-secondary)}.empty-state h3{color:var(--color-primary);margin-bottom:10px}.memory-item{background:#faf8e9;border:1px solid #E0E0E0;border-radius:8px;padding:20px;transition:all .3s ease;cursor:pointer;width:100%;margin-bottom:15px;display:flex;flex-direction:column;position:relative}.memory-item:hover{background:#f5f2e0;border-color:#ccc;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.memory-item.selected{background:#fdf2f8;border-color:#d9bbc2;transform:translateY(-1px);box-shadow:0 4px 12px #80002033}.memory-item.card{height:fit-content}.memory-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:10px}.memory-title{font-weight:510;font-size:16px;color:#2f4f4f;line-height:1.3}.memory-date{font-family:Courier Prime,monospace;font-size:11px;color:#666;background:#ffffffb3;padding:2px 6px;border-radius:3px}.memory-content{font-size:14px;line-height:1.4;color:#4a4a4a;margin-bottom:12px;flex:1;overflow:hidden}.memory-content.truncated{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.content-expand-btn{color:var(--color-text-secondary);font-size:var(--font-size-small);cursor:pointer;display:inline;margin-left:4px;font-family:Courier Prime,monospace;transition:color .2s ease}.content-expand-btn:hover{color:var(--color-primary)}.expand-arrow{font-size:10px;transition:transform .2s ease}.content-hidden{margin-top:8px}.memory-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.memory-actions{display:flex;gap:6px;opacity:0;transition:opacity .3s ease}.memory-item:hover .memory-actions{opacity:1}.action-btn{background:none;border:none;cursor:pointer;font-size:var(--font-size-base);color:var(--color-text-secondary);padding:var(--spacing-xs);border-radius:3px;transition:all .3s ease}.action-btn:hover{background:#0000001a;color:var(--color-text-primary)}.memory-checkbox{position:absolute;top:10px;right:10px;width:20px;height:20px;background:#fff;border:2px solid var(--color-border-medium);border-radius:3px;cursor:pointer;display:none;align-items:center;justify-content:center;transition:all .2s ease;z-index:10}.memory-checkbox:hover{border-color:var(--color-primary);background:#f8f9fa}.memory-checkbox.checked{background:var(--color-primary);border-color:var(--color-primary)}.memory-checkbox.checked:after{content:"✓";color:#fff;font-size:var(--font-size-small);font-weight:700}.memories-container.select-mode .memory-checkbox{display:flex;opacity:1}.additional-context-group{margin-top:10px}.additional-context-header{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:8px;color:var(--color-text-secondary);font-size:var(--font-size-base);font-family:Crimson Text,serif}.additional-context-header:hover{color:var(--color-text-light)}.additional-context-label{margin-right:8px}.additional-context-arrow{font-size:var(--font-size-small);transition:transform .3s ease;color:var(--color-text-muted)}.additional-context-header.expanded .additional-context-arrow{transform:rotate(90deg)}.additional-context-content{margin-top:8px}.additional-context-content textarea{width:100%;min-height:80px;padding:var(--spacing-10);border:.5px solid var(--color-border-standard);border-radius:var(--radius-small);font-family:Crimson Text,serif;font-size:var(--font-size-base);line-height:1.4;color:var(--color-text-secondary);background-color:#fff;resize:vertical}.additional-context-content textarea:focus{background-color:#fff}.additional-context-content textarea::placeholder{font-family:Crimson Text,serif;color:var(--color-text-muted)}.memories-container.table-view{display:block;padding:0}.memory-table{width:100%;border-collapse:collapse;background:#fff}.memory-table th,.memory-table td{padding:12px 15px;text-align:left;border-bottom:.5px solid var(--color-border-gray)}.memory-table th{background:beige;font-family:Courier Prime,monospace;font-size:var(--font-size-small);color:var(--color-primary);font-weight:700;position:sticky;top:0}.memory-table tr:hover{background:var(--beige-primary)}.table-title{font-weight:700;color:var(--color-text-primary);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-date{font-family:Courier Prime,monospace;font-size:11px;color:var(--color-text-secondary);min-width:100px}.table-content{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#4a4a4a}.table-hashtags{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Courier Prime,monospace;font-size:10px}.constellation-icon-wrapper{position:absolute;top:10px;right:10px;z-index:10}.constellation-icon{cursor:pointer;transition:all .3s ease;opacity:1;fill:#fff;filter:drop-shadow(0 0 1px #2c3e50) drop-shadow(0 0 2px #34495e) drop-shadow(0 0 6px rgba(255,255,255,.8))}.constellation-icon:hover{transform:scale(1.1);opacity:1;fill:#fff;filter:drop-shadow(0 0 1px #2c3e50) drop-shadow(0 0 2px #34495e) drop-shadow(0 0 10px rgba(255,255,255,1))}.constellation-icon.active{fill:#fff;filter:drop-shadow(0 0 1px #2c3e50) drop-shadow(0 0 2px #34495e) drop-shadow(0 0 12px rgba(255,255,255,1));transform:scale(1.15);opacity:1}.constellation-tooltip{background:#fff;border:1px solid var(--beige-border);border-radius:var(--radius-large);box-shadow:0 4px 12px #00000026;padding:var(--spacing-12);display:flex;gap:12px;z-index:999998;max-width:320px}.constellation-map-container{background:var(--beige-primary);border:1px solid var(--beige-border);border-radius:var(--radius-medium);padding:var(--spacing-sm);cursor:pointer;transition:all .2s ease}.constellation-map-container:hover{background:#f5f3e4;transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}.constellation-minimap{display:block;width:100px;height:100px;background:#fff;border-radius:var(--radius-small)}.constellation-map-label{font-size:11px;text-align:center;margin-top:6px;color:var(--color-text-secondary);font-family:Courier Prime,monospace}.current-memory-star{animation:pulse-glow 2s ease-in-out infinite}@keyframes pulse-glow{0%,to{opacity:1}50%{opacity:.7}}.libraries-container{height:100vh;display:flex;flex-direction:column;background:#fff;overflow:hidden}.libraries-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--color-border-standard)}.libraries-header h1{color:var(--color-primary);font-size:28px;font-weight:600;margin:0}.header-actions{display:flex;gap:15px;align-items:center}.libraries-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-auto-rows:280px;gap:20px;padding:var(--spacing-20);overflow-y:auto;flex:1;align-content:start}.library-card{background:var(--library-bg);border-radius:var(--radius-large);border:1px solid var(--library-border);padding:10px 15px 15px;cursor:pointer;transition:all .3s ease;position:relative;height:100%;display:flex;flex-direction:column;text-align:left;overflow:hidden}.library-card:hover{background:var(--library-bg-hover);border-color:var(--color-border-medium);transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.library-card.locked{background:#f0f0f0;border-color:#ddd}.library-card.locked:hover{background:#e8e8e8}.library-card.locked .library-card-title{color:#888}.library-card.locked .library-card-description{color:#999}.empty-state{text-align:center;padding:60px 20px;color:var(--color-text-secondary);grid-column:1 / -1}.empty-state p{margin-bottom:10px;font-size:var(--font-size-medium)}.empty-state-hint{font-size:var(--font-size-base);color:var(--color-text-muted)}.loading{text-align:center;padding:60px 20px;color:var(--color-text-secondary);font-size:var(--font-size-medium)}@media (max-width: 768px){.libraries-grid{padding:15px;grid-template-columns:1fr}}.chronology-v2{height:100vh;display:flex;flex-direction:column;background:#fff;overflow:hidden}.chronology-v2 .header-title{font-family:Crimson Text,serif;font-size:18px;font-weight:600;color:#2f4f4f;margin:0}.chronology-v2 .chronology-main{flex:1;display:flex;overflow:hidden;min-width:0}.chronology-v2 .loading-state{flex:1;display:flex;align-items:center;justify-content:center;font-family:Crimson Text,serif;color:#666}.chronology-v2 .timeline-area{flex:1;display:flex;flex-direction:column;position:relative;min-width:0;overflow:hidden}.chronology-v2 .timeline-container{flex:1;display:flex;align-items:flex-end;padding:40px 60px 60px;overflow-x:auto;overflow-y:hidden;min-width:0}.chronology-v2 .timeline-base{position:absolute;bottom:40px;left:60px;right:60px;height:4px;background:#b0b0b0;border-radius:2px}.chronology-v2 .timeline-cards{display:flex;align-items:flex-end;gap:0;min-height:180px;position:relative;z-index:1}.chronology-v2 .timeline-empty-text{position:absolute;bottom:60px;left:50%;transform:translate(-50%);font-family:Crimson Text,serif;font-size:16px;color:#999;white-space:nowrap}.chronology-v2 .timeline-card{width:250px;height:180px;background:#faf8e9;border:1px solid #e8e6d5;border-radius:6px;padding:12px;cursor:grab;position:relative;display:flex;flex-direction:column;box-shadow:0 2px 8px #00000014;transition:box-shadow .2s ease,border-color .2s ease;flex-shrink:0}.chronology-v2 .timeline-card:hover{box-shadow:0 4px 12px #00000026;border-color:#d8d6c5;z-index:10}.chronology-v2 .timeline-card.dragging{opacity:.3;cursor:grabbing}.chronology-v2 .timeline-card-content-wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden}.chronology-v2 .timeline-card-title{font-family:Crimson Text,serif;font-size:14px;font-weight:600;color:#2f4f4f;margin-bottom:8px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chronology-v2 .timeline-card-content{font-family:Crimson Text,serif;font-size:11px;color:#666;line-height:1.4;margin-bottom:8px;flex:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.chronology-v2 .timeline-card-hashtags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}.chronology-v2 .timeline-card-hashtags .hashtag{font-family:Courier Prime,monospace;font-size:10px;color:#800020;background:#dc143c1a;padding:2px 6px;border-radius:10px;white-space:nowrap}.chronology-v2 .drop-indicator{position:absolute;top:0;bottom:0;width:4px;background:transparent;pointer-events:none;z-index:200}.chronology-v2 .drop-indicator.left{left:-2px}.chronology-v2 .drop-indicator.right{right:-2px}.chronology-v2 .drop-indicator.active{background:linear-gradient(180deg,#800020,#a0001c);box-shadow:0 0 10px #80002080;animation:chronology-pulse .8s ease-in-out infinite}@keyframes chronology-pulse{0%,to{opacity:.8}50%{opacity:1}}.chronology-v2 .sidebar-memory-list{display:flex;flex-direction:column;height:100%}.chronology-v2 .sidebar-search{padding:12px 15px;border-bottom:1px solid #eee}.chronology-v2 .sidebar-search-input{width:100%;padding:8px 12px;border:1px solid #e0e0e0;border-radius:6px;font-family:Crimson Text,serif;font-size:14px;outline:none;transition:border-color .2s ease}.chronology-v2 .sidebar-search-input:focus{border-color:#800020}.chronology-v2 .sidebar-search-input::placeholder{color:#999}.chronology-v2 .memory-list{flex:1;overflow-y:auto;padding:12px 15px}.chronology-v2 .empty-state{font-family:Crimson Text,serif;font-size:14px;color:#999;text-align:center;padding:20px}.chronology-v2 .sidebar-libraries{padding:12px 15px;display:flex;flex-direction:column;gap:8px}.drag-overlay-card{width:250px;height:180px;background:#faf8e9;border:1px solid #e8e6d5;border-radius:6px;padding:12px;display:flex;flex-direction:column;box-shadow:0 8px 24px #0003;cursor:grabbing;pointer-events:none}@media (max-width: 768px){.chronology-v2 .timeline-container{padding:20px 30px 50px}.chronology-v2 .timeline-base{left:30px;right:30px;bottom:30px}.chronology-v2 .timeline-card{width:180px;height:150px}}.public-boards-discovery{padding:30px;max-width:1200px;margin:0 auto;font-family:Crimson Text,serif}.discovery-header{text-align:center;margin-bottom:40px}.discovery-header h1{font-size:2.5em;color:#800020;margin-bottom:10px;font-weight:400}.discovery-header .subtitle{color:#666;font-size:1.1em;font-style:italic}.discovery-actions{margin-bottom:40px;display:flex;justify-content:center}.create-board-btn{background:#800020;color:#fff;border:none;padding:12px 24px;font-size:1.1em;border-radius:8px;cursor:pointer;font-family:Crimson Text,serif;transition:opacity .3s}.create-board-btn:hover{opacity:.9}.create-board-form{display:flex;gap:10px;align-items:center;background:#fff;padding:15px;border-radius:12px;border:2px solid #800020;box-shadow:0 4px 12px #8000201a}.create-board-form input{flex:1;padding:10px 15px;font-size:1.1em;border:2px solid #e8e6d5;border-radius:6px;font-family:Crimson Text,serif;min-width:300px}.create-board-form input:focus{outline:none;border-color:#800020}.form-actions{display:flex;gap:8px}.form-actions button{padding:10px 20px;border:none;border-radius:6px;font-family:Crimson Text,serif;font-size:1em;cursor:pointer;transition:opacity .3s}.form-actions button[type=submit]{background:#800020;color:#fff}.form-actions button[type=button]{background:#e8e6d5;color:#333}.form-actions button:disabled{opacity:.5;cursor:not-allowed}.boards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.no-boards{grid-column:1 / -1;text-align:center;padding:60px 20px;color:#666}.no-boards p{margin:0;font-size:1.3em}.no-boards .hint{font-size:1em;margin-top:10px;font-style:italic}.board-card{background:#fff;border:2px solid #e8e6d5;border-radius:12px;padding:20px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.board-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#800020,#a64d79);transform:scaleX(0);transition:transform .3s ease}.board-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #80002026;border-color:#800020}.board-card:hover:before{transform:scaleX(1)}.board-card h3{margin:0 0 15px;font-size:1.4em;color:#333;font-weight:400}.board-stats{display:flex;align-items:center;gap:8px;color:#666;font-size:.95em;margin-bottom:10px}.board-stats .separator{opacity:.5}.board-date{font-size:.85em;color:#999;font-style:italic}.loading,.error{text-align:center;padding:60px 20px;font-size:1.2em;color:#666}.error{color:#d32f2f}.public-board-container{width:100%;height:100vh;display:flex;flex-direction:column;background:#faf8e9;font-family:Crimson Text,serif;overflow:hidden}.public-board-header{display:flex;align-items:center;justify-content:space-between;padding:15px 30px;background:#fff;border-bottom:2px solid #e8e6d5;box-shadow:0 2px 8px #0000000d}.public-board-container .back-btn{background:none;border:2px solid #800020;color:#800020;padding:8px 16px;border-radius:6px;font-family:Crimson Text,serif;font-size:1em;cursor:pointer;transition:all .3s}.public-board-container .back-btn:hover{background:#800020;color:#fff}.public-board-header h2{flex:1;text-align:center;margin:0;font-size:1.8em;color:#800020;font-weight:400}.board-info{display:flex;gap:10px;color:#666;font-size:.95em}.board-layout{flex:1;display:flex;position:relative;overflow:hidden}.public-board-container .memory-sidebar{width:280px;background:#fff;border-right:2px solid #e8e6d5;padding:20px;overflow-y:auto;z-index:100}.public-board-container .memory-sidebar h3{margin:0 0 15px;color:#333;font-size:1.3em;font-weight:400}.public-board-container .add-memory-btn{width:100%;padding:10px;background:#800020;color:#fff;border:none;border-radius:6px;font-family:Crimson Text,serif;font-size:1em;cursor:pointer;transition:opacity .3s;margin-bottom:15px}.public-board-container .add-memory-btn:hover{opacity:.9}.public-board-container .memory-list{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 200px);overflow-y:auto}.public-board-container .sidebar-memory{cursor:pointer;transition:transform .2s}.public-board-container .sidebar-memory:hover{transform:translate(5px)}.public-board-container .canvas-container{flex:1;position:relative;overflow:hidden;background:#faf8e9}.public-board-container .connections-svg{pointer-events:none;z-index:1}.public-board-loading,.public-board-error{display:flex;justify-content:center;align-items:center;height:100vh;font-size:1.3em;color:#666;font-family:Crimson Text,serif}.public-board-error{color:#d32f2f}.public-board-container .canvas{background:#faf8e9;position:relative}.public-board-container .dropped-memory{transition:box-shadow .3s}.public-board-container .dropped-memory:hover{box-shadow:0 8px 24px #80002033}.public-board-container .memory-sidebar .memory-card{cursor:grab}.public-board-container .memory-sidebar .memory-card:active{cursor:grabbing}.public-board-container .anonymous-tag{display:inline-block;padding:2px 6px;background:#e8e6d5;color:#666;border-radius:4px;font-size:.8em;margin-left:5px}:root{--color-primary: #800020;--color-primary-hover: #A0001C;--color-primary-light: #b88585;--color-button-destructive: #600018;--maroon-bg-subtle: rgba(128, 0, 32, .02);--maroon-bg-light: rgba(128, 0, 32, .05);--maroon-bg-medium: rgba(128, 0, 32, .1);--color-accent-gold: #FFD700;--color-accent-crimson: #dc143c;--color-accent-orange: #ff4500;--crimson-bg-light: rgba(220, 20, 60, .1);--crimson-bg-medium: rgba(220, 20, 60, .15);--crimson-bg-hover: rgba(220, 20, 60, .2);--color-string-and-pin: #dc143c;--color-pin-highlight: #ff6b7a;--color-bg-white: #FFFFFF;--color-bg-tan: #faf8ea;--color-bg-card: #faf8e9;--color-bg-light: #f0f0f0;--color-bg-overlay: rgba(0, 0, 0, .5);--beige-primary: #faf8e9;--beige-light: #fffef5;--beige-border: #e8e6d5;--beige-alt: #f5f5f5;--library-bg: #f5f0fa;--library-bg-hover: #ebe3f2;--library-border: #ddd0e8;--color-border-primary: #e8e6d5;--color-border-light: #c0beac;--color-border-muted: #ce9c9c;--color-border-standard: #ddd;--color-border-divider: #e5e5e5;--color-border-gray: #e0e0e0;--color-border-medium: #ccc;--color-text-primary: #2F4F4F;--color-text-secondary: #666;--color-text-muted: #999;--color-text-light: #333;--color-text-white: #FFFFFF;--color-success: #28a745;--color-error: #dc3545;--color-warning: #ffc107;--color-info: #17a2b8;--focus-border-color: #d1d5db;--focus-shadow: 0 0 0 1px rgba(0, 0, 0, .05);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-10: 10px;--spacing-12: 12px;--spacing-md: 16px;--spacing-20: 20px;--spacing-lg: 24px;--spacing-xl: 32px;--radius-small: 4px;--radius-medium: 6px;--radius-large: 8px;--font-family-primary: "Crimson Text", serif;--font-size-base: 14px;--font-size-small: 12px;--font-size-medium: 16px;--font-size-large: 18px;--font-size-xlarge: 24px;--shadow-small: 0 2px 4px rgba(0, 0, 0, .1);--shadow-medium: 0 4px 8px rgba(0, 0, 0, .15);--shadow-large: 0 10px 25px rgba(0, 0, 0, .2);--transition-fast: .15s ease;--transition-normal: .2s ease;--transition-slow: .3s ease;--z-dropdown: 100;--z-sidebar: 500;--z-modal-backdrop: 1000;--z-modal: 1001;--z-tooltip: 2000}.btn{padding:10px 20px;border-radius:var(--radius-medium);font-size:var(--font-size-base);font-weight:500;cursor:pointer;transition:all var(--transition-normal);border:none;outline:none;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-family:var(--font-family-primary)}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--color-primary);color:var(--color-text-white);border:none}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover)}.btn-secondary{background:var(--color-bg-white);color:var(--color-primary);border:1px solid var(--color-border-light)}.btn-secondary:hover:not(:disabled){background:var(--color-bg-card);border-color:var(--color-primary)}.btn-icon{padding:6px 8px;min-width:32px;min-height:32px;background:none;border:1px solid #ddd;border-radius:4px;color:var(--color-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.btn-icon:hover:not(:disabled){background:#f8f8f8;border-color:var(--color-primary)}.btn-icon:active:not(:disabled){background:#f0f0f0;transform:translateY(1px)}.btn-icon svg{opacity:.8;transition:opacity .2s ease}.btn-icon:hover:not(:disabled) svg{opacity:1}.btn-icon.btn-danger{color:var(--color-primary);border-color:var(--color-primary)}.btn-icon.btn-danger:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:#fff}.btn-danger{background:var(--color-primary);color:#fff;border:1px solid var(--color-primary);padding:8px 16px;border-radius:var(--radius-medium);cursor:pointer;font-size:var(--font-size-base);transition:all var(--transition-normal)}.btn-danger:hover:not(:disabled){background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.btn-toggle{padding:6px 8px;min-width:32px;min-height:32px;background:none;border:1px solid var(--color-border-light);color:var(--color-primary);transition:all var(--transition-normal)}.btn-toggle:hover:not(:disabled){background:var(--color-bg-card);border-color:var(--color-primary)}.btn-toggle.active{background:var(--color-border-primary);color:var(--color-text-white);border-color:var(--color-border-primary)}.btn-toggle.active:hover:not(:disabled){background:var(--color-primary-light)}.btn-toggle svg{opacity:.8;transition:opacity var(--transition-normal)}.btn-toggle:hover:not(:disabled) svg,.btn-toggle.active svg{opacity:1}.btn-gold{background:transparent;color:var(--color-accent-gold);border:2px solid var(--color-accent-gold);font-weight:700}.btn-gold:hover:not(:disabled){background:var(--color-accent-gold);color:var(--color-text-primary)}.modal-overlay{position:fixed;inset:0;background:var(--color-bg-overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:var(--z-modal-backdrop);opacity:0;transition:opacity var(--transition-slow)}.modal-overlay.show{opacity:1}.modal-content{background:var(--color-bg-white);border-radius:var(--radius-large);box-shadow:var(--shadow-large);width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;transform:scale(.9);transition:transform var(--transition-slow);overflow:hidden}.modal-overlay.show .modal-content{transform:scale(1)}.modal-header{background:var(--color-bg-tan);padding:var(--spacing-md) 20px;border-radius:var(--radius-large) var(--radius-large) 0 0;border-bottom:1px solid var(--color-border-divider);display:flex;align-items:center;justify-content:space-between}.modal-header h3{color:var(--color-primary);font-size:var(--font-size-large);font-weight:400;margin:0}.modal-close{background:none;border:none;font-size:var(--font-size-xlarge);color:#999;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;transition:color .2s ease}.modal-close:hover{color:#333}.modal-body{padding:var(--spacing-20);overflow-y:auto;flex:1}.modal-footer{padding:var(--spacing-md) 20px;display:flex;gap:var(--spacing-sm);justify-content:flex-end}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--focus-border-color);box-shadow:var(--focus-shadow)}.form-input{width:100%;padding:10px 12px;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);font-size:var(--font-size-base);font-family:var(--font-family-primary);color:var(--color-text-primary);transition:border-color var(--transition-normal)}.form-textarea{width:100%;padding:10px 12px;border:1px solid var(--color-border-standard);border-radius:var(--radius-small);font-size:var(--font-size-base);font-family:var(--font-family-primary);color:var(--color-text-primary);resize:vertical;min-height:80px;transition:border-color var(--transition-normal)}.form-label{display:block;margin-bottom:var(--spacing-xs);color:var(--color-text-primary);font-size:var(--font-size-base);font-weight:500}.card{background:var(--color-bg-card);border:1px solid var(--color-border-primary);border-radius:var(--radius-medium);padding:var(--spacing-md);box-shadow:var(--shadow-small);transition:box-shadow var(--transition-normal)}.card:hover{box-shadow:var(--shadow-medium)}.card-header{margin-bottom:var(--spacing-md);padding-bottom:var(--spacing-sm);border-bottom:1px solid var(--color-border-divider)}.card-header h4{margin:0;color:var(--color-text-primary);font-size:var(--font-size-medium)}.card-body{color:var(--color-text-secondary);font-size:var(--font-size-base)}.heading-1{font-size:var(--font-size-xlarge);color:var(--color-text-primary);font-weight:400;margin:0 0 var(--spacing-md) 0}.heading-2{font-size:var(--font-size-large);color:var(--color-text-primary);font-weight:400;margin:0 0 var(--spacing-sm) 0}.heading-3{font-size:var(--font-size-medium);color:var(--color-text-primary);font-weight:500;margin:0 0 var(--spacing-sm) 0}.body-text{font-size:var(--font-size-base);color:var(--color-text-secondary);line-height:1.5}.text-muted{color:var(--color-text-muted)}.text-small{font-size:var(--font-size-small)}.flex{display:flex}.flex-column{display:flex;flex-direction:column}.flex-center{display:flex;align-items:center;justify-content:center}.gap-sm{gap:var(--spacing-sm)}.gap-md{gap:var(--spacing-md)}.gap-lg{gap:var(--spacing-lg)}
