/* Shared content workspace: readable lists, grouped editors and clear materials. */
.shell>aside{overflow-y:auto;overscroll-behavior:contain}
.shell>aside nav{flex-shrink:0}
.shell>aside .sidebar-bottom{padding-top:24px}
.shell main>header{gap:20px}
.shell main>header>div:first-child{min-width:0}
.shell main>header p{line-height:1.7}
.hint{line-height:1.8}
.management-table{font-size:14px}
.management-table th{font-size:12px;font-weight:600;color:#68635e}
.management-table td{vertical-align:middle;line-height:1.65}
.management-table td:first-child{min-width:180px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.management-table td:first-child strong{display:block;line-height:1.6}
.management-table td small{font-size:12px;line-height:1.6;margin-top:4px}
.management-table .row-actions{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:300px}
.management-table .text-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;line-height:1.4;border-radius:10px;white-space:nowrap;font-size:13px;text-align:center}
.management-table .text-button:hover{background:#fff1db;text-decoration:none}
.management-table [data-action=preview]{background:#fff2dc;color:#874300;font-weight:600}
.management-table [data-action=edit]{background:#f4f3f0;color:#34312d;font-weight:600}
.management-table [data-action=delete]{color:#a75a51}
.management-table [data-action=delete]:hover{background:#faeeee}
.content-table th:last-child{width:260px}
.content-table .row-actions{min-width:210px}
.content-table .badge{margin:3px 0;white-space:nowrap}
.content-table td:nth-last-child(2){max-width:140px;white-space:normal}
.toolbar input,.toolbar select{min-height:44px}
.pagination .secondary{min-height:40px}
.pagination{gap:12px}
#dialog .editor-section{min-width:0;padding:22px;border:1px solid #ede7de;border-radius:18px;background:#fff}
.editor-section-head{margin-bottom:20px}
.editor-section-head h3{font-size:16px;color:#30281f;line-height:1.5}
.editor-section-head p{margin-top:5px;font-size:12px;color:#77716a;line-height:1.8}
#dialog .publication-note{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:12px 16px;border-radius:12px;background:#fff7e9;color:#805b2b;font-size:12px;line-height:1.8}
#dialog .file-field{padding:16px;border:1px dashed #dfd4c5;border-radius:14px;background:#fffcf7}
#dialog .file-field input[type=file]{padding:8px;background:#fff;border-color:#eee5da;font-size:12px}
input[type=file]::file-selector-button{padding:8px 12px;margin-right:10px;border:0;border-radius:8px;background:#fff0d6;color:#804000;font:inherit;cursor:pointer}
#dialog .file-field select{background:#fff}
#dialog label{font-size:13px;color:#575049;min-width:0}
#dialog .grid{gap:18px}
#dialog input,#dialog select{min-width:0;min-height:44px}
#dialog .chapter{border-color:#ede7de;background:#fffcf7}
#dialog [data-resource-editor]>h3{margin:26px 0 6px;font-size:17px}
#dialog [data-resource-editor]>.hint{margin:0 0 16px}
#dialog [data-resource-editor]>.secondary{margin-top:8px;min-height:42px}
#dialog .chapter-head{align-items:center;flex-wrap:wrap;gap:12px}
#dialog .chapter-head>div{display:flex;gap:8px;flex-wrap:wrap}
#dialog .chapter-head .text-button{min-height:36px;padding:6px 10px;border-radius:8px;background:#f3eee7}
#dialog .preview-body{font-size:14px;line-height:1.9;color:#4f4943;overflow-wrap:anywhere}
#dialog .material-preview{padding:20px 0}
.material-preview h3{font-size:16px;line-height:1.6;margin-bottom:10px}
.material-preview .secondary{font-size:14px;min-height:44px}
.material-pdf-controls{flex-wrap:wrap}
.material-pdf-controls button{min-width:86px}
.material-text{color:#39332d;line-height:1.9}
.media-results{min-width:0}
.media-filters.toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px;background:#fbf8f3;border:1px solid #eee8de;border-radius:14px;margin-bottom:16px}
.media-filters.toolbar input{grid-column:span 2;width:100%;min-width:0}
.media-filters.toolbar select{width:100%;min-height:42px;background:#fff;font-size:13px}
.media-filters.toolbar .text-button{justify-self:start;min-height:42px;padding:8px}
.media-selection{gap:12px;padding:14px 0}
.media-row.organized{padding:20px 0}
.media-info strong{font-size:14px;line-height:1.65}
.media-info p{font-size:12px;line-height:1.7}
.media-row.organized .row-actions{gap:8px;max-width:none}
.media-row.organized .text-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border-radius:9px;background:#f7f4ef;font-size:12px;line-height:1.4}
.media-row.organized [data-preview]{background:#fff0d6;color:#804000}
.media-row.organized [data-create]{background:#fff7e9;color:#804000}
.media-row.organized [data-archive]{background:transparent;color:#77716a}
.media-tag-list span{font-size:11px}
.media-upload-note{font-size:12px;max-width:100%;overflow-wrap:anywhere}
.book-tile h2{font-size:19px;line-height:1.5;min-height:57px}
.book-tile p{font-size:13px;line-height:1.8}
.book-tile .book-actions{gap:8px}
.book-tile .book-actions button{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.book-workspace .field-block{padding:24px}
.book-workspace .array-item{background:#fffcf7;border-color:#ede7de}
.book-workspace .array-actions button{min-height:36px;padding:6px 10px;border-radius:9px;line-height:1.4;background:#f3eee7}
.book-workspace .field-block>summary{font-size:17px;line-height:1.6}
.book-workspace .field-grid{gap:0 20px}
.book-workspace .field-grid>.field-wide{grid-column:1/-1}
.book-workspace .field-block>h3{font-size:17px;margin-bottom:12px}
.book-workspace .field-block>.hint{margin:8px 0 12px}
.book-workspace .preview-panel h3{font-size:17px}
@media(max-width:1100px){
 .media-filters.toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .management-table th,.management-table td{padding:14px}
 .content-table th:last-child{width:230px}
}
@media(max-width:680px){
 .shell>aside{overflow:visible}
 .shell main>header{gap:12px}
 .header-actions{flex-wrap:wrap;justify-content:flex-end}
 .tabs button{min-height:42px}
 .management-table{min-width:720px}
 .management-table td:first-child{min-width:180px;max-width:230px}
 #dialog .editor-section{padding:16px;border-radius:14px}
 #dialog .editor-section .grid{grid-template-columns:minmax(0,1fr)}
 #dialog .file-field{padding:12px}
 #dialog label{font-size:13px}
 .media-filters.toolbar{padding:12px;gap:8px}
 .media-filters.toolbar select{font-size:12px}
 .media-location h3{font-size:16px}
 .media-row.organized{padding:16px 0}
 .book-workspace .field-block{padding:16px}
 .book-workspace .field-grid{grid-template-columns:minmax(0,1fr)}
 .book-tile h2{min-height:0}
}
