:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh;transition:background-color .3s ease,color .3s ease}body.theme-light{background-color:#f5f5f5;color:#333}body.theme-dark{background-color:#121212;color:#e0e0e0}h1{font-size:2.5em;line-height:1.1}.daily-beverage{position:relative;display:inline-block;width:120px;height:120px;flex-shrink:0;vertical-align:middle;background:transparent}.beverage-mug{width:100%;height:100%;object-fit:contain;display:block;position:relative;z-index:1;background:none!important;background-color:transparent!important;image-rendering:auto;mix-blend-mode:normal}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#faf8f3,#e8e5d8);font-family:Georgia,Times New Roman,serif}.theme-dark .login-container{background:linear-gradient(135deg,#1a1a1a,#2d2d2d)}.login-card{background:#fefdf9;border-radius:16px;box-shadow:0 8px 32px #00000014,0 2px 8px #0000000a;padding:3rem 2.5rem;max-width:480px;width:100%;border:1px solid rgba(0,0,0,.06);position:relative;animation:slideUp .3s ease-out}.login-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#8b7355,#a68b5b,#8b7355);border-radius:16px 16px 0 0}.theme-dark .login-card{background:#2a2a2a;border-color:#ffffff1a;box-shadow:0 8px 32px #0006,0 2px 8px #0003}.login-header{text-align:center;margin-bottom:2.5rem}.login-header h1{margin:0 0 .75rem;font-size:2.5rem;font-family:Courier Prime,Courier New,Courier,monospace;color:#3d3526;font-weight:400;letter-spacing:-.5px}.theme-dark .login-header h1{color:#e8e5d8}.login-header p{margin:0;color:#6b6254;font-size:1rem;font-style:italic;font-weight:300}.theme-dark .login-header p{color:#b8b5a8}.login-form{display:flex;flex-direction:column;gap:1.5rem}.login-button{padding:1rem 2rem;background:#8b7355;color:#fefdf9;border:none;border-radius:8px;font-size:1.05rem;font-weight:500;cursor:pointer;transition:all .2s ease;margin-top:.5rem;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.5px;text-transform:uppercase;box-shadow:0 2px 8px #8b735533}.login-button:hover:not(:disabled){background:#a68b5b;transform:translateY(-1px);box-shadow:0 4px 12px #8b73554d}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.login-message{padding:1rem;border-radius:8px;font-size:.95rem;text-align:center;font-family:Georgia,Times New Roman,serif}.login-message.success{background:#f0f7ed;color:#5a7a4f;border:1px solid #7a9471}.theme-dark .login-message.success{background:#1a2d17;color:#8ba682;border-color:#5a7a4f}.login-message.error{background:#fdf0ed;color:#b85c47;border:1px solid #c97d60}.theme-dark .login-message.error{background:#3a1f1a;color:#d9876b;border-color:#c97d60}.login-switch{text-align:center;margin-top:1.5rem;color:#6b6254;font-size:.95rem;font-family:Georgia,Times New Roman,serif}.theme-dark .login-switch{color:#9a9183}@media (max-width: 480px){.login-card{padding:2.5rem 1.75rem}.login-header h1{font-size:2rem}.login-container{padding:1rem}}.signup-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#faf8f3,#e8e5d8);font-family:Georgia,Times New Roman,serif}.theme-dark .signup-container{background:linear-gradient(135deg,#1a1a1a,#2d2d2d)}.signup-card{background:#fefdf9;border-radius:16px;box-shadow:0 8px 32px #00000014,0 2px 8px #0000000a;padding:3rem 2.5rem;width:100%;max-width:480px;border:1px solid rgba(0,0,0,.06);position:relative}.signup-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#8b7355,#a68b5b,#8b7355);border-radius:16px 16px 0 0}.theme-dark .signup-card{background:#2a2a2a;border-color:#ffffff1a;box-shadow:0 8px 32px #0006,0 2px 8px #0003}.signup-header{text-align:center;margin-bottom:2.5rem}.signup-header h1{font-size:2.5rem;margin-bottom:.75rem;color:#3d3526;font-weight:400;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:-.5px}.theme-dark .signup-header h1{color:#e8e5d8}.signup-header p{color:#6b6254;font-size:1rem;font-style:italic;font-weight:300}.theme-dark .signup-header p{color:#b8b5a8}.signup-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.95rem;font-weight:500;color:#3d3526;font-family:Georgia,Times New Roman,serif}.theme-dark .form-group label{color:#d4d1c4}.optional-text{font-weight:400;font-style:italic;color:#8b7d6b;font-size:.9em}.theme-dark .optional-text{color:#8b8b7b}.helper-text{font-size:.8rem;color:#8b7d6b;font-style:italic;margin-top:-.25rem}.theme-dark .helper-text{color:#8b8b7b}.form-group input{padding:.875rem 1rem;border:1.5px solid #d4c9b8;border-radius:8px;font-size:1rem;font-family:Georgia,Times New Roman,serif;transition:all .2s ease;background:#fff;color:#2a2a2a}.theme-dark .form-group input{background:#1f1f1f;border-color:#555;color:#e8e5d8}.form-group input:focus{outline:none;border-color:#8b7355;box-shadow:0 0 0 3px #8b73551a}.theme-dark .form-group input:focus{border-color:#a68b5b;box-shadow:0 0 0 3px #a68b5b26}.form-group input::placeholder{color:#a8a098;font-style:italic}.theme-dark .form-group input::placeholder{color:#666}.form-group input:disabled{opacity:.6;cursor:not-allowed;background:#f5f3ef}.theme-dark .form-group input:disabled{background:#252525}.form-group input.error{border-color:#c97d60}.theme-dark .form-group input.error{border-color:#d9876b}.form-group input.success{border-color:#7a9471}.theme-dark .form-group input.success{border-color:#8ba682}.error-message{color:#c97d60;font-size:.85rem;margin-top:-.25rem;font-family:Georgia,Times New Roman,serif}.theme-dark .error-message{color:#d9876b}.signup-button{padding:1rem 2rem;background:#8b7355;color:#fefdf9;border:none;border-radius:8px;font-size:1.05rem;font-weight:500;cursor:pointer;transition:all .2s ease;margin-top:.5rem;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.5px;text-transform:uppercase;box-shadow:0 2px 8px #8b735533}.signup-button:hover:not(:disabled){background:#a68b5b;transform:translateY(-1px);box-shadow:0 4px 12px #8b73554d}.signup-button:active:not(:disabled){transform:translateY(0)}.signup-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.signup-message{padding:1rem;border-radius:8px;font-size:.95rem;text-align:center;margin-top:.5rem;font-family:Georgia,Times New Roman,serif}.signup-message.success{background:#f0f7ed;color:#5a7a4f;border:1px solid #7a9471}.theme-dark .signup-message.success{background:#1a2d17;color:#8ba682;border-color:#5a7a4f}.signup-message.error{background:#fdf0ed;color:#b85c47;border:1px solid #c97d60}.theme-dark .signup-message.error{background:#3a1f1a;color:#d9876b;border-color:#c97d60}.signup-switch{text-align:center;margin-top:1.5rem;color:#6b6254;font-size:.95rem;font-family:Georgia,Times New Roman,serif}.theme-dark .signup-switch{color:#9a9183}.link-button{background:none;border:none;color:#8b7355;cursor:pointer;text-decoration:underline;font-size:inherit;padding:0;font-family:inherit;transition:color .2s ease}.link-button:hover{color:#a68b5b;text-decoration:none}.theme-dark .link-button{color:#a68b5b}.theme-dark .link-button:hover{color:#c4a878}.promo-code-message{font-size:.85rem;margin-top:.25rem;display:block;font-family:Georgia,Times New Roman,serif}.promo-code-message.validating{color:#8b7d6b;font-style:italic}.theme-dark .promo-code-message.validating{color:#8b8b7b}.promo-code-message.valid{color:#5a7a4f;font-weight:500}.theme-dark .promo-code-message.valid{color:#8ba682}.promo-code-message.invalid{color:#c97d60}.theme-dark .promo-code-message.invalid{color:#d9876b}@media (max-width: 480px){.signup-card{padding:2.5rem 1.75rem}.signup-header h1{font-size:2rem}.signup-container{padding:1rem}}.usage-display{background:var(--bg-color-secondary, #f5f5f5);border-radius:8px;padding:1.5rem;margin-bottom:2rem;border:1px solid var(--border-color, #e0e0e0)}.theme-dark .usage-display{background:#2a2a2a;border-color:#444}.usage-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.usage-header h3{margin:0;font-size:1.25rem;color:var(--text-color, #333)}.theme-dark .usage-header h3{color:#e0e0e0}.usage-badge{padding:.35rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500;text-transform:uppercase}.usage-badge.tier-trial{background:#fff3cd;color:#856404}.theme-dark .usage-badge.tier-trial{background:#664d03;color:#ffc107}.usage-badge.tier-basic{background:#d1ecf1;color:#0c5460}.theme-dark .usage-badge.tier-basic{background:#0c5460;color:#bee5eb}.usage-badge.tier-pro{background:#d4edda;color:#155724}.theme-dark .usage-badge.tier-pro{background:#155724;color:#c3e6cb}.usage-badge.tier-enterprise{background:#e2e3f5;color:#383d41}.theme-dark .usage-badge.tier-enterprise{background:#4a4f53;color:#e2e3f5}.usage-stats{margin-bottom:1.5rem}.usage-bar-container{margin-bottom:.75rem}.usage-bar-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem;color:var(--text-color-secondary, #666)}.theme-dark .usage-bar-label{color:#999}.usage-percentage{font-weight:600;color:var(--text-color, #333)}.theme-dark .usage-percentage{color:#e0e0e0}.usage-bar{width:100%;height:24px;background:#e0e0e0;border-radius:12px;overflow:hidden;position:relative}.theme-dark .usage-bar{background:#444}.usage-bar-fill{height:100%;background:linear-gradient(90deg,#4caf50,#8bc34a);transition:width .3s ease;border-radius:12px}.usage-bar-fill.warning{background:linear-gradient(90deg,#ff9800,#ffc107)}.usage-bar-fill.danger{background:linear-gradient(90deg,#f44336,#ff5722)}.usage-remaining{font-size:.9rem;color:var(--text-color-secondary, #666);margin-top:.5rem}.theme-dark .usage-remaining{color:#999}.usage-limit-message{padding:.75rem 1rem;border-radius:6px;margin-top:1rem;font-size:.9rem}.usage-limit-message.error{background:#ffebee;color:#c62828;border:1px solid #f44336}.theme-dark .usage-limit-message.error{background:#4a1a1a;color:#ef5350;border-color:#f44336}.usage-limit-message.warning{background:#fff3e0;color:#e65100;border:1px solid #ff9800}.theme-dark .usage-limit-message.warning{background:#4a2c00;color:#ffb74d;border-color:#ff9800}.usage-limit-message strong{display:block;margin-bottom:.25rem}.upgrade-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color, #e0e0e0)}.theme-dark .upgrade-section{border-top-color:#444}.upgrade-section h4{margin:0 0 1rem;font-size:1.1rem;color:var(--text-color, #333)}.theme-dark .upgrade-section h4{color:#e0e0e0}.upgrade-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.upgrade-option{background:#fff;border:2px solid var(--border-color, #e0e0e0);border-radius:8px;padding:1.25rem;text-align:center;transition:all .2s ease}.theme-dark .upgrade-option{background:#1a1a1a;border-color:#444}.upgrade-option:hover{border-color:#646cff;box-shadow:0 4px 12px #646cff26}.upgrade-option-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.upgrade-option-header h5{margin:0;font-size:1.1rem;color:var(--text-color, #333)}.theme-dark .upgrade-option-header h5{color:#e0e0e0}.upgrade-price{font-size:1.25rem;font-weight:600;color:#646cff}.upgrade-tokens{font-size:.85rem;color:var(--text-color-secondary, #666);margin-bottom:1rem}.theme-dark .upgrade-tokens{color:#999}.upgrade-button{width:100%;padding:.75rem 1.5rem;background:#646cff;color:#fff;border:none;border-radius:6px;font-size:.95rem;font-weight:500;cursor:pointer;transition:background .2s ease}.upgrade-button:hover:not(:disabled){background:#535bf2}.upgrade-button:disabled{opacity:.6;cursor:not-allowed}.upgrade-loading,.usage-loading{text-align:center;padding:1rem;color:var(--text-color-secondary, #666);font-size:.9rem}.theme-dark .upgrade-loading,.theme-dark .usage-loading{color:#999}.profile-container{min-height:100vh;padding:2rem;max-width:1200px;margin:0 auto}.theme-light .profile-container{background-color:#fafafa;color:#333}.theme-dark .profile-container{background-color:#1a1a1a;color:#e0e0e0}.profile-loading{text-align:center;padding:4rem;font-size:1.2rem;opacity:.7}.profile-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid}.theme-light .profile-header{border-bottom-color:#e0e0e0}.theme-dark .profile-header{border-bottom-color:#444}.profile-info h2{margin:0 0 .25rem;font-size:1.8rem;font-family:Courier Prime,Courier New,Courier,monospace}.profile-email{margin:0;opacity:.7;font-size:.9rem}.sign-out-button{padding:.5rem 1rem;background:transparent;border:1px solid;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s ease;font-family:inherit}.theme-light .sign-out-button{border-color:#ddd;color:#666}.theme-light .sign-out-button:hover{background-color:#f0f0f0;border-color:#bbb}.theme-dark .sign-out-button{border-color:#555;color:#999}.theme-dark .sign-out-button:hover{background-color:#333;border-color:#666}.projects-section{margin-top:2rem}.projects-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.projects-header h3{margin:0;font-size:1.5rem}.new-project-button{padding:.5rem 1rem;background:#646cff;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;font-family:inherit}.new-project-button:hover{background:#535bf2;transform:translateY(-1px);box-shadow:0 4px 12px #646cff4d}.new-project-form{background:#fff;border:1px solid;border-radius:8px;padding:1.5rem;margin-bottom:2rem}.theme-light .new-project-form{background-color:#fff;border-color:#e0e0e0}.theme-dark .new-project-form{background-color:#2a2a2a;border-color:#444}.new-project-input{width:100%;padding:.75rem;border:1px solid;border-radius:6px;font-size:1rem;font-family:inherit;margin-bottom:1rem;box-sizing:border-box}.theme-light .new-project-input{background-color:#fff;border-color:#ddd;color:#333}.theme-light .new-project-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 3px #646cff1a}.theme-dark .new-project-input{background-color:#1a1a1a;border-color:#555;color:#e0e0e0}.theme-dark .new-project-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 3px #646cff33}.new-project-actions{display:flex;gap:.5rem;justify-content:flex-end}.create-button,.cancel-button{padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;font-family:inherit;border:1px solid}.create-button{background:#646cff;color:#fff;border-color:#646cff}.create-button:hover{background:#535bf2}.cancel-button{background:transparent}.theme-light .cancel-button{border-color:#ddd;color:#666}.theme-light .cancel-button:hover{background-color:#f0f0f0}.theme-dark .cancel-button{border-color:#555;color:#999}.theme-dark .cancel-button:hover{background-color:#333}.no-projects{text-align:center;padding:4rem 2rem;opacity:.7}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.project-card{background:#fff;border:1px solid;border-radius:8px;padding:1.5rem;transition:all .2s ease}.theme-light .project-card{background-color:#fff;border-color:#e0e0e0}.theme-light .project-card:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.theme-dark .project-card{background-color:#2a2a2a;border-color:#444}.theme-dark .project-card:hover{box-shadow:0 4px 12px #0000004d;transform:translateY(-2px)}.project-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem}.project-card-header h4{margin:0;font-size:1.2rem;cursor:pointer;flex:1;transition:color .2s ease}.project-card-header h4:hover{color:#646cff}.delete-project-button{background:transparent;border:none;font-size:1.5rem;cursor:pointer;opacity:.5;transition:opacity .2s ease;color:inherit;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px}.delete-project-button:hover{opacity:1;background-color:#f443361a}.project-meta{margin:0 0 1rem;font-size:.85rem;opacity:.7}.open-project-button{width:100%;padding:.5rem;background:#646cff;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;font-family:inherit}.open-project-button:hover{background:#535bf2}.file-menu-container{position:relative;display:inline-block}.file-menu-button{padding:.25rem .5rem;font-size:11px;font-weight:500;border-radius:3px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit;white-space:nowrap;min-height:24px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:transparent}.theme-light .file-menu-button{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .file-menu-button:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-dark .file-menu-button{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .file-menu-button:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.file-menu-dropdown{position:absolute;top:100%;left:0;margin-top:.25rem;min-width:180px;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;overflow:hidden;animation:slideDown .2s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.theme-light .file-menu-dropdown{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .file-menu-dropdown{background-color:#2a2a2a;border:1px solid #444}.file-menu-item{display:block;width:100%;padding:.75rem 1rem;text-align:left;border:none;background:transparent;cursor:pointer;font-size:13px;font-family:inherit;transition:background-color .2s ease}.theme-light .file-menu-item{color:#333}.theme-light .file-menu-item:hover{background-color:#f5f5f5}.theme-dark .file-menu-item{color:#e0e0e0}.theme-dark .file-menu-item:hover{background-color:#333}.legal-page{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;padding:2rem;overflow-y:auto}.legal-content{background:#fff;max-width:800px;width:100%;max-height:90vh;overflow-y:auto;padding:3rem;border-radius:8px;box-shadow:0 4px 20px #0000004d;position:relative}.theme-dark .legal-content{background:#2a2a2a;color:#e0e0e0}.legal-close-btn{position:absolute;top:1rem;right:1rem;background:transparent;border:none;font-size:2rem;cursor:pointer;color:#666;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease}.legal-close-btn:hover{background:#f0f0f0;color:#333}.theme-dark .legal-close-btn{color:#999}.theme-dark .legal-close-btn:hover{background:#333;color:#e0e0e0}.legal-content h1{font-size:2rem;margin-bottom:.5rem;color:#2a2a2a}.theme-dark .legal-content h1{color:#e0e0e0}.legal-content .last-updated{color:#666;font-size:.9rem;margin-bottom:2rem;font-style:italic}.theme-dark .legal-content .last-updated{color:#999}.legal-content section{margin-bottom:2rem}.legal-content h2{font-size:1.5rem;margin-top:2rem;margin-bottom:1rem;color:#2a2a2a}.theme-dark .legal-content h2{color:#e0e0e0}.legal-content h3{font-size:1.2rem;margin-top:1.5rem;margin-bottom:.75rem;color:#333}.theme-dark .legal-content h3{color:#d0d0d0}.legal-content p{line-height:1.6;margin-bottom:1rem;color:#444}.theme-dark .legal-content p{color:#ccc}.legal-content ul{margin-left:1.5rem;margin-bottom:1rem}.legal-content li{line-height:1.6;margin-bottom:.5rem;color:#444}.theme-dark .legal-content li{color:#ccc}.legal-content a{color:#646cff;text-decoration:none}.legal-content a:hover{text-decoration:underline}.theme-dark .legal-content a{color:#7c84ff}@media (max-width: 768px){.legal-content{padding:2rem 1.5rem;max-height:95vh}.legal-content h1{font-size:1.5rem}.legal-content h2{font-size:1.3rem}}.subscription-checkout-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.theme-dark .subscription-checkout-container{background:linear-gradient(135deg,#1a1a1a,#2d2d2d)}.subscription-checkout-card{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001a;padding:3rem;width:100%;max-width:500px;text-align:center}.theme-dark .subscription-checkout-card{background:#2a2a2a;box-shadow:0 10px 40px #0000004d;color:#e0e0e0}.subscription-checkout-card h2{margin-bottom:2rem;color:#2a2a2a}.theme-dark .subscription-checkout-card h2{color:#e0e0e0}.loading-spinner{display:flex;justify-content:center;align-items:center;margin:2rem 0}.spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #646cff;border-radius:50%;animation:spin 1s linear infinite}.theme-dark .spinner{border-color:#444;border-top-color:#646cff}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.checkout-error{margin-top:1rem}.checkout-error p{color:#f44336;margin-bottom:1rem}.theme-dark .checkout-error p{color:#ef5350}.cancel-button{padding:.75rem 1.5rem;background:#f5f5f5;color:#333;border:1px solid #ddd;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s ease}.theme-dark .cancel-button{background:#444;color:#e0e0e0;border-color:#555}.cancel-button:hover{background:#e0e0e0}.theme-dark .cancel-button:hover{background:#555}.app{max-width:1400px;margin:0 auto;padding:2rem;transition:background-color .3s ease,color .3s ease}.app.fullscreen{max-width:100%;padding:1rem}.app.focus-mode{padding:0}.app.focus-mode .main-container{margin-top:0;gap:0}.main-container{display:flex;gap:1rem;margin-top:2rem}.sidebar{width:250px;flex-shrink:0;opacity:.85;transition:opacity .3s ease,transform .3s ease}.sidebar:hover{opacity:1}.sidebar.faded{opacity:.15;pointer-events:none;transform:translate(-20px)}.app.focus-mode .sidebar.faded:hover{opacity:.3}.binder-sidebar{width:220px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid;border-radius:8px;max-height:calc(100vh - 200px);overflow:hidden;position:relative}.theme-light .binder-sidebar{background-color:#f5f5f5;border-color:#e0e0e0}.theme-dark .binder-sidebar{background-color:#222;border-color:#444}.binder-header{padding:.75rem 1rem;border-bottom:1px solid;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:.5rem}.binder-toggle-icon{width:20px;height:20px;padding:0;border:none;background:transparent;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease;flex-shrink:0}.binder-toggle-icon:hover{opacity:.7}.binder-sidebar.minimized{width:220px;height:auto;max-height:45px;overflow:hidden}.binder-sidebar.minimized .binder-content,.binder-sidebar.minimized .binder-footer{display:none}.binder-sidebar.minimized .binder-header{border-bottom:none}.theme-light .binder-header{border-color:#e0e0e0;background-color:#fafafa;color:#666}.theme-dark .binder-header{border-color:#444;background-color:#2a2a2a;color:#999}.binder-content{flex:1;overflow-y:auto;padding:.5rem .5rem .5rem 1rem;min-height:0}.binder-item-wrapper{-webkit-user-select:none;user-select:none}.binder-item{display:flex;align-items:center;gap:.5rem;padding:.4rem .75rem .4rem 0!important;cursor:pointer;transition:background-color .15s ease,opacity .15s ease;position:relative}.binder-item.dragging{opacity:.5;cursor:grabbing}.binder-item.drag-over{background-color:#646cff33!important;border:2px dashed rgba(100,108,255,.5);border-radius:4px}.theme-light .binder-item:hover{background-color:#eee}.theme-dark .binder-item:hover{background-color:#333}.theme-light .binder-item.active{background-color:#e3f2fd;color:#1976d2}.theme-dark .binder-item.active{background-color:#2a3a5a;color:#64b5f6}.binder-chevron{width:12px;font-size:10px;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-block;flex-shrink:0}.binder-spacer{width:12px}.binder-icon{font-size:14px;flex-shrink:0}.binder-name{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.binder-name-input{flex:1;border:none;background:transparent;font-size:13px;padding:0;font-family:inherit;min-width:0}.theme-light .binder-name-input{color:#333}.theme-light .binder-name-input:focus{outline:1px solid #646cff;background-color:#fff;padding:.2rem;border-radius:3px}.theme-dark .binder-name-input{color:#e0e0e0}.theme-dark .binder-name-input:focus{outline:1px solid #646cff;background-color:#2a2a2a;padding:.2rem;border-radius:3px}.binder-delete{opacity:0;width:18px;height:18px;border:none;background:transparent;cursor:pointer;font-size:16px;line-height:1;padding:0;transition:opacity .15s ease;flex-shrink:0}.binder-item:hover .binder-delete{opacity:.6}.binder-item:hover .binder-delete:hover{opacity:1}.theme-light .binder-delete{color:#999}.theme-dark .binder-delete{color:#666}.binder-children{display:flex;flex-direction:column}.binder-add-item{display:flex;align-items:center;gap:.5rem;padding:.4rem .75rem;cursor:pointer;opacity:.6;transition:opacity .15s ease;font-size:12px}.binder-add-item:hover{opacity:1}.theme-light .binder-add-item{color:#666}.theme-light .binder-add-item:hover{background-color:#eee}.theme-dark .binder-add-item{color:#999}.theme-dark .binder-add-item:hover{background-color:#333}.binder-add-text{font-size:12px}.binder-footer{display:flex;gap:.5rem;padding:.75rem;border-top:1px solid;justify-content:center;position:relative;z-index:10;flex-shrink:0}.theme-light .binder-footer{border-color:#e0e0e0;background-color:#fafafa}.theme-dark .binder-footer{border-color:#444;background-color:#2a2a2a}.binder-footer-btn{width:36px;height:36px;padding:0;border:1px solid;border-radius:6px;cursor:pointer;font-size:18px;transition:all .15s ease;background:transparent;display:flex;align-items:center;justify-content:center;position:relative;z-index:1;pointer-events:auto}.theme-light .binder-footer-btn{border-color:#ddd;color:#666}.theme-light .binder-footer-btn:hover{background-color:#e0e0e0;border-color:#bbb;transform:scale(1.05)}.theme-dark .binder-footer-btn{border-color:#555;color:#999}.theme-dark .binder-footer-btn:hover{background-color:#333;border-color:#666;transform:scale(1.05)}.binder-footer-btn.trash-btn.drag-over{background-color:#f4433633!important;border-color:#f44336!important;transform:scale(1.1)}.theme-light .binder-footer-btn.trash-btn.drag-over{background-color:#f4433626!important;border-color:#d32f2f!important}.theme-dark .binder-footer-btn.trash-btn.drag-over{background-color:#f4433640!important;border-color:#f44336!important}.editor-container{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transition:all .3s ease;position:relative}.floating-selection-popup{position:absolute!important;pointer-events:auto!important;animation:fadeInRight .2s ease-out;transform:translateY(-50%) translate(-100%);z-index:10000!important;visibility:visible!important;opacity:1!important;display:block!important;will-change:transform,opacity;left:var(--popup-left, auto)!important;top:var(--popup-top, auto)!important}@keyframes fadeInRight{0%{opacity:0;transform:translateY(-50%) translate(-100%) translate(5px)}to{opacity:1;transform:translateY(-50%) translate(-100%)}}.floating-popup-content{display:flex;flex-direction:column;gap:.5rem;background:#fff;border-radius:20px;box-shadow:0 4px 12px #00000026;padding:.5rem .4rem;border:1px solid rgba(0,0,0,.1)}.floating-popup-btn{padding:.5rem;border:none;border-radius:50%;cursor:pointer;font-size:18px;font-weight:500;transition:all .2s ease;white-space:nowrap;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent}.floating-popup-btn.comment-btn{background-color:#646cff;color:#fff;border:2px solid white;box-shadow:0 2px 4px #0000001a}.floating-popup-btn.comment-btn:hover{background-color:#535bf2;transform:scale(1.1);box-shadow:0 3px 6px #00000026}.floating-popup-btn.wizard-btn{background-color:#f0f0f0;color:#333;border:2px solid white;box-shadow:0 2px 4px #0000001a}.floating-popup-btn.wizard-btn:hover{background-color:#e0e0e0;transform:scale(1.1);box-shadow:0 3px 6px #00000026}.theme-dark .floating-popup-content{background:#2a2a2a;border-color:#fff3}.theme-dark .floating-popup-btn.comment-btn{border-color:#2a2a2a}.theme-dark .floating-popup-btn.wizard-btn{background-color:#3a3a3a;color:#e0e0e0;border-color:#2a2a2a}.theme-dark .floating-popup-btn.wizard-btn:hover{background-color:#4a4a4a}.floating-comment{position:absolute;width:200px;max-width:calc(100vw - 40px);pointer-events:auto;animation:slideInRight .3s ease-out}@media (max-width: 1024px){.floating-comment{width:180px;right:2px!important}}@media (max-width: 768px){.floating-comment{width:160px;max-width:calc(100vw - 20px);right:2px!important}}@media (max-width: 480px){.floating-comment{width:140px;max-width:calc(100vw - 10px);right:2px!important}}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.floating-comment-content{background:#fff;border-radius:6px;box-shadow:0 2px 8px #0000001f;border:1px solid rgba(0,0,0,.1);padding:.6rem;display:flex;flex-direction:column;gap:.4rem;transition:all .2s ease}.floating-comment-content:not(.floating-comment-editing):hover{box-shadow:0 4px 12px #646cff33;border-color:#646cff;transform:translate(-5px)}@media (max-width: 768px){.floating-comment-content{padding:.5rem;gap:.35rem}}@media (max-width: 480px){.floating-comment-content{padding:.4rem;gap:.3rem}}.floating-comment-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.4rem;padding-bottom:.4rem;border-bottom:1px solid rgba(0,0,0,.1)}.floating-comment-text-preview{font-size:9px;color:#666;font-style:italic;flex:1;line-height:1.2;word-wrap:break-word;overflow-wrap:break-word;max-width:calc(100% - 25px)}@media (max-width: 768px){.floating-comment-text-preview{font-size:8px}}.floating-comment-close{background:transparent;border:none;font-size:18px;cursor:pointer;color:#999;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all .2s ease;flex-shrink:0}.floating-comment-close:hover{background-color:#0000000d;color:#333}.floating-comment-input-section{display:flex;flex-direction:column;gap:.5rem}.floating-comment-input{width:100%;padding:.4rem;border:1px solid rgba(0,0,0,.2);border-radius:4px;font-size:11px;font-family:inherit;resize:vertical;min-height:45px;box-sizing:border-box}@media (max-width: 768px){.floating-comment-input{padding:.35rem;font-size:10px;min-height:40px}}@media (max-width: 480px){.floating-comment-input{padding:.3rem;font-size:10px;min-height:35px}}.floating-comment-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.floating-comment-display{display:flex;flex-direction:column;gap:.75rem}.floating-comment-question{font-size:12px;font-weight:500;color:#333;line-height:1.4;word-wrap:break-word;overflow-wrap:break-word}@media (max-width: 768px){.floating-comment-question{font-size:11px}}.floating-comment-response{font-size:11px;color:#666;line-height:1.4;padding:.5rem;background-color:#f8f8f8;border-radius:6px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}@media (max-width: 768px){.floating-comment-response{font-size:10px;padding:.4rem}}.theme-dark .floating-comment-content{background:#2a2a2a;border-color:#fff3}.theme-dark .floating-comment-header{border-bottom-color:#ffffff1a}.theme-dark .floating-comment-text-preview,.theme-dark .floating-comment-close{color:#999}.theme-dark .floating-comment-close:hover{background-color:#ffffff1a;color:#e0e0e0}.theme-dark .floating-comment-input{background-color:#1a1a1a;border-color:#fff3;color:#e0e0e0}.theme-dark .floating-comment-input:focus{border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.theme-dark .floating-comment-question{color:#e0e0e0}.theme-dark .floating-comment-response{background-color:#1a1a1a;color:#bbb}.center-loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:10000000!important;pointer-events:none;background:#0000001a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.wizard-pending-change{background-color:#646cff26;border-bottom:2px solid #646cff;padding:2px 0;animation:wizardChangePulse 2s ease-in-out infinite}@keyframes wizardChangePulse{0%,to{background-color:#646cff26}50%{background-color:#646cff40}}.theme-dark .wizard-pending-change{background-color:#646cff33;border-bottom-color:#646cff}.wizard-change-buttons{display:flex;gap:.5rem;align-items:center;animation:wizardButtonsFadeIn .2s ease-out}@keyframes wizardButtonsFadeIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.wizard-change-accept-btn-inline,.wizard-change-reject-btn-inline{width:32px;height:32px;border-radius:50%;border:2px solid;cursor:pointer;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;transition:all .2s ease;box-shadow:0 2px 8px #0003;padding:0}.wizard-change-accept-btn-inline{background-color:#646cff;border-color:#646cff;color:#fff}.wizard-change-accept-btn-inline:hover{background-color:#535bf2;border-color:#535bf2;transform:scale(1.1);box-shadow:0 4px 12px #646cff66}.wizard-change-reject-btn-inline{background-color:#fff;border-color:#e0e0e0;color:#666}.wizard-change-reject-btn-inline:hover{background-color:#f0f0f0;border-color:#ccc;transform:scale(1.1);box-shadow:0 4px 12px #0003}.theme-dark .wizard-change-reject-btn-inline{background-color:#2a2a2a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-change-reject-btn-inline:hover{background-color:#3a3a3a;border-color:#ffffff4d}.center-loading-hourglass{font-size:64px;animation:hourglassRotate 1.5s ease-in-out infinite;display:inline-block;filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}@keyframes hourglassRotate{0%{transform:rotate(0);opacity:1}25%{transform:rotate(90deg);opacity:.9}50%{transform:rotate(180deg);opacity:.8}75%{transform:rotate(270deg);opacity:.9}to{transform:rotate(360deg);opacity:1}}.wizard-menu{position:absolute;transform:translateY(-50%);z-index:1000000!important;pointer-events:auto;animation:wizardMenuFadeIn .2s ease-out}@keyframes wizardMenuFadeIn{0%{opacity:0;transform:translateY(-50%) scale(.8)}to{opacity:1;transform:translateY(-50%) scale(1)}}.wizard-menu-buttons{display:flex;flex-direction:column;gap:.4rem;background:#fff;border-radius:12px;padding:.5rem;box-shadow:0 2px 8px #00000026;border:1px solid rgba(0,0,0,.1)}.wizard-menu-btn{width:auto;min-width:50px;height:auto;min-height:50px;border-radius:50%;border:2px solid rgba(0,0,0,.1);background:#fff;box-shadow:0 2px 6px #0000001a;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;transition:all .2s ease;padding:.35rem;z-index:1000001!important;position:relative}.wizard-btn-icon{font-size:16px;line-height:1}.wizard-btn-icon.wizard-loading{animation:hourglassSpin 1.2s ease-in-out infinite;display:inline-block;font-size:18px}@keyframes hourglassSpin{0%{transform:rotate(0);opacity:1}25%{transform:rotate(90deg);opacity:.8}50%{transform:rotate(180deg);opacity:.6}75%{transform:rotate(270deg);opacity:.8}to{transform:rotate(360deg);opacity:1}}.wizard-btn-label{font-size:9px;font-weight:500;line-height:1;white-space:nowrap;color:#333}.wizard-menu-btn:hover:not(:disabled){transform:scale(1.08);box-shadow:0 3px 8px #0003;border-color:#646cff;background:#f8f9ff}.wizard-menu-btn:hover:not(:disabled) .wizard-btn-label{color:#646cff}.wizard-menu-btn:disabled{opacity:.5;cursor:not-allowed}.wizard-menu-btn.wizard-custom-btn{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff;border-color:#646cff}.wizard-menu-btn.wizard-custom-btn .wizard-btn-label{color:#fff}.wizard-menu-btn.wizard-custom-btn:hover:not(:disabled){background:linear-gradient(135deg,#535bf2,#4348d9);transform:scale(1.08)}.wizard-menu-btn.wizard-custom-btn:hover:not(:disabled) .wizard-btn-label{color:#fff}.wizard-custom-input-container{position:absolute;top:50%;right:calc(100% + 12px);transform:translateY(-50%);background:#fff;border-radius:8px;box-shadow:0 4px 16px #0003;padding:.75rem;min-width:240px;z-index:1000002!important;animation:wizardInputSlideIn .2s ease-out}@keyframes wizardInputSlideIn{0%{opacity:0;transform:translateY(-50%) scale(.9)}to{opacity:1;transform:translateY(-50%) scale(1)}}.wizard-custom-input-inline{width:100%;padding:.5rem;border:1px solid rgba(0,0,0,.2);border-radius:6px;font-size:12px;font-family:inherit;resize:none;min-height:50px;margin-bottom:.5rem;box-sizing:border-box}.wizard-custom-input-inline:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.wizard-custom-actions{display:flex;gap:.5rem;justify-content:flex-end}.wizard-apply-btn,.wizard-cancel-btn{padding:.4rem .75rem;border:none;border-radius:4px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease}.wizard-apply-btn{background-color:#646cff;color:#fff}.wizard-apply-btn:hover:not(:disabled){background-color:#535bf2}.wizard-apply-btn:disabled{opacity:.5;cursor:not-allowed}.wizard-cancel-btn{background-color:#f0f0f0;color:#333}.wizard-cancel-btn:hover{background-color:#e0e0e0}.theme-dark .wizard-menu-btn{background:#2a2a2a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-menu-btn .wizard-btn-label{color:#e0e0e0}.theme-dark .wizard-menu-btn:hover:not(:disabled){background:#3a3a3a;border-color:#646cff}.theme-dark .wizard-menu-btn:hover:not(:disabled) .wizard-btn-label{color:#646cff}.theme-dark .wizard-menu-buttons{background:#2a2a2a;border-color:#fff3}.theme-dark .wizard-menu-btn.wizard-custom-btn{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff}.theme-dark .wizard-custom-input-container{background:#2a2a2a;border:1px solid rgba(255,255,255,.1)}.theme-dark .wizard-custom-input-inline{background-color:#1a1a1a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-custom-input-inline:focus{border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.theme-dark .wizard-cancel-btn{background-color:#3a3a3a;color:#e0e0e0}.theme-dark .wizard-cancel-btn:hover{background-color:#4a4a4a}.wizard-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .2s ease-out}.wizard-dialog{background:#fff;border-radius:12px;box-shadow:0 8px 32px #0003;width:90%;max-width:500px;max-height:80vh;overflow-y:auto;animation:slideUp .3s ease-out}.wizard-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.1)}.wizard-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:#333}.wizard-dialog-close{background:transparent;border:none;font-size:24px;cursor:pointer;color:#999;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease}.wizard-dialog-close:hover{background-color:#0000000d;color:#333}.wizard-dialog-content{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.wizard-selected-text{font-size:13px;color:#666;padding:.75rem;background-color:#f8f8f8;border-radius:6px;line-height:1.5}.wizard-presets{display:flex;flex-direction:column;gap:.5rem}.wizard-preset-btn{padding:.75rem 1rem;border:1px solid rgba(0,0,0,.2);border-radius:6px;background:#fff;cursor:pointer;font-size:13px;font-weight:500;text-align:left;transition:all .2s ease}.wizard-preset-btn:hover:not(:disabled){background-color:#f0f0f0;border-color:#646cff;transform:translate(4px)}.wizard-preset-btn:disabled{opacity:.5;cursor:not-allowed}.wizard-custom{display:flex;flex-direction:column;gap:.75rem}.wizard-custom label{font-size:13px;font-weight:500;color:#333}.wizard-custom-input{width:100%;padding:.75rem;border:1px solid rgba(0,0,0,.2);border-radius:6px;font-size:13px;font-family:inherit;resize:vertical;min-height:80px}.wizard-custom-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.wizard-submit-btn{padding:.75rem 1.5rem;border:none;border-radius:6px;background-color:#646cff;color:#fff;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;align-self:flex-end}.wizard-submit-btn:hover:not(:disabled){background-color:#535bf2;transform:translateY(-1px)}.wizard-submit-btn:disabled{opacity:.5;cursor:not-allowed}.theme-dark .wizard-dialog{background:#2a2a2a}.theme-dark .wizard-dialog-header{border-bottom-color:#ffffff1a}.theme-dark .wizard-dialog-header h3{color:#e0e0e0}.theme-dark .wizard-dialog-close{color:#999}.theme-dark .wizard-dialog-close:hover{background-color:#ffffff1a;color:#e0e0e0}.theme-dark .wizard-selected-text{background-color:#1a1a1a;color:#999}.theme-dark .wizard-preset-btn{background:#1a1a1a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-preset-btn:hover:not(:disabled){background-color:#2a2a2a;border-color:#646cff}.theme-dark .wizard-custom label{color:#e0e0e0}.theme-dark .wizard-custom-input{background-color:#1a1a1a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-custom-input:focus{border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.editor-wrapper{width:100%;max-width:680px;margin-left:auto;margin-right:auto;display:flex;justify-content:center;transition:transform .2s ease,margin-bottom .2s ease;min-height:0;position:relative;padding-right:60px;box-sizing:border-box}.editor-wrapper>.empty-document-buttons{position:absolute;top:4.5rem;left:50%;transform:translate(-50%);width:auto;z-index:10}@media (max-width: 768px){.editor-wrapper{max-width:100%;padding-right:40px}}@media (max-width: 480px){.editor-wrapper{padding-right:20px}}.main-container.binder-minimized .editor-container,.main-container.ai-minimized .editor-container{flex:1.8}.main-container.binder-minimized.ai-minimized .editor-container{flex:2.5}.ai-sidebar{width:220px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid;border-radius:8px;max-height:calc(100vh - 200px);overflow:hidden;position:relative;transition:width .3s ease,opacity .3s ease}.ai-sidebar.collapsed{width:45px}.theme-light .ai-sidebar{background-color:#f5f5f5;border-color:#e0e0e0}.theme-dark .ai-sidebar{background-color:#222;border-color:#444}.ai-sidebar-header{padding:.75rem 1rem;border-bottom:1px solid;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:.5rem}.ai-toggle-icon{width:20px;height:20px;padding:0;border:none;background:transparent;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease;flex-shrink:0}.ai-toggle-icon:hover{opacity:.7}.ai-sidebar.minimized{width:220px;height:auto;max-height:45px;overflow:hidden}.ai-sidebar.minimized .ai-sidebar-content,.ai-sidebar.minimized .ai-sidebar-footer{display:none}.ai-sidebar.minimized .ai-sidebar-header{border-bottom:none}.theme-light .ai-sidebar-header{border-color:#e0e0e0;background-color:#fafafa;color:#666}.theme-dark .ai-sidebar-header{border-color:#444;background-color:#2a2a2a;color:#999}.ai-sidebar-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-sidebar.collapsed .ai-sidebar-title{display:none}.ai-sidebar-toggle{width:20px;height:20px;padding:0;border:none;background:transparent;cursor:pointer;font-size:10px;color:inherit;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;flex-shrink:0}.ai-sidebar-toggle:hover{opacity:.7}.ai-sidebar-content{flex:1;overflow-y:auto;padding:1rem;min-height:0}.ai-chat-area{display:flex;flex-direction:column;gap:1rem;overflow-y:auto;max-height:calc(100vh - 400px);padding:.5rem}.ai-messages{display:flex;flex-direction:column;gap:.75rem}.ai-message{display:flex;flex-direction:column;padding:.5rem .75rem;border-radius:6px;font-size:12px;line-height:1.5;word-wrap:break-word}.ai-message-user{align-self:flex-end;max-width:85%;background-color:#646cff;color:#fff;border-bottom-right-radius:2px}.ai-message-assistant{align-self:flex-start;max-width:90%;border-bottom-left-radius:2px}.theme-light .ai-message-assistant{background-color:#f0f0f0;color:#333}.theme-dark .ai-message-assistant{background-color:#2a2a2a;color:#e0e0e0}.ai-message-content{white-space:pre-wrap}.ai-loading{opacity:.7;font-style:italic}.ai-send-btn:disabled{opacity:.5;cursor:not-allowed}.ai-prompt-input:disabled{opacity:.6;cursor:not-allowed}.ai-welcome-message{font-size:13px;line-height:1.6}.theme-light .ai-welcome-message{color:#666}.theme-dark .ai-welcome-message{color:#999}.ai-welcome-message p{margin:0 0 .5rem}.ai-examples{margin-top:1rem;font-weight:600;font-size:12px}.ai-examples-list{margin:.5rem 0 0;padding-left:1.25rem;font-size:12px}.ai-examples-list li{margin:.25rem 0;opacity:.8}.ai-sidebar-footer{padding:.75rem;border-top:1px solid;flex-shrink:0}.theme-light .ai-sidebar-footer{border-color:#e0e0e0;background-color:#fafafa}.theme-dark .ai-sidebar-footer{border-color:#444;background-color:#2a2a2a}.ai-prompt-container{display:flex;gap:.5rem;align-items:flex-end}.ai-prompt-input{flex:1;min-height:60px;max-height:120px;padding:.5rem;border:1px solid;border-radius:6px;font-size:12px;font-family:inherit;resize:vertical;line-height:1.5}.theme-light .ai-prompt-input{background-color:#fff;color:#333;border-color:#ddd}.theme-light .ai-prompt-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.theme-dark .ai-prompt-input{background-color:#2a2a2a;color:#e0e0e0;border-color:#555}.theme-dark .ai-prompt-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.ai-send-btn{width:36px;height:36px;padding:0;border:1px solid;border-radius:6px;cursor:pointer;font-size:16px;transition:all .15s ease;background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0}.theme-light .ai-send-btn{border-color:#ddd;color:#666}.theme-light .ai-send-btn:hover{background-color:#646cff;border-color:#646cff;color:#fff;transform:scale(1.05)}.theme-dark .ai-send-btn{border-color:#555;color:#999}.theme-dark .ai-send-btn:hover{background-color:#646cff;border-color:#646cff;color:#fff;transform:scale(1.05)}.theme-light{background-color:#fafafa;color:#333}.theme-light h1{color:#333}.theme-light .word-count,.theme-light .char-count,.theme-light .session-word-count{color:#888;font-weight:400}.theme-light .editor{background-color:#fff;color:#2a2a2a;border:none;box-shadow:0 2px 8px #0000000f;max-width:680px;width:100%;margin:0 auto}.theme-light .editor:focus{box-shadow:0 4px 16px #646cff1f}.theme-light .theme-toggle{background-color:#f5f5f5;color:#333;border:1px solid #e8e8e8}.theme-dark{background-color:#1a1a1a;color:#e0e0e0}.theme-dark h1{color:#e0e0e0}.theme-dark .word-count,.theme-dark .char-count,.theme-dark .session-word-count{color:#999;font-weight:400}.theme-dark .editor{background-color:#252525;color:#e8e8e8;border:none;box-shadow:0 2px 8px #0000004d;max-width:680px;width:100%;margin:0 auto}.theme-dark .editor:focus{box-shadow:0 4px 16px #646cff33}.theme-dark .theme-toggle{background-color:#2a2a2a;color:#e0e0e0;border:1px solid #3a3a3a}.header{display:flex;justify-content:center;align-items:center;margin-bottom:.1rem;max-width:680px;width:100%;padding:0 2.5rem;gap:0;position:relative;z-index:100;margin-left:auto;margin-right:auto;box-sizing:border-box}@media (max-width: 768px){.header{padding:0 1rem;max-width:100%}}@media (max-width: 480px){.header{padding:0 .75rem}}.header-actions{display:flex;align-items:center;gap:1rem}h1{margin:0 auto;text-align:center;flex:1;font-family:Courier Prime,Courier New,Courier,monospace;position:relative;font-size:4em;line-height:1.1;display:flex;justify-content:center;align-items:center;width:100%}.cozywrite-text{display:inline-flex;align-items:center;justify-content:center;gap:.25rem;background:transparent;margin:0 auto}.cozywrite-title{display:inline-block;position:relative;background:transparent}.cozycat-inline-wrapper{display:inline-block;position:relative;vertical-align:middle;margin:0 .25rem}.cozycat-inline{display:inline-block;position:relative;cursor:pointer;vertical-align:middle;line-height:1}.cozycat-inline-image{width:72px;height:auto;display:block;image-rendering:pixelated;image-rendering:-moz-crisp-edges;image-rendering:crisp-edges;vertical-align:middle}.cozycat-dialogue-inline{position:absolute;top:0;left:calc(100% + .5rem);min-width:160px;max-width:200px;pointer-events:auto;z-index:101}.save-status{font-size:12px;padding:.25rem .5rem;border-radius:4px;font-weight:500}.save-status.saving{color:#646cff}.save-status.saved{color:#4caf50}.save-status.copied{color:#ff9800}.theme-toggle{font-size:11px;padding:.25rem .5rem;border-radius:3px;cursor:pointer;transition:all .2s ease;font-weight:500;white-space:nowrap;border:1px solid;font-family:inherit;position:relative;z-index:10}.theme-light .theme-toggle{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .theme-toggle:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-dark .theme-toggle{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .theme-toggle:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.music-toggle{font-size:11px;padding:.25rem .5rem;border-radius:3px;cursor:pointer;transition:all .2s ease;font-weight:500;white-space:nowrap;border:1px solid;font-family:inherit;position:relative;z-index:10}.theme-light .music-toggle{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .music-toggle:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-light .music-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.theme-dark .music-toggle{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .music-toggle:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.theme-dark .music-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.stats{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:.75rem}.stats-row{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.word-count,.char-count,.session-word-count{font-size:13px;font-weight:400;letter-spacing:.3px}.toolbar{display:flex;flex-direction:column;align-items:center;gap:.3rem;margin-bottom:.75rem;margin-top:0;max-width:680px;width:100%;margin-left:auto;margin-right:auto;padding:0 2.5rem;transition:opacity .3s ease,transform .3s ease,margin .3s ease;position:relative;z-index:1;box-sizing:border-box}.toolbar{max-width:min(680px,100%)}.main-container:not(.binder-minimized):not(.ai-minimized) .editor-container .toolbar{max-width:100%}.main-container.binder-minimized:not(.ai-minimized) .editor-container .toolbar,.main-container:not(.binder-minimized).ai-minimized .editor-container .toolbar{max-width:100%}.main-container.binder-minimized.ai-minimized .editor-container .toolbar{max-width:min(680px,100%)}@media (max-width: 768px){.toolbar{padding:0 1rem;max-width:100%}.main-container:not(.binder-minimized):not(.ai-minimized) .toolbar{max-width:calc(100vw - 480px)}.main-container.binder-minimized:not(.ai-minimized) .toolbar,.main-container:not(.binder-minimized).ai-minimized .toolbar{max-width:calc(100vw - 260px)}}@media (max-width: 480px){.toolbar{padding:0 .75rem}}.toolbar.hidden{opacity:0;transform:translateY(-10px);pointer-events:none;margin-bottom:0;height:0;overflow:hidden}.toolbar.focus-toolbar{position:absolute;top:1rem;left:50%;transform:translate(-50%);background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.75rem 1rem;border-radius:8px;box-shadow:0 4px 20px #0000001a;z-index:10;max-width:90%;flex-direction:row;gap:.5rem;flex-wrap:wrap;justify-content:center;align-items:center}.toolbar.focus-toolbar.hidden{transform:translate(-50%) translateY(-20px)}.theme-dark .toolbar.focus-toolbar{background:#252525f2;box-shadow:0 4px 20px #0006}.format-group,.action-group{display:flex;justify-content:center;align-items:center;gap:.15rem;flex-wrap:wrap;width:100%;max-width:100%}.toolbar.focus-toolbar .format-group,.toolbar.focus-toolbar .action-group{flex-wrap:nowrap}.zoom-control{display:flex;align-items:center;gap:.1rem;padding:.15rem .2rem;border:1px solid;border-radius:3px;background-color:#fff}.theme-light .zoom-control{border-color:#e8e8e8;background-color:#fff}.theme-dark .zoom-control{border-color:#3a3a3a;background-color:#2a2a2a}.zoom-btn{width:20px;height:20px;padding:0;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;transition:all .2s ease;border-radius:2px;line-height:1}.theme-light .zoom-btn{color:#555}.theme-light .zoom-btn:hover{background-color:#f0f0f0;color:#333}.theme-dark .zoom-btn{color:#bbb}.theme-dark .zoom-btn:hover{background-color:#333;color:#e0e0e0}.zoom-level{font-size:10px;font-weight:500;min-width:24px;text-align:center;-webkit-user-select:none;user-select:none;padding:0 .1rem}.theme-light .zoom-level{color:#666}.theme-dark .zoom-level{color:#999}.font-controls{display:flex;align-items:center;gap:.15rem;flex-wrap:wrap;justify-content:center}.toolbar.focus-toolbar .font-controls{flex-wrap:wrap}.font-select,.font-size-select{padding:.25rem .3rem;font-size:10px;font-weight:500;border-radius:3px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit;height:24px}.font-select{min-width:85px;max-width:120px;width:auto}.font-size-select{min-width:50px;max-width:65px}.theme-light .font-select,.theme-light .font-size-select{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .font-select:hover,.theme-light .font-size-select:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-light .font-select:focus,.theme-light .font-size-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.theme-dark .font-select,.theme-dark .font-size-select{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .font-select:hover,.theme-dark .font-size-select:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.theme-dark .font-select:focus,.theme-dark .font-size-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.font-size-select{min-width:65px}.format-btn.align-btn{min-width:32px;padding:.25rem .4rem}.format-btn,.action-btn,.preview-toggle,.fullscreen-toggle,.theme-toggle,.music-toggle,.focus-toggle{padding:.25rem .5rem;font-size:11px;font-weight:500;border-radius:3px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit;position:relative;z-index:10;white-space:nowrap;min-height:24px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.theme-light .format-btn,.theme-light .action-btn,.theme-light .fullscreen-toggle,.theme-light .theme-toggle,.theme-light .music-toggle,.theme-light .focus-toggle{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .format-btn:hover,.theme-light .action-btn:hover,.theme-light .fullscreen-toggle:hover,.theme-light .theme-toggle:hover,.theme-light .music-toggle:hover,.theme-light .focus-toggle:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-dark .format-btn,.theme-dark .action-btn,.theme-dark .fullscreen-toggle,.theme-dark .theme-toggle,.theme-dark .music-toggle,.theme-dark .focus-toggle{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .format-btn:hover,.theme-dark .action-btn:hover,.theme-dark .fullscreen-toggle:hover,.theme-dark .theme-toggle:hover,.theme-dark .music-toggle:hover,.theme-dark .focus-toggle:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.format-btn strong{font-weight:600}.format-btn em{font-style:italic}.format-btn.undo-redo-btn{padding:.25rem .5rem;font-size:11px}.toolbar.focus-toolbar .format-btn.undo-redo-btn{padding:.5rem .9rem;min-width:auto;width:auto;font-size:0;position:relative}.toolbar.focus-toolbar .format-btn.undo-redo-btn:before{content:attr(data-icon);font-size:13px;display:inline-block}.format-btn.undo-redo-btn:disabled{opacity:.4;cursor:not-allowed}.color-picker-wrapper{position:relative;display:inline-block}.color-picker-container{position:absolute;top:100%;left:0;margin-top:.25rem;background:#fff;border:1px solid #e0e0e0;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:.5rem;z-index:1000;min-width:200px}.theme-dark .color-picker-container{background:#2a2a2a;border-color:#444;box-shadow:0 4px 12px #0006}.color-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:.3rem;margin-bottom:.5rem}.color-swatch{width:28px;height:28px;border:2px solid #ddd;border-radius:4px;cursor:pointer;transition:all .2s ease;padding:0;background:none}.color-swatch:hover{transform:scale(1.1);border-color:#646cff;box-shadow:0 2px 6px #646cff4d}.theme-dark .color-swatch{border-color:#555}.theme-dark .color-swatch:hover{border-color:#7c84ff;box-shadow:0 2px 6px #7c84ff66}.highlight-swatch{border-radius:2px}.color-picker-more{width:100%;padding:.4rem;font-size:11px;border:1px solid #e0e0e0;border-radius:4px;background:#f8f8f8;color:#666;cursor:pointer;transition:all .2s ease;text-align:center}.color-picker-more:hover{background:#646cff;color:#fff;border-color:#646cff}.theme-dark .color-picker-more{background:#333;color:#ccc;border-color:#555}.theme-dark .color-picker-more:hover{background:#7c84ff;color:#fff;border-color:#7c84ff}.theme-light .preview-toggle{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .preview-toggle:hover,.theme-light .preview-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.theme-dark .preview-toggle{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .preview-toggle:hover,.theme-dark .preview-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.editor{width:100%;min-height:500px;padding:1rem 2.5rem;font-size:18px;font-family:Courier Prime,Courier New,Courier,monospace;line-height:1.5;border-radius:8px;resize:vertical;box-sizing:border-box;transition:background-color .3s ease,color .3s ease,box-shadow .3s ease,padding .3s ease,max-width .3s ease}.editor p,.editor>div{margin:0;padding:0;text-indent:2.5em;line-height:1.5}.editor>p:first-child,.editor>div:first-child,.editor h1+p,.editor h1+div,.editor h2+p,.editor h2+div,.editor h3+p,.editor h3+div,.editor h4+p,.editor h4+div,.editor h5+p,.editor h5+div,.editor h6+p,.editor h6+div{text-indent:0}.editor br{display:block;content:"";margin:0;line-height:1.5}.editor>div+div{margin-top:0;padding-top:0}@media (max-width: 768px){.editor{padding:1rem}}@media (max-width: 480px){.editor{padding:1rem .75rem}}.editor:focus{outline:none}.rich-text-editor{overflow-y:auto;white-space:pre-wrap;word-wrap:break-word;line-height:1.5}.rich-text-editor p,.rich-text-editor>div{margin:0;padding:0;text-indent:2.5em;line-height:1.5}.rich-text-editor>p:first-child,.rich-text-editor>div:first-child,.rich-text-editor h1+p,.rich-text-editor h1+div,.rich-text-editor h2+p,.rich-text-editor h2+div,.rich-text-editor h3+p,.rich-text-editor h3+div,.rich-text-editor h4+p,.rich-text-editor h4+div,.rich-text-editor h5+p,.rich-text-editor h5+div,.rich-text-editor h6+p,.rich-text-editor h6+div{text-indent:0}.rich-text-editor>div+div{margin-top:0;padding-top:0}.empty-document-buttons{position:absolute;top:4.5rem;left:50%;transform:translate(-50%);display:flex;flex-direction:row;gap:.4rem;justify-content:center;align-items:center;width:auto;max-width:680px;z-index:10;pointer-events:none}.empty-doc-button{padding:.35rem .75rem;font-size:11px;font-weight:400;border:1px solid;border-radius:5px;cursor:pointer;transition:all .2s ease;font-family:Courier Prime,Courier New,Courier,monospace;text-align:center;white-space:nowrap;pointer-events:auto;background:transparent;opacity:.7}.theme-light .empty-doc-button{border-color:#ccc;color:#888;background-color:#ffffffe6}.theme-light .empty-doc-button:hover{background-color:#fff;border-color:#aaa;color:#666;opacity:1;transform:translateY(-1px)}.theme-dark .empty-doc-button{border-color:#555;color:#999;background-color:#252525e6}.theme-dark .empty-doc-button:hover{background-color:#252525;border-color:#666;color:#bbb;opacity:1;transform:translateY(-1px)}@media (max-width: 768px){.empty-document-buttons{flex-wrap:wrap;gap:.35rem;top:4rem}.empty-doc-button{font-size:10px;padding:.3rem .65rem}}@media (max-width: 480px){.empty-document-buttons{gap:.3rem;top:3.5rem}.empty-doc-button{padding:.3rem .55rem;font-size:10px}}.rich-text-editor:empty:before{content:attr(data-placeholder);color:#999;pointer-events:none}.theme-dark .rich-text-editor:empty:before{color:#666}.editor.focus-editor{max-width:100%;padding:2rem 3rem 4rem;min-height:calc(100vh - 2rem);border-radius:0;box-shadow:none}.theme-light .editor.focus-editor{background-color:#fefefe}.theme-dark .editor.focus-editor{background-color:#1f1f1f}.preview{width:100%;min-height:500px;padding:3rem 2.5rem;font-size:18px;font-family:Courier Prime,Courier New,Courier,monospace;line-height:1.8;border-radius:8px;box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;max-width:680px;margin:0 auto}.theme-light .preview{background-color:#fff;color:#2a2a2a;border:none;box-shadow:0 2px 8px #0000000f}.theme-dark .preview{background-color:#252525;color:#e8e8e8;border:none;box-shadow:0 2px 8px #0000004d}.preview.focus-preview{max-width:100%;padding:4rem 3rem;min-height:calc(100vh - 2rem);border-radius:0;box-shadow:none}.theme-light .preview.focus-preview{background-color:#fefefe}.theme-dark .preview.focus-preview{background-color:#1f1f1f}.preview h1{font-size:2em;margin:1em 0 .5em;text-align:left}.preview h2{font-size:1.5em;margin:.8em 0 .4em;text-align:left}.preview h3{font-size:1.2em;margin:.6em 0 .3em;text-align:left}.preview strong{font-weight:700}.preview em{font-style:italic}.preview ul,.preview ol{margin:1em 0;padding-left:2em}.preview li{margin:.5em 0}.preview a{color:#646cff;text-decoration:underline}.preview a:hover{color:#535bf2}.preview mark{background-color:#ffeb3b;padding:2px 4px;border-radius:2px}.theme-dark .preview mark{background-color:#ffc107;color:#000}.search-highlight{padding:.5rem;text-align:center;font-size:12px;margin-bottom:.5rem;border-radius:4px}.theme-light .search-highlight{background-color:#e3f2fd;color:#1976d2}.theme-dark .search-highlight{background-color:#1e3a5f;color:#64b5f6}.editor-footer{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-top:.5rem;max-width:680px;width:100%;margin-left:auto;margin-right:auto;position:relative;z-index:10;padding-top:.5rem}.theme-light .editor-footer{background-color:#fafafa}.theme-dark .editor-footer{background-color:#1a1a1a}.profile-button{position:fixed;bottom:1.5rem;left:1.5rem;padding:.5rem 1rem;background:#646cff;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;font-family:inherit;z-index:100;box-shadow:0 2px 8px #00000026}.profile-button:hover{background:#535bf2;transform:translateY(-2px);box-shadow:0 4px 12px #646cff4d}.theme-dark .profile-button{background:#646cff;box-shadow:0 2px 8px #0006}.theme-dark .profile-button:hover{background:#535bf2;box-shadow:0 4px 12px #646cff66}.editor-footer-buttons{display:flex;justify-content:center;gap:.5rem}.undo-redo-btn{padding:.5rem 1rem;font-size:13px;font-weight:500;border-radius:5px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit}.undo-redo-btn:disabled{opacity:.4;cursor:not-allowed}.theme-light .undo-redo-btn{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .undo-redo-btn:hover:not(:disabled){background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-dark .undo-redo-btn{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .undo-redo-btn:hover:not(:disabled){background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.focus-mode-hint{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);padding:.75rem 1.5rem;background:#000000b3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#ffffffe6;border-radius:20px;font-size:12px;opacity:.6;transition:opacity .3s ease;z-index:100;pointer-events:none}.focus-mode-hint:hover{opacity:1}.focus-mode-hint kbd{background:#fff3;padding:.2rem .4rem;border-radius:3px;font-family:monospace;font-size:11px;margin:0 .2rem}.focus-toggle{padding:.25rem .5rem;font-size:11px;font-weight:500;border-radius:3px;cursor:pointer;white-space:nowrap;transition:all .2s ease;border:1px solid;font-family:inherit;position:relative;z-index:10}.theme-light .focus-toggle{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .focus-toggle:hover,.theme-light .focus-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.theme-dark .focus-toggle{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .focus-toggle:hover,.theme-dark .focus-toggle.active{background-color:#646cff;color:#fff;border-color:#646cff}.app.focus-mode .editor-container{position:relative;width:100%;max-width:100%}.app.focus-mode .stats{display:none}.sidebar-header{display:flex;gap:.5rem;margin-bottom:1rem}.new-doc-btn,.search-toggle-btn{flex:1;padding:.75rem;font-size:14px;font-weight:600;border-radius:6px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit}.theme-light .new-doc-btn{background-color:#646cff;color:#fff;border-color:#646cff}.theme-light .new-doc-btn:hover{background-color:#535bf2}.theme-dark .new-doc-btn{background-color:#646cff;color:#fff;border-color:#646cff}.theme-dark .new-doc-btn:hover{background-color:#535bf2}.search-toggle-btn{font-size:1.2rem;padding:.5rem}.theme-light .search-toggle-btn{background-color:#f0f0f0;color:#333;border-color:#ddd}.theme-light .search-toggle-btn:hover{background-color:#e0e0e0}.theme-dark .search-toggle-btn{background-color:#333;color:#e0e0e0;border-color:#555}.theme-dark .search-toggle-btn:hover{background-color:#444}.search-box{margin-bottom:1rem}.search-input{width:100%;padding:.5rem;border-radius:6px;border:1px solid;font-size:14px;font-family:inherit;box-sizing:border-box}.theme-light .search-input{background-color:#fff;color:#333;border-color:#e0e0e0}.theme-light .search-input:focus{outline:none;border-color:#646cff}.theme-dark .search-input{background-color:#2a2a2a;color:#e0e0e0;border-color:#444}.theme-dark .search-input:focus{outline:none;border-color:#646cff}.documents-list{display:flex;flex-direction:column;gap:.5rem;max-height:calc(100vh - 300px);overflow-y:auto}.document-item{padding:.75rem;border-radius:6px;cursor:pointer;transition:all .2s ease;border:1px solid;display:flex;flex-direction:column;gap:.5rem}.theme-light .document-item{background-color:#f9f9f9;border-color:#e0e0e0}.theme-light .document-item:hover{background-color:#f0f0f0;border-color:#ccc}.theme-light .document-item.active{background-color:#e8e9ff;border-color:#646cff}.theme-dark .document-item{background-color:#2a2a2a;border-color:#444}.theme-dark .document-item:hover{background-color:#333;border-color:#555}.theme-dark .document-item.active{background-color:#3a3a5a;border-color:#646cff}.document-header{display:flex;align-items:center;gap:.5rem}.document-name{flex:1;border:none;background:transparent;font-size:14px;font-weight:500;padding:.25rem;border-radius:4px;font-family:inherit;min-width:0}.theme-light .document-name{color:#333}.theme-light .document-name:focus{outline:2px solid #646cff;background-color:#fff}.theme-dark .document-name{color:#e0e0e0}.theme-dark .document-name:focus{outline:2px solid #646cff;background-color:#2a2a2a}.document-meta{font-size:11px;opacity:.7}.document-tags{display:flex;flex-wrap:wrap;gap:.25rem}.tag{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;border-radius:12px;font-size:11px;font-weight:500}.theme-light .tag{background-color:#e3f2fd;color:#1976d2}.theme-dark .tag{background-color:#1e3a5f;color:#64b5f6}.tag-remove{background:none;border:none;cursor:pointer;font-size:14px;line-height:1;padding:0;margin:0;opacity:.7}.tag-remove:hover{opacity:1}.tag-input-container{margin-top:.25rem}.tag-input{width:100%;padding:.25rem .5rem;border-radius:4px;border:1px solid;font-size:11px;font-family:inherit;box-sizing:border-box}.theme-light .tag-input{background-color:#fff;color:#333;border-color:#e0e0e0}.theme-light .tag-input:focus{outline:none;border-color:#646cff}.theme-dark .tag-input{background-color:#2a2a2a;color:#e0e0e0;border-color:#444}.theme-dark .tag-input:focus{outline:none;border-color:#646cff}.delete-doc-btn{width:24px;height:24px;border-radius:4px;border:none;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.theme-light .delete-doc-btn{background-color:transparent;color:#999}.theme-light .delete-doc-btn:hover{background-color:#ffebee;color:#d32f2f}.theme-dark .delete-doc-btn{background-color:transparent;color:#666}.theme-dark .delete-doc-btn:hover{background-color:#4a2a2a;color:#ff5252}@media (max-width: 768px){.main-container{flex-direction:column}.sidebar{width:100%;opacity:1}.documents-list{flex-direction:row;overflow-x:auto;max-height:none}.document-item{min-width:200px}.toolbar{flex-direction:column;align-items:stretch;padding:0 1rem;max-width:100%}.format-group,.action-group{justify-content:center}.header,.toolbar,.editor-wrapper{padding-left:1rem;padding-right:1rem;max-width:100%}.editor,.preview{max-width:100%;padding:2rem 1.5rem}}.input-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease}.input-dialog{background:#fff;border-radius:12px;padding:1.5rem;min-width:400px;max-width:90%;box-shadow:0 8px 32px #0003;animation:slideUp .2s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.theme-dark .input-dialog{background:#2a2a2a;color:#e0e0e0}.input-dialog h3{margin:0 0 1rem;font-size:16px;font-weight:600}.theme-light .input-dialog h3{color:#333}.theme-dark .input-dialog h3{color:#e0e0e0}.input-dialog-input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;margin-bottom:1rem;box-sizing:border-box}.theme-light .input-dialog-input{background:#fff;color:#333;border-color:#ddd}.theme-light .input-dialog-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 3px #646cff1a}.theme-dark .input-dialog-input{background:#1a1a1a;color:#e0e0e0;border-color:#555}.theme-dark .input-dialog-input:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 3px #646cff33}.input-dialog-buttons{display:flex;gap:.75rem;justify-content:flex-end}.input-dialog-btn{padding:.5rem 1.25rem;border:1px solid;border-radius:6px;font-size:14px;font-family:inherit;cursor:pointer;transition:all .2s ease;background:transparent}.theme-light .input-dialog-btn{border-color:#ddd;color:#666;background:#fff}.theme-light .input-dialog-btn:hover{background:#f5f5f5;border-color:#bbb}.theme-dark .input-dialog-btn{border-color:#555;color:#bbb;background:#2a2a2a}.theme-dark .input-dialog-btn:hover{background:#333;border-color:#666}.input-dialog-btn-primary{background:#646cff!important;border-color:#646cff!important;color:#fff!important}.input-dialog-btn-primary:hover{background:#535bf2!important;border-color:#535bf2!important}.floating-ai-menu{position:absolute;display:flex;gap:.5rem;padding:.5rem;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px;box-shadow:0 4px 20px #00000026;animation:slideDown .2s ease;pointer-events:auto}.theme-dark .floating-ai-menu{background:#252525f2;box-shadow:0 4px 20px #0006}.floating-ai-btn{padding:.5rem .75rem;font-size:12px;font-weight:500;border:1px solid;border-radius:6px;cursor:pointer;transition:all .2s ease;white-space:nowrap;font-family:inherit}.theme-light .floating-ai-btn{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .floating-ai-btn:hover{background-color:#646cff;color:#fff;border-color:#646cff;transform:translateY(-2px);box-shadow:0 2px 8px #646cff4d}.theme-dark .floating-ai-btn{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .floating-ai-btn:hover{background-color:#646cff;color:#fff;border-color:#646cff;transform:translateY(-2px);box-shadow:0 2px 8px #646cff66}.floating-ai-btn:disabled{opacity:.5;cursor:not-allowed}.floating-ai-btn:disabled:hover{transform:none;background-color:inherit;color:inherit;border-color:inherit}.floating-ai-btn-accept{background-color:#4caf50!important;color:#fff!important;border-color:#4caf50!important}.floating-ai-btn-accept:hover{background-color:#45a049!important;border-color:#45a049!important;transform:translateY(-2px);box-shadow:0 2px 8px #4caf5066}.floating-ai-btn-reject{background-color:#f44336!important;color:#fff!important;border-color:#f44336!important}.floating-ai-btn-reject:hover{background-color:#da190b!important;border-color:#da190b!important;transform:translateY(-2px);box-shadow:0 2px 8px #f4433666}.theme-toggle-wrapper{position:relative;display:inline-block}.cozycat-container{position:absolute;bottom:0;right:0;pointer-events:none;z-index:5;overflow:hidden}.cozycat-image{vertical-align:bottom;display:block}.cozycat{position:relative;cursor:pointer;pointer-events:auto;display:flex;align-items:flex-end;justify-content:center;margin:0;padding:0;height:100%}.cozycat-image{margin:0;padding:0;display:block}.cozycat-image{pointer-events:auto}.cozycat-container>*:not(.cozycat){pointer-events:auto}.action-group button,.action-group .theme-toggle,.action-group .music-toggle,.action-group .focus-toggle,.format-group button{position:relative;z-index:20;pointer-events:auto}.cozycat-image{width:108px;height:auto;display:block;image-rendering:pixelated;image-rendering:-moz-crisp-edges;image-rendering:crisp-edges;animation:catIdle 3s ease-in-out infinite,catBlink 4s ease-in-out infinite;transition:transform .2s ease}.action-group{position:relative}.cozycat-image:hover{transform:scale(1.05)}@keyframes catIdle{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-1px) rotate(.5deg)}}@keyframes catBlink{0%,90%,to{filter:brightness(1)}95%{filter:brightness(.7)}}.cozycat-pose-0 .cozycat-image{transform:translateY(0)}.cozycat-pose-1 .cozycat-image{transform:translateY(1px)}.cozycat-pose-2 .cozycat-image{transform:translateY(1px) translate(1px)}.cozycat-pose-3 .cozycat-image{transform:translateY(-1px)}.cozycat-dialogue{position:absolute;top:0;left:calc(100% + .5rem);min-width:160px;max-width:200px;pointer-events:auto;z-index:101}.cozycat-thinking{position:absolute;top:-8px;right:-8px;font-size:16px;animation:thinking 1s ease-in-out infinite}@keyframes thinking{0%,to{transform:scale(1) rotate(0)}50%{transform:scale(1.1) rotate(10deg)}}.cozycat-speech-bubble{position:relative;padding:.5rem .75rem;border-radius:6px;font-size:11px;line-height:1.3;box-shadow:0 2px 8px #00000026;animation:bubbleAppear .3s ease}@keyframes bubbleAppear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.cozycat-speech-bubble:after{content:"";position:absolute;left:-8px;top:20px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid}.theme-light .cozycat-speech-bubble{background-color:#fff;color:#333;border:1px solid #e0e0e0}.theme-light .cozycat-speech-bubble:after{border-right-color:#fff}.theme-dark .cozycat-speech-bubble{background-color:#2a2a2a;color:#e0e0e0;border:1px solid #444}.theme-dark .cozycat-speech-bubble:after{border-right-color:#2a2a2a}.cozycat-speech-bubble p{margin:0;padding:0}.cozycat-close{position:absolute;top:.2rem;right:.2rem;width:16px;height:16px;padding:0;border:none;background:transparent;color:inherit;cursor:pointer;font-size:16px;line-height:1;opacity:.6;transition:opacity .2s}.cozycat-close:hover{opacity:1}.copyright-footer{margin-top:.25rem;text-align:center;font-size:.75rem;opacity:.5}.copyright-footer p{margin:0;color:inherit}.theme-light .copyright-footer{color:#666}.theme-dark .copyright-footer{color:#999}.legal-links{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:.5rem;flex-wrap:wrap}.legal-link{background:none;border:none;padding:0;font-size:.75rem;cursor:pointer;text-decoration:underline;color:inherit;opacity:.7;transition:opacity .2s ease}.legal-link:hover{opacity:1}.theme-light .legal-link{color:#666}.theme-dark .legal-link{color:#999}.legal-separator{opacity:.5;font-size:.75rem}.review-dropdown-container{position:relative;display:inline-block}.review-btn{position:relative}.review-btn.loading{opacity:.7;cursor:not-allowed}.review-dropdown{position:absolute;top:100%;left:0;margin-top:.25rem;min-width:200px;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;overflow:hidden}.theme-light .review-dropdown{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .review-dropdown{background-color:#2a2a2a;border:1px solid #444}.review-option{display:block;width:100%;padding:.75rem 1rem;text-align:left;border:none;background:transparent;cursor:pointer;font-size:13px;font-family:inherit;transition:background-color .2s ease}.theme-light .review-option{color:#333}.theme-light .review-option:hover{background-color:#f5f5f5}.theme-dark .review-option{color:#e0e0e0}.theme-dark .review-option:hover{background-color:#333}.comments-toggle{position:relative}.comments-sidebar{width:320px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid;border-radius:8px;max-height:calc(100vh - 200px);overflow:hidden;position:relative;transition:width .3s ease,opacity .3s ease;align-self:flex-start;margin-left:auto}.theme-light .comments-sidebar{background-color:#fafafa;border-color:#e0e0e0}.theme-dark .comments-sidebar{background-color:#1a1a1a;border-color:#444}.comments-sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid}.theme-light .comments-sidebar-header{border-bottom-color:#e0e0e0;background-color:#fff}.theme-dark .comments-sidebar-header{border-bottom-color:#444;background-color:#222}.comments-sidebar-header h3{margin:0;font-size:16px;font-weight:600}.comments-sidebar-close-btn{background:transparent;border:none;font-size:24px;cursor:pointer;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s ease}.theme-light .comments-sidebar-close-btn{color:#666}.theme-light .comments-sidebar-close-btn:hover{background-color:#f0f0f0}.theme-dark .comments-sidebar-close-btn{color:#999}.theme-dark .comments-sidebar-close-btn:hover{background-color:#333}.comments-sidebar-content{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.new-comment-section{padding:1rem;border-radius:6px;border:1px solid}.theme-light .new-comment-section{background-color:#fff;border-color:#e0e0e0}.theme-dark .new-comment-section{background-color:#222;border-color:#444}.comment-type-toggle{display:flex;gap:.5rem;margin-bottom:.75rem}.comment-type-btn{flex:1;padding:.5rem;border:1px solid;border-radius:4px;background:transparent;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s ease;font-family:inherit}.theme-light .comment-type-btn{color:#666;border-color:#e0e0e0}.theme-light .comment-type-btn:hover{background-color:#f5f5f5}.theme-light .comment-type-btn.active{background-color:#646cff;color:#fff;border-color:#646cff}.theme-dark .comment-type-btn{color:#999;border-color:#444}.theme-dark .comment-type-btn:hover{background-color:#333}.theme-dark .comment-type-btn.active{background-color:#646cff;color:#fff;border-color:#646cff}.selected-text-indicator{font-size:12px;margin-bottom:.75rem;padding:.5rem;border-radius:4px;opacity:.8}.theme-light .selected-text-indicator{background-color:#f8f9fa;color:#666}.theme-dark .selected-text-indicator{background-color:#2a2a2a;color:#999}.new-comment-input{width:100%;padding:.75rem;border-radius:6px;border:1px solid;font-size:13px;font-family:inherit;resize:vertical;outline:none;transition:border-color .2s ease;margin-bottom:.75rem}.theme-light .new-comment-input{background-color:#fff;color:#333;border-color:#e0e0e0}.theme-light .new-comment-input:focus{border-color:#646cff}.theme-dark .new-comment-input{background-color:#1a1a1a;color:#e0e0e0;border-color:#444}.theme-dark .new-comment-input:focus{border-color:#646cff}.new-comment-input::placeholder{opacity:.5}.new-comment-input:disabled{opacity:.6;cursor:not-allowed}.new-comment-actions{display:flex;justify-content:flex-end;gap:.5rem}.comment-cancel-btn,.comment-submit-btn{padding:.5rem 1rem;font-size:12px;font-weight:500;border-radius:4px;border:1px solid;cursor:pointer;transition:all .2s ease;font-family:inherit}.comment-cancel-btn{background-color:transparent}.theme-light .comment-cancel-btn{color:#666;border-color:#e0e0e0}.theme-light .comment-cancel-btn:hover{background-color:#f5f5f5}.theme-dark .comment-cancel-btn{color:#999;border-color:#444}.theme-dark .comment-cancel-btn:hover{background-color:#333}.comment-submit-btn{background-color:#646cff;color:#fff;border-color:#646cff}.comment-submit-btn:hover:not(:disabled){background-color:#535bf2;border-color:#535bf2}.comment-submit-btn:disabled{opacity:.5;cursor:not-allowed}.comments-list{display:flex;flex-direction:column;gap:1rem}.comment-item{padding:1rem;border-radius:6px;border:1px solid}.comment-item.resolved{opacity:.6}.comment-type-badge{font-size:11px;font-weight:600;padding:.25rem .5rem;border-radius:4px}.resolved-badge{font-size:11px;font-weight:600;padding:.25rem .5rem;border-radius:4px;background-color:#d4edda;color:#155724}.theme-dark .resolved-badge{background-color:#1e3a24;color:#28a745}.comment-text-section{font-size:13px;line-height:1.5;margin-bottom:.75rem}.comment-context{margin-bottom:.5rem;padding:.5rem;border-radius:4px;font-style:italic;font-size:12px}.theme-light .comment-context{background-color:#f8f9fa;color:#666}.comment-question{margin-bottom:.75rem}.comment-response{margin-top:.75rem}.comment-response-text{margin-top:.5rem;padding:.75rem;border-radius:4px;white-space:pre-wrap}.theme-light .comment-response-text{background-color:#f8f9fa;color:#333}.theme-dark .comment-response-text{background-color:#2a2a2a;color:#e0e0e0}.comment-actions{display:flex;gap:.5rem;margin-top:.75rem}.comment-resolve-btn,.comment-delete-btn{padding:.4rem .75rem;font-size:11px;font-weight:500;border-radius:4px;border:1px solid;cursor:pointer;transition:all .2s ease;font-family:inherit}.comment-resolve-btn{background-color:#28a745;color:#fff;border-color:#28a745}.comment-resolve-btn:hover{background-color:#218838;border-color:#1e7e34}.comment-delete-btn{background-color:transparent}.theme-light .comment-delete-btn{color:#dc3545;border-color:#dc3545}.theme-light .comment-delete-btn:hover{background-color:#f8d7da}.theme-dark .comment-delete-btn{color:#dc3545;border-color:#dc3545}.theme-dark .comment-delete-btn:hover{background-color:#3d1e22}.no-comments{padding:2rem 1rem;text-align:center;opacity:.6;font-size:13px}.add-comment-btn{background-color:#646cff!important;color:#fff!important;border-color:#646cff!important}.add-comment-btn:hover{background-color:#535bf2!important}.comments-panel{position:absolute;right:0;top:0;width:320px;height:100%;max-height:calc(100vh - 200px);display:flex;flex-direction:column;z-index:200;box-shadow:-2px 0 8px #0000001a;overflow:hidden}.theme-light .comments-panel{background-color:#fafafa;border-left:1px solid #e0e0e0}.theme-dark .comments-panel{background-color:#1a1a1a;border-left:1px solid #444}.comments-panel-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid}.theme-light .comments-panel-header{border-bottom-color:#e0e0e0;background-color:#fff}.theme-dark .comments-panel-header{border-bottom-color:#444;background-color:#222}.comments-panel-header h3{margin:0;font-size:16px;font-weight:600}.comments-close-btn{background:transparent;border:none;font-size:24px;cursor:pointer;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s ease}.theme-light .comments-close-btn{color:#666}.theme-light .comments-close-btn:hover{background-color:#f0f0f0}.theme-dark .comments-close-btn{color:#999}.theme-dark .comments-close-btn:hover{background-color:#333}.comments-list{flex:1;overflow-y:auto;padding:1rem}.no-comments{padding:2rem 1rem;text-align:center;opacity:.6}.comment-item{margin-bottom:1rem;padding:1rem;border-radius:6px;border:1px solid;transition:all .2s ease}.theme-light .comment-item{background-color:#fff;border-color:#e0e0e0}.theme-dark .comment-item{background-color:#222;border-color:#444}.comment-item.comment-approved{opacity:.6}.comment-item.comment-rejected{opacity:.5}.comment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;gap:.5rem}.comment-type-badge{font-size:11px;font-weight:600;text-transform:uppercase;padding:.25rem .5rem;border-radius:4px;letter-spacing:.5px}.theme-light .comment-type-badge{background-color:#f0f0f0;color:#666}.theme-dark .comment-type-badge{background-color:#333;color:#999}.comment-type-grammar .comment-type-badge{background-color:#fff3cd;color:#856404}.theme-dark .comment-type-grammar .comment-type-badge{background-color:#3d2e00;color:#ffc107}.comment-type-style .comment-type-badge{background-color:#d1ecf1;color:#0c5460}.theme-dark .comment-type-style .comment-type-badge{background-color:#003d4d;color:#17a2b8}.comment-type-extend .comment-type-badge{background-color:#d4edda;color:#155724}.theme-dark .comment-type-extend .comment-type-badge{background-color:#1e3a24;color:#28a745}.status-badge{font-size:11px;font-weight:600;padding:.25rem .5rem;border-radius:4px}.status-badge.approved{background-color:#d4edda;color:#155724}.theme-dark .status-badge.approved{background-color:#1e3a24;color:#28a745}.status-badge.rejected{background-color:#f8d7da;color:#721c24}.theme-dark .status-badge.rejected{background-color:#3d1e22;color:#dc3545}.comment-text{font-size:13px;line-height:1.5}.comment-context{margin-bottom:.5rem;padding:.5rem;border-radius:4px;font-style:italic}.theme-light .comment-context{background-color:#f8f8f8;color:#666}.theme-dark .comment-context{background-color:#2a2a2a;color:#999}.comment-suggestion{margin-top:.5rem}.comment-actions{display:flex;gap:.5rem;margin-top:.75rem;flex-wrap:wrap}.comment-btn{padding:.4rem .75rem;font-size:12px;font-weight:500;border-radius:4px;border:1px solid;cursor:pointer;transition:all .2s ease;font-family:inherit}.approve-btn{background-color:#28a745;color:#fff;border-color:#28a745}.approve-btn:hover{background-color:#218838;border-color:#1e7e34}.reject-btn{background-color:#dc3545;color:#fff;border-color:#dc3545}.reject-btn:hover{background-color:#c82333;border-color:#bd2130}.regenerate-btn{background-color:transparent;border-color:#6c757d}.theme-light .regenerate-btn{color:#6c757d}.theme-light .regenerate-btn:hover{background-color:#f8f9fa}.theme-dark .regenerate-btn{color:#adb5bd}.theme-dark .regenerate-btn:hover{background-color:#333}.inline-ai-command{position:absolute;z-index:1001;min-width:300px}.inline-command-input-wrapper{display:flex;align-items:center;border-radius:6px;box-shadow:0 4px 12px #00000026;overflow:hidden}.theme-light .inline-command-input-wrapper{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .inline-command-input-wrapper{background-color:#2a2a2a;border:1px solid #444}.inline-command-prefix{padding:.75rem .5rem .75rem 1rem;font-size:16px;font-weight:600;color:#646cff}.inline-command-input{flex:1;padding:.75rem 1rem;border:none;background:transparent;font-size:14px;font-family:inherit;outline:none}.theme-light .inline-command-input{color:#333}.theme-dark .inline-command-input{color:#e0e0e0}.inline-command-input::placeholder{opacity:.5}.inline-command-hints{margin-top:.5rem;padding:.5rem;border-radius:4px;font-size:12px}.theme-light .inline-command-hints{background-color:#f8f9fa;color:#666}.theme-dark .inline-command-hints{background-color:#222;color:#999}.command-hint{opacity:.8}.inline-suggestion{position:absolute;z-index:1002;min-width:320px;max-width:500px;margin-top:.5rem}.inline-suggestion-content{border-radius:8px;box-shadow:0 4px 16px #0003;overflow:hidden;animation:slideIn .2s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.theme-light .inline-suggestion-content{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .inline-suggestion-content{background-color:#2a2a2a;border:1px solid #444}.inline-suggestion-header{padding:.75rem 1rem;border-bottom:1px solid;display:flex;align-items:center;gap:.5rem}.theme-light .inline-suggestion-header{background-color:#f8f9fa;border-bottom-color:#e0e0e0}.theme-dark .inline-suggestion-header{background-color:#222;border-bottom-color:#444}.inline-suggestion-type{font-size:11px;font-weight:600;text-transform:uppercase;padding:.25rem .5rem;border-radius:4px;letter-spacing:.5px;background-color:#646cff;color:#fff}.inline-suggestion-text{padding:1rem;font-size:14px;line-height:1.6}.theme-light .inline-suggestion-text{color:#333}.theme-dark .inline-suggestion-text{color:#e0e0e0}.inline-suggestion-actions{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid;background-color:#f8f9fa}.theme-light .inline-suggestion-actions{border-top-color:#e0e0e0;background-color:#f8f9fa}.theme-dark .inline-suggestion-actions{border-top-color:#444;background-color:#222}.inline-suggestion-btn{padding:.5rem 1rem;font-size:12px;font-weight:500;border-radius:4px;border:1px solid;cursor:pointer;transition:all .2s ease;font-family:inherit;flex:1}.inline-suggestion-btn.approve{background-color:#28a745;color:#fff;border-color:#28a745}.inline-suggestion-btn.approve:hover{background-color:#218838;border-color:#1e7e34}.inline-suggestion-btn.reject{background-color:#dc3545;color:#fff;border-color:#dc3545}.inline-suggestion-btn.reject:hover{background-color:#c82333;border-color:#bd2130}.inline-suggestion-btn.regenerate{background-color:transparent;border-color:#6c757d;padding:.5rem;flex:0 0 auto}.theme-light .inline-suggestion-btn.regenerate{color:#6c757d}.theme-light .inline-suggestion-btn.regenerate:hover{background-color:#f0f0f0}.theme-dark .inline-suggestion-btn.regenerate{color:#adb5bd}.theme-dark .inline-suggestion-btn.regenerate:hover{background-color:#333}.ai-prompt-floating{position:absolute;z-index:1000;pointer-events:auto}.ai-prompt-minimal{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:6px;box-shadow:0 4px 12px #00000026;animation:slideDown .2s ease;min-width:280px}@keyframes slideDown{0%{opacity:0;transform:translate(-50%) translateY(-10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.theme-light .ai-prompt-minimal{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .ai-prompt-minimal{background-color:#2a2a2a;border:1px solid #444}.ai-prompt-input-minimal{flex:1;padding:.5rem .75rem;border:none;background:transparent;font-size:13px;font-family:inherit;outline:none;min-width:0}.theme-light .ai-prompt-input-minimal{color:#333}.theme-dark .ai-prompt-input-minimal{color:#e0e0e0}.ai-prompt-input-minimal::placeholder{opacity:.5}.ai-prompt-input-minimal:disabled{opacity:.6;cursor:not-allowed}.ai-prompt-submit-minimal{padding:.4rem .6rem;border:none;background-color:#646cff;color:#fff;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .2s ease;flex-shrink:0}.ai-prompt-submit-minimal:hover:not(:disabled){background-color:#535bf2}.ai-prompt-submit-minimal:disabled{opacity:.6;cursor:not-allowed}.ai-prompt-window-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ai-prompt-window{width:90%;max-width:600px;max-height:80vh;display:flex;flex-direction:column;border-radius:8px;box-shadow:0 8px 32px #0000004d;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.theme-light .ai-prompt-window{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .ai-prompt-window{background-color:#2a2a2a;border:1px solid #444}.ai-prompt-window-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid}.theme-light .ai-prompt-window-header{border-bottom-color:#e0e0e0;background-color:#fafafa}.theme-dark .ai-prompt-window-header{border-bottom-color:#444;background-color:#222}.ai-prompt-window-header h3{margin:0;font-size:18px;font-weight:600}.ai-prompt-close-btn{background:transparent;border:none;font-size:28px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s ease;line-height:1}.theme-light .ai-prompt-close-btn{color:#666}.theme-light .ai-prompt-close-btn:hover{background-color:#f0f0f0}.theme-dark .ai-prompt-close-btn{color:#999}.theme-dark .ai-prompt-close-btn:hover{background-color:#333}.ai-prompt-window-content{padding:1.5rem;overflow-y:auto;flex:1}.selected-text-preview{margin-bottom:1.5rem}.selected-text-preview strong{display:block;margin-bottom:.5rem;font-size:13px;text-transform:uppercase;letter-spacing:.5px;opacity:.7}.selected-text-content{padding:.75rem;border-radius:4px;font-style:italic;max-height:100px;overflow-y:auto}.theme-light .selected-text-content{background-color:#f8f9fa;color:#666;border:1px solid #e0e0e0}.theme-dark .selected-text-content{background-color:#222;color:#999;border:1px solid #444}.ai-prompt-input-container{display:flex;flex-direction:column;gap:.5rem}.ai-prompt-input-container label{font-size:13px;font-weight:500;opacity:.8}.ai-prompt-textarea{width:100%;padding:.75rem;border-radius:6px;border:1px solid;font-size:14px;font-family:inherit;resize:vertical;outline:none;transition:border-color .2s ease}.theme-light .ai-prompt-textarea{background-color:#fff;color:#333;border-color:#e0e0e0}.theme-light .ai-prompt-textarea:focus{border-color:#646cff}.theme-dark .ai-prompt-textarea{background-color:#1a1a1a;color:#e0e0e0;border-color:#444}.theme-dark .ai-prompt-textarea:focus{border-color:#646cff}.ai-prompt-textarea::placeholder{opacity:.5}.ai-prompt-textarea:disabled{opacity:.6;cursor:not-allowed}.ai-prompt-window-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid}.theme-light .ai-prompt-window-footer{border-top-color:#e0e0e0;background-color:#fafafa}.theme-dark .ai-prompt-window-footer{border-top-color:#444;background-color:#222}.ai-prompt-cancel-btn,.ai-prompt-submit-btn{padding:.625rem 1.25rem;font-size:14px;font-weight:500;border-radius:6px;border:1px solid;cursor:pointer;transition:all .2s ease;font-family:inherit}.ai-prompt-cancel-btn{background-color:transparent}.theme-light .ai-prompt-cancel-btn{color:#666;border-color:#e0e0e0}.theme-light .ai-prompt-cancel-btn:hover{background-color:#f5f5f5}.theme-dark .ai-prompt-cancel-btn{color:#999;border-color:#444}.theme-dark .ai-prompt-cancel-btn:hover{background-color:#333}.ai-prompt-submit-btn{background-color:#646cff;color:#fff;border-color:#646cff}.ai-prompt-submit-btn:hover:not(:disabled){background-color:#535bf2;border-color:#535bf2}.ai-prompt-submit-btn:disabled{opacity:.5;cursor:not-allowed}.editor-container{position:relative}
