.cm-chat-bar{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 14px;border-bottom:1px solid #eadfd7;background:#fffaf4;font-size:13px;color:#7d6555;flex-shrink:0}.cm-chat-bar span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-chat-bar button{border:0;background:transparent;color:#a24d34;padding:8px 4px;white-space:nowrap;cursor:pointer;font:inherit;min-height:36px}.cm-card-cover{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px 12px 0 0}.cw-card footer>div{flex-wrap:wrap}.cm-overlay{position:fixed;inset:0;z-index:10030;background:rgba(46,34,24,.4);display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}.cm-overlay[hidden],.cm-chat-bar[hidden]{display:none!important}.cm-dialog{width:min(640px,100%);max-height:90dvh;overflow:auto;overscroll-behavior:contain;background:#fffcf7;color:#493b30;border-radius:20px;box-shadow:0 20px 80px #39291d30;font-size:16px;line-height:1.65}.cm-dialog header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #eadfd7}.cm-dialog header small{color:#98765e;font-size:12px}.cm-dialog h2{font-size:23px;margin:2px 0}.cm-dialog h3{font-size:17px;margin:20px 0 10px}.cm-dialog button,.cm-upload{font:inherit;color:inherit;cursor:pointer;border:1px solid #d9c8b8;background:#fff;border-radius:9px;padding:9px 14px;min-height:44px}.cm-dialog button:disabled{opacity:.5;cursor:default}.cm-dialog button:focus-visible,.cm-upload:focus-within{outline:2px solid #ae573c;outline-offset:2px}.cm-dialog header button{font-size:25px;background:transparent;border:0}.cm-content{padding:20px 24px}.cm-chapter p,.cm-note{color:#8a7463;font-size:13px;margin:6px 0 12px}.cm-current{margin:16px 0}.cm-current img,.cm-picked img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}.cm-current figcaption,.cm-picked p{font-size:13px;color:#8a7463;margin-top:6px}.cm-tabs{display:flex;gap:8px;margin:18px 0}.cm-tabs button{flex:1}.cm-tabs [aria-pressed=true]{background:#f4e1d5;color:#92442e;border-color:#c89379}.cm-photo-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 16px;font-size:14px}.cm-dialog select{max-width:100%;font:inherit;padding:9px;border:1px solid #d9c8b8;background:#fff;border-radius:8px;color:inherit}.cm-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cm-gallery button{padding:0;overflow:hidden;text-align:left}.cm-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.cm-gallery span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 8px;font-size:13px}.cm-dialog .cm-primary{background:#ae573c;color:#fff;border-color:#ae573c}.cm-dialog footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:18px 0 8px}.cm-picked{margin-top:18px;padding:10px;border:1px solid #d6b69f;border-radius:14px}.cm-field{display:block;font-size:14px;margin:12px 0}.cm-field textarea,.cm-field select{display:block;width:100%;margin-top:6px}.cm-field textarea{resize:vertical;font:inherit;color:inherit;border:1px solid #d9c8b8;border-radius:10px;padding:12px;line-height:1.7;background:#fff}.cm-status{margin:0;padding:0 24px 20px;color:#985333;white-space:pre-wrap;font-size:14px}.cm-choices{display:grid;gap:10px;margin-top:12px}.cm-choices button{text-align:left;overflow-wrap:anywhere}.cm-choices small{display:block;color:#8a7463;font-size:13px;margin-top:4px}@media(max-width:600px){.cm-overlay{padding:12px;align-items:center}.cm-dialog{max-height:92dvh;border-radius:16px}.cm-dialog header,.cm-content{padding:16px}.cm-status{padding:0 16px 16px}.cm-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-chat-bar{padding-left:12px;padding-right:12px;font-size:12px}}

.cm-dialog>header{position:sticky;top:0;z-index:2;background:#fffcf7}.cm-dialog .cm-current img{max-height:240px}.cm-dialog .cm-picked img{max-height:260px}

.cm-preview-cover{margin:24px 0}.cm-preview-cover img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}

.cm-chapter{overflow-wrap:anywhere}.cm-dialog{max-height:90vh;max-height:90dvh}@media(max-width:600px){.cm-dialog{max-height:92vh;max-height:92dvh}}

/* Share remains above the mobile directory and fullscreen manuscript editor. */
#share-modal{z-index:10040}
