:root{--cozy-font-serif: "Lora", "Source Serif 4", Georgia, "Times New Roman", serif;--cozy-font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-family:var(--cozy-font-sans);line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--cozy-light-bg: #ebe8e2;--cozy-light-surface: #f6f3ed;--cozy-light-border: #ddd8ce;--cozy-light-muted: #5c5650;--cozy-light-text: #2a2724;--cozy-light-accent: #4f5d47;--cozy-accent-warm: #a85c4a;--cozy-radius: 12px;--cozy-radius-sm: 8px;--cozy-shadow: 0 2px 10px rgba(0, 0, 0, .07);--cozy-shadow-md: 0 6px 20px rgba(0, 0, 0, .08);--cozy-dark-bg: #181715;--cozy-dark-surface: #211f1d;--cozy-dark-border: #3a3734;--cozy-dark-muted: #a39e96;--cozy-dark-text: #e6e3de;--cozy-dark-accent: #7d9a6a;--cozy-dark-accent-warm: #c97a6a}html{margin:0;padding:0;width:100%;height:100%}a{font-weight:500;color:var(--cozy-light-accent, #5c6b52);text-decoration:inherit}a:hover{color:#4a5842}body.theme-dark a{color:var(--cozy-dark-accent)}body.theme-dark a:hover{color:#a8c090}body{margin:0;padding:0;width:100%;min-width:320px;min-height:100vh;height:100%;transition:background-color .3s ease,color .3s ease;overflow-x:hidden}#root{margin:0;padding:0;width:100%;min-height:100vh}body.theme-light{background-color:var(--cozy-light-bg);color:var(--cozy-light-text)}body.theme-dark{background-color:var(--cozy-dark-bg);color:var(--cozy-dark-text)}h1{font-size:2.5em;line-height:1.1}.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;position:relative;font-family:var(--cozy-font-sans)}.theme-light .profile-container{background-color:var(--cozy-light-bg);color:var(--cozy-light-text)}.theme-dark .profile-container{background-color:var(--cozy-dark-bg);color:var(--cozy-dark-text)}.profile-content-panel{border-radius:var(--cozy-radius);overflow:hidden;border:1px solid}.theme-light .profile-content-panel{background-color:var(--cozy-light-surface);border-color:var(--cozy-light-border);box-shadow:var(--cozy-shadow)}.theme-dark .profile-content-panel{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border);box-shadow:0 2px 12px #00000040}.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:0;padding:1.25rem 1.5rem;border-bottom:1px solid}.theme-light .profile-header{border-bottom-color:var(--cozy-light-border)}.theme-dark .profile-header{border-bottom-color:var(--cozy-dark-border)}.profile-info{display:flex;align-items:center;gap:1.5rem}.profile-avatar-section{flex-shrink:0}.profile-avatar-wrapper{position:relative;display:inline-block}.profile-avatar,.profile-avatar-placeholder{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid}.profile-avatar-edit-button{position:absolute;bottom:0;right:0;width:28px;height:28px;border-radius:50%;border:2px solid;background-color:var(--cozy-light-surface);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;padding:0;transition:all .2s ease;z-index:10;box-shadow:var(--cozy-shadow)}.theme-light .profile-avatar-edit-button{border-color:var(--cozy-light-border);background-color:var(--cozy-light-surface)}.theme-light .profile-avatar-edit-button:hover{background-color:var(--cozy-light-bg);border-color:var(--cozy-light-muted);transform:scale(1.05)}.theme-dark .profile-avatar-edit-button{border-color:var(--cozy-dark-border);background-color:var(--cozy-dark-surface)}.theme-dark .profile-avatar-edit-button:hover{background-color:var(--cozy-dark-bg);border-color:var(--cozy-dark-muted);transform:scale(1.05)}.profile-avatar-placeholder{display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:600;font-family:var(--cozy-font-sans)}.theme-light .profile-avatar,.theme-light .profile-avatar-placeholder{border-color:var(--cozy-light-border);background-color:var(--cozy-light-bg);color:var(--cozy-light-muted)}.theme-dark .profile-avatar,.theme-dark .profile-avatar-placeholder{border-color:var(--cozy-dark-border);background-color:var(--cozy-dark-bg);color:var(--cozy-dark-muted)}.profile-name-email{flex:1}.profile-info h2{margin:0 0 .25rem;font-size:1.5rem;font-family:var(--cozy-font-sans);font-weight:600;color:inherit}.profile-email{margin:0;font-size:.9rem;color:var(--cozy-light-muted)}.theme-dark .profile-email{color:var(--cozy-dark-muted)}.profile-header-actions{display:flex;gap:.75rem;align-items:center}.sign-out-button{padding:.5rem 1rem;background:transparent;border:1px solid;border-radius:var(--cozy-radius-sm);cursor:pointer;font-size:.9rem;font-family:var(--cozy-font-sans);transition:all .2s ease}.theme-light .sign-out-button{border-color:var(--cozy-light-border);color:var(--cozy-light-muted)}.theme-light .sign-out-button:hover{background-color:var(--cozy-light-bg);border-color:var(--cozy-light-muted);color:var(--cozy-light-text)}.theme-dark .sign-out-button{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .sign-out-button:hover{background-color:var(--cozy-dark-bg);border-color:var(--cozy-dark-muted);color:var(--cozy-dark-text)}.close-profile-button-top-right{position:fixed;top:1rem;left:1rem;width:40px;height:40px;padding:0;border:1px solid;border-radius:50%;background:transparent;cursor:pointer;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .2s ease;font-family:var(--cozy-font-sans);z-index:1000;box-shadow:var(--cozy-shadow)}.theme-light .close-profile-button-top-right{border-color:var(--cozy-light-border);color:var(--cozy-light-muted);background-color:var(--cozy-light-surface)}.theme-light .close-profile-button-top-right:hover{background-color:var(--cozy-light-bg);border-color:var(--cozy-light-muted);color:var(--cozy-light-text);transform:scale(1.05)}.theme-dark .close-profile-button-top-right{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted);background-color:var(--cozy-dark-surface)}.theme-dark .close-profile-button-top-right:hover{background-color:var(--cozy-dark-bg);border-color:var(--cozy-dark-muted);color:var(--cozy-dark-text);transform:scale(1.05)}.edit-actions{display:flex;gap:.5rem}.edit-profile-button,.save-button,.new-project-button,.open-project-button,.create-button,.avatar-upload-button{padding:.5rem 1rem;background:var(--cozy-light-accent);color:#fff;border:none;border-radius:var(--cozy-radius-sm);cursor:pointer;font-size:.9rem;font-weight:500;font-family:var(--cozy-font-sans);transition:all .2s ease}.theme-dark .edit-profile-button,.theme-dark .save-button,.theme-dark .new-project-button,.theme-dark .open-project-button,.theme-dark .create-button,.theme-dark .avatar-upload-button{background:var(--cozy-dark-accent);color:var(--cozy-dark-bg)}.edit-profile-button:hover,.save-button:hover,.new-project-button:hover,.open-project-button:hover,.create-button:hover,.avatar-upload-button:hover{filter:brightness(1.1);transform:translateY(-1px)}.avatar-upload-button{padding:.75rem 1.5rem;text-align:center;display:inline-block}.avatar-upload-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.open-project-button{width:100%}.projects-section{margin-top:0;padding:1.5rem 1.5rem 2rem}.projects-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}.projects-header h3,.profile-info-section h3,.profile-edit-section h3{margin:0;font-size:1.25rem;font-weight:600;font-family:var(--cozy-font-sans);color:inherit}.new-project-form{border-radius:var(--cozy-radius-sm);padding:1.25rem;margin-bottom:1.5rem;border:1px solid}.theme-light .new-project-form{background-color:var(--cozy-light-bg);border-color:var(--cozy-light-border)}.theme-dark .new-project-form{background-color:var(--cozy-dark-bg);border-color:var(--cozy-dark-border)}.new-project-input{width:100%;padding:.75rem;border:1px solid;border-radius:var(--cozy-radius-sm);font-size:1rem;font-family:var(--cozy-font-sans);margin-bottom:1rem;box-sizing:border-box;transition:border-color .2s ease,box-shadow .2s ease}.theme-light .new-project-input{background-color:var(--cozy-light-surface);border-color:var(--cozy-light-border);color:var(--cozy-light-text)}.theme-light .new-project-input:focus{outline:none;border-color:var(--cozy-light-accent);box-shadow:0 0 0 2px #4f5d4726}.theme-dark .new-project-input{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border);color:var(--cozy-dark-text)}.theme-dark .new-project-input:focus{outline:none;border-color:var(--cozy-dark-accent);box-shadow:0 0 0 2px #7d9a6a33}.new-project-actions{display:flex;gap:.5rem;justify-content:flex-end}.cancel-button{padding:.5rem 1rem;border-radius:var(--cozy-radius-sm);cursor:pointer;font-size:.9rem;font-weight:500;font-family:var(--cozy-font-sans);transition:all .2s ease;border:1px solid;background:transparent}.theme-light .cancel-button{border-color:var(--cozy-light-border);color:var(--cozy-light-muted)}.theme-light .cancel-button:hover{background-color:var(--cozy-light-bg);color:var(--cozy-light-text)}.theme-dark .cancel-button{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .cancel-button:hover{background-color:var(--cozy-dark-bg);color:var(--cozy-dark-text)}.no-projects{text-align:center;padding:2.5rem 1.5rem;color:var(--cozy-light-muted)}.theme-dark .no-projects{color:var(--cozy-dark-muted)}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.project-card{border:1px solid;border-radius:var(--cozy-radius-sm);padding:1.25rem;transition:all .2s ease;background:transparent}.theme-light .project-card{border-color:var(--cozy-light-border);background-color:var(--cozy-light-bg)}.theme-light .project-card:hover{box-shadow:var(--cozy-shadow);border-color:var(--cozy-light-muted)}.theme-dark .project-card{border-color:var(--cozy-dark-border);background-color:var(--cozy-dark-bg)}.theme-dark .project-card:hover{box-shadow:0 4px 12px #00000040;border-color:var(--cozy-dark-muted)}.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.1rem;font-weight:600;cursor:pointer;flex:1;font-family:var(--cozy-font-sans);color:inherit;transition:color .2s ease}.project-card-header h4:hover{color:var(--cozy-light-accent)}.theme-dark .project-card-header h4:hover{color:var(--cozy-dark-accent)}.delete-project-button{background:transparent;border:none;font-size:1.35rem;cursor:pointer;opacity:.5;transition:opacity .2s ease,background .2s ease;color:inherit;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--cozy-radius-sm)}.delete-project-button:hover{opacity:1;background-color:#a85c4a26}.theme-dark .delete-project-button:hover{background-color:#c97a6a33}.project-meta{margin:0 0 1rem;font-size:.85rem;color:var(--cozy-light-muted)}.theme-dark .project-meta{color:var(--cozy-dark-muted)}.profile-edit-section{margin:0;padding:1.5rem 1.5rem 2rem;border-top:1px solid}.theme-light .profile-edit-section{border-top-color:var(--cozy-light-border)}.theme-dark .profile-edit-section{border-top-color:var(--cozy-dark-border)}.profile-edit-section h3{margin:0 0 1.25rem}.form-section{margin-bottom:1.75rem}.form-section:last-child{margin-bottom:0}.form-section h4{margin:0 0 .75rem;font-size:1rem;font-weight:600;font-family:var(--cozy-font-sans);color:var(--cozy-light-muted)}.theme-dark .form-section h4{color:var(--cozy-dark-muted)}.profile-form{display:flex;flex-direction:column;gap:1.25rem}.avatar-upload-section{display:flex;align-items:center;gap:1.25rem;padding:.5rem 0}.avatar-preview-image,.avatar-preview-placeholder{width:100px;height:100px;border-radius:50%;object-fit:cover;border:2px solid}.avatar-preview-placeholder{display:flex;align-items:center;justify-content:center;font-size:2.5rem;font-weight:600;font-family:var(--cozy-font-sans)}.theme-light .avatar-preview-image,.theme-light .avatar-preview-placeholder{border-color:var(--cozy-light-border);background-color:var(--cozy-light-bg);color:var(--cozy-light-muted)}.theme-dark .avatar-preview-image,.theme-dark .avatar-preview-placeholder{border-color:var(--cozy-dark-border);background-color:var(--cozy-dark-bg);color:var(--cozy-dark-muted)}.avatar-upload-controls{display:flex;flex-direction:column;gap:.75rem}.avatar-remove-button{padding:.5rem 1rem;background:transparent;border:1px solid;border-radius:var(--cozy-radius-sm);cursor:pointer;font-size:.85rem;font-family:var(--cozy-font-sans);transition:all .2s ease}.theme-light .avatar-remove-button{border-color:var(--cozy-light-border);color:var(--cozy-light-muted)}.theme-light .avatar-remove-button:hover{background-color:var(--cozy-light-bg);border-color:var(--cozy-light-muted);color:var(--cozy-light-text)}.theme-dark .avatar-remove-button{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .avatar-remove-button:hover{background-color:var(--cozy-dark-bg);border-color:var(--cozy-dark-muted);color:var(--cozy-dark-text)}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-size:.9rem;font-weight:500;font-family:var(--cozy-font-sans);color:var(--cozy-light-muted)}.theme-dark .form-group label{color:var(--cozy-dark-muted)}.form-group input,.form-group select,.form-group textarea{padding:.65rem .75rem;border:1px solid;border-radius:var(--cozy-radius-sm);font-size:1rem;font-family:var(--cozy-font-sans);transition:border-color .2s ease,box-shadow .2s ease}.theme-light .form-group input,.theme-light .form-group select,.theme-light .form-group textarea{background-color:var(--cozy-light-surface);border-color:var(--cozy-light-border);color:var(--cozy-light-text)}.theme-light .form-group input:focus,.theme-light .form-group select:focus,.theme-light .form-group textarea:focus{outline:none;border-color:var(--cozy-light-accent);box-shadow:0 0 0 2px #4f5d4726}.theme-dark .form-group input,.theme-dark .form-group select,.theme-dark .form-group textarea{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border);color:var(--cozy-dark-text)}.theme-dark .form-group input:focus,.theme-dark .form-group select:focus,.theme-dark .form-group textarea:focus{outline:none;border-color:var(--cozy-dark-accent);box-shadow:0 0 0 2px #7d9a6a33}.form-group textarea{resize:vertical;min-height:100px}.profile-info-section{margin:0;padding:1.5rem 1.5rem 2rem;border-top:1px solid}.theme-light .profile-info-section{border-top-color:var(--cozy-light-border)}.theme-dark .profile-info-section{border-top-color:var(--cozy-dark-border)}.profile-info-section h3{margin:0 0 1.25rem}.profile-details{display:flex;flex-direction:column;gap:0}.profile-detail-row{display:flex;gap:1rem;padding:.65rem 0;border-bottom:1px solid}.theme-light .profile-detail-row{border-bottom-color:var(--cozy-light-border)}.theme-dark .profile-detail-row{border-bottom-color:var(--cozy-dark-border)}.profile-detail-row:last-child{border-bottom:none}.detail-label{font-weight:600;min-width:140px;font-size:.9rem;font-family:var(--cozy-font-sans);color:var(--cozy-light-muted)}.theme-dark .detail-label{color:var(--cozy-dark-muted)}.detail-value{flex:1;word-break:break-word;font-size:.95rem}.social-links{display:flex;flex-direction:column;gap:.4rem}.social-links a{color:var(--cozy-light-accent);text-decoration:none;transition:color .2s ease}.social-links a:hover{text-decoration:underline}.theme-dark .social-links a{color:var(--cozy-dark-accent)}.theme-dark .social-links a:hover{color:var(--cozy-dark-accent-warm)}.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}.file-menu-item-with-submenu{position:relative;display:flex;justify-content:space-between;align-items:center}.submenu-arrow{font-size:10px;opacity:.6;margin-left:auto}.file-menu-submenu{position:absolute;left:100%;top:0;margin-left:.25rem;min-width:120px;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1001;overflow:hidden;animation:slideRight .2s ease}@keyframes slideRight{0%{opacity:0;transform:translate(-5px)}to{opacity:1;transform:translate(0)}}.theme-light .file-menu-submenu{background-color:#fff;border:1px solid #e0e0e0}.theme-dark .file-menu-submenu{background-color:#2a2a2a;border:1px solid #444}.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}.subscription-comparison-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 .subscription-comparison-container{background:linear-gradient(135deg,#1a1a1a,#2d2d2d)}.subscription-comparison-content{width:100%;max-width:1200px}.comparison-header{text-align:center;margin-bottom:3rem}.comparison-header h1{font-size:2.5rem;font-family:Courier Prime,Courier New,Courier,monospace;margin:0 0 .5rem;color:#2a2a2a;font-weight:600}.theme-dark .comparison-header h1{color:#e0e0e0}.comparison-header p{font-size:1.1rem;color:#666;font-style:italic;margin:0}.theme-dark .comparison-header p{color:#999}.coupon-code-section{text-align:center;margin-bottom:2rem}.coupon-toggle-button{background:transparent;border:1px dashed #8b7355;color:#8b7355;padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;cursor:pointer;transition:all .2s ease;font-family:Georgia,Times New Roman,serif}.coupon-toggle-button:hover{background:#8b73551a;border-style:solid}.theme-dark .coupon-toggle-button{border-color:#a68b5b;color:#a68b5b}.theme-dark .coupon-toggle-button:hover{background:#a68b5b1a}.coupon-input-wrapper{display:flex;align-items:center;justify-content:center;gap:.5rem;max-width:400px;margin:0 auto}.coupon-input{flex:1;padding:.75rem 1rem;border:2px solid #8b7355;border-radius:8px;font-size:.95rem;font-family:Georgia,Times New Roman,serif;background:#fefdf9;color:#2a2a2a;outline:none;transition:border-color .2s ease}.coupon-input:focus{border-color:#a68b5b;box-shadow:0 0 0 3px #8b73551a}.theme-dark .coupon-input{background:#2a2a2a;border-color:#a68b5b;color:#e0e0e0}.theme-dark .coupon-input:focus{border-color:#c9a86f;box-shadow:0 0 0 3px #a68b5b1a}.coupon-close-button{background:transparent;border:1px solid #8b7355;color:#8b7355;width:36px;height:36px;border-radius:50%;font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;font-family:Courier New,monospace}.coupon-close-button:hover{background:#8b73551a;transform:scale(1.1)}.theme-dark .coupon-close-button{border-color:#a68b5b;color:#a68b5b}.theme-dark .coupon-close-button:hover{background:#a68b5b1a}.comparison-error{background:#ffebee;border:1px solid #f44336;border-radius:8px;padding:1rem;margin-bottom:2rem;text-align:center}.theme-dark .comparison-error{background:#4a1a1a;border-color:#f44336;color:#ef5350}.comparison-error p{margin:0 0 .5rem;color:#c62828}.theme-dark .comparison-error p{color:#ef5350}.dismiss-error{background:transparent;border:1px solid #f44336;color:#c62828;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem}.theme-dark .dismiss-error{border-color:#f44336;color:#ef5350}.dismiss-error:hover{background:#f443361a}.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-bottom:2rem}.plan-card{background:#fefdf9;border-radius:16px;padding:2.5rem 2rem;border:2px solid rgba(0,0,0,.06);box-shadow:0 8px 32px #00000014;position:relative;transition:all .3s ease;display:flex;flex-direction:column}.theme-dark .plan-card{background:#2a2a2a;border-color:#ffffff1a;box-shadow:0 8px 32px #0006}.plan-card:hover{transform:translateY(-4px);box-shadow:0 12px 48px #0000001f}.theme-dark .plan-card:hover{box-shadow:0 12px 48px #0009}.plan-card.featured{border-color:#8b7355;border-width:3px;transform:scale(1.05)}.theme-dark .plan-card.featured{border-color:#a68b5b}.featured-badge{position:absolute;top:-12px;left:50%;transform:translate(-50%);background:#8b7355;color:#fff;padding:.5rem 1.5rem;border-radius:20px;font-size:.85rem;font-weight:600;white-space:nowrap}.trial-badge{position:absolute;top:1rem;right:1rem;background:#4caf50;color:#fff;padding:.4rem .8rem;border-radius:12px;font-size:.75rem;font-weight:600;white-space:nowrap}.plan-header{text-align:center;margin-bottom:2rem;padding-top:1rem}.plan-header h2{font-size:2rem;font-family:Courier Prime,Courier New,Courier,monospace;margin:0 0 .5rem;color:#2a2a2a;font-weight:600}.theme-dark .plan-header h2{color:#e0e0e0}.plan-description{font-size:.95rem;color:#666;font-style:italic;margin:0}.theme-dark .plan-description{color:#999}.plan-pricing{text-align:center;margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid rgba(0,0,0,.1)}.theme-dark .plan-pricing{border-bottom-color:#ffffff1a}.price{display:flex;align-items:flex-start;justify-content:center;gap:.25rem;margin-bottom:.5rem}.currency{font-size:1.5rem;font-weight:600;color:#2a2a2a;margin-top:.5rem}.theme-dark .currency{color:#e0e0e0}.amount{font-size:3.5rem;font-weight:700;font-family:Courier Prime,Courier New,Courier,monospace;color:#2a2a2a;line-height:1}.theme-dark .amount{color:#e0e0e0}.period{font-size:1.2rem;color:#666;margin-top:1rem}.theme-dark .period{color:#999}.trial-info{font-size:.9rem;color:#4caf50;font-weight:600;margin:.5rem 0}.token-limit{font-size:.95rem;color:#666;margin:.5rem 0 0;font-weight:500}.theme-dark .token-limit{color:#999}.plan-features{list-style:none;padding:0;margin:0 0 2rem;flex:1}.plan-features li{padding:.75rem 0 .75rem 1.5rem;position:relative;color:#333;font-size:.95rem}.theme-dark .plan-features li{color:#ccc}.plan-features li:before{content:"✓";position:absolute;left:0;color:#4caf50;font-weight:700;font-size:1.1rem}.plan-button{width:100%;padding:1rem 2rem;background:#8b7355;color:#fff;border:none;border-radius:8px;font-size:1.05rem;font-weight:600;cursor:pointer;transition:all .2s ease;font-family:Georgia,Times New Roman,serif;margin-top:auto}.plan-button:hover:not(:disabled){background:#a68b5b;transform:translateY(-2px);box-shadow:0 4px 12px #8b73554d}.plan-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.plan-button.featured-button{background:#646cff}.plan-button.featured-button:hover:not(:disabled){background:#535bf2;box-shadow:0 4px 12px #646cff4d}.comparison-footer{text-align:center;margin-top:2rem}.cancel-link{background:none;border:none;color:#8b7355;cursor:pointer;text-decoration:underline;font-size:.95rem;padding:0;font-family:inherit;transition:color .2s ease}.cancel-link:hover{color:#a68b5b}@media (max-width: 768px){.plans-grid{grid-template-columns:1fr}.plan-card.featured{transform:scale(1)}.comparison-header h1{font-size:2rem}}.share-container{position:relative;display:inline-block}.share-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;margin-left:.5rem}.theme-light .share-button{background-color:#fff;color:#555;border-color:#e8e8e8}.theme-light .share-button:hover{background-color:#f8f8f8;border-color:#d0d0d0;color:#333}.theme-dark .share-button{background-color:#2a2a2a;color:#bbb;border-color:#3a3a3a}.theme-dark .share-button:hover{background-color:#333;border-color:#4a4a4a;color:#e0e0e0}.share-dialog{position:absolute;top:100%;right:0;margin-top:.5rem;min-width:400px;max-width:500px;border-radius:12px;box-shadow:0 8px 32px #00000026,0 2px 8px #0000001a;z-index:10000;animation:slideDown .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.theme-light .share-dialog{background-color:#fffffff2;border:1px solid rgba(224,224,224,.6)}.theme-dark .share-dialog{background-color:#2a2a2af2;border:1px solid rgba(68,68,68,.6)}.share-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid}.theme-light .share-dialog-header{border-color:#e0e0e0}.theme-dark .share-dialog-header{border-color:#444}.share-dialog-header h3{margin:0;font-size:17px;font-weight:500;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.3px}.theme-light .share-dialog-header h3{color:#333}.theme-dark .share-dialog-header h3{color:#e0e0e0}.share-close{background:none;border:none;font-size:22px;cursor:pointer;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease;line-height:1}.theme-light .share-close{color:#666}.theme-light .share-close:hover{background-color:#f0f0f0}.theme-dark .share-close{color:#bbb}.theme-dark .share-close:hover{background-color:#333}.share-tabs{display:flex;border-bottom:1px solid;padding:0 1.5rem;gap:.5rem}.theme-light .share-tabs{border-color:#e0e0e0}.theme-dark .share-tabs{border-color:#444}.share-tab{padding:.875rem 1.25rem;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;transition:all .25s ease;margin-bottom:-1px;border-radius:8px 8px 0 0;font-family:Courier Prime,Courier New,Courier,monospace}.theme-light .share-tab{color:#666}.theme-light .share-tab:hover{color:#333;background-color:#f8f8f8}.theme-light .share-tab.active{color:#646cff;border-bottom-color:#646cff;background-color:#646cff14}.theme-dark .share-tab{color:#bbb}.theme-dark .share-tab:hover{color:#e0e0e0;background-color:#ffffff0d}.theme-dark .share-tab.active{color:#818cf8;border-bottom-color:#818cf8;background-color:#818cf826}.share-link-section,.share-email-section{padding:1.5rem 1.5rem 1.75rem}.share-permission-toggle{display:flex;gap:1.5rem;margin-bottom:1.5rem;padding:.75rem;background:#00000005;border-radius:8px}.theme-dark .share-permission-toggle{background:#ffffff08}.share-permission-toggle label{display:flex;align-items:center;gap:.625rem;cursor:pointer;font-size:14px;padding:.5rem .75rem;border-radius:6px;transition:all .2s ease}.share-permission-toggle label:hover{background:#00000008}.theme-dark .share-permission-toggle label:hover{background:#ffffff0d}.theme-light .share-permission-toggle label{color:#333}.theme-dark .share-permission-toggle label{color:#e0e0e0}.share-permission-toggle input[type=radio]{cursor:pointer}.share-link-input-group{display:flex;gap:.5rem;margin-bottom:.75rem}.share-link-input{flex:1;padding:.625rem .875rem;border:1px solid;border-radius:8px;font-size:13px;font-family:Courier Prime,Courier New,Courier,monospace;transition:all .2s ease}.theme-light .share-link-input{background-color:#fffc;border-color:#e0e0e0;color:#333}.theme-light .share-link-input:focus{outline:none;border-color:#646cff;background-color:#fff;box-shadow:0 0 0 3px #646cff1a}.theme-dark .share-link-input{background-color:#1a1a1acc;border-color:#444;color:#e0e0e0}.theme-dark .share-link-input:focus{outline:none;border-color:#818cf8;background-color:#1a1a1a;box-shadow:0 0 0 3px #818cf826}.share-copy-button,.share-generate-button,.share-invite-button{padding:.625rem 1.25rem;border:1px solid;border-radius:8px;cursor:pointer;font-size:13px;font-weight:500;white-space:nowrap;transition:all .25s ease;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.3px}.theme-light .share-copy-button,.theme-light .share-generate-button,.theme-light .share-invite-button{background-color:#646cff;color:#fff;border-color:#646cff}.theme-light .share-copy-button:hover:not(:disabled),.theme-light .share-generate-button:hover:not(:disabled),.theme-light .share-invite-button:hover:not(:disabled){background-color:#5559e8;transform:translateY(-1px);box-shadow:0 4px 12px #646cff4d}.theme-dark .share-copy-button,.theme-dark .share-generate-button,.theme-dark .share-invite-button{background-color:#818cf8;color:#fff;border-color:#818cf8}.theme-dark .share-copy-button:hover:not(:disabled),.theme-dark .share-generate-button:hover:not(:disabled),.theme-dark .share-invite-button:hover:not(:disabled){background-color:#6d7af0;transform:translateY(-1px);box-shadow:0 4px 12px #818cf866}.share-copy-button:disabled,.share-generate-button:disabled,.share-invite-button:disabled{opacity:.6;cursor:not-allowed}.share-link-note{font-size:12px;margin:0;opacity:.7}.theme-light .share-link-note{color:#666}.theme-dark .share-link-note{color:#bbb}.share-email-input-group{display:flex;gap:.5rem;margin-bottom:1.5rem}.share-email-input{flex:1;padding:.625rem .875rem;border:1px solid;border-radius:8px;font-size:14px;font-family:Courier Prime,Courier New,Courier,monospace;transition:all .2s ease}.theme-light .share-email-input{background-color:#fffc;border-color:#e0e0e0;color:#333}.theme-light .share-email-input:focus{outline:none;border-color:#646cff;background-color:#fff;box-shadow:0 0 0 3px #646cff1a}.theme-dark .share-email-input{background-color:#1a1a1acc;border-color:#444;color:#e0e0e0}.theme-dark .share-email-input:focus{outline:none;border-color:#818cf8;background-color:#1a1a1a;box-shadow:0 0 0 3px #818cf826}.share-invited-list{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid}.theme-light .share-invited-list{border-color:#e0e0e0}.theme-dark .share-invited-list{border-color:#444}.share-invited-list h4{margin:0 0 1rem;font-size:14px;font-weight:600}.theme-light .share-invited-list h4{color:#333}.theme-dark .share-invited-list h4{color:#e0e0e0}.share-invited-item{display:flex;justify-content:space-between;align-items:center;padding:.625rem .75rem;font-size:14px;border-radius:6px;transition:background-color .2s ease;margin-bottom:.25rem}.share-invited-item:hover{background:#00000005}.theme-dark .share-invited-item:hover{background:#ffffff08}.theme-light .share-invited-item{color:#333}.theme-dark .share-invited-item{color:#e0e0e0}.share-invited-email{font-weight:500}.share-invited-permission{opacity:.7;font-size:12px}.character-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:10000;padding:1rem;animation:characterPanelFadeIn .2s ease}@keyframes characterPanelFadeIn{0%{opacity:0}to{opacity:1}}.character-panel{background:var(--cozy-light-surface, #fff);border:1px solid var(--cozy-light-border, #e0e0e0);border-radius:12px;box-shadow:0 12px 40px #00000026;max-width:480px;width:100%;max-height:85vh;display:flex;flex-direction:column;animation:characterPanelSlide .25s ease}.theme-dark .character-panel{background:var(--cozy-dark-surface, #2a2a2a);border-color:var(--cozy-dark-border, #444);box-shadow:0 12px 40px #0006}@keyframes characterPanelSlide{0%{opacity:0;transform:scale(.96) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.character-panel-header{padding:1.25rem 1.5rem .75rem;border-bottom:1px solid var(--cozy-light-border, #eee);position:relative}.theme-dark .character-panel-header{border-color:var(--cozy-dark-border, #444)}.character-panel-title{margin:0 0 .25rem;font-size:1.25rem;font-weight:600;color:var(--cozy-light-text, #1a1a1a)}.theme-dark .character-panel-title{color:var(--cozy-dark-text, #e8e8e8)}.character-panel-subtitle{margin:0;font-size:.8125rem;color:var(--cozy-light-muted, #666)}.theme-dark .character-panel-subtitle{color:var(--cozy-dark-muted, #aaa)}.character-panel-close{position:absolute;top:1rem;right:1rem;width:28px;height:28px;border:none;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer;color:var(--cozy-light-muted, #666);border-radius:6px;display:flex;align-items:center;justify-content:center}.character-panel-close:hover{background:#0000000f;color:var(--cozy-light-text, #333)}.theme-dark .character-panel-close{color:var(--cozy-dark-muted, #999)}.theme-dark .character-panel-close:hover{background:#ffffff14;color:var(--cozy-dark-text, #e0e0e0)}.character-panel-actions{padding:.75rem 1.5rem}.character-panel-add{padding:.4rem .75rem;font-size:.8125rem;font-weight:500;border-radius:6px;border:1px solid var(--cozy-light-border, #ddd);background:transparent;color:var(--cozy-light-text, #333);cursor:pointer;font-family:inherit}.character-panel-add:hover{background:#0000000a}.theme-dark .character-panel-add{border-color:var(--cozy-dark-border, #555);color:var(--cozy-dark-text, #e0e0e0)}.theme-dark .character-panel-add:hover{background:#ffffff0f}.character-panel-form{padding:0 1.5rem 1rem;display:flex;flex-direction:column;gap:.5rem}.character-panel-input,.character-panel-notes{padding:.5rem .75rem;font-size:.875rem;border:1px solid var(--cozy-light-border, #ddd);border-radius:6px;font-family:inherit;background:var(--cozy-light-bg, #fff);color:var(--cozy-light-text, #1a1a1a)}.character-panel-notes{resize:vertical;min-height:52px}.theme-dark .character-panel-input,.theme-dark .character-panel-notes{border-color:var(--cozy-dark-border, #555);background:var(--cozy-dark-surface, #2a2a2a);color:var(--cozy-dark-text, #e8e8e8)}.character-panel-form-buttons{display:flex;gap:.5rem;margin-top:.25rem}.character-panel-btn{padding:.4rem .75rem;font-size:.8125rem;border-radius:6px;border:1px solid var(--cozy-light-border, #ddd);background:transparent;color:var(--cozy-light-text, #333);cursor:pointer;font-family:inherit}.character-panel-btn.primary{background:var(--cozy-light-text, #333);color:var(--cozy-light-bg, #fff);border-color:var(--cozy-light-text, #333)}.theme-dark .character-panel-btn{border-color:var(--cozy-dark-border, #555);color:var(--cozy-dark-text, #e0e0e0)}.theme-dark .character-panel-btn.primary{background:var(--cozy-dark-text, #e8e8e8);color:var(--cozy-dark-bg, #1c1b19);border-color:var(--cozy-dark-text, #e8e8e8)}.character-panel-list{list-style:none;margin:0;padding:0 1.5rem 1.5rem;overflow-y:auto;flex:1;min-height:0}.character-panel-empty{padding:1.5rem;text-align:center;font-size:.875rem;color:var(--cozy-light-muted, #666)}.theme-dark .character-panel-empty{color:var(--cozy-dark-muted, #aaa)}.character-panel-item{border:1px solid var(--cozy-light-border, #eee);border-radius:8px;margin-bottom:.5rem;overflow:hidden}.theme-dark .character-panel-item{border-color:var(--cozy-dark-border, #444)}.character-panel-item-head{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;gap:.5rem}.character-panel-item-name{flex:1;text-align:left;padding:.25rem 0;border:none;background:transparent;font-size:.9375rem;font-weight:500;color:var(--cozy-light-text, #1a1a1a);cursor:pointer;font-family:inherit}.theme-dark .character-panel-item-name{color:var(--cozy-dark-text, #e8e8e8)}.character-panel-item-name:hover{text-decoration:underline}.character-panel-item-actions{display:flex;gap:.25rem}.character-panel-item-btn{padding:.2rem .5rem;font-size:.75rem;border:none;background:transparent;color:var(--cozy-light-muted, #666);cursor:pointer;font-family:inherit;border-radius:4px}.character-panel-item-btn:hover{background:#0000000f;color:var(--cozy-light-text, #333)}.character-panel-item-btn.danger:hover{background:#b400001a;color:#b00}.theme-dark .character-panel-item-btn{color:var(--cozy-dark-muted, #999)}.theme-dark .character-panel-item-btn:hover{background:#ffffff14;color:var(--cozy-dark-text, #e0e0e0)}.character-panel-item-detail{padding:0 .75rem .75rem;border-top:1px solid var(--cozy-light-border, #eee);font-size:.8125rem}.theme-dark .character-panel-item-detail{border-color:var(--cozy-dark-border, #444)}.character-panel-aliases,.character-panel-notes-preview{margin:.35rem 0 0;color:var(--cozy-light-muted, #666)}.theme-dark .character-panel-aliases,.theme-dark .character-panel-notes-preview{color:var(--cozy-dark-muted, #aaa)}.character-panel-mentions{margin-top:.5rem}.character-panel-mentions-label{font-weight:500;color:var(--cozy-light-text, #333)}.theme-dark .character-panel-mentions-label{color:var(--cozy-dark-text, #e0e0e0)}.character-panel-mentions.none{color:var(--cozy-light-muted, #666);font-style:italic}.theme-dark .character-panel-mentions.none{color:var(--cozy-dark-muted, #aaa)}.character-panel-mentions-list{list-style:none;margin:.25rem 0 0;padding:0}.character-panel-mention-link{display:block;padding:.2rem 0;border:none;background:transparent;font-size:inherit;color:var(--cozy-light-muted, #555);cursor:pointer;text-align:left;font-family:inherit;text-decoration:underline}.character-panel-mention-link:hover{color:var(--cozy-light-text, #1a1a1a)}.theme-dark .character-panel-mention-link{color:var(--cozy-dark-muted, #aaa)}.theme-dark .character-panel-mention-link:hover{color:var(--cozy-dark-text, #e8e8e8)}.app{width:100%;min-height:100vh;margin:0;padding:2rem;box-sizing:border-box;transition:background-color .3s ease,color .3s ease;overflow-x:auto}.theme-light .app{background-color:var(--cozy-light-bg, #f7f6f4)}.theme-dark .app{background-color:var(--cozy-dark-bg, #1c1b19)}.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;height:calc(100vh - 120px);min-height:0;align-items:stretch;justify-content:space-between;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;padding:0}.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{font-family:var(--cozy-font-sans);width:220px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid;border-radius:8px;overflow:hidden;position:relative}.binder-sidebar:not(.minimized){flex:0 0 auto;height:66vh;min-height:0;max-height:66vh;display:flex;flex-direction:column;overflow:hidden}.theme-light .binder-sidebar{background-color:var(--cozy-light-surface);border-color:var(--cozy-light-border);border-radius:var(--cozy-radius);box-shadow:var(--cozy-shadow)}.theme-dark .binder-sidebar{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border);border-radius:var(--cozy-radius);box-shadow:0 2px 12px #00000040}.binder-header{padding:.75rem 1rem;border-bottom:1px solid;font-weight:600;font-size:13px;display:flex;align-items:center;gap:.5rem}.binder-header-content{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:.5rem}.binder-view-toggle{display:flex;align-items:center;gap:.15rem;flex-shrink:0}.binder-view-btn{padding:.2rem .45rem;font-size:11px;font-weight:500;border-radius:var(--cozy-radius-sm);border:1px solid transparent;cursor:pointer;background:transparent;color:var(--cozy-light-muted);font-family:var(--cozy-font-sans);transition:background .2s ease,color .2s ease,border-color .2s ease}.binder-view-btn:hover{color:var(--cozy-light-text)}.binder-view-btn.active{background-color:#0000000f;color:var(--cozy-light-text);border-color:var(--cozy-light-border)}.theme-dark .binder-view-btn{color:var(--cozy-dark-muted)}.theme-dark .binder-view-btn:hover{color:var(--cozy-dark-text)}.theme-dark .binder-view-btn.active{background-color:#ffffff14;color:var(--cozy-dark-text);border-color:var(--cozy-dark-border)}.binder-title-container{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.binder-title-container:hover .binder-edit-icon,.binder-title-container:hover .binder-edit-icon-text{opacity:1}.binder-project-switcher{position:relative;margin-right:.25rem;flex-shrink:0}.binder-switch-btn{width:16px;height:20px;padding:0;margin:0;border:none;background:transparent;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .2s ease,transform .2s ease,color .2s ease;font-size:10px;line-height:1;opacity:.6;color:inherit;gap:0}.binder-switch-btn:hover{opacity:1;transform:scale(1.1)}.theme-light .binder-switch-btn{color:#666}.theme-light .binder-switch-btn:hover{color:#333;background-color:#0000000d;border-radius:3px}.theme-dark .binder-switch-btn{color:#999}.theme-dark .binder-switch-btn:hover{color:#fff;background-color:#ffffff1a;border-radius:3px}.binder-switch-combined{height:20px}.binder-switch-up-icon{line-height:.8;padding-bottom:1px}.binder-switch-down-icon{line-height:.8;padding-top:1px}.project-dropdown{position:absolute;top:100%;left:0;margin-top:4px;background:#fff;border:1px solid #e0e0e0;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:180px;max-width:250px;max-height:300px;overflow-y:auto;padding:4px 0}.theme-dark .project-dropdown{background:#2a2a2a;border-color:#444}.project-dropdown-item{padding:8px 12px;cursor:pointer;font-size:13px;transition:background-color .15s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-light .project-dropdown-item{color:#333}.theme-light .project-dropdown-item:hover{background-color:#f0f0f0}.theme-light .project-dropdown-item.active{background-color:#5c6b521f;color:var(--cozy-light-accent, #5c6b52);font-weight:500}.theme-dark .project-dropdown-item{color:#e0e0e0}.theme-dark .project-dropdown-item:hover{background-color:#333}.theme-dark .project-dropdown-item.active{background-color:#8fa87a26;color:var(--cozy-dark-accent, #8fa87a);font-weight:500}.binder-title{font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.theme-light .binder-title{color:#333}.theme-dark .binder-title{color:#e0e0e0}.binder-edit-icon{width:24px;height:24px;padding:2px;margin:0;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .2s ease,transform .2s ease,background-color .2s ease;flex-shrink:0;opacity:.85;line-height:1;border-radius:4px}.binder-edit-icon-text{font-size:18px;display:inline-block;line-height:1;font-weight:500}.binder-edit-icon:hover{opacity:1;transform:scale(1.2)}.theme-light .binder-edit-icon{color:#444}.theme-light .binder-edit-icon:hover{color:#000;background-color:#0000000d}.theme-dark .binder-edit-icon{color:#bbb}.theme-dark .binder-edit-icon:hover{color:#fff;background-color:#ffffff1a}.binder-title-edit{flex:1;min-width:0}.binder-title-input{width:100%;font-size:13px;font-weight:600;border:1px solid;border-radius:4px;padding:.25rem .5rem;font-family:inherit;outline:none}.theme-light .binder-title-input{background-color:#fff;color:#333;border-color:#646cff}.theme-light .binder-title-input:focus{border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.theme-dark .binder-title-input{background-color:#2a2a2a;color:#e0e0e0;border-color:#818cf8}.theme-dark .binder-title-input:focus{border-color:#818cf8;box-shadow:0 0 0 2px #818cf833}.binder-project-name{font-size:11px;font-weight:400;text-transform:none;letter-spacing:0;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-dark .binder-project-name{color:#999}.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-archive-section,.binder-sidebar.minimized .binder-trash-section,.binder-sidebar.minimized .binder-footer{display:none}.binder-sidebar.minimized .binder-header{border-bottom:none}.theme-light .binder-header{border-color:var(--cozy-light-border, #e8e6e3);background-color:#fdfcfae6;color:var(--cozy-light-muted, #6b6560)}.theme-dark .binder-header{border-color:var(--cozy-dark-border, #3d3b38);background-color:#252422f2;color:var(--cozy-dark-muted, #9a958f)}.binder-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:.5rem .5rem .5rem 1rem;min-height:0;-webkit-overflow-scrolling:touch}.outline-fullscreen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background-color:var(--cozy-light-bg);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:1.5rem 2rem 2rem;box-sizing:border-box;overflow:auto}.theme-dark .outline-fullscreen-overlay{background-color:var(--cozy-dark-bg)}.outline-fullscreen-content{width:100%;max-width:1200px;flex:1;display:flex;flex-direction:column;min-height:0;background-color:var(--cozy-light-surface);border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius);box-shadow:var(--cozy-shadow-md);overflow:hidden}.theme-dark .outline-fullscreen-content{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border)}.outline-fullscreen-header{padding:1rem 1.25rem;border-bottom:1px solid var(--cozy-light-border);flex-shrink:0}.theme-dark .outline-fullscreen-header{border-bottom-color:var(--cozy-dark-border)}.outline-fullscreen-title{margin:0 0 .15rem;font-size:1.25rem;font-weight:600;font-family:var(--cozy-font-sans);color:var(--cozy-light-text)}.theme-dark .outline-fullscreen-title{color:var(--cozy-dark-text)}.outline-fullscreen-subtitle{margin:0 0 .75rem;font-size:.8rem;color:var(--cozy-light-muted)}.theme-dark .outline-fullscreen-subtitle{color:var(--cozy-dark-muted)}.outline-fullscreen-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.outline-fullscreen-close{margin-left:auto;padding:.4rem .75rem;font-size:13px;font-family:var(--cozy-font-sans);border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius-sm);background:transparent;color:var(--cozy-light-muted);cursor:pointer;transition:background .2s ease,color .2s ease}.outline-fullscreen-close:hover{background-color:#0000000f;color:var(--cozy-light-text)}.theme-dark .outline-fullscreen-close{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .outline-fullscreen-close:hover{background-color:#ffffff14;color:var(--cozy-dark-text)}.outline-fullscreen-body{flex:1;overflow-y:auto;padding:1rem 1.25rem;font-family:var(--cozy-font-sans)}.outline-fullscreen-body.bulletin-board .binder-outline-tree,.outline-fullscreen-body .outline-bulletin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.outline-fullscreen-body.bulletin-board .binder-outline-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;margin-top:.5rem;margin-left:0;padding-left:0;border-left:none}.outline-fullscreen-body.bulletin-board .binder-outline-folder,.outline-fullscreen-body.bulletin-board .binder-outline-doc{padding:.75rem;border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius-sm);margin-bottom:0}.theme-dark .outline-fullscreen-body.bulletin-board .binder-outline-folder,.theme-dark .outline-fullscreen-body.bulletin-board .binder-outline-doc{border-color:var(--cozy-dark-border)}.binder-outline-panel{flex:1;overflow-y:auto;padding:.75rem 1rem;min-height:0;font-family:var(--cozy-font-sans)}.binder-outline-panel.bulletin-board .binder-outline-tree.outline-bulletin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem}.binder-outline-panel.bulletin-board .binder-outline-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.5rem;margin-top:.5rem;margin-left:0;padding-left:0;border-left:none}.binder-outline-panel.bulletin-board .binder-outline-folder,.binder-outline-panel.bulletin-board .binder-outline-doc{padding:.6rem .5rem;border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius-sm);margin-bottom:0}.theme-dark .binder-outline-panel.bulletin-board .binder-outline-folder,.theme-dark .binder-outline-panel.bulletin-board .binder-outline-doc{border-color:var(--cozy-dark-border)}.binder-outline-title{font-size:13px;font-weight:600;color:var(--cozy-light-text);margin-bottom:.15rem}.theme-dark .binder-outline-title{color:var(--cozy-dark-text)}.binder-outline-subtitle{font-size:11px;color:var(--cozy-light-muted);margin-bottom:.75rem}.theme-dark .binder-outline-subtitle{color:var(--cozy-dark-muted)}.binder-outline-tree{margin:0;padding:0}.binder-outline-empty{font-size:12px;color:var(--cozy-light-muted);font-style:italic;padding:.5rem 0}.theme-dark .binder-outline-empty{color:var(--cozy-dark-muted)}.binder-outline-node{margin-bottom:.25rem;border-radius:var(--cozy-radius-sm);transition:background .15s ease}.binder-outline-folder{padding:.35rem .5rem}.binder-outline-folder .binder-outline-label{font-weight:600;font-size:12px;color:var(--cozy-light-text)}.theme-dark .binder-outline-folder .binder-outline-label{color:var(--cozy-dark-text)}.binder-outline-children{margin-top:.2rem;margin-left:.5rem;border-left:1px solid var(--cozy-light-border);padding-left:.5rem}.theme-dark .binder-outline-children{border-left-color:var(--cozy-dark-border)}.binder-outline-doc{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem;padding:.4rem .5rem;cursor:pointer}.binder-outline-doc:hover{background-color:#0000000d}.binder-outline-doc.active{background-color:#4f5d4726;border-radius:var(--cozy-radius-sm)}.theme-dark .binder-outline-doc:hover{background-color:#ffffff0f}.theme-dark .binder-outline-doc.active{background-color:#7d9a6a33}.binder-outline-icon{font-size:12px;margin-right:.35rem;flex-shrink:0}.binder-outline-label{font-size:12px;color:var(--cozy-light-text);flex:1;min-width:0}.theme-dark .binder-outline-label{color:var(--cozy-dark-text)}.binder-outline-summary{width:100%;font-size:11px;color:var(--cozy-light-muted);line-height:1.35;margin-top:.2rem;padding-left:1.25rem}.theme-dark .binder-outline-summary{color:var(--cozy-dark-muted)}.binder-outline-summarize-btn{font-size:10px;padding:.2rem .4rem;border-radius:4px;border:1px solid var(--cozy-light-border);background:transparent;color:var(--cozy-light-muted);cursor:pointer;font-family:var(--cozy-font-sans);flex-shrink:0;transition:background .2s ease,color .2s ease}.binder-outline-summarize-btn:hover:not(:disabled){background-color:#0000000f;color:var(--cozy-light-accent)}.binder-outline-summarize-btn:disabled{opacity:.5;cursor:not-allowed}.theme-dark .binder-outline-summarize-btn{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .binder-outline-summarize-btn:hover:not(:disabled){background-color:#ffffff14;color:var(--cozy-dark-accent)}.binder-item-wrapper{-webkit-user-select:none;user-select:none;position:relative}.binder-trash-wrapper{margin-top:auto;border-top:1px solid}.theme-light .binder-trash-wrapper{border-top-color:#e0e0e0}.theme-dark .binder-trash-wrapper{border-top-color:#444}.binder-trash-item{cursor:default;opacity:.7}.binder-trash-item:hover{opacity:1}.binder-trash-item.drag-over{background-color:#f4433633!important;border:2px dashed rgba(244,67,54,.6)!important;border-radius:4px;opacity:1}.theme-light .binder-trash-item.drag-over{background-color:#f4433626!important;border-color:#d32f2f!important}.theme-dark .binder-trash-item.drag-over{background-color:#f4433640!important;border-color:#f44336!important}.drop-line-indicator{height:2px;background-color:#646cff;margin:0;border-radius:1px;box-shadow:0 0 4px #646cff99;animation:dropLinePulse .3s ease}@keyframes dropLinePulse{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}.theme-light .drop-line-indicator{background-color:#646cff;box-shadow:0 0 4px #646cff99}.theme-dark .drop-line-indicator{background-color:#818cf8;box-shadow:0 0 6px #818cf8cc}.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:#f0eeeb}.theme-dark .binder-item:hover{background-color:#333}.theme-light .binder-item.active{background-color:#5c6b522e;color:#4a5842;font-weight:500}.theme-dark .binder-item.active{background-color:#8fa87a38;color:#a8c090;font-weight:500}.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-placeholder{flex:1;min-width:0;overflow:hidden;-webkit-user-select:none;user-select:none}.binder-name-input.binder-name-auto{font-style:italic}.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-ai-toggle{flex-shrink:0;margin-left:4px;padding:0 4px;min-width:22px;height:18px;border:none;border-radius:3px;background:transparent;cursor:pointer;font-size:10px;font-weight:600;letter-spacing:.02em;opacity:.5;transition:opacity .15s ease}.binder-item:hover .binder-ai-toggle{opacity:.8}.binder-ai-toggle:hover{opacity:1}.binder-ai-toggle.binder-ai-hidden{opacity:.35;text-decoration:line-through}.binder-item:hover .binder-ai-toggle.binder-ai-hidden{opacity:.6}.theme-light .binder-ai-toggle{color:#646cff}.theme-dark .binder-ai-toggle{color:#8b9aff}.binder-children{display:flex;flex-direction:column}.binder-header-title{display:inline}.binder-header-project-name{font-weight:400;opacity:.9}.theme-light .binder-header-project-name{color:var(--cozy-light-muted, #6b6560)}.theme-dark .binder-header-project-name{color:var(--cozy-dark-muted, #9a958f)}.binder-project-item{font-weight:500}.binder-project-item .binder-name.binder-project-name-in-list{min-width:0;flex:1;min-width:4ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.binder-nested-items{display:flex;flex-direction:column;margin-left:.5rem;padding-left:.5rem;margin-top:0;padding-top:0}.binder-nested-items .binder-item-wrapper{margin-left:0;margin-top:0}.binder-nested-items .binder-item-wrapper:first-child{margin-top:0}.binder-nested-items .binder-item{padding-left:.75rem!important}.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-archive-section{flex-shrink:0;display:flex;flex-direction:column}.binder-archive-section .binder-archive-wrapper{padding:.25rem .5rem .25rem 1rem}.binder-archive-children{max-height:160px;overflow-y:auto;overflow-x:hidden}.binder-trash-section{flex-shrink:0;display:flex;flex-direction:column}.binder-trash-separator{height:0;border-top:1px solid;margin:0 .5rem}.theme-light .binder-trash-separator{border-color:var(--cozy-light-border, #e8e6e3)}.theme-dark .binder-trash-separator{border-color:var(--cozy-dark-border, #3d3b38)}.binder-trash-section .binder-trash-wrapper{padding:.25rem .5rem .25rem 1rem}.binder-trash-children{max-height:160px;overflow-y:auto;overflow-x:hidden}.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;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transition:all .3s ease;position:relative;width:100%;max-width:100%;overflow:hidden;padding:0;margin:0}.editor-column{width:100%;min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;align-items:stretch}.theme-light .editor-container{background-color:#fdfbf7}.theme-dark .editor-container{background-color:#1a1a1a}.floating-selection-popup{position:fixed!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:9999px;box-shadow:0 4px 16px #0000001a,0 2px 6px #0000000f;padding:.5rem .6rem;border:1px solid var(--cozy-light-border, #e8e6e3);font-family:var(--cozy-font-sans)}.floating-popup-btn{padding:.4rem;border:none;border-radius:50%;cursor:pointer;font-size:16px;font-weight:500;transition:all .2s ease;white-space:nowrap;width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;position:relative}.floating-popup-btn-icon{font-size:18px;line-height:1}.floating-popup-btn-label{font-size:9px;font-weight:500;line-height:1;white-space:nowrap;color:var(--cozy-light-text, #2c2926)}.floating-popup-btn-outline{background:#fff;color:var(--cozy-light-text, #2c2926);border:1px solid var(--cozy-light-border, #e0e0e0);box-shadow:0 1px 3px #0000000f}.floating-popup-btn-outline:hover:not(:disabled){background:#f8f9fa;transform:scale(1.06);box-shadow:0 2px 8px #0000001a;border-color:var(--cozy-light-muted, #9a958f)}.floating-popup-btn-outline:disabled{opacity:.6;cursor:not-allowed}.floating-popup-btn-primary{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff;border:none;box-shadow:0 2px 6px #646cff59}.floating-popup-btn-primary .floating-popup-btn-label{color:#fff}.floating-popup-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#535bf2,#4348d9);transform:scale(1.06);box-shadow:0 3px 10px #646cff66}.floating-popup-btn-primary:disabled{opacity:.6;cursor:not-allowed}.theme-dark .floating-popup-content{background:var(--cozy-dark-surface, #252422);border-color:var(--cozy-dark-border, #3d3b38);box-shadow:0 6px 24px #0000004d}.theme-dark .floating-popup-btn-outline{background:var(--cozy-dark-surface, #2a2926);color:var(--cozy-dark-text, #e6e3de);border-color:var(--cozy-dark-border, #3d3b38)}.theme-dark .floating-popup-btn-outline .floating-popup-btn-label{color:var(--cozy-dark-text, #e6e3de)}.theme-dark .floating-popup-btn-outline:hover:not(:disabled){background:#ffffff14;border-color:var(--cozy-dark-muted, #9a958f)}.theme-dark .floating-popup-btn-primary{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff;box-shadow:0 2px 8px #646cff66}.theme-dark .floating-popup-btn-primary .floating-popup-btn-label{color:#fff}.theme-dark .floating-popup-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#535bf2,#4348d9);box-shadow:0 4px 12px #646cff80}.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;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;z-index:99999;pointer-events:auto;background:#0000008c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.center-loading-message{margin:0;font-size:.95rem;color:#ffffffe6;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.5px}.theme-dark .center-loading-message{color:#ffffffe6}.wizard-pending-change{display:inline;padding:2px 4px;animation:wizardChangePulse 2s ease-in-out infinite}@keyframes wizardChangePulse{0%,to{background-color:transparent}50%{background-color:#646cff0d}}.wizard-pending-change .wizard-original-text{text-decoration:line-through;color:#999;opacity:.7;margin-right:.3em}.theme-dark .wizard-pending-change .wizard-original-text{color:#666;opacity:.6}.wizard-pending-change .wizard-new-text{background-color:#646cff26;border-bottom:2px solid #646cff;padding:2px 0;text-decoration:none}.theme-dark .wizard-pending-change .wizard-new-text{background-color:#646cff33;border-bottom-color:#646cff}.editor .ai-generated-content{text-decoration:underline;text-decoration-color:#646cff;text-underline-offset:2px;background-color:#646cff14;padding:0 2px;border-radius:2px}.editor .ai-generated-content p{margin:0;text-indent:2.5em}.editor .ai-generated-content p+p{margin-top:0}.editor .ai-generated-content p:first-child{margin-top:0}.editor .ai-generated-content:first-child p:first-child{text-indent:0}.editor h1+.ai-generated-content p:first-child,.editor h2+.ai-generated-content p:first-child,.editor h3+.ai-generated-content p:first-child,.editor .folder-header+.ai-generated-content p:first-child{text-indent:0}.editor .ai-generated-content p:last-child{margin-bottom:0}.editor .ai-generated-content p:not(:last-child){margin-bottom:0}.editor .ai-generated-content p:empty,.editor .ai-generated-content p:has(>br:only-child),.editor .ai-generated-content p:has(>br:first-child:last-child){margin:0;padding:0;height:0;min-height:0;line-height:0;overflow:hidden;display:none}.theme-dark .editor .ai-generated-content{background-color:#646cff1f}.wizard-change-buttons-wrapper{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.wizard-change-buttons{display:flex;gap:.5rem;align-items:center;animation:wizardButtonsFadeIn .2s ease-out}.wizard-change-hint{font-size:12px;font-family:var(--cozy-font-serif);color:#666;white-space:nowrap}.theme-dark .wizard-change-hint{color:#999}@keyframes wizardButtonsFadeIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.wizard-change-accept-btn-inline,.wizard-change-reject-btn-inline,.wizard-change-regenerate-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-regenerate-btn-inline{background-color:#fff;border-color:#e0e0e0;color:#666}.wizard-change-regenerate-btn-inline:hover{background-color:#f0f0f0;border-color:#ccc;transform:scale(1.1);box-shadow:0 4px 12px #0003}.wizard-change-regenerate-btn-inline:disabled{opacity:.6;cursor:not-allowed}.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}.wizard-change-accept-btn-inline:disabled,.wizard-change-reject-btn-inline:disabled{opacity:.6;cursor:not-allowed}.theme-dark .wizard-change-reject-btn-inline,.theme-dark .wizard-change-regenerate-btn-inline{background-color:#2a2a2a;border-color:#fff3;color:#e0e0e0}.theme-dark .wizard-change-reject-btn-inline:hover,.theme-dark .wizard-change-regenerate-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!important;margin-right:auto!important;display:flex;justify-content:center;align-items:flex-start;transition:transform .2s ease,margin-bottom .2s ease,margin-top .2s ease,max-width .3s ease;min-height:0;position:relative;padding-left:0;padding-right:0;box-sizing:border-box;flex:1 0 0%;min-width:0;align-self:stretch}.editor-resize-handle{position:absolute;bottom:0;right:.5rem;width:20px;height:20px;cursor:ew-resize;z-index:1000;background:transparent;border-radius:4px;transition:background-color .2s ease}.editor-resize-handle:before{content:"";position:absolute;bottom:2px;right:2px;width:0;height:0;border-style:solid;border-width:0 0 12px 12px;opacity:.4;transition:opacity .2s ease}.theme-light .editor-resize-handle:before{border-color:transparent transparent #999 transparent}.theme-dark .editor-resize-handle:before{border-color:transparent transparent #666 transparent}.editor-resize-handle:hover:before,.editor-resize-handle.resizing:before{opacity:.8}.editor-resize-handle.resizing{background-color:#646cff1a}.theme-light .editor-resize-handle:hover{background-color:#0000000d}.theme-dark .editor-resize-handle:hover{background-color:#ffffff0d}.editor-wrapper>.empty-document-buttons{position:absolute;top:1rem;left:2.5rem;width:auto;z-index:10}@media (max-width: 768px){.editor-wrapper{max-width:100%;padding-left:0;padding-right:0}.editor-wrapper>.empty-document-buttons{left:.5rem}.editor-resize-handle{right:.5rem}.header{max-width:100%;width:100%}}@media (max-width: 480px){.editor-wrapper{padding-left:0;padding-right:0}.editor-wrapper>.empty-document-buttons{left:.375rem}.editor-resize-handle{right:.5rem}}.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{font-family:var(--cozy-font-sans);width:220px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid;border-radius:8px;overflow:hidden;position:relative;transition:width .3s ease,opacity .3s ease}.ai-sidebar:not(.minimized){flex:0 0 auto;height:66vh;min-height:0;max-height:66vh;display:flex;flex-direction:column;overflow:hidden}.ai-sidebar.collapsed{width:45px}.theme-light .ai-sidebar{background-color:var(--cozy-light-surface);border-color:var(--cozy-light-border);border-radius:var(--cozy-radius);box-shadow:var(--cozy-shadow)}.theme-dark .ai-sidebar{background-color:var(--cozy-dark-surface);border-color:var(--cozy-dark-border);border-radius:var(--cozy-radius);box-shadow:0 2px 12px #00000040}.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:var(--cozy-light-border, #e8e6e3);background-color:#fdfcfae6;color:var(--cozy-light-muted, #6b6560)}.theme-dark .ai-sidebar-header{border-color:var(--cozy-dark-border, #3d3b38);background-color:#252422f2;color:var(--cozy-dark-muted, #9a958f)}.ai-sidebar-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none}.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;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:1rem}.ai-chat-area{display:flex;flex-direction:column;gap:1rem;flex:1;min-height:0;overflow-y:auto;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-hint{margin-top:.5rem;font-size:12px;font-weight:400;opacity:.85}.ai-examples-panel{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding:.5rem .6rem;background:#fff;border-radius:9999px;box-shadow:0 4px 16px #0000001a,0 2px 6px #0000000f;border:1px solid var(--cozy-light-border, #e8e6e3);font-family:var(--cozy-font-sans)}.theme-dark .ai-examples-panel{background:var(--cozy-dark-surface, #252422);border-color:var(--cozy-dark-border, #3d3b38);box-shadow:0 6px 24px #0000004d}.ai-example-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;padding:.4rem;width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:16px;font-weight:500;transition:all .2s ease;border:none;position:relative}.ai-example-icon{font-size:18px;line-height:1}.ai-example-label{font-size:9px;font-weight:500;line-height:1;white-space:nowrap;color:var(--cozy-light-text, #2c2926)}.ai-example-btn-outline{background:#fff;color:var(--cozy-light-text, #2c2926);border:1px solid var(--cozy-light-border, #e0e0e0);box-shadow:0 1px 3px #0000000f}.ai-example-btn-outline:hover{background:#f8f9fa;transform:scale(1.06);box-shadow:0 2px 8px #0000001a;border-color:var(--cozy-light-muted, #9a958f)}.ai-example-btn-outline .ai-example-label{color:var(--cozy-light-text, #2c2926)}.ai-example-btn-primary{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff;border:none;box-shadow:0 2px 6px #646cff59}.ai-example-btn-primary .ai-example-label{color:#fff}.ai-example-btn-primary:hover{background:linear-gradient(135deg,#535bf2,#4348d9);transform:scale(1.06);box-shadow:0 3px 10px #646cff66}.theme-dark .ai-example-btn-outline{background:var(--cozy-dark-surface, #2a2926);color:var(--cozy-dark-text, #e6e3de);border-color:var(--cozy-dark-border, #3d3b38)}.theme-dark .ai-example-btn-outline .ai-example-label{color:var(--cozy-dark-text, #e6e3de)}.theme-dark .ai-example-btn-outline:hover{background:#ffffff14;border-color:var(--cozy-dark-muted, #9a958f)}.theme-dark .ai-example-btn-primary{background:linear-gradient(135deg,#646cff,#535bf2);color:#fff;box-shadow:0 2px 8px #646cff66}.theme-dark .ai-example-btn-primary .ai-example-label{color:#fff}.theme-dark .ai-example-btn-primary:hover{background:linear-gradient(135deg,#535bf2,#4348d9);box-shadow:0 4px 12px #646cff80}.ai-past-chats{margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--cozy-light-border)}.theme-dark .ai-past-chats{border-top-color:var(--cozy-dark-border)}.ai-past-chats-title{margin:0 0 .5rem;font-size:12px;font-weight:600;color:var(--cozy-light-muted)}.theme-dark .ai-past-chats-title{color:var(--cozy-dark-muted)}.ai-past-chats-list{list-style:none;margin:0;padding:0}.ai-past-chat-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.4rem .5rem;margin-bottom:.35rem;border-radius:var(--cozy-radius-sm);background:#0000000a}.theme-dark .ai-past-chat-item{background:#ffffff0f}.ai-past-chat-label{flex:1;min-width:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cozy-light-text)}.theme-dark .ai-past-chat-label{color:var(--cozy-dark-text)}.ai-past-chat-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.ai-past-chat-btn{padding:.2rem .45rem;font-size:10px;font-family:var(--cozy-font-sans);border:1px solid var(--cozy-light-border);border-radius:4px;background:transparent;color:var(--cozy-light-muted);cursor:pointer;transition:background .15s ease,color .15s ease}.ai-past-chat-btn:hover{background:#0000000f;color:var(--cozy-light-text)}.theme-dark .ai-past-chat-btn{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .ai-past-chat-btn:hover{background:#ffffff14;color:var(--cozy-dark-text)}.ai-past-chat-insert{color:var(--cozy-light-accent);border-color:var(--cozy-light-accent)}.theme-dark .ai-past-chat-insert{color:var(--cozy-dark-accent);border-color:var(--cozy-dark-accent)}.ai-past-chat-remove{width:18px;height:18px;padding:0;border:none;background:transparent;color:var(--cozy-light-muted);font-size:14px;line-height:1;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center}.ai-past-chat-remove:hover{background:#00000014;color:var(--cozy-light-text)}.theme-dark .ai-past-chat-remove:hover{background:#ffffff1a;color:var(--cozy-dark-text)}.ai-message-actions{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;flex-wrap:wrap}.ai-message-action-btn{padding:.25rem .5rem;font-size:11px;font-family:var(--cozy-font-sans);border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius-sm);background:transparent;color:var(--cozy-light-muted);cursor:pointer;transition:background .15s ease,color .15s ease}.ai-message-action-btn:hover{background:#0000000f;color:var(--cozy-light-text)}.theme-dark .ai-message-action-btn{border-color:var(--cozy-dark-border);color:var(--cozy-dark-muted)}.theme-dark .ai-message-action-btn:hover{background:#ffffff14;color:var(--cozy-dark-text)}.ai-star-btn{padding:.2rem .4rem;font-size:12px}.ai-insert-btn{color:var(--cozy-light-accent);border-color:var(--cozy-light-accent)}.theme-dark .ai-insert-btn{color:var(--cozy-dark-accent);border-color:var(--cozy-dark-accent)}.ai-sidebar-footer{padding:.75rem;border-top:1px solid;flex-shrink:0}.theme-light .ai-sidebar-footer{border-color:var(--cozy-light-border, #e8e6e3);background-color:#fdfcfae6}.theme-dark .ai-sidebar-footer{border-color:var(--cozy-dark-border, #3d3b38);background-color:#252422f2}.ai-chat-file-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.ai-attached-files{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem}.ai-attached-file-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .4rem;border-radius:6px;font-size:11px;border:1px solid;background:var(--cozy-bg-secondary, rgba(0, 0, 0, .05))}.theme-dark .ai-attached-file-chip{background:#ffffff14;border-color:var(--cozy-dark-border, #555)}.theme-light .ai-attached-file-chip{border-color:#ddd}.ai-attached-file-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-attached-file-remove{padding:0;margin:0;background:none;border:none;cursor:pointer;font-size:14px;line-height:1;opacity:.8;color:inherit}.ai-attached-file-remove:hover{opacity:1}.ai-prompt-extra-btn{width:32px;height:32px;flex-shrink:0;border-radius:6px;border:1px solid;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .15s ease}.ai-prompt-inner .ai-prompt-extra-btn{width:28px;height:28px;border:none;font-size:13px;opacity:.85}.ai-prompt-inner .ai-prompt-extra-btn:hover{opacity:1}.theme-light .ai-prompt-extra-btn{border-color:#ddd;color:#666}.theme-light .ai-prompt-extra-btn:hover{background-color:#646cff1a;border-color:#646cff;color:#646cff}.theme-dark .ai-prompt-extra-btn{border-color:#555;color:#999}.theme-dark .ai-prompt-extra-btn:hover{background-color:#646cff26;border-color:#646cff;color:#b8bcff}.ai-prompt-extra-btn:disabled{opacity:.5;cursor:not-allowed}.ai-prompt-container{display:block}.ai-prompt-inner{position:relative;border:1px solid;border-radius:8px;overflow:hidden}.theme-light .ai-prompt-inner{background-color:#fff;border-color:#ddd}.theme-light .ai-prompt-inner:focus-within{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff1a}.theme-dark .ai-prompt-inner{background-color:#2a2a2a;border-color:#555}.theme-dark .ai-prompt-inner:focus-within{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.ai-prompt-input{display:block;width:100%;min-height:60px;max-height:120px;padding:.5rem 2.75rem 2.25rem .5rem;border:none;border-radius:0;font-size:12px;font-family:inherit;resize:vertical;line-height:1.5;background:transparent}.theme-light .ai-prompt-input{color:#333}.theme-light .ai-prompt-input::placeholder{color:#999}.theme-dark .ai-prompt-input{color:#e0e0e0}.theme-dark .ai-prompt-input::placeholder{color:#888}.ai-prompt-input-actions{position:absolute;bottom:6px;left:6px;display:flex;gap:4px;z-index:1}.ai-send-btn.ai-send-btn-inset{position:absolute;bottom:6px;right:6px;z-index:1}.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,.theme-light .tokens-left,.theme-light .page-count{color:var(--cozy-light-muted, #6b6560);font-weight:400}.theme-light .editor{background-color:#fdfbf7;color:var(--cozy-light-text);border:1px solid var(--cozy-light-border);border-radius:var(--cozy-radius-sm);box-shadow:var(--cozy-shadow-md);max-width:680px;width:100%;margin:0 auto}.theme-light .editor:focus{box-shadow:0 4px 20px #4f5d471f;border-color:#c5c0b5}.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,.theme-dark .tokens-left,.theme-dark .page-count{color:var(--cozy-dark-muted, #9a958f);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;overflow:visible}@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:var(--cozy-font-sans);position:relative;font-size:3.2em;font-weight:400;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;flex-wrap:nowrap;white-space:nowrap}.cozywrite-title{display:inline-block;position:relative;background:transparent}@media (max-width: 1200px){h1{font-size:2.8em;font-weight:400}}@media (max-width: 992px){h1{font-size:2.4em;font-weight:400}}@media (max-width: 768px){h1{font-size:2em;font-weight:400}}@media (max-width: 576px){h1{font-size:1.7em;font-weight:400}}@media (max-width: 400px){h1{font-size:1.4em;font-weight:400}}.save-status{font-size:12px;padding:.25rem .5rem;border-radius:4px;font-weight:500;margin-bottom:0;line-height:1.2}.save-status.saving{color:#646cff}.save-status.saved{color:#4caf50}.save-status.copied{color:#ff9800}.save-status.unsaved{color:#e65100}.save-error-dialog p{margin:.5rem 0}.save-error-stay{font-weight:500;margin-top:.75rem!important}.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:#555;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:#bbb;border-color:#646cff}.stats{display:flex;flex-direction:column;align-items:center;gap:0;margin-bottom:.75rem}.stats-row{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.word-count,.char-count,.session-word-count,.tokens-left,.page-count{font-size:11px;font-weight:400;letter-spacing:.3px}.toolbar{font-family:var(--cozy-font-sans);display:flex;flex-direction:column;align-items:center;gap:.2rem;max-width:680px;width:100%;min-width:0;flex-shrink:0;margin:0 auto;padding:.35rem 1rem .4rem;transition:opacity .3s ease,transform .3s ease,margin .3s ease;position:relative;z-index:1;box-sizing:border-box;border-radius:var(--cozy-radius)}.theme-light .toolbar:not(.focus-toolbar){background-color:var(--cozy-light-surface);border:1px solid var(--cozy-light-border);border-bottom:1px solid var(--cozy-light-border);margin-bottom:.35rem}.theme-dark .toolbar:not(.focus-toolbar){background-color:var(--cozy-dark-surface);border:1px solid var(--cozy-dark-border);border-bottom:1px solid var(--cozy-dark-border);margin-bottom:.35rem}.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}.format-group{gap:.22rem;padding-left:.15rem;padding-right:.15rem}.font-controls{gap:.18rem}.format-group .format-btn,.format-group .font-select,.format-group .font-size-select{padding:.16rem .26rem;font-size:8px;min-height:18px;height:18px;box-sizing:border-box}.format-group .font-select,.format-group .font-size-select{line-height:1.2}.format-group .font-select{min-width:48px;max-width:78px}.format-group .font-size-select{min-width:38px;max-width:46px}.align-buttons-group .format-btn.align-btn{padding:.16rem .28rem;font-size:8px}.format-group .zoom-control{padding:.06rem .1rem;gap:.06rem}.format-group .zoom-btn{width:12px;height:12px;font-size:9px}.format-group .zoom-level{font-size:7px;min-width:16px}.format-group .format-btn.undo-redo-btn.undo-redo-icon-only{min-width:22px;padding:.16rem .28rem}.format-group .format-btn-icon-only{min-width:22px;padding:.16rem .26rem}}.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}.action-group{display:flex;justify-content:center;align-items:center;gap:.2rem;flex-wrap:wrap;width:100%;max-width:100%}.toolbar:not(.focus-toolbar) .action-group .action-btn,.toolbar:not(.focus-toolbar) .action-group .focus-toggle,.toolbar:not(.focus-toolbar) .action-group .theme-toggle,.toolbar:not(.focus-toolbar) .action-group .music-toggle,.toolbar:not(.focus-toolbar) .action-group .file-menu-button,.toolbar:not(.focus-toolbar) .action-group .share-button{padding:.2rem .45rem;font-size:10px;min-height:22px;border-radius:var(--cozy-radius-sm)}.theme-light .toolbar:not(.focus-toolbar) .action-group .action-btn,.theme-light .toolbar:not(.focus-toolbar) .action-group .focus-toggle,.theme-light .toolbar:not(.focus-toolbar) .action-group .theme-toggle,.theme-light .toolbar:not(.focus-toolbar) .action-group .music-toggle,.theme-light .toolbar:not(.focus-toolbar) .action-group .file-menu-button,.theme-light .toolbar:not(.focus-toolbar) .action-group .share-button{background-color:#0000000a;border-color:var(--cozy-light-border)}.theme-light .toolbar:not(.focus-toolbar) .action-group .action-btn:hover,.theme-light .toolbar:not(.focus-toolbar) .action-group .focus-toggle:hover,.theme-light .toolbar:not(.focus-toolbar) .action-group .theme-toggle:hover,.theme-light .toolbar:not(.focus-toolbar) .action-group .music-toggle:hover,.theme-light .toolbar:not(.focus-toolbar) .action-group .file-menu-button:hover,.theme-light .toolbar:not(.focus-toolbar) .action-group .share-button:hover{background-color:#00000014}.theme-dark .toolbar:not(.focus-toolbar) .action-group .action-btn,.theme-dark .toolbar:not(.focus-toolbar) .action-group .focus-toggle,.theme-dark .toolbar:not(.focus-toolbar) .action-group .theme-toggle,.theme-dark .toolbar:not(.focus-toolbar) .action-group .music-toggle,.theme-dark .toolbar:not(.focus-toolbar) .action-group .file-menu-button,.theme-dark .toolbar:not(.focus-toolbar) .action-group .share-button{background-color:#ffffff0f;border-color:var(--cozy-dark-border)}.theme-dark .toolbar:not(.focus-toolbar) .action-group .action-btn:hover,.theme-dark .toolbar:not(.focus-toolbar) .action-group .focus-toggle:hover,.theme-dark .toolbar:not(.focus-toolbar) .action-group .theme-toggle:hover,.theme-dark .toolbar:not(.focus-toolbar) .action-group .music-toggle:hover,.theme-dark .toolbar:not(.focus-toolbar) .action-group .file-menu-button:hover,.theme-dark .toolbar:not(.focus-toolbar) .action-group .share-button:hover{background-color:#ffffff1a}.format-group{display:flex;justify-content:center;align-items:center;gap:.25rem;flex-wrap:wrap;width:100%;max-width:100%;padding-top:.2rem;padding-left:.15rem;padding-right:.15rem;border-top:1px solid var(--cozy-light-border);box-sizing:border-box}.theme-dark .toolbar:not(.focus-toolbar) .format-group{border-top-color:var(--cozy-dark-border)}.theme-light .toolbar:not(.focus-toolbar) .format-group .format-btn,.theme-light .toolbar:not(.focus-toolbar) .format-group .zoom-control{background-color:transparent;border-color:#0000001a;color:var(--cozy-light-muted)}.theme-light .toolbar:not(.focus-toolbar) .format-group .format-btn:hover,.theme-light .toolbar:not(.focus-toolbar) .format-group .zoom-control:hover{background-color:#0000000d;border-color:#0000002e;color:var(--cozy-light-text)}.theme-dark .toolbar:not(.focus-toolbar) .format-group .format-btn,.theme-dark .toolbar:not(.focus-toolbar) .format-group .zoom-control{background-color:transparent;border-color:#ffffff1f;color:var(--cozy-dark-muted)}.theme-dark .toolbar:not(.focus-toolbar) .format-group .format-btn:hover,.theme-dark .toolbar:not(.focus-toolbar) .format-group .zoom-control:hover{background-color:#ffffff0f;border-color:#fff3;color:var(--cozy-dark-text)}.theme-light .toolbar:not(.focus-toolbar) .format-group .font-select,.theme-light .toolbar:not(.focus-toolbar) .format-group .font-size-select{background-color:transparent;border-color:#0000001a;color:var(--cozy-light-muted)}.theme-dark .toolbar:not(.focus-toolbar) .format-group .font-select,.theme-dark .toolbar:not(.focus-toolbar) .format-group .font-size-select{background-color:transparent;border-color:#ffffff1f;color:var(--cozy-dark-muted)}.toolbar.focus-toolbar .format-group,.toolbar.focus-toolbar .action-group{flex-wrap:nowrap}.toolbar.focus-toolbar .format-group{padding-top:0;border-top:none}.zoom-control{display:flex;align-items:center;gap:.05rem;padding:.05rem .1rem;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:16px;height:16px;padding:0;border:none;background:transparent;cursor:pointer;font-size:11px;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:9px;font-weight:500;min-width:22px;text-align:center;-webkit-user-select:none;user-select:none;padding:0 .05rem}.theme-light .zoom-level{color:#666}.theme-dark .zoom-level{color:#999}.font-controls{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap;justify-content:center}.toolbar.focus-toolbar .font-controls{flex-wrap:wrap}.font-select,.font-size-select{padding:.12rem .2rem;font-size:10px;font-weight:500;border-radius:3px;cursor:pointer;transition:all .2s ease;border:1px solid;font-family:inherit;height:22px}.font-select{min-width:72px;max-width:110px;width:auto}.font-size-select{min-width:44px;max-width:58px}.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:58px}.align-buttons-group{display:inline-flex;gap:0;border-radius:6px;overflow:hidden}.align-buttons-group .format-btn.align-btn{min-width:0;padding:.15rem .4rem;font-size:10px;font-weight:500;border-radius:0;border-right-width:0}.align-buttons-group .format-btn.align-btn:last-child{border-right-width:1px}.align-buttons-group .format-btn.align-btn.align-btn-active{font-weight:600}.theme-light .align-buttons-group .format-btn.align-btn.align-btn-active{background-color:#00000014;border-color:#0003}.theme-dark .align-buttons-group .format-btn.align-btn.align-btn-active{background-color:#ffffff1f;border-color:#ffffff40}.format-btn.align-btn{min-width:28px;padding:.15rem .35rem}.format-btn.voice-btn{position:relative}.format-btn.voice-btn.recording{background-color:#f44!important;color:#fff!important;animation:pulse-recording 1.5s ease-in-out infinite}@keyframes pulse-recording{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.05)}}.theme-light .format-btn.voice-btn.recording{background-color:#f44!important;color:#fff!important;border-color:#f44!important}.theme-dark .format-btn.voice-btn.recording{background-color:#c00!important;color:#fff!important;border-color:#c00!important}.format-btn,.action-btn,.preview-toggle,.fullscreen-toggle,.theme-toggle,.music-toggle,.focus-toggle{padding:.15rem .35rem;font-size:10px;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:22px;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:var(--cozy-light-surface, #fdfcfa);color:var(--cozy-light-muted, #6b6560);border-color:var(--cozy-light-border, #e8e6e3);border-radius:var(--cozy-radius-sm, 6px)}.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:#f5f3f0;border-color:#ddd9d4;color:var(--cozy-light-text, #2c2926)}.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}.undo-redo-group{display:inline-flex;flex-shrink:0;align-items:center;gap:.2rem}.format-btn.undo-redo-btn{padding:.25rem .5rem;font-size:11px}.format-btn.undo-redo-btn.undo-redo-icon-only{min-width:28px;padding:.25rem .4rem;font-size:1.1em;line-height:1}.format-btn.undo-redo-btn.undo-redo-icon-only:before{content:none}.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:not(.undo-redo-icon-only):before{content:attr(data-icon);font-size:13px;display:inline-block}.toolbar.focus-toolbar .format-btn.undo-redo-btn.undo-redo-icon-only{font-size:1.1em}.toolbar.focus-toolbar .format-btn.undo-redo-btn.undo-redo-icon-only:before{content:none}.format-btn.undo-redo-btn:disabled{opacity:.4;cursor:not-allowed}.format-btn-icon-only{min-width:28px;padding:.25rem .35rem}.icon-text-color{display:inline-block;font-weight:700;font-size:14px;line-height:1;border-bottom:3px solid currentColor;padding-bottom:1px}.icon-highlight{font-size:14px;line-height:1;display:inline-block}.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}.highlight-swatch-none{font-size:10px;font-weight:600;color:#666;background:#f5f5f5!important;display:flex;align-items:center;justify-content:center;padding:0}.theme-dark .highlight-swatch-none{background:#3a3a3a!important;color:#aaa}.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:var(--cozy-font-serif);line-height:1.6;border-radius:8px;resize:both;box-sizing:border-box;transition:background-color .3s ease,color .3s ease,box-shadow .3s ease,padding .3s ease,max-width .3s ease,width .3s ease;tab-size:4;-moz-tab-size:4;max-width:100%;overflow-wrap:break-word;margin:0 auto;overflow:visible}.theme-light .editor::selection{background-color:#4f5d4740;color:inherit}.theme-dark .editor::selection{background-color:#7d9a6a59;color:inherit}.editor .compiled-folder-header,.editor .compiled-document-section{text-align:center!important;width:calc(100% + 5rem)!important;max-width:calc(100% + 5rem)!important;display:block!important;margin-left:-2.5rem!important;margin-right:-2.5rem!important;margin-top:0!important;margin-bottom:0!important;padding:0!important;box-sizing:border-box!important;position:relative!important;left:0!important;right:0!important;transform:none!important;overflow:visible!important}.editor .compiled-folder-header h2,.editor .compiled-document-section h3{font-weight:400!important;text-align:center!important;width:100%!important;max-width:100%!important;display:block!important;contenteditable:false!important;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;box-sizing:border-box!important;text-align-last:center!important;left:0!important;right:0!important;transform:none!important;text-indent:0!important;padding:0!important;margin:0!important}.editor .compiled-folder-header:first-child h2,.editor .compiled-document-section:first-child h3{margin-top:0!important}.editor p,.editor>div{margin:0;padding:0;text-indent:2.5em;line-height:1.5}.editor p+p,.editor>div+div{margin-top:0!important}.editor p:first-child,.editor>div>p:first-child,.editor .wizard-new-text p:first-child,.editor .ai-generated-content p:first-child{text-indent:0}.editor .compiled-folder-header,.editor .compiled-document-section,.editor .compiled-folder-header h2,.editor .compiled-document-section h3{text-indent:0!important}.editor.screenplay-mode p,.editor.screenplay-mode>div{text-indent:0;margin-bottom:.75em}.editor.screenplay-mode p.scene-heading,.editor.screenplay-mode>div.scene-heading{text-align:center;text-transform:uppercase;font-weight:600;margin-top:1.5em;margin-bottom:1em;letter-spacing:.05em}.editor.screenplay-mode p.character,.editor.screenplay-mode>div.character{text-align:center;text-transform:uppercase;font-weight:600;margin-top:1em;margin-bottom:.5em;margin-left:0;padding-left:0}.editor.screenplay-mode p.dialogue,.editor.screenplay-mode>div.dialogue{margin-left:2.5em;margin-right:2.5em;margin-bottom:.75em;text-indent:0}.editor.screenplay-mode p.action,.editor.screenplay-mode>div.action{margin-left:0;margin-right:0;margin-bottom:.75em;text-indent:0}.editor.screenplay-mode p.transition,.editor.screenplay-mode>div.transition{text-align:right;text-transform:uppercase;font-weight:600;margin-top:1em;margin-bottom:1em;margin-right:0;text-indent:0}.editor.screenplay-mode p.parenthetical,.editor.screenplay-mode>div.parenthetical{margin-left:2.5em;margin-right:2.5em;margin-bottom:.5em;font-style:italic;text-indent:0}.scene-header-autofill-inline,.scene-header-suggestion-inline,.character-autofill-inline{color:#999;opacity:.6;pointer-events:none;-webkit-user-select:none;user-select:none}.theme-dark .scene-header-autofill-inline,.theme-dark .scene-header-suggestion-inline,.theme-dark .character-autofill-inline{color:#666}.editor .folder-header,.editor h1.folder-header{display:block!important;font-size:24px;font-weight:600;margin:0 0 1.5em!important;padding:0 0 .5em;text-indent:0;line-height:1.3;border-bottom:2px solid;position:relative!important;width:auto!important;flex:none!important;text-align:left!important;justify-content:unset!important;align-items:unset!important;text-shadow:none!important;-webkit-text-stroke:none!important;paint-order:normal!important}.theme-light .editor .folder-header{border-bottom-color:#e0e0e0;color:#333}.theme-dark .editor .folder-header{border-bottom-color:#444;color:#e0e0e0}.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 .todo-list{list-style:none;padding-left:0;margin:1em 0}.editor .todo-item{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.5em;padding:.25em 0}.editor .todo-checkbox{margin-top:.2em;cursor:pointer;width:18px;height:18px;flex-shrink:0}.editor .todo-text{flex:1;line-height:1.5}.editor .todo-item.checked .todo-text{text-decoration:line-through;opacity:.6}.theme-light .editor .todo-item.checked .todo-text{color:#999}.theme-dark .editor .todo-item.checked .todo-text{color:#666}.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}.editor h1{display:block;width:auto;flex:none;margin:0 0 .5em;text-align:left;font-size:1.5em;font-weight:600;line-height:1.3;text-shadow:none!important;-webkit-text-stroke:none!important}.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}.editor-placeholder-wrapper{position:relative;width:100%;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.editor-placeholder-overlay{left:2.5rem!important;right:2.5rem!important;text-shadow:none;-webkit-text-stroke:0;font-style:italic}@media (max-width: 768px){.editor-placeholder-overlay{left:1rem!important;right:1rem!important}}@media (max-width: 480px){.editor-placeholder-overlay{left:.75rem!important;right:.75rem!important}}.help-me-write-in-draft{position:absolute;top:1rem;left:2.5rem;right:2.5rem;z-index:12;display:flex;flex-direction:column;gap:.75rem}.help-me-write-input{width:100%;min-height:4.5em;padding:.75rem 1rem;font-size:15px;line-height:1.5;font-family:Lora,Georgia,Times New Roman,serif;border:1px solid #ccc;border-radius:8px;resize:vertical;background:#fffffffa;color:#333;box-sizing:border-box}.theme-dark .help-me-write-input{border-color:#555;background:#282828fa;color:#e8e8e8}.help-me-write-input::placeholder{color:#999}.theme-dark .help-me-write-input::placeholder{color:#777}.help-me-write-input:focus{outline:none;border-color:#888;box-shadow:0 0 0 2px #0000000f}.help-me-write-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.help-me-write-btn{padding:.4rem 1rem;font-size:12px;font-weight:500;font-family:var(--cozy-font-sans);border:1px solid #888;border-radius:6px;cursor:pointer;transition:all .2s ease;background:#fafafa;color:#555;min-width:6.25rem;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;text-align:center}.help-me-write-btn:hover:not(:disabled){background:#f0f0f0;border-color:#777}.help-me-write-btn:disabled{opacity:.6;cursor:not-allowed}.theme-dark .help-me-write-btn{border-color:#555;color:#aaa;background:#2a2a2a}.theme-dark .help-me-write-btn:hover:not(:disabled){background:#333;border-color:#666}@media (max-width: 768px){.help-me-write-in-draft{left:1rem;right:1rem}}@media (max-width: 480px){.help-me-write-in-draft{left:.75rem;right:.75rem}}.empty-document-buttons{position:absolute;top:1.25rem;left:2.5rem;display:flex;flex-direction:column;gap:1.25rem;justify-content:flex-start;align-items:flex-start;width:auto;max-width:520px;z-index:10;pointer-events:none;text-align:left}.empty-document-hint{margin:0;font-size:16px;line-height:1.5;font-family:var(--cozy-font-sans);pointer-events:none}.theme-light .empty-document-hint{color:#888}.theme-dark .empty-document-hint{color:#999}.empty-doc-button{padding:.5rem 1rem;font-size:13px;font-weight:500;border:1px solid;border-radius:var(--cozy-radius-sm, 6px);cursor:pointer;transition:all .2s ease;font-family:var(--cozy-font-sans);text-align:center;white-space:nowrap;pointer-events:auto;background:transparent;opacity:.85}.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)}.empty-doc-hotkeys{margin:.25rem 0 0;font-size:13px;line-height:1.5;font-family:var(--cozy-font-sans);letter-spacing:.02em}.empty-doc-hotkeys kbd{display:inline-block;padding:.25em .5em;margin:0 .2em;font-size:11px;font-family:var(--cozy-font-sans);border-radius:4px;border:1px solid currentColor;opacity:.85;vertical-align:middle}.empty-doc-hotkeys kbd:first-of-type{margin-left:.35em;margin-right:.45em}.empty-doc-hotkeys kbd:last-of-type{margin-left:.45em}.theme-light .empty-doc-hotkeys{color:#777}.theme-light .empty-doc-hotkeys kbd{border-color:#bbb;background:#fff9}.theme-dark .empty-doc-hotkeys{color:#999}.theme-dark .empty-doc-hotkeys kbd{border-color:#555;background:#3c3c3c99}@media (max-width: 768px){.empty-document-buttons{gap:1rem;top:1.25rem;left:.5rem;max-width:90%}.empty-document-hint{font-size:15px}.empty-doc-button{font-size:12px;padding:.45rem .85rem}}@media (max-width: 480px){.empty-document-buttons{gap:.9rem;top:1.25rem;left:.375rem}.empty-doc-button{padding:.45rem .75rem;font-size:12px}}.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:transparent;color:var(--cozy-light-muted, #6b6560)}.theme-dark .editor-footer{background-color:#1a1a1a;color:var(--cozy-dark-muted, #9a958f)}.profile-button{position:fixed;bottom:1.5rem;left:1.5rem;padding:.5rem 1rem;background:var(--cozy-light-surface, #fdfcfa);color:var(--cozy-light-muted, #6b6560);border:1px solid var(--cozy-light-border, #e8e6e3);border-radius:var(--cozy-radius-sm, 6px);cursor:pointer;font-size:.85rem;font-weight:400;transition:all .2s ease;font-family:inherit;z-index:100;box-shadow:var(--cozy-shadow, 0 1px 3px rgba(0, 0, 0, .06));opacity:.9}.profile-button:hover{background:#f5f3f0;opacity:1;border-color:#ddd9d4}.theme-dark .profile-button{background:var(--cozy-dark-surface, #252422);color:var(--cozy-dark-muted, #9a958f);border-color:var(--cozy-dark-border, #3d3b38);box-shadow:0 1px 3px #0003;opacity:.9}.theme-dark .profile-button:hover{background:#2f2e2b;opacity:1;border-color:#4d4b48}.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: 1600px){.editor-container{max-width:100%!important}.editor{overflow:visible!important}.binder-sidebar,.ai-sidebar{flex-shrink:0!important;min-width:220px!important;max-width:220px!important}.editor-container{min-width:0!important;max-width:100%!important}}@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}.format-group{gap:.25rem;padding-left:.2rem;padding-right:.2rem}.font-controls{gap:.2rem}.format-group .format-btn,.format-group .font-select,.format-group .font-size-select{padding:.2rem .3rem;font-size:9px;min-height:20px;height:20px;border-radius:4px;box-sizing:border-box}.format-group .font-select,.format-group .font-size-select{line-height:1.2}.format-group .font-select{min-width:56px;max-width:90px}.format-group .font-size-select{min-width:42px;max-width:52px}.align-buttons-group .format-btn.align-btn{padding:.2rem .35rem;font-size:9px}.format-group .zoom-control{padding:.08rem .12rem;gap:.08rem}.format-group .zoom-btn{width:14px;height:14px;font-size:10px}.format-group .zoom-level{font-size:8px;min-width:18px}.format-group .undo-redo-group{gap:.2rem}.format-group .format-btn.undo-redo-btn.undo-redo-icon-only{min-width:24px;padding:.2rem .35rem}.format-group .format-btn-icon-only{min-width:24px;padding:.2rem .3rem}.header,.editor-column,.toolbar,.editor-wrapper{padding-left:1rem;padding-right:1rem;max-width:100%!important;width:100%!important;margin-left:auto;margin-right:auto;box-sizing:border-box}.editor-container{width:100%;max-width:100%}.editor,.preview{max-width:100%;padding:2rem 1.5rem}}.recording-indicator-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:10001;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.recording-indicator-minimal{display:flex;flex-direction:column;align-items:center;gap:1rem}.waveform-container-minimal{display:flex;align-items:center;justify-content:center;gap:3px;height:50px}.waveform-bar-minimal{width:3px;background:#888;border-radius:2px;animation:waveform-minimal .5s ease-in-out infinite;min-height:10px}.theme-dark .waveform-bar-minimal{background:#aaa}@keyframes waveform-minimal{0%,to{height:15px;opacity:.6}50%{height:35px;opacity:1}}.recording-timer-minimal{font-size:1.2rem;font-weight:600;font-family:Courier New,monospace;color:#333;text-shadow:0 1px 2px rgba(255,255,255,.8)}.theme-dark .recording-timer-minimal{color:#e0e0e0;text-shadow:0 1px 2px rgba(0,0,0,.8)}.recording-hotkey-hint{font-size:.75rem;color:#666;font-weight:500;margin-top:.25rem;opacity:.8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.theme-dark .recording-hotkey-hint{color:#aaa}.recording-indicator-minimal:hover .recording-hotkey-hint{opacity:1;color:#333}.theme-dark .recording-indicator-minimal:hover .recording-hotkey-hint{color:#e0e0e0}.dictation-processing-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:99999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto}.dictation-processing-card{background:#fff;border-radius:16px;padding:2rem 2.5rem;display:flex;flex-direction:column;align-items:center;gap:.6rem;box-shadow:0 20px 60px #00000040;min-width:300px;border:1px solid rgba(0,0,0,.06)}.theme-dark .dictation-processing-card{background:#2d2d2d;box-shadow:0 20px 60px #00000080;border-color:#ffffff14}.dictation-processing-line{display:flex;align-items:center;gap:.4rem;margin:0;font-size:1.2rem;color:#222;font-family:Courier Prime,Courier New,Courier,monospace;font-weight:500}.theme-dark .dictation-processing-line{color:#e4e4e4}.dictation-asterisk{display:inline-block;animation:dictation-asterisk 1.4s ease-in-out infinite;font-weight:600;color:#6b7fcf}.theme-dark .dictation-asterisk{color:#9badf0}@keyframes dictation-asterisk{0%,to{opacity:1;transform:scale(1) rotate(0)}50%{opacity:.6;transform:scale(1.15) rotate(180deg)}}.dictation-rotating-phrase{transition:opacity .35s ease}.dictation-processing-in-progress{font-size:.8rem;color:#666;margin:.25rem 0 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:.5px;text-transform:uppercase}.theme-dark .dictation-processing-in-progress{color:#999}.recording-buttons-group{display:flex;gap:1rem;margin-top:1.5rem;align-items:center;justify-content:center}.recording-cancel-button{padding:.875rem 1.5rem;background:transparent;color:#666;border:2px solid #ccc;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .25s ease;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.5px;min-width:120px}.recording-cancel-button:hover{background:#f5f5f5;border-color:#999;color:#333;transform:translateY(-2px)}.recording-cancel-button:active{transform:translateY(0)}.theme-dark .recording-cancel-button{color:#aaa;border-color:#555}.theme-dark .recording-cancel-button:hover{background:#ffffff1a;border-color:#777;color:#e0e0e0}.recording-stop-button-large{padding:.875rem 2rem;background:#f44;color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .25s ease;font-family:Courier Prime,Courier New,Courier,monospace;letter-spacing:.5px;box-shadow:0 4px 12px #ff44444d;min-width:180px}.recording-stop-button-large:hover{background:#c00;transform:translateY(-2px);box-shadow:0 6px 16px #f446}.recording-stop-button-large:active{transform:translateY(0);box-shadow:0 2px 8px #ff44444d}.theme-dark .recording-stop-button-large{background:#c00;box-shadow:0 4px 12px #c006}.theme-dark .recording-stop-button-large:hover{background:#a00;box-shadow:0 6px 16px #cc000080}.recording-warning-minimal{font-size:.85rem;color:#ff9800;font-weight:500;animation:warning-pulse-minimal 1s ease-in-out infinite}.theme-dark .recording-warning-minimal{color:#ffc107}@keyframes warning-pulse-minimal{0%,to{opacity:1}50%{opacity:.7}}.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}.action-group{position:relative}.theme-toggle-wrapper{position:relative;display:inline-block}.footer-logo{display:flex;justify-content:center;align-items:center;margin-top:0;margin-bottom:.5rem;width:100%}.footer-logo h1{font-size:.9rem;margin:0;text-align:center;opacity:.6}.theme-light .footer-logo h1{color:var(--cozy-light-muted, #6b6560)}.theme-dark .footer-logo h1{color:var(--cozy-dark-muted, #9a958f)}@media (max-width: 768px){.footer-logo h1{font-size:.85rem}}@media (max-width: 480px){.footer-logo h1{font-size:.8rem}}.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:var(--cozy-light-muted, #6b6560)}.theme-dark .copyright-footer{color:var(--cozy-dark-muted, #9a958f)}.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}.theme-light .toolbar .review-btn{color:var(--cozy-light-muted, #6b6560)}.theme-light .toolbar .review-btn:hover{color:var(--cozy-light-text, #2c2926)}.theme-dark .toolbar .review-btn{color:#bbb}.theme-dark .toolbar .review-btn:hover{color:#e0e0e0}.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}.editor img{max-width:100%;height:auto;display:block}.editor-image-wrapper{display:inline-block;max-width:100%;vertical-align:middle;margin:.5em 0;position:relative}.editor-image-wrapper img{max-width:100%;height:auto;display:block;width:100%}.editor-image-resize-bar{display:flex;align-items:center;justify-content:center;gap:2px;margin-top:4px;padding:2px 0}.editor-image-resize-btn{width:24px;height:24px;padding:0;border:1px solid rgba(0,0,0,.2);border-radius:4px;background:#fff;color:#333;font-size:14px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.editor-image-resize-btn:hover{background:#f0f0f0}.theme-dark .editor-image-resize-btn{background:#2d2d2d;border-color:#fff3;color:#e0e0e0}.theme-dark .editor-image-resize-btn:hover{background:#3d3d3d}.image-dropdown-container{position:relative;display:inline-block}.image-dropdown{position:absolute;top:100%;left:0;margin-top:.25rem;min-width:180px;border-radius:var(--cozy-radius-sm);box-shadow:var(--cozy-shadow-md);z-index:1000;overflow:hidden;font-family:var(--cozy-font-sans)}.theme-light .image-dropdown{background-color:var(--cozy-light-surface);border:1px solid var(--cozy-light-border)}.theme-dark .image-dropdown{background-color:var(--cozy-dark-surface);border:1px solid var(--cozy-dark-border)}.image-dropdown-option{display:block;width:100%;padding:.5rem .75rem;text-align:left;border:none;background:transparent;cursor:pointer;font-size:12px;font-family:inherit;transition:background-color .2s ease;color:var(--cozy-light-text)}.theme-light .image-dropdown-option:hover{background-color:#0000000f}.theme-dark .image-dropdown-option{color:var(--cozy-dark-text)}.theme-dark .image-dropdown-option:hover{background-color:#ffffff14}.radio-dropdown-container{position:relative;display:inline-block}.radio-dropdown{position:absolute;top:100%;left:0;margin-top:.25rem;min-width:140px;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;overflow:hidden}.theme-light .radio-dropdown{background-color:var(--cozy-light-surface, #ffffff);border:1px solid var(--cozy-light-border, #e0e0e0)}.theme-dark .radio-dropdown{background-color:var(--cozy-dark-surface, #2a2a2a);border:1px solid var(--cozy-dark-border, #444)}.radio-dropdown-option{display:block;width:100%;padding:.5rem .75rem;text-align:left;border:none;background:transparent;cursor:pointer;font-size:13px;font-family:inherit;transition:background-color .2s ease}.theme-light .radio-dropdown-option{color:#333}.theme-light .radio-dropdown-option:hover{background-color:#0000000f}.theme-light .radio-dropdown-option.active{background-color:#646cff26;color:#646cff}.theme-dark .radio-dropdown-option{color:var(--cozy-dark-text, #e0e0e0)}.theme-dark .radio-dropdown-option:hover{background-color:#ffffff14}.theme-dark .radio-dropdown-option.active{background-color:#646cff40;color:#a5abff}.image-file-input-hidden{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.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-correction{margin-top:.5rem;font-weight:500}.comment-notes{margin-top:.5rem;padding:.5rem;background:#0000000a;border-radius:6px;font-size:.9em;color:#555}.theme-dark .comment-notes{background:#ffffff0f;color:#aaa}.comment-item.comment-pending-apply{border-left:3px solid #28a745}.comment-ynr-hint{font-size:12px;color:#666;margin-right:.5rem;align-self:center}.theme-dark .comment-ynr-hint{color:#aaa}.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-ai-prompt{font-family:Courier Prime,Courier New,monospace;position:relative;display:inline-block;color:#999}.theme-dark .inline-ai-prompt{color:#888}.inline-ai-prompt:empty:before{content:attr(data-placeholder);color:#888;opacity:.75;pointer-events:none}.theme-dark .inline-ai-prompt:empty:before{color:#999;opacity:.75}.inline-ai-submit-btn{background:#fffc;border:1px solid #ddd;border-radius:4px;padding:4px 12px;font-size:12px;color:#666;cursor:pointer;font-family:Courier Prime,monospace;opacity:.7;transition:opacity .2s ease;box-shadow:0 1px 3px #0000001a}.inline-ai-submit-btn:hover{opacity:1;background:#fffffff2;border-color:#bbb}.theme-dark .inline-ai-submit-btn{background:#2a2a2acc;border-color:#555;color:#aaa}.theme-dark .inline-ai-submit-btn:hover{background:#2a2a2af2;border-color:#777}.ai-pending-response{background-color:#646cff1a;border-left:2px solid #646cff;padding-left:4px}.theme-dark .ai-pending-response{background-color:#646cff26;border-left-color:#7c85ff}.ai-accept-deny-prompt{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);background-color:#000000e6;color:#fff;padding:.75rem 2.25rem .75rem 1.25rem;border-radius:8px;font-size:15px;z-index:10000;box-shadow:0 4px 12px #0000004d;font-family:var(--cozy-font-serif);white-space:nowrap;display:flex;align-items:center;gap:.5rem}.theme-dark .ai-accept-deny-prompt{background-color:#fffffff2;color:#333}.ai-accept-deny-close{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);width:22px;height:22px;padding:0;border:none;background:transparent;color:inherit;font-size:18px;line-height:1;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;opacity:.85;transition:opacity .15s ease,background .15s ease}.ai-accept-deny-close:hover{opacity:1;background:#ffffff26}.theme-dark .ai-accept-deny-close:hover{background:#00000014}.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}
