.story-media{display:block;margin:1.7em auto;text-align:center;max-width:100%;clear:both}.story-media>img{display:block;width:100%;height:auto;object-fit:contain;margin:0 auto;border-radius:14px}.story-media-small{width:min(100%,180px)}.story-media-medium{width:min(100%,360px)}.story-media-wide{width:100%}.story-media-ornament>img{max-height:120px;border-radius:0}.story-media-ornament.story-media-medium{width:min(100%,280px)}.story-media-ornament.story-media-wide{width:min(100%,440px)}.story-media-ornament.story-media-wide>img{max-height:160px}.story-media figcaption{font:15px/1.5 system-ui,sans-serif;color:#58716a;margin:.7em auto 0;max-width:600px}.rich-editor .story-media{cursor:pointer;border:1px dashed #b6c5ab;padding:12px;border-radius:14px}.rich-editor .story-media:focus,.rich-editor .story-media:hover{outline:2px solid #608776;outline-offset:2px}.story-mood-choices,.mood-filter-list,.asset-choices{display:flex;flex-wrap:wrap;gap:10px}.story-mood-choices label{display:flex;align-items:center;gap:8px;border:1px solid #ccd4ba;border-radius:14px;padding:9px 12px;background:#fffdf4;margin:0}.story-mood-choices label:has(input:checked){background:#e8f0df;border-color:#66886f}.story-mood-choices input{width:18px;height:18px;accent-color:#294e43;margin:0}.story-mood-choices img,.mood-filter-list img{width:40px;height:40px;object-fit:contain}.mood-filter-list button{display:flex;align-items:center;gap:10px}.mood-filter-list button[aria-pressed=true]{background:#e7efdc;border-color:#52765f;color:#294e43}.mood-filter-panel{margin:18px 0 28px;padding:20px;background:#fffdf1bb;border:1px solid #d3dbc4;border-radius:24px}.mood-filter-panel h2{font-size:22px;margin:0 0 14px}.story-mood-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.story-mood-tags span{font:13px/1.4 system-ui,sans-serif;color:#496755;border-radius:20px;background:#edf2e5;padding:5px 11px}.workshop-site .story-tools-dialog{width:min(860px,calc(100vw - 32px));max-height:88vh;overflow:auto;padding:26px;border:1px solid #cad2bb;border-radius:24px;background:#fffdf5;color:#294e43}.story-tools-dialog::backdrop{background:#183f3a66;backdrop-filter:blur(3px)}.story-tools-dialog h2{margin-top:0}.story-tools-dialog .asset-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));max-height:260px;overflow:auto;padding:5px}.asset-choices button{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px!important;font-size:12px!important}.asset-choices button img{width:80px;height:75px;object-fit:contain}.asset-choices button[aria-pressed=true]{outline:3px solid #608776;background:#eaf0dd}.media-dialog-preview{max-width:100%;height:120px;object-fit:contain;display:block;margin:14px auto}.story-tools-dialog .catalog-row{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:12px;border-radius:16px;border:1px solid #dce1ce}.catalog-row>img{width:46px;height:46px;object-fit:contain}.catalog-row>strong{flex:1}.story-tools-dialog .catalog-editor{border-top:1px solid #d3dbc4;margin-top:24px;padding-top:16px}.story-tools-dialog .danger{color:#a1372b}.story-tools-dialog .actions{flex-wrap:wrap}.story-tools-dialog .tool-status{font:14px/1.5 system-ui,sans-serif;min-height:1.5em}.story-tools-dialog .media-type-buttons button[aria-pressed=true]{background:#294e43;color:#fff}.story-tools-dialog label.check{display:flex;align-items:center;gap:10px}.story-tools-dialog label.check input{width:18px;height:18px}.story-tools-dialog input[type=file]{width:100%}.story-mood-section{margin-top:22px}.story-mood-section h2{margin-bottom:12px}.story-mood-section .actions{margin-top:14px}@media(max-width:600px){.story-tools-dialog .catalog-row{flex-wrap:wrap}.catalog-row strong{min-width:120px}.story-media-ornament.story-media-wide{width:min(100%,320px)}.story-tools-dialog{padding:18px!important}.story-tools-dialog .asset-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.asset-choices button img{width:62px;height:62px}}
/* Private media inventory: long original filenames must not widen the dialog. */
#libraryItems .catalog-row{flex-wrap:wrap}#libraryItems .catalog-row>div{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}#libraryItems .catalog-row>div p{font-size:14px;margin:5px 0}#libraryItems .catalog-row>p{flex-basis:100%;font-size:14px;margin:0}#libraryItems .catalog-row>img{width:64px;height:64px}
