.app{width:100%;height:100vh;display:flex;flex-direction:column}.document-editor{width:100%;height:100vh;display:flex;flex-direction:column;background:#f5f5f5}.editor-header{background:#fff;border-bottom:1px solid #e0e0e0}.header-top{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem;border-bottom:1px solid #f0f0f0;gap:1rem}.editor-toolbar{display:flex;align-items:center;padding:.5rem 1rem;gap:.25rem;overflow-x:auto;flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:.125rem}.toolbar-btn{background:none;border:none;color:#444;font-size:.95rem;cursor:pointer;padding:.5rem;border-radius:4px;transition:all .2s;display:flex;align-items:center;justify-content:center;min-width:32px;height:32px}.toolbar-btn:hover{background:#e8e8e8;color:#000}.toolbar-btn:active{background:#d0d0d0}.toolbar-divider{width:1px;height:24px;background:#e0e0e0;margin:0 .5rem}.font-select{padding:.35rem .5rem;border:1px solid #d0d0d0;border-radius:4px;font-size:.9rem;cursor:pointer;background:#fff;color:#444;min-width:60px}.font-select:hover{border-color:#999}.font-select:focus{outline:none;border-color:#667eea}.back-btn{background:none;border:none;color:#667eea;font-size:.95rem;cursor:pointer;padding:.5rem 1rem;border-radius:4px;transition:background .2s}.back-btn:hover{background:#f0f4ff}.document-title{flex:1;text-align:center;color:#333;font-size:1.1rem;margin:0;font-weight:500}.save-btn{background:#667eea;color:#fff;border:none;padding:.5rem 1.25rem;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .2s;white-space:nowrap}.save-btn:hover:not(:disabled){background:#5568d3}.save-btn:disabled{opacity:.6;cursor:not-allowed}.editor-container{flex:1;padding:2rem;overflow:auto}.editor-textarea{width:100%;height:100%;max-width:800px;margin:0 auto;padding:2rem;background:#fff;border:1px solid #e0e0e0;border-radius:8px;font-size:1rem;line-height:1.6;font-family:Georgia,serif;resize:none;display:block}.editor-textarea:focus{outline:none;border-color:#667eea}.editor-footer{padding:.75rem 2rem;background:#fff;border-top:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center}.user-indicator{color:#666;font-size:.875rem}.word-count{color:#999;font-size:.875rem}@media (max-width: 768px){.header-top{padding:.75rem}.document-title{font-size:.95rem}.editor-toolbar{padding:.5rem;overflow-x:auto;flex-wrap:nowrap}.toolbar-btn{min-width:28px;height:28px;font-size:.85rem;padding:.4rem}.toolbar-divider{margin:0 .25rem}.editor-container{padding:1rem}.editor-textarea{padding:1rem;font-size:16px}.editor-footer{padding:.75rem 1rem;font-size:.8rem}}.collaborative-interface{width:100%;height:100vh;display:flex;flex-direction:column;background:#f5f5f5}.interface-header{display:flex;align-items:center;gap:1rem;padding:1rem 2rem;background:#fff;border-bottom:1px solid #e0e0e0}.interface-header h2{flex:1;margin:0;color:#333}.document-list-container{flex:1;padding:2rem;overflow:auto;max-width:600px;width:100%;margin:0 auto}.new-document-form{display:flex;gap:.5rem;margin-bottom:2rem}.new-document-input{flex:1;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem}.new-document-input:focus{outline:none;border-color:#667eea}.create-document-btn{background:#667eea;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s}.create-document-btn:hover{background:#5568d3}.documents-list h3{color:#333;margin-bottom:1rem}.documents-list ul{list-style:none}.documents-list li{padding:1rem;background:#fff;border:1px solid #e0e0e0;border-radius:6px;margin-bottom:.5rem;cursor:pointer;transition:all .2s}.documents-list li:hover{background:#f0f4ff;border-color:#667eea}.no-documents{text-align:center;color:#999;padding:2rem}.updates-container{flex:1;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}.loading,.no-updates{text-align:center;color:#999;padding:2rem}.update-item{max-width:70%;padding:.75rem 1rem;border-radius:12px;animation:slideIn .2s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.own-update{align-self:flex-end;background:#667eea;color:#fff}.other-update{align-self:flex-start;background:#fff;color:#333;border:1px solid #e0e0e0}.update-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem;font-size:.75rem}.own-update .update-header{opacity:.9}.other-update .update-header{color:#666}.update-author{font-weight:600}.update-time{opacity:.8}.update-content{word-wrap:break-word;line-height:1.4}.update-form{display:flex;gap:.5rem;padding:1rem;background:#fff;border-top:1px solid #e0e0e0;position:sticky;bottom:0;z-index:10}.update-input{flex:1;padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:24px;font-size:16px;-webkit-user-select:text;user-select:text}.update-input:focus{outline:none;border-color:#667eea;position:relative}.send-btn{background:#667eea;color:#fff;border:none;padding:.75rem 2rem;border-radius:24px;cursor:pointer;font-size:1rem;transition:background .2s}.send-btn:hover{background:#5568d3}@media (max-width: 768px){.interface-header,.document-list-container{padding:1rem}.update-item{max-width:85%}.update-form{padding:.75rem;padding-bottom:calc(.75rem + env(safe-area-inset-bottom));position:fixed;bottom:0;left:0;right:0;transform:translateZ(0);-webkit-transform:translateZ(0)}.updates-container{padding-bottom:calc(5rem + env(safe-area-inset-bottom))}.update-input{touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none}}.welcome-screen{width:100%;height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2)}.welcome-content{background:#fff;padding:3rem;border-radius:12px;box-shadow:0 20px 60px #0000004d;max-width:500px;width:90%}.app-title{font-size:2.5rem;color:#333;margin-bottom:.5rem;text-align:center}.app-subtitle{color:#666;text-align:center;margin-bottom:2rem}.welcome-actions{display:flex;flex-direction:column;gap:1rem}.primary-btn{background:#667eea;color:#fff;border:none;padding:1rem 2rem;font-size:1rem;border-radius:6px;cursor:pointer;transition:background .2s}.primary-btn:hover{background:#5568d3}.secondary-btn{background:#fff;color:#667eea;border:2px solid #667eea;padding:1rem 2rem;font-size:1rem;border-radius:6px;cursor:pointer;transition:all .2s}.secondary-btn:hover{background:#f0f4ff}.document-form{display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:#333}.form-group input{padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#667eea}.form-actions{display:flex;gap:1rem}.form-actions button{flex:1}@media (max-width: 600px){.welcome-content{padding:2rem}.app-title{font-size:2rem}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;height:100vh}
