.content-library{background:#fff;padding:32px;min-height:80vh;color:#172237;font-size:14px}.library-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.library-head h1{font-size:24px!important;line-height:1.4!important;margin:0 0 6px!important;font-weight:750}.content-library p{font-size:13px;color:#7b879b;line-height:1.6}.content-library button,.library-dialog button{font:inherit;cursor:pointer;border:1px solid #dde1e9;background:white;border-radius:5px;padding:9px 14px;color:#546178}.content-library button:disabled{opacity:.55;cursor:default}.content-library .library-primary,.library-dialog .library-primary{background:#4b57eb;color:#fff;border-color:#4b57eb}.library-upload-button{display:inline-flex;align-items:center;gap:8px;border-radius:5px;padding:11px 20px;cursor:pointer;font-weight:600;white-space:nowrap}.library-upload-button input{position:absolute;width:1px;height:1px;opacity:0}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}.library-tools,.library-toolbar nav{display:flex;align-items:center;gap:8px}.content-library input:not([type=checkbox]):not([type=radio]):not([type=file]),.content-library select,.library-dialog input[type=search]{border:1px solid #d3d9e3;border-radius:6px;padding:10px 12px;font:inherit;color:#28364d;background:#fff;min-width:0}.library-tools input{max-width:220px}.content-library button[aria-pressed=true]{background:#f0f1ff;color:#4b57eb;border-color:#dce0ff}.library-count{font-size:12px;background:#8a91fa;border-radius:15px;color:white;padding:2px 9px;margin-left:6px}.library-help{font-size:12px!important;margin-bottom:20px}.video-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 20px;min-height:200px;padding-bottom:35px}.library-video-card{position:relative;min-width:0;background:white;border:1px solid #edf0f5;border-radius:6px;box-shadow:0 3px 6px #26334a08;overflow:visible}.library-video-preview{display:block!important;width:100%;padding:0!important;border:0!important;aspect-ratio:16/9;background:#f7f8fa!important;border-radius:6px 6px 0 0!important;overflow:hidden}.library-video-preview img{width:100%;height:100%;object-fit:cover}.video-placeholder{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a2a6b0;font-size:30px;gap:8px}.video-placeholder small{font-size:11px;font-weight:400}.library-video-info{padding:14px}.library-video-info h2{font-size:13px!important;font-weight:500;margin:0 0 5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-video-info p,.library-video-info small{font-size:11px;margin:3px 0;color:#a0a8b5}.library-video-menu{position:absolute;right:8px;top:8px}.library-video-menu summary{list-style:none;display:grid;place-items:center;width:25px;height:28px;color:#777;fill:currentColor;background:#ffffffcc;border-radius:15px;cursor:pointer}.library-video-menu summary::-webkit-details-marker{display:none}.library-video-menu>div{position:absolute;right:0;top:30px;background:white;min-width:130px;padding:5px;z-index:5;border:1px solid #e8eaf0;border-radius:5px;box-shadow:0 4px 18px #0002}.library-video-menu button{width:100%;border:0;text-align:left;font-size:12px}.video-library.is-list{display:flex;flex-direction:column;gap:10px}.is-list .library-video-card{display:flex;align-items:center}.is-list .library-video-preview{width:150px;flex:none}.is-list .library-video-info{min-width:0;flex:1;padding-right:40px}.library-empty{grid-column:1/-1;padding:60px 24px;border:1px dashed #d5dbe5;border-radius:10px;text-align:center;color:#7b879b}.library-more{text-align:center;border-top:1px solid #eceff3;padding:16px}.library-error,.library-success{border-radius:8px;padding:14px!important;background:#fff1ee;color:#a63a24!important}.library-success{background:#f0f9eb;color:#517038!important}.library-queue{margin:20px 0;padding:16px;background:#f8f9ff;border-radius:8px}.library-queue>div{display:grid;grid-template-columns:minmax(100px,1fr) 130px minmax(70px,1fr);gap:12px;align-items:center;font-size:12px;padding:8px}.library-queue span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-table-scroll{overflow:auto;border:1px solid #e1e5ed;border-radius:8px}.library-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}.library-table th{background:#f8f9fb;font-weight:500;color:#7b8395;padding:14px 12px;border-bottom:1px solid #e1e5ed}.library-table td{padding:13px 12px;border-bottom:1px solid #f0f1f5;color:#576178}.library-table .library-book-title{color:#172237;min-width:180px;font-weight:600}.library-table select{padding:4px 8px;background:#edf0ff;color:#5061ee;border:0;font-size:11px}.library-downloads{display:flex;gap:12px}.library-downloads a{color:#6a78a5;font-size:11px;white-space:nowrap}.library-row-actions button{font-size:11px;padding:5px 8px;border:0}.library-tree{border:1px solid #e0e5ed;border-radius:12px;padding:20px;color:#566078}.library-tree details>div{margin-left:14px;padding-left:16px;border-left:1px solid #edf0f4}.library-tree summary{display:flex;align-items:center;gap:8px;padding:9px 4px;cursor:pointer;list-style:none;font-size:13px}.library-tree summary::-webkit-details-marker{display:none}.library-tree summary:before{content:'›';width:12px;color:#354255}.library-tree details[open]>summary:before{transform:rotate(90deg)}.library-tree small{color:#9da5b6;font-size:11px}.folder-icon{display:inline-flex;color:#8cacff}.folder-icon.level-0{color:#f59d53}.folder-icon.level-1{color:#49b857}.folder-icon.level-2{color:#b581f5}.folder-icon.level-3{color:#47bcb2}.folder-icon.level-4{color:#8a7bf6}.library-tree-files{display:flex;gap:20px;flex-wrap:wrap;padding:12px 20px!important}.library-tree-files a{font-size:12px;color:#596bc7}.library-book-form{max-width:650px}.library-book-form fieldset{padding:0;border:0;margin:0;min-width:0}.library-book-form section{border:1px solid #dfe4ed;border-radius:12px;padding:22px;margin-bottom:20px}.library-book-form h2{font-size:15px!important;margin:0 0 20px!important}.library-book-form label{display:block;font-size:12px;margin:14px 0 8px}.library-book-form label>input:not([type=checkbox]):not([type=radio]),.library-book-form label>select{display:block;width:100%;margin-top:7px}.library-book-form em{color:#ef6262;font-style:normal}.library-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.library-radios{display:flex;gap:14px}.library-radios label{display:flex;align-items:center;gap:6px;margin:0 0 6px}.library-radios input,.library-check input{accent-color:#525fff}.library-drop{position:relative;display:block;border:2px dashed #d5dce8;border-radius:7px;padding:18px;margin:8px 0 22px;color:#99a5b9;cursor:pointer}.library-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.library-drop [data-file-label]{display:block;overflow-wrap:anywhere}.library-form-actions{display:flex;gap:12px}.library-book-form .library-check{display:flex;align-items:center;gap:8px}.library-dialog{width:min(800px,calc(100vw - 32px));max-height:85vh;border:1px solid #dde3ec;border-radius:12px;padding:24px;color:#253147;overflow:auto}.library-dialog::backdrop{background:#11182788}.library-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.library-dialog h2{font-size:20px}.library-dialog p{font-size:13px;color:#788496}.library-dialog video{display:block;width:100%;max-height:65vh;margin-top:18px;background:#111}.library-picker-list{max-height:45vh;overflow:auto;margin:18px 0}.library-picker-list label{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid #edf0f5;font-size:13px;cursor:pointer}.library-picker-list label[hidden]{display:none}.library-picker-list span{flex:1;min-width:0;overflow-wrap:anywhere}.library-picker-list small{color:#99a3b4}.library-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.library-dialog input[type=search]{width:100%}.library-video-menu summary:focus-visible,.library-tree summary:focus-visible{outline:2px solid #5362e8;outline-offset:3px}@media(max-width:1200px){.video-library{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.content-library{padding:20px}.video-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.library-head{align-items:flex-start;flex-wrap:wrap}.library-tools{flex-wrap:wrap}.library-form-pair{grid-template-columns:1fr}.library-tree{padding:12px}}@media(max-width:480px){.video-library{grid-template-columns:1fr}.library-queue>div{grid-template-columns:1fr}.library-radios{flex-wrap:wrap}}
.content-library .library-head,.library-dialog header{position:static;background:transparent;color:#172237;border:0;box-shadow:none;backdrop-filter:none}.content-library .library-head h1,.library-dialog header h2{color:#172237}.content-library .library-head .library-upload-button{background:#4b57eb;color:#fff}

.library-compression{padding:18px 20px;margin:18px 0;border:1px solid #dce5d4;border-radius:10px;background:#f6faef}.library-compression label{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-weight:600;font-size:13px}.library-compression select{max-width:100%}.library-compression p{font-size:12px;line-height:1.7;color:#626d59;margin:10px 0 0}.library-queue-row small{white-space:normal;overflow-wrap:anywhere}.library-queue em{display:block;font-size:11px;font-style:normal;color:#788496;margin-top:4px}

/* Fit the book list to its available admin content area, including narrow sidebars. */
.library-books{container-type:inline-size;min-width:0}
.library-books .library-head{gap:16px;margin-bottom:20px}
.library-books .library-head p{margin:0}
.library-books .library-toolbar{gap:12px}
.library-books .library-toolbar nav{flex-wrap:wrap;min-width:0}
.library-books .library-toolbar input{width:240px;max-width:100%}
.library-book-table-wrap{width:100%;border:1px solid #e1e5ed;border-radius:8px}
.library-book-table{table-layout:fixed;white-space:normal}
.library-book-table th,.library-book-table td{padding:12px 8px;overflow-wrap:anywhere;vertical-align:middle;line-height:1.5}
.library-book-table th{word-break:keep-all}
.library-book-table .library-book-title{min-width:0}
.library-book-table tr:last-child td{border-bottom:0}
.library-book-table .library-cell-value{min-width:0}
.library-book-table select{max-width:100%;padding:5px 3px!important}
.library-book-table .library-downloads{flex-direction:column;align-items:flex-start;gap:6px}
.library-book-table .library-downloads a{white-space:normal;overflow-wrap:anywhere}
.library-book-table .library-row-actions button{padding:6px 8px;min-height:32px;white-space:nowrap}
.library-supply-price{display:block;font-size:10px;color:#7b8395;line-height:1.5;margin-top:4px}
.library-books .library-supply-help{margin:12px 0 20px;line-height:1.7}
.library-version-editor .library-downloads{flex-wrap:wrap}
.library-books .library-form-actions{justify-content:flex-end;flex-wrap:wrap;gap:8px}
.library-books .library-archive-action{margin-left:0;color:#7c5140;border-color:#d8c9c1}
.library-book-form .library-version-editor{padding:24px;background:#fff;border-color:#dfe5de}
.library-version-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.library-version-heading>div{min-width:0}
.library-version-editor .library-version-heading h2{margin:0 0 5px!important;font-size:17px!important;letter-spacing:-.4px}
.library-version-count{font-size:12px;color:#829080}
.library-version-heading button{border-radius:8px;padding:10px 14px;font-weight:650;white-space:nowrap}
.library-version-current{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:24px 0 14px;font-size:12px;color:#465442}
.library-version-badge{padding:5px 10px;border-radius:6px;background:var(--brand-tint,#f1f9e7);color:var(--brand-ink,#14200d);font-weight:750}
.library-version-date{margin-left:auto;color:#899286;font-size:11px}
.library-version-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.library-version-file{display:flex;align-items:center;gap:12px;min-width:0;padding:18px 14px;border:1px solid #e5e9e2;border-radius:10px;background:#fafbf8;text-decoration:none;color:#23311f;transition:background .15s,border-color .15s}
.library-version-file:hover{background:var(--brand-tint,#f1f9e7);border-color:#b9c9ab}
.library-version-file:focus-visible{outline:2px solid #497c22;outline-offset:3px}
.library-version-file-icon{display:grid;place-items:center;width:36px;height:42px;flex:none;border:1px solid #e2e7db;border-radius:7px;background:#fff;color:#738567}
.library-version-file-icon svg{width:22px;height:22px}
.library-version-file-text{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.library-version-file-text strong{font-size:13px;font-weight:650}
.library-version-file-text>span{font-size:12px;color:#85907f}
.library-version-download{margin-left:auto;display:flex;flex:none;color:#718167}
.library-version-download svg{width:17px;height:17px}
.library-version-cost{margin-top:20px;padding-top:18px;border-top:1px solid #e9ece5}
.library-version-cost-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.library-version-cost-heading>span{font-size:12px;color:#71806a}
.library-version-cost-heading>strong{font-size:23px;line-height:1.4;letter-spacing:-.6px;color:#23321b;overflow-wrap:anywhere}
.library-version-cost-heading small{font-size:12px;font-weight:400;letter-spacing:0;color:#84907d}
.library-version-editor .library-version-cost p{margin:7px 0 0;font-size:11px;color:#8b9486;line-height:1.6}
@container (max-width:540px){
 .library-book-form .library-version-editor{padding:18px}
 .library-version-files{grid-template-columns:1fr}
 .library-version-heading{gap:12px}
 .library-version-current{margin-top:20px}
 .library-version-date{margin-left:0}
 .library-version-cost-heading>strong{font-size:21px}
}


/* Product actions fit the existing table and mobile cards. */
.library-book-table .library-row-actions .library-cell-value{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.library-book-table .library-row-actions .library-product-button{white-space:normal;word-break:keep-all;line-height:1.4;max-width:100%;padding:6px 8px}

/* Keep one book per row at every viewport width. */
.library-book-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.library-book-filters select{max-width:100%}
.library-books .library-book-result{margin:0 0 12px;color:#546178}
.library-books .library-book-table-wrap{max-width:100%;overflow:auto;max-height:70vh;overscroll-behavior-x:contain}
.library-books .library-book-table{min-width:1180px;table-layout:auto;white-space:nowrap}
.library-books .library-book-table th,.library-books .library-book-table td{padding:10px 12px;border-right:1px solid #e1e5ed;white-space:nowrap;overflow-wrap:normal}
.library-books .library-book-table th{position:sticky;top:0;z-index:2;background:#f3f5f1}
.library-books .library-book-table tbody tr:nth-child(even){background:#fafbf9}
.library-books .library-book-table tbody tr:hover{background:#f1f9e7}
.library-books .library-book-table .library-book-title{min-width:240px}
.library-books .library-book-table .library-downloads{flex-direction:row;gap:10px}
.library-books .library-book-table .library-downloads a{white-space:nowrap}
.library-books .library-book-table .library-row-actions .library-cell-value{flex-wrap:nowrap}
.library-books .library-book-table .library-row-actions button{white-space:nowrap}
.library-book-table-wrap:focus-visible{outline:2px solid #497c22;outline-offset:2px}
