/* Pack editor: separate cover and content, matching the compact dark library. */
.simple-pack-editor{max-width:900px;margin:0 auto;color:#eee}
.pack-editor-heading,.pack-step-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pack-editor-heading{margin:22px 0 14px}.pack-editor-heading h1{font-size:22px;letter-spacing:0;margin:0}.pack-editor-heading>span,.pack-step-title>span{font-size:12px;color:#bbb}
.simple-pack-editor .pack-step{border:1px solid #303030;border-radius:14px;padding:18px;background:#191919;min-width:0;margin:0 0 12px}
.simple-pack-editor .pack-step h2{font-size:13px;font-weight:500;margin:0 0 14px;letter-spacing:0}
.pack-step-title h2{margin-bottom:0!important}.pack-step-title{margin-bottom:14px}
.simple-pack-editor .cms-field{margin-bottom:10px}.simple-pack-editor .cms-field input,.simple-pack-editor .cms-field select{background:#181818;border-color:#333;border-radius:7px;color:#eee;width:100%;font-size:14px;min-height:44px}
.pack-name-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.pack-name-row .cms-field>span{font-size:11px;color:#aaa}
.pack-extra summary{font-size:12px;padding:4px 0;color:#aaa;cursor:pointer}.pack-extra[open]>summary{margin-bottom:14px}
.simple-pack-editor .secondary{background:transparent;border:1px solid #484848;border-radius:8px;padding:10px 16px;font-size:13px;min-height:42px;color:#eee}
.pack-cover-row{display:flex;gap:14px;align-items:center}.pack-cover-row p{font-size:13px;margin:0 0 10px}.pack-cover-row .cms-help{font-size:11px;margin-top:8px;margin-bottom:0}
.pack-cover-preview{width:88px;height:100px;flex:0 0 88px;border:1px dashed #494949;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;color:#999}
.pack-cover-preview svg{width:28px;height:28px}.pack-cover-preview span{font-size:10px;margin-top:6px}.pack-cover-preview img{width:100%;height:100%;object-fit:cover}
.pack-drop{text-align:center;padding:24px 12px;border:1px dashed #484848;border-radius:8px;transition:border-color .15s,background .15s}.pack-drop.is-dragging{border-color:#b295da;background:#25212a}.pack-drop>svg{width:28px;height:28px;color:#999}.pack-drop p{font-size:13px;color:#ccc;margin:8px 0 12px}.pack-drop small{display:block;color:#999;font-size:11px;margin-top:14px}
.pack-folder-button{font-size:12px;color:#bbb;padding:8px 12px;min-height:36px;background:transparent;border:0;cursor:pointer}.pack-drop .pack-folder-button{display:block;margin:4px auto 0}.simple-pack-editor button:disabled{opacity:.45;cursor:wait}
.pack-file-row{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #303030;font-size:13px;flex-wrap:wrap;min-width:0}.pack-file-row small{display:block;font-size:11px;color:#aaa;margin-top:5px}.pack-file-row>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.pack-file-row>div:first-child{display:block;min-width:0;overflow-wrap:anywhere;flex:1 1 180px}
.media-controls{display:flex;gap:6px;flex-wrap:wrap}.media-controls button{min-width:36px;min-height:36px}.media-delete{color:#f3a3a3!important}.media-drag{cursor:grab}@media(pointer:coarse){.media-drag{display:none}.media-controls button{min-width:44px;min-height:44px}}
.pack-publish{width:100%;padding:16px;border:0;border-radius:8px;background:#fff;color:#111;font:inherit;font-weight:600;cursor:pointer;margin-top:8px}.pack-publish-hint{text-align:center;font-size:11px}.pack-editor-footer{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;font-size:12px}
.simple-pack-editor #server-message:empty,.simple-pack-editor #b2-message:empty{display:none}.simple-pack-editor #server-message,.simple-pack-editor #b2-message{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.simple-pack-editor button:focus-visible,.simple-pack-editor a:focus-visible{outline:2px solid #baa0df;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:620px){.simple-pack-editor .pack-step{padding:14px}.pack-name-row{grid-template-columns:minmax(0,1fr);gap:8px}.pack-editor-heading h1{font-size:20px}.pack-file-row{flex-wrap:wrap}.pack-cover-preview{width:74px;flex-basis:74px;height:88px}}
.pack-actions{margin-top:28px;padding:20px;border:1px solid #493348;border-radius:12px;background:#17121d}.pack-actions h2{margin:0 0 10px;font-size:17px}.pack-action-buttons{display:flex;gap:12px;flex-wrap:wrap}.pack-action-buttons button{min-height:44px;max-width:100%;white-space:normal}.pack-delete-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #614357;border-radius:14px;background:#17121d;color:#eee5f3;line-height:1.6}.pack-delete-dialog::backdrop{background:rgba(0,0,0,.72)}.pack-delete-dialog h2{margin:0 0 12px;font-size:21px}.pack-delete-dialog p{overflow-wrap:anywhere}.pack-delete-dialog .danger,.pack-actions .danger{background:#672737;color:#fff;border:1px solid #b85a70;padding:10px 18px;border-radius:8px}.pack-action-buttons button:disabled{opacity:.45;cursor:wait}.pack-action-buttons button:focus-visible{outline:2px solid #e9b1d5;outline-offset:3px}@media(max-width:420px){.pack-actions,.pack-delete-dialog{padding:16px}.pack-action-buttons{gap:8px}.pack-action-buttons button{flex:1 1 100px}}
