@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Dancing+Script:wght@400;700&display=swap";:root{--background: #ffffff;--foreground: #1a1a1a;--border: #e5e5e5;--scriva-yellow: #f4c430;--scriva-black: #1a1a1a;--scriva-light-gray: #f8f8f8;--scriva-light-yellow: #fffef5;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 15px rgba(0, 0, 0, .1)}*{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;background:var(--background);color:var(--foreground)}#root{min-height:100vh}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;border:none;background:none;color:var(--foreground)}.btn-primary{background-color:var(--scriva-yellow);color:var(--scriva-black)}.btn-primary:hover{background-color:#e5b520;transform:translateY(-1px)}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-secondary{background-color:var(--scriva-light-gray);color:var(--foreground)}.btn-secondary:hover{background-color:#e5e5e5}.btn-ghost{background:transparent}.btn-ghost:hover{background-color:var(--scriva-light-gray)}.btn-icon{padding:.5rem;width:36px;height:36px}.btn-sm{padding:.25rem .5rem;font-size:.875rem}.btn-icon.btn-sm{padding:.25rem;width:28px;height:28px}.btn-lg{padding:1rem 2rem;font-size:1.1rem;display:flex;align-items:center;gap:.5rem}.landing-page{min-height:100vh;display:flex;flex-direction:column;background:var(--scriva-light-yellow)}.landing-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 3rem;border-bottom:1px solid var(--border);background:var(--background)}.landing-logo{display:flex;align-items:center;gap:1rem}.landing-logo h1{font-family:Playfair Display,serif;font-size:2rem;margin:0;color:var(--scriva-black)}.landing-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;max-width:1200px;margin:0 auto;width:100%}.landing-hero{text-align:center;margin-bottom:4rem;max-width:800px}.landing-hero h2{font-family:Playfair Display,serif;font-size:3.5rem;margin-bottom:1.5rem;color:var(--scriva-black)}.landing-hero p{font-size:1.25rem;line-height:1.8;color:#666;max-width:600px;margin:0 auto}.landing-features{display:grid;grid-template-columns:repeat(4,1fr);gap:3rem;margin-bottom:4rem;width:100%;max-width:1000px}.feature{text-align:center;padding:2rem 1rem}.feature svg{margin-bottom:1rem}.feature h3{font-family:Playfair Display,serif;font-size:1.5rem;margin-bottom:.5rem;color:var(--scriva-black)}.feature p{color:#666;font-size:1rem}.landing-cta{display:flex;gap:1rem;justify-content:center;align-items:center}.landing-footer{padding:2rem;text-align:center;border-top:1px solid var(--border);background:var(--background);color:#666}@media (max-width: 900px){.landing-features{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.landing-features{grid-template-columns:1fr}.landing-hero h2{font-size:2.5rem}}.auth-view{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fffef5,#fff9e6);padding:2rem}.auth-container{background:var(--background);border-radius:var(--radius-lg);padding:3rem;box-shadow:0 20px 60px #0000001a;max-width:440px;width:100%}.auth-logo{display:flex;align-items:center;justify-content:center;margin-bottom:2rem}.auth-title{font-family:Playfair Display,serif;font-size:2rem;color:var(--scriva-black);text-align:center;margin-bottom:.5rem}.auth-subtitle{text-align:center;color:#666;margin-bottom:2rem;font-size:1rem}.auth-message{padding:1rem;border-radius:var(--radius-md);margin-bottom:1.5rem;font-size:.875rem;text-align:center}.auth-message.success{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.auth-message.error{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.auth-form{margin-bottom:1.5rem}.auth-btn{width:100%;padding:.875rem;font-size:1rem;font-weight:600;margin-top:.5rem}.auth-divider{position:relative;text-align:center;margin:1.5rem 0}.auth-divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:var(--border)}.auth-divider span{position:relative;padding:0 1rem;background:var(--background);color:#666;font-size:.875rem}.btn-google{width:100%;padding:.875rem;background:#fff;border:1px solid var(--border);font-size:1rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:.75rem;transition:all .2s}.btn-google:hover{background:var(--scriva-light-gray);border-color:#ddd;transform:translateY(-1px);box-shadow:var(--shadow-sm)}.btn-google:disabled{opacity:.6;cursor:not-allowed}.auth-toggle{text-align:center;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border)}.auth-toggle p{color:#666;font-size:.875rem;margin:0}.auth-link{background:none;border:none;color:var(--scriva-yellow);font-weight:600;cursor:pointer;text-decoration:none;transition:color .2s;padding:0;margin-left:.25rem}.auth-link:hover{color:#e5b520;text-decoration:underline}.editor-layout{display:flex;height:100vh;overflow:hidden}.editor-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border);background:var(--background);gap:1rem}.chapter-sidebar{width:280px;background:var(--scriva-light-gray);border-right:1px solid var(--border);display:flex;flex-direction:column;transition:width .3s ease}.chapter-sidebar.collapsed{width:50px}.sidebar-header{padding:1rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.sidebar-header h3{margin:0;font-size:1.1rem;font-weight:600}.sidebar-toggle{background:none;border:none;cursor:pointer;padding:.5rem;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.sidebar-toggle:hover{background-color:#0000000d}.chapters-list{flex:1;overflow-y:auto;padding:.5rem}.chapter-item{padding:.75rem;margin-bottom:.5rem;border-radius:6px;cursor:pointer;transition:background-color .2s;display:flex;justify-content:space-between;align-items:center;gap:.5rem}.chapter-item:hover{background-color:#0000000d}.chapter-item.active{background-color:var(--scriva-yellow);font-weight:600}.chapter-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapter-actions{display:none;gap:.25rem;align-items:center}.chapter-item:hover .chapter-actions{display:flex}.chapter-edit{width:100%}.add-chapter-btn{margin:1rem;width:calc(100% - 2rem);justify-content:center}.text-editor{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.text-editor textarea{flex:1;width:100%;padding:3rem;border:none;outline:none;resize:none;font-size:16px;line-height:1.8;font-family:serif;background:var(--background);color:var(--foreground)}.editor-status{position:absolute;bottom:1rem;right:1rem;padding:.5rem 1rem;background:var(--background);border:1px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;box-shadow:var(--shadow-sm)}.modal-overlay{position:fixed;inset:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.modal-content{background:#fff;border-radius:12px;padding:2rem;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px #0000004d}.modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:2rem;cursor:pointer;color:#666;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.modal-close:hover{background-color:#f5f5f5;color:#000}.modal-content h2{margin:0 0 1.5rem;font-family:Playfair Display,serif;font-size:1.75rem;color:#1a1a1a}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#333}.form-group input,.form-group textarea,.form-group select{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;font-family:inherit;transition:border-color .2s}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#f4c430}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-top:.5rem}.template-option{padding:1rem;border:2px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;transition:all .2s;font-size:.9rem;text-align:center}.template-option:hover{border-color:#f4c430;transform:translateY(-2px)}.template-option.selected{border-color:#f4c430;background-color:#fffbf0}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #eee}.loading-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--background)}.loading-content{text-align:center}.loading-bar{width:200px;height:4px;background:var(--scriva-light-gray);border-radius:2px;overflow:hidden}.loading-progress{height:100%;width:50%;background:var(--scriva-yellow);animation:loading 1.5s ease-in-out infinite}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(300%)}}:root{--scriva-yellow: #FFCC00;--muted: #6b7280;--card-bg: #ffffff;--accent: #111827}html,body,#root{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Arial;background:#fff;color:var(--accent)}button{cursor:pointer;border:none;background:#111827;color:#fff;padding:10px 14px;border-radius:8px;font-weight:600;transition:transform .08s ease,background .12s ease}button:hover{transform:translateY(-1px)}.hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:64px 20px;gap:18px;max-width:980px;margin:0 auto}.hero h1{margin:0;font-size:36px;letter-spacing:-.02em;color:#111827}.lead{font-size:18px;color:#374151;max-width:720px;line-height:1.5}.made-line{font-size:14px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:8px;justify-content:center}.made-line .heart{color:var(--scriva-yellow);font-family:Dancing Script,cursive;font-style:italic;font-size:20px;margin:0 4px;transform:translateY(-1px)}.smallnote{color:#6b7280;font-size:13px;margin-top:4px}.card-row{display:flex;gap:16px;margin-top:22px;flex-wrap:wrap;justify-content:center}.create-card{background:#fff;border:1px solid #E6E6E6;width:200px;min-height:120px;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 4px 14px #1018280a}.create-card .icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#ffcc001f}.create-card .icon svg{fill:var(--scriva-yellow);width:26px;height:26px}.create-card .label{font-weight:600;color:#111827;font-size:14px}.open-previous{width:200px;min-height:48px;border-radius:10px;border:1px dashed #e6e6e6;display:flex;align-items:center;justify-content:center;color:#374151;background:#fff}.editor-wrapper{max-width:980px;margin:40px auto;padding:18px}.editor-card{background:#fff;border-radius:12px;border:1px solid #E6E6E6;padding:20px;box-shadow:0 6px 24px #1018280a}.editor-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.doc-title{font-size:20px;font-weight:700;color:#111827;border:none;background:transparent;width:70%}#editor-content{width:100%;box-sizing:border-box;border-radius:8px;border:1px solid #E5E7EB;min-height:460px;padding:18px;font-size:16px;line-height:1.6;color:#111827;resize:vertical;outline:none}.editor-actions{display:flex;gap:10px;align-items:center}.status{color:var(--muted);font-size:13px;margin-left:8px}.create-card.hover{transition:transform .15s ease,box-shadow .15s ease}.create-card.hover:hover{transform:translateY(-4px);box-shadow:0 6px 18px #00000014}.auth-card{background:#fff;border-radius:12px;padding:22px;box-shadow:0 8px 30px #1018280f;border:1px solid #EEF2F7}.auth-input{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #E5E7EB;margin-top:6px;box-sizing:border-box;font-size:14px}.auth-actions button{padding:10px 14px;border-radius:8px;font-weight:600;background:#111827;color:#fff;border:none}.auth-actions button[disabled]{opacity:.7}
