#chapter-editor{width:min(1040px,calc(100vw - 40px));max-width:1040px;max-height:92dvh;padding:0;border:1px solid #443b5a;border-radius:17px;overflow:hidden;background:#121524;box-shadow:0 35px 100px #0009}
#chapter-editor::backdrop,#chapter-zoom::backdrop{background:#050611c9;backdrop-filter:blur(5px)}
#ce-form{display:flex;flex-direction:column;max-height:92dvh}.ce-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 27px 17px;border-bottom:1px solid var(--line);flex-shrink:0}.ce-modal-header h2{font:600 19px/1.4 'Segoe UI',sans-serif;margin:0;display:flex;align-items:center;gap:10px}.ce-modal-header h2 .icon{color:var(--accent)}.ce-modal-header p{font-size:11px;color:var(--muted);margin:6px 0 0}.ce-modal-body{overflow:auto;padding:20px 27px 26px;scrollbar-width:thin;scrollbar-color:#675781 transparent}.ce-local-note{font-size:11px;color:var(--muted);margin-bottom:18px}.ce-fields{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:15px;padding:18px;background:#0e111e;border:1px solid var(--line);border-radius:12px}.ce-schedule{grid-column:1/-1}.ce-schedule small{display:block;margin-top:8px}.ce-cover-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:17px 0 22px;padding:18px;background:#0e111e;border:1px solid var(--line);border-radius:12px}.ce-cover-row h3{font-size:12px;margin-bottom:5px;font-weight:500}.ce-cover-row p{font-size:11px;color:var(--muted);margin-bottom:13px}.ce-file-label{cursor:pointer;font-size:11px;display:inline-flex;align-items:center;gap:8px}.ce-file-label .icon{width:16px;height:16px}#ce-remove-cover{margin-left:15px}#ce-cover-preview{height:95px;width:92px;border:1px dashed #554665;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}#ce-cover-preview>.icon{color:#7c6f97;width:27px;height:27px}#ce-cover-preview img{width:100%;height:100%;object-fit:contain}.ce-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin-bottom:16px}.ce-tabs button{padding:12px 10px;background:transparent;border:0;border-radius:0;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:7px}.ce-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent)}.ce-tabs button .icon{width:17px}.ce-pages-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.ce-pages-toolbar p{font-size:11px;color:var(--muted);margin:0}.ce-strip-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.ce-strip{padding:8px;background:#0c0f1a;border:1px solid var(--line);border-radius:10px;min-width:0;cursor:grab}.ce-strip:active{cursor:grabbing}.ce-strip-image{display:block;border:1px solid #323249;border-radius:7px;padding:0;background:#080b13;width:100%;overflow:hidden;height:165px;cursor:zoom-in}.ce-strip-image img{width:100%;height:100%;object-fit:contain;display:block}.ce-strip-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;color:var(--muted);padding:8px 0 6px}.ce-strip .actions{justify-content:space-between;gap:3px}.ce-strip .actions button{padding:5px;border:0;background:transparent}.ce-strip .actions .icon{width:15px;height:15px}.ce-upload-note{color:var(--muted);font-size:10px;margin-top:20px}.ce-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 27px;border-top:1px solid var(--line);background:#101321;flex-shrink:0}.ce-modal-footer button{min-width:155px}.ce-error{padding:11px 15px;border:1px solid #7c4555;border-radius:8px;background:#38202d;color:#f5c5cf;font-size:12px;margin-top:15px;margin-bottom:0}.ce-zip-drop{border:1px dashed #69547f;border-radius:12px;background:#1d192c;text-align:center;padding:35px 22px;min-height:210px}.ce-zip-drop>.icon{width:30px;height:30px;color:var(--accent);margin-bottom:14px}.ce-zip-drop h3{font-size:15px;margin-bottom:10px}.ce-zip-drop p{font-size:12px;color:var(--muted)}#ce-progress{margin-top:15px;margin-bottom:0;font-size:12px}.ce-fixed-work{flex:1;min-width:180px}.ce-fixed-work small{display:block;font-size:9px;letter-spacing:1px;margin-bottom:4px}.ce-fixed-work strong{display:block;font-weight:500;font-size:12px;max-width:310px}.ce-fixed-work+input{flex:1.5}.ce-cover-row .secondary{padding:7px 12px}#chapter-zoom{padding:20px;max-width:1050px;width:calc(100vw - 35px);max-height:94dvh;overflow:hidden;border-radius:13px;background:#101321}#chapter-zoom header{display:flex;justify-content:space-between;align-items:center;gap:15px}#chapter-zoom h2{font:500 18px 'Segoe UI',sans-serif;margin:0}#chapter-zoom p{font-size:10px;color:var(--muted);margin:5px 0 15px}.ce-zoom-scroll{max-height:calc(94dvh - 100px);overflow:auto;background:#080a10;border-radius:6px}.ce-zoom-scroll img{width:100%;height:auto;display:block;max-width:none}
@media(max-width:800px){.ce-strip-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ce-fields{grid-template-columns:1fr 1fr}.ce-fields .field:nth-child(2){grid-column:2}.ce-fields .field:nth-child(3){grid-column:1/-1}.ce-modal-header,.ce-modal-footer{padding:18px 20px}.ce-modal-body{padding:17px 20px}.ce-strip-image{height:155px}}
@media(max-width:540px){#chapter-editor{width:calc(100vw - 18px);max-height:96dvh;border-radius:12px}#ce-form{max-height:96dvh}.ce-modal-header,.ce-modal-footer{padding:15px}.ce-modal-header h2{font-size:17px}.ce-modal-header p{font-size:10px}.ce-modal-body{padding:15px}.ce-fields{padding:13px;gap:12px;grid-template-columns:1fr}.ce-fields .field:nth-child(2),.ce-fields .field:nth-child(3){grid-column:1}.ce-cover-row{padding:13px;gap:12px}#ce-cover-preview{width:70px;height:90px}.ce-cover-row h3{font-size:11px}.ce-cover-row p{font-size:10px}.ce-tabs{gap:4px}.ce-tabs button{font-size:10px;padding:10px 5px;gap:5px}.ce-tabs button .icon{width:14px}.ce-pages-toolbar{align-items:flex-start}.ce-pages-toolbar p{font-size:10px;max-width:175px}.ce-strip-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ce-strip{padding:6px}.ce-strip-image{height:140px}.ce-modal-footer button{min-width:0;flex:1;padding:10px 12px;font-size:12px}.ce-upload-note{font-size:9px}.ce-file-label{font-size:10px;padding:8px 9px}.ce-fixed-work{width:100%;flex-basis:100%}}
