.home-page{color:#0f172a;background:#f8fafc;min-height:100vh;font-family:Inter,system-ui,sans-serif}.home-navbar{justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:24px 20px;display:flex}.hero-image{object-fit:contain;width:100%;max-width:420px;height:auto;margin:0 auto;display:block}@media (width<=768px){.hero-image{max-width:260px}}.logo{color:#111827;font-size:28px;font-weight:800}.nav-links{gap:16px;display:flex}.nav-link{color:#475569;font-weight:600;text-decoration:none}.nav-link:hover{color:#4f46e5}.hero-section{grid-template-columns:1fr 1fr;align-items:center;gap:48px;max-width:1200px;margin:0 auto;padding:40px 20px 80px;display:grid}.hero-badge{color:#4338ca;background:#eef2ff;border-radius:999px;margin-bottom:20px;padding:8px 14px;font-size:14px;font-weight:700;display:inline-block}.hero-content h1{margin:0 0 24px;font-size:64px;font-weight:800;line-height:1.05}.hero-content h1 span{color:#4f46e5}.hero-description{color:#475569;max-width:560px;font-size:18px;line-height:1.8}.hero-actions{flex-wrap:wrap;gap:16px;margin-top:32px;display:flex}.primary-btn,.secondary-btn{border-radius:14px;justify-content:center;align-items:center;padding:14px 24px;font-weight:700;text-decoration:none;transition:all .2s;display:inline-flex}.primary-btn{color:#fff;background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 10px 24px #4f46e540}.primary-btn:hover{transform:translateY(-2px)}.secondary-btn{color:#111827;background:#fff;border:1px solid #e5e7eb}.secondary-btn:hover{color:#4f46e5;border-color:#4f46e5}.hero-preview{justify-content:center;display:flex}.preview-window{background:#fff;border:1px solid #e5e7eb;border-radius:24px;width:100%;max-width:520px;overflow:hidden;box-shadow:0 30px 60px #0f172a14}.preview-header{background:#f1f5f9;gap:8px;padding:14px 18px;display:flex}.dot{border-radius:50%;width:12px;height:12px}.red{background:#ef4444}.yellow{background:#f59e0b}.green{background:#22c55e}.preview-body{padding:22px}.preview-toolbar{justify-content:space-between;margin-bottom:24px;display:flex}.preview-search{background:#f1f5f9;border-radius:999px;width:70%;height:38px}.preview-button{background:#4f46e5;border-radius:12px;width:90px;height:38px}.preview-grid{gap:16px;display:grid}.preview-card{border:1px solid #e5e7eb;border-radius:18px;padding:18px}.preview-badge{color:#4338ca;background:#eef2ff;border-radius:999px;margin-bottom:12px;padding:4px 10px;font-size:12px;display:inline-block}.preview-title{margin-bottom:14px;font-weight:700}.preview-line{background:#e5e7eb;border-radius:999px;height:10px;margin-bottom:10px}.preview-line.short{width:70%}.features-section{max-width:1200px;margin:0 auto;padding:40px 20px 80px}.features-section h2{text-align:center;margin-bottom:40px;font-size:40px}.features-grid{grid-template-columns:repeat(4,1fr);gap:20px;display:grid}.feature-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:28px;transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px #0f172a14}.feature-icon{margin-bottom:16px;font-size:32px}.feature-card h3{margin:0 0 12px}.feature-card p{color:#475569;line-height:1.7}.cta-section{text-align:center;padding:80px 20px 100px}.cta-section h2{margin-bottom:12px;font-size:44px}.cta-section p{color:#475569;margin-bottom:28px}.primary-btn.large{padding:16px 32px;font-size:18px}@media (width<=960px){.hero-section{text-align:center;grid-template-columns:1fr}.hero-description{margin:0 auto}.hero-actions{justify-content:center}.features-grid{grid-template-columns:repeat(2,1fr)}.hero-content h1{font-size:52px}}@media (width<=640px){.home-navbar{flex-direction:column;gap:16px}.hero-content h1{font-size:40px}.features-grid{grid-template-columns:1fr}.features-section h2,.cta-section h2{font-size:32px}}.toast-container{z-index:9999;flex-direction:column;gap:12px;display:flex;position:fixed;top:20px;right:20px}.toast{color:#fff;border-radius:12px;min-width:260px;max-width:360px;padding:14px 18px;font-weight:600;animation:.25s toast-slide;box-shadow:0 10px 24px #00000029}.toast-success{background:#16a34a}.toast-error{background:#dc2626}.toast-warning{background:#d97706}.toast-info{background:#2563eb}@keyframes toast-slide{0%{opacity:0;transform:translate(40px)}to{opacity:1;transform:translate(0)}}.dialog-overlay{z-index:9999;background:#00000073;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.dialog-box{background:#fff;border-radius:16px;width:90%;max-width:420px;padding:24px;animation:.18s dialog-pop;box-shadow:0 20px 40px #0003}.dialog-box h3{color:#111827;margin:0 0 10px;font-size:22px}.dialog-box p{color:#4b5563;margin:0 0 20px;line-height:1.5}.dialog-actions{justify-content:flex-end;gap:12px;display:flex}.dialog-cancel,.dialog-confirm{cursor:pointer;border:none;border-radius:10px;padding:10px 16px;font-weight:600}.dialog-cancel{color:#111827;background:#f3f4f6}.dialog-confirm{color:#fff;background:#4f46e5}.dialog-confirm.danger{background:#dc2626}@keyframes dialog-pop{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.auth-page{place-items:center;min-height:100vh;padding:1rem;display:grid}.auth-card{background:var(--surface);border:1px solid var(--border);width:100%;max-width:980px;box-shadow:var(--shadow);border-radius:28px;display:grid;overflow:hidden}.auth-brand{color:#fff;background:linear-gradient(135deg,#4338ca,#0f766e);flex-direction:column;justify-content:center;padding:2rem;display:flex}.auth-logo{background:#ffffff26;border-radius:20px;place-items:center;width:72px;height:72px;margin-bottom:1rem;font-size:1.5rem;font-weight:800;display:grid}.auth-brand h2{margin:0 0 .75rem;font-size:2rem}.auth-brand p{opacity:.92;margin:0;line-height:1.6}.auth-form{flex-direction:column;justify-content:center;padding:2rem;display:flex}.auth-form h1{margin:0 0 .5rem;font-size:1.9rem}.auth-subtitle{color:var(--muted);margin-bottom:1.5rem}.form-group{margin-bottom:1rem}.form-label{margin-bottom:.45rem;font-size:.95rem;font-weight:600;display:block}.form-input{border:1px solid var(--border);background:#fff;border-radius:14px;width:100%;min-height:48px;padding:.85rem 1rem;font-size:1rem;transition:border-color .2s,box-shadow .2s}.form-input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 4px #4f46e51f}.auth-button{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:14px;width:100%;min-height:50px;margin-top:.5rem;font-size:1rem;font-weight:700}.auth-button:hover{filter:brightness(1.03)}.auth-footer{text-align:center;color:var(--muted);margin-top:1rem}.auth-link{color:var(--primary);font-weight:600}@media (width>=768px){.auth-card{grid-template-columns:1fr 1fr}.auth-brand,.auth-form{padding:3rem}}.profile-page{background:#f5f7fb;justify-content:center;align-items:center;min-height:100vh;padding:32px 16px;display:flex}.profile-card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:24px;width:100%;max-width:520px;padding:40px 32px;box-shadow:0 10px 30px #0f172a14}.profile-avatar{color:#fff;background:linear-gradient(135deg,#6d5efc,#4f46e5);border-radius:50%;justify-content:center;align-items:center;width:96px;height:96px;margin:0 auto 20px;font-size:40px;font-weight:700;display:flex;box-shadow:0 10px 24px #4f46e559}.profile-card h2{color:#111827;margin:0;font-size:30px;line-height:1.2}.profile-email{color:#64748b;word-break:break-word;margin:10px 0 28px;font-size:16px}.profile-info{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;margin-bottom:28px}.info-row{text-align:left;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;display:flex}.info-row+.info-row{border-top:1px solid #e5e7eb}.info-row span{color:#64748b;font-size:15px}.info-row strong{color:#111827;text-align:right;overflow-wrap:anywhere;max-width:60%;font-size:15px}.back-btn{color:#4338ca;background:#eef2ff;border:1px solid #c7d2fe;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:12px 18px;font-weight:600;text-decoration:none;transition:all .2s;display:inline-flex}.back-btn:hover{color:#fff;background:#4338ca;border-color:#4338ca;transform:translateY(-1px)}.profile-page p{color:#475569;font-size:16px}@media (width<=640px){.profile-card{border-radius:20px;padding:28px 20px}.profile-avatar{width:80px;height:80px;font-size:32px}.profile-card h2{font-size:26px}.info-row{flex-direction:column;align-items:flex-start}.info-row strong{text-align:left;max-width:100%}.back-btn{width:100%}}.dashboard-page{color:#0f172a;background:#f6f8fc;min-height:100vh;padding:0 32px 40px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.dashboard-navbar{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff0;border-bottom:1px solid #e5e7eb;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin:0 -32px;padding:14px 32px;display:grid;position:sticky;top:0}.nav-brand-link{color:inherit;align-items:center;gap:12px;text-decoration:none;display:flex}.brand-logo{color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:12px;justify-content:center;align-items:center;width:42px;height:42px;font-weight:700;display:flex}.brand-text h2{margin:0;font-size:1rem;line-height:1.2}.brand-text p{color:#64748b;margin:2px 0 0;font-size:.82rem;line-height:1.2}.nav-search-row{width:100%}.dashboard-search{width:100%;max-width:520px;margin:0 auto;position:relative}.search-input{background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:100%;padding:12px 14px 12px 42px;font-size:.95rem}.nav-actions{justify-self:end;align-items:center;gap:12px;display:flex}.create-btn{color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed);border:1px solid #0000;border-radius:14px;justify-content:center;align-items:center;padding:12px 20px;font-size:15px;font-weight:600;text-decoration:none;transition:all .2s;display:inline-flex}@media (width<=768px){.dashboard-page{padding:0 16px 32px}.dashboard-navbar{grid-template-columns:1fr auto;gap:14px;margin:0 -16px;padding:12px 16px}.nav-search-row{order:3;grid-column:1/-1}.dashboard-search{max-width:100%}.nav-actions{gap:8px}.create-btn,.logout-btn{padding:10px 12px;font-size:.9rem}.brand-text p{display:none}}@media (width<=480px){.dashboard-navbar{grid-template-columns:1fr}.nav-actions{justify-content:space-between;width:100%}.create-btn,.logout-btn{flex:1}}.workspace-hero{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:24px;margin-top:28px;display:flex}.workspace-hero h1{margin:8px 0 0;font-size:2.2rem;line-height:1.2}.dashboard-welcome{color:#475569;font-weight:500}.workspace-subtitle{color:#64748b;max-width:560px;margin-top:10px;line-height:1.7}.dashboard-search{width:100%;min-width:320px;max-width:420px;position:relative}.search-input{background:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;padding:14px 16px 14px 46px;font-size:.95rem;transition:all .2s}.search-input:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 4px #6366f11f}.search-icon{color:#94a3b8;position:absolute;top:50%;left:15px;transform:translateY(-50%)}.search-loading{color:#64748b;font-size:.8rem;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.dashboard-tabs{background:#eef2ff;border-radius:14px;gap:6px;margin-top:28px;padding:4px;display:inline-flex}.tab{color:#475569;cursor:pointer;background:0 0;border:none;border-radius:10px;padding:10px 16px;font-weight:600;transition:all .2s}.tab:hover{background:#4f46e514}.tab.active{color:#fff;background:#4f46e5;box-shadow:0 2px 8px #4f46e540}.documents-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:22px;margin-top:28px;display:grid}.document-card{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:22px;flex-direction:column;padding:24px;transition:transform .18s,box-shadow .18s;display:flex;box-shadow:0 4px 18px #0f172a0a}.document-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #0f172a1a}.document-card-header{justify-content:space-between;align-items:center;display:flex}.document-card h3{color:#0f172a;margin:18px 0 12px;font-size:1.2rem;line-height:1.35}.document-preview{color:#475569;-webkit-box-orient:vertical;min-height:5.1em;margin-bottom:16px;line-height:1.7;display:-webkit-box;overflow:hidden}.document-meta{color:#64748b;border-top:1px solid #eef2f7;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;font-size:.9rem;display:flex}.document-footer{color:#64748b;border-top:1px solid #f1f5f9;margin-top:14px;padding-top:14px;font-size:.85rem}.document-badge{color:#4338ca;background:#eef2ff;border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:600}.favorite-btn{color:#cbd5e1;cursor:pointer;background:0 0;border:none;font-size:1.2rem;transition:color .2s,transform .2s}.favorite-btn:hover{transform:scale(1.08)}.favorite-btn.active{color:#f59e0b}.document-actions{padding-top:16px}.trash-actions{gap:10px;display:flex}.delete-btn,.restore-btn{cursor:pointer;border:none;border-radius:12px;flex:1;padding:10px 14px;font-size:.95rem;font-weight:600;transition:all .2s}.delete-btn{color:#b91c1c;background:#fee2e2}.delete-btn:hover{background:#fecaca;transform:translateY(-1px)}.restore-btn{color:#166534;background:#dcfce7}.restore-btn:hover{background:#bbf7d0;transform:translateY(-1px)}.create-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f46e5,#7c3aed);border:none;border-radius:14px;padding:12px 20px;font-weight:600;transition:filter .2s,transform .2s}.create-btn:hover{filter:brightness(1.05);transform:translateY(-1px)}.create-btn:disabled{opacity:.7;cursor:not-allowed}.logout-btn{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 18px;font-weight:600}.logout-btn:hover{background:#f8fafc}.empty-state{text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:24px;margin-top:40px;padding:48px 24px}.empty-state h2{margin-bottom:10px}.empty-state p{color:#64748b;max-width:520px;margin:0 auto 22px;line-height:1.6}.dashboard-loading{text-align:center;background:#f6f8fc;place-items:center;min-height:100vh;display:grid}.spinner{border:4px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;width:44px;height:44px;margin:0 auto 12px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.dashboard-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:12px;margin-top:20px;padding:12px 16px}@media (width<=768px){.dashboard-page{padding:0 16px 32px}.dashboard-navbar{flex-wrap:wrap;gap:12px;margin:0 -16px;padding:14px 16px}.workspace-hero{flex-direction:column}.dashboard-search{min-width:100%;max-width:100%}.nav-actions{justify-content:flex-end;width:100%}.create-btn,.logout-btn{padding:10px 14px}.workspace-hero h1{font-size:1.8rem}}@media (width<=640px){.documents-grid{grid-template-columns:1fr}.trash-actions{flex-direction:column}.document-card,.document-preview{min-height:auto}}.document-badges{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.document-badge,.role-badge{letter-spacing:.01em;border-radius:999px;justify-content:center;align-items:center;padding:6px 12px;font-size:.78rem;font-weight:700;display:inline-flex}.badge-public{color:#155e75;background:#ecfeff}.badge-private{color:#991b1b;background:#fef2f2}.role-owner{color:#5b21b6;background:#ede9fe}.role-editor{color:#4338ca;background:#eef2ff}.role-viewer{color:#334155;background:#f1f5f9}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9999;background:#0f172a73;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.confirm-dialog{background:#fff;border-radius:22px;width:100%;max-width:420px;padding:28px;animation:.18s ease-out dialogPop;box-shadow:0 24px 60px #0f172a38}@keyframes dialogPop{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.confirm-dialog h3{color:#0f172a;margin:0 0 12px;font-size:1.35rem}.confirm-dialog p{color:#475569;margin:0;font-size:.98rem;line-height:1.6}.confirm-actions{justify-content:flex-end;gap:12px;margin-top:26px;display:flex}.confirm-cancel,.confirm-delete{cursor:pointer;border:none;border-radius:14px;padding:12px 18px;font-size:.95rem;font-weight:700;transition:all .2s}.confirm-cancel{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0}.confirm-cancel:hover{background:#eef2ff;border-color:#c7d2fe}.confirm-delete{color:#fff;background:#ef4444}.confirm-delete:hover{background:#dc2626;transform:translateY(-1px)}@media (width<=480px){.confirm-dialog{border-radius:18px;padding:22px}.confirm-actions{flex-direction:column-reverse}.confirm-cancel,.confirm-delete{width:100%}}.document-footer{border-top:1px solid #eef2f7;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;display:flex}.owner-row{justify-content:space-between;align-items:center;display:flex}.owner-label{color:#64748b;font-size:13px;font-weight:500}.owner-name{color:#0f172a;font-size:14px;font-weight:600}.edited-row{color:#64748b;font-size:13px}.rich-editor-wrapper{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden}.editor-toolbar{background:#f8fafc;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;gap:8px;padding:12px;display:flex}.editor-toolbar button{cursor:pointer;background:#fff;border:none;border-radius:10px;padding:8px 12px;transition:all .2s}.editor-toolbar button:hover{background:#eef2ff}.editor-toolbar button.active{color:#fff;background:#4f46e5}.editor-content{min-height:360px;padding:18px}.editor-content .ProseMirror{color:#111827;outline:none;min-height:320px;font-size:16px;line-height:1.7}.editor-content .ProseMirror p{margin:0 0 1rem}.editor-content .ProseMirror h1{margin:1.5rem 0 1rem;font-size:2rem}.editor-content .ProseMirror h2{margin:1.25rem 0 .75rem;font-size:1.5rem}.editor-content .ProseMirror ul,.editor-content .ProseMirror ol{padding-left:1.5rem}.editor-page{background:#f8fafc;flex-direction:column;min-height:100vh;display:flex}.editor-header{z-index:10;background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1rem;display:flex;position:sticky;top:0}.back-btn{color:#4338ca;cursor:pointer;background:#eef2ff;border:none;border-radius:12px;padding:.7rem 1rem;font-weight:600}.editor-status{color:#16a34a;font-weight:600}.editor-container{flex-direction:column;gap:1rem;width:100%;max-width:900px;margin:0 auto;padding:1rem;display:flex}.editor-title{color:#0f172a;background:0 0;border:none;outline:none;width:100%;padding:.25rem 0;font-size:2rem;font-weight:700}.editor-textarea{resize:vertical;background:#fff;border:1px solid #e2e8f0;border-radius:20px;outline:none;width:100%;min-height:70vh;padding:1rem;font-size:1rem;line-height:1.7}.editor-meta{color:#64748b;flex-wrap:wrap;justify-content:space-between;gap:1rem;font-size:.9rem;display:flex}.editor-loading,.editor-error{text-align:center;place-items:center;gap:1rem;min-height:100vh;padding:2rem;display:grid}.editor-error button{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:12px;padding:.85rem 1.2rem}.spinner{border:4px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;width:42px;height:42px;animation:.9s linear infinite spin}@media (width<=768px){.editor-header{flex-direction:row;align-items:center;padding:12px}.editor-title{font-size:1.75rem}.editor-textarea{min-height:60vh;padding:16px;font-size:1rem}.editor-container{padding:16px}.back-btn{font-size:.95rem}}.editor-stats{color:#64748b;border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-top:.75rem;padding:.5rem .25rem;font-size:.9rem;display:flex}.editor-presence{margin:1rem 0}.presence-chip{color:#4338ca;background:#eef2ff;border-radius:999px;padding:.35rem .7rem;font-size:.85rem;font-weight:600}.typing-indicator{color:#2563eb;margin-bottom:.75rem;font-size:.9rem}.editor-header-right{align-items:center;gap:16px;display:flex}.typing-indicator-inline{color:#2563eb;white-space:nowrap;margin:0;font-size:14px;font-weight:500}.share-panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin:1rem 0 1.5rem;padding:1rem}.share-panel h3,.share-panel h4{margin-bottom:.75rem}.share-form{flex-wrap:wrap;gap:.75rem;display:flex}.share-form input,.share-form select{border:1px solid #d1d5db;border-radius:10px;min-width:220px;padding:.65rem .75rem}.share-form button{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:10px;padding:.65rem 1rem}.share-message{color:#047857;margin-top:.75rem}.collaborator-list{margin-top:1rem}.collaborator-item{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;display:flex}.collaborator-item button{color:#b91c1c;cursor:pointer;background:#fee2e2;border:none;border-radius:8px;padding:.5rem .75rem}.readonly-banner{color:#92400e;background:#fffbeb;border:1px solid #f59e0b;border-radius:10px;margin:1rem 0;padding:.75rem 1rem;font-size:.95rem}.public-link-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin:24px 0;padding:20px;box-shadow:0 2px 10px #0000000a}.public-link-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.public-link-header h3{color:#111827;margin:0;font-size:18px}.public-link-header p{color:#6b7280;margin:4px 0 0;font-size:14px}.primary-btn{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:10px;padding:10px 16px;font-weight:600}.primary-btn:hover{background:#4338ca}.public-link-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.copy-btn,.open-link-btn{cursor:pointer;text-align:center;border-radius:10px;padding:10px 14px;font-weight:600;text-decoration:none}.copy-btn{background:#fff;border:1px solid #d1d5db}.copy-btn:hover{background:#f3f4f6}.open-link-btn{color:#fff;background:#111827}.open-link-btn:hover{background:#000}.ai-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin:24px 0;padding:20px;box-shadow:0 2px 10px #0000000a}.ai-summary-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.ai-summary-header h3{color:#111827;margin:0;font-size:18px}.ai-summary-header p{color:#6b7280;margin:4px 0 0;font-size:14px}.summary-content{border-top:1px solid #e5e7eb;margin-top:16px;padding-top:16px}.summary-content p{color:#111827;margin:0 0 16px;line-height:1.7}.keyword-list{flex-wrap:wrap;gap:10px;display:flex}.keyword-chip{color:#4338ca;background:#eef2ff;border-radius:999px;padding:8px 12px;font-size:14px;font-weight:600}.export-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding:20px;display:flex}.export-actions{flex-wrap:wrap;gap:10px;display:flex}.export-actions button{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:10px;padding:10px 16px;font-weight:600}.export-actions button:hover{background:#4338ca}.editor-layout{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:28px;max-width:1400px;margin:0 auto;padding:24px 20px 48px;display:grid}.editor-main{min-width:0}.editor-sidebar{flex-direction:column;gap:18px;display:flex;position:sticky;top:84px}.sidebar-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;box-shadow:0 4px 18px #0f172a0a}.sidebar-card h3{color:#0f172a;margin:0;font-size:1rem}.sidebar-card-header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.sidebar-label{color:#475569;margin-bottom:8px;font-size:.88rem;display:block}.settings-label{color:#334155;margin-bottom:6px;font-size:.9rem;font-weight:600;display:block}.visibility-select{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #dbe3f0;border-radius:12px;width:100%;padding:12px 14px;font-size:.95rem}.visibility-select:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f11f}.sidebar-input,.sidebar-share-form input,.sidebar-share-form select{background:#fff;border:1px solid #dbe2ea;border-radius:12px;width:100%;padding:12px 14px;font-size:.95rem}.sidebar-input:focus,.sidebar-share-form input:focus,.sidebar-share-form select:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 4px #6366f11f}.sidebar-share-form{flex-direction:column;gap:12px;display:flex}.sidebar-actions{flex-wrap:wrap;gap:10px;display:flex}.sidebar-actions button,.open-link-btn{text-align:center;color:#111827;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex:1;min-width:90px;padding:10px 12px;font-weight:600;text-decoration:none}.sidebar-actions button:hover,.open-link-btn:hover{background:#f8fafc}.primary-btn.small{padding:8px 12px;font-size:.88rem}.sidebar-muted{color:#64748b;margin:0;font-size:.92rem}.public-link-column{flex-direction:column;gap:12px;display:flex}.public-link-input{background:#f8fafc;border:1px solid #dbe2ea;border-radius:12px;width:100%;padding:10px 12px;font-size:.9rem}.presence-list{flex-direction:column;gap:10px;display:flex}.presence-item{align-items:center;gap:10px;display:flex}.presence-avatar{color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:999px;place-items:center;width:34px;height:34px;font-weight:700;display:grid}.collaborators-list.compact{flex-direction:column;gap:14px;display:flex}.collaborator-item.compact{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;padding:12px}.collaborator-actions.compact{gap:8px;margin-top:10px;display:flex}.collaborator-actions.compact select{flex:1}.collaborator-actions.compact button{color:#b91c1c;background:#fee2e2;border:none;border-radius:10px;padding:8px 10px;font-weight:600}.summary-content.compact{color:#334155;font-size:.95rem;line-height:1.6}.sidebar-toggle{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 14px;font-weight:600}.sidebar-toggle:hover{background:#f8fafc}.typing-banner{color:#4338ca;background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;margin-bottom:12px;padding:10px 14px;font-size:.92rem}@media (width<=1024px){.editor-layout{grid-template-columns:1fr}.editor-sidebar{position:static}}@media (width<=640px){.editor-layout{padding:20px 16px 40px}.topbar-right{gap:8px}.sidebar-toggle{padding:8px 12px;font-size:.88rem}}.editor-topbar{z-index:20;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:12px 20px;display:flex;position:sticky;top:0}.topbar-left,.topbar-right{align-items:center;gap:14px;display:flex}.save-status{color:#15803d;align-items:center;gap:8px;font-size:.95rem;font-weight:600;display:flex}.save-dot,.online-dot{background:#22c55e;border-radius:50%;width:10px;height:10px}.online-chip{color:#475569;background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:.92rem;display:flex}.panel-toggle-btn{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;font-weight:600}.panel-toggle-btn:hover{background:#f8fafc}.side-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;margin-bottom:18px;padding:18px;box-shadow:0 4px 14px #0f172a0a}.side-card-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.side-card h3{color:#0f172a;margin:0;font-size:1rem}.side-label{color:#64748b;margin-bottom:8px;font-size:.9rem;display:block}.side-input{border:1px solid #dbe2ea;border-radius:12px;width:100%;padding:12px 14px;font-size:.95rem}.side-text{color:#64748b;margin:0;line-height:1.5}.collaborator-item{background:#fafbff;border:1px solid #eef2f7;border-radius:14px;flex-direction:column;gap:12px;margin-top:12px;padding:14px;display:flex}.collaborator-info strong{color:#0f172a;margin-bottom:4px;display:block}.collaborator-info p{color:#64748b;word-break:break-word;margin:0;font-size:.9rem}.collaborator-actions{align-items:center;gap:10px;width:100%;display:flex}.collaborator-actions select{background:#fff;border:1px solid #dbe2ea;border-radius:10px;flex:1;min-width:120px;padding:10px 12px}.remove-collab-btn{white-space:nowrap;color:#b91c1c;cursor:pointer;background:#fee2e2;border:none;border-radius:10px;padding:10px 14px;font-weight:600}.remove-collab-btn:hover{background:#fecaca}.small-primary-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f46e5,#7c3aed);border:none;border-radius:10px;padding:8px 12px;font-size:.9rem;font-weight:600}.summary-box{color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-top:14px;padding:14px;line-height:1.6}@media (width<=900px){.editor-topbar{flex-direction:column;align-items:stretch}.topbar-left,.topbar-right{justify-content:space-between}.collaborator-actions{flex-direction:column;align-items:stretch}.remove-collab-btn{width:100%}}.editor-layout{align-items:flex-start;gap:28px;width:100%;transition:all .25s;display:flex}.editor-layout.with-sidebar{justify-content:space-between}.editor-layout.without-sidebar{justify-content:center}.editor-main{width:100%;max-width:980px;transition:max-width .25s}.editor-layout.without-sidebar .editor-main{max-width:1080px;margin:0 auto}.editor-sidebar{flex-shrink:0;width:340px}@media (width<=1024px){.editor-layout{flex-direction:column}.editor-main,.editor-sidebar{width:100%;max-width:100%}.editor-layout.without-sidebar .editor-main{max-width:100%}}:root{--bg:#f5f7fb;--surface:#fff;--text:#0f172a;--muted:#64748b;--primary:#4f46e5;--accent:#0f766e;--border:#e2e8f0;--shadow:0 10px 30px #0f172a14;--radius:24px}*{box-sizing:border-box}body{color:var(--text);background:radial-gradient(circle at 0 0,#eef2ff,#f8fafc 45%,#fff 100%);min-height:100vh;margin:0;font-family:Inter,system-ui,sans-serif}button{font:inherit}a{color:inherit;text-decoration:none}
