:root{color-scheme:light;--ink: #2b2620;--paper: #e4d7b0;--accent: #7a3b2e;--muted: #7a7266;--border: #ddd3c0;font-family:Georgia,Iowan Old Style,serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;color:var(--ink);background:var(--paper)}.mosaic-border{height:14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Crect width='40' height='20' fill='%23e8ddb5'/%3E%3Cpath d='M0,15 H10 V5 H20 V15 H30 V5 H40' fill='none' stroke='%237a3b2e' stroke-width='4'/%3E%3C/svg%3E");background-repeat:repeat-x;background-size:40px 14px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}img{max-width:100%;height:auto}.page{min-height:100vh;display:flex;flex-direction:column}.content{flex:1}.site-footer{text-align:center;padding:1rem;font-size:.85rem;color:var(--muted);font-style:italic}.site-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.5rem;border-bottom:2px solid var(--border)}.site-header .brand{font-size:1.3rem;font-weight:700;color:var(--accent);text-decoration:none}.site-header nav{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.site-header nav a{color:var(--accent);text-decoration:none;padding:.5rem 0;min-height:44px;display:flex;align-items:center}.content{max-width:720px;margin:0 auto;padding:2rem 1.5rem;width:100%}@media (max-width: 480px){.site-header{padding:.75rem 1rem}.content{padding:1.25rem 1rem}}h1{color:var(--accent)}.muted{color:var(--muted)}.error{color:#a33}.chapter-list{display:flex;flex-direction:column}.chapter{padding:1.5rem 0;border-bottom:1px solid var(--border)}.chapter:first-child{padding-top:0}.chapter:last-child{border-bottom:none}.chapter h2{margin-top:0}.chapter-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem}.add-chapter{margin-top:1.5rem}.chapter-image{max-width:100%;border-radius:4px;margin:.5rem 0;display:block}.chapter-body{margin:.5rem 0 0}.chapter-body p{margin:0 0 .75rem}.chapter-body p:last-child{margin-bottom:0}.chapter-body ul,.chapter-body ol{margin:0 0 .75rem;padding-left:1.5rem}.chapter-body h1,.chapter-body h2,.chapter-body h3{margin:1rem 0 .5rem}.ql-toolbar.ql-snow button{min-height:auto;border-radius:0}.ql-editor{min-height:150px}button.sign-in-trigger{background:none;border:none;padding:0;min-height:44px;color:var(--accent);font-family:inherit;font-size:1rem;cursor:pointer}.current-image{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.current-image img{width:160px;height:100px;object-fit:cover;border-radius:4px}.file-label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.file-label input[type=file]{padding:.5rem 0}.row-actions{display:flex;flex-wrap:wrap;gap:.5rem}.row-actions button{font-size:.9rem;min-height:44px}.inline-form{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:#fff;border:1px solid var(--border);border-radius:6px;width:100%}.inline-form input,.inline-form textarea{font-family:inherit;font-size:16px;padding:.6rem;border:1px solid var(--border);border-radius:4px;width:100%}.form-actions{display:flex;flex-wrap:wrap;gap:.5rem}button{cursor:pointer;background:var(--accent);color:#fff;border:none;border-radius:4px;padding:.6rem 1rem;font-family:inherit;font-size:1rem;min-height:44px}button[type=button]{background:var(--muted)}
