.ml-view{min-width:0}.ml-toolbar{display:flex;flex-direction:column;gap:14px;padding:20px;background:#fff;border:1px solid #dbe5df;border-radius:12px}.ml-toolbar form{display:flex;flex-wrap:wrap;gap:8px}.ml-toolbar select,.ml-toolbar input,.ml-modal-body input:not([type=checkbox]),.ml-modal-body select{padding:9px 11px;border:1px solid #cad8ce;border-radius:7px;font:inherit;min-width:0;background:#fff}.ml-caption{font-size:12px;color:#678071;margin:14px 0}.ml-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:16px}.ml-card{border:1px solid #dbe5df;border-radius:12px;background:#fff;overflow:hidden}.ml-thumb{display:block;border:0;padding:0;width:100%;height:155px;position:relative;background:#edf1ed;cursor:pointer}.ml-thumb:disabled{cursor:not-allowed;opacity:.45}.ml-thumb img,.ml-thumb video,.ml-occurrence-preview img,.ml-occurrence-preview video{width:100%;height:100%;object-fit:contain}.ml-card-body{padding:12px;display:grid;gap:7px}.ml-card-body>strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.ml-card-body>span,.ml-card-body>small{font-size:11px;color:#6f8177}.ml-tags{display:flex;flex-wrap:wrap;gap:4px}.ml-tags span{font-size:10px;padding:2px 6px;background:#edf4ee;border-radius:4px;color:#43684b}.ml-video-badge{position:absolute;bottom:8px;left:8px;background:#163a32;color:white;padding:4px 8px;font-size:10px;border-radius:5px}.ml-file{display:flex;width:100%;height:100%;min-height:54px;align-items:center;justify-content:center;color:#698173;font-size:13px}.ml-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px;font-size:12px}.ml-dialog{width:min(1060px,94vw);max-height:92vh;padding:0;border:1px solid #d7e3da;border-radius:14px;box-shadow:0 24px 90px #10241d40;color:#243e30}.ml-dialog::backdrop{background:#10291d70}.ml-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:#eff5f0;border-bottom:1px solid #dbe5df}.ml-dialog h2{font-size:20px;margin:0}.ml-dialog h3{font-size:15px;margin:18px 0 10px}.ml-modal-body{padding:20px 24px;max-height:calc(92vh - 75px);overflow:auto}.ml-modal-body p{line-height:1.7;font-size:13px}.ml-detail{display:grid;grid-template-columns:280px 1fr;gap:22px;align-items:center}.ml-detail-preview{height:200px;background:#f1f5f1;position:relative;border-radius:8px;overflow:hidden}.ml-detail-preview img,.ml-detail-preview video,.ml-confirm-preview img,.ml-confirm-preview video{width:100%;height:100%;object-fit:contain}.ml-url{font-size:11px;overflow-wrap:anywhere;color:#60776a}.ml-reference-list{padding:0;list-style:none}.ml-reference-list li{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #e0e8e2;gap:10px;font-size:13px}.ml-sources{max-height:200px;overflow:auto}.ml-check{display:inline-flex;gap:6px;align-items:center;margin:6px 16px 6px 0;font-size:13px}.ml-modal-body fieldset{border:1px solid #dce6df;border-radius:8px;margin:12px 0;padding:12px}.ml-delete{margin-top:22px;padding-top:16px;border-top:1px solid #e6dcd6}.ml-delete p{color:#8b6550}.ml-tax-list>div{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e0e8e3;padding:12px 0}.ml-tax-list>div>span{flex:1}.ml-upload-row{display:flex;align-items:center;gap:10px;padding:12px;background:#eef6ee;border:1px solid #d3e4d3;border-radius:8px;margin:10px 0}.ml-upload-row>div{flex:1;min-width:0}.ml-upload-row strong,.ml-upload-row small{display:block;overflow-wrap:anywhere;font-size:12px}.ml-upload-row small{color:#647c6a;margin:5px 0}.ml-upload-row progress{width:100%;height:7px;accent-color:#356b46}.ml-occurrences{display:grid;gap:10px;margin:18px 0}.ml-occurrence{display:flex;gap:14px;padding:12px;border:1px solid #dbe5df;border-radius:9px}.ml-occurrence>label{display:flex;align-items:center;gap:10px}.ml-occurrence input{width:17px;height:17px}.ml-occurrence-preview{width:92px;height:76px;background:#eef3ee;border-radius:6px;overflow:hidden;display:block}.ml-occurrence>div{flex:1;min-width:0}.ml-occurrence strong{font-size:13px}.ml-occurrence small{font-size:11px;color:#896747}.ml-confirm-preview{height:200px;max-width:350px;margin:auto;background:#edf3ed}.ml-modal-body .field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.ml-modal-body button[disabled]{opacity:.55}.ml-view .error-box:empty,.ml-modal-body [data-ml-error]:empty{display:none}@media(max-width:650px){.ml-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ml-thumb{height:120px}.ml-card-body{padding:9px}.ml-toolbar,.ml-modal-body{padding:12px}.ml-detail{grid-template-columns:1fr}.ml-occurrence{gap:8px}.ml-occurrence-preview{width:60px;height:64px}.ml-toolbar form input{width:100%}.ml-upload-row{flex-wrap:wrap}.ml-upload-row>div{flex-basis:100%}.ml-dialog>header{padding:14px}}

.ml-occurrence-preview iframe{width:100%;height:100%;border:0;pointer-events:none}.editor-canvas video{display:block;max-width:100%;max-height:420px}
.ml-detail{grid-template-columns:280px minmax(0,1fr)}.ml-detail>div{min-width:0}.ml-detail h3,.ml-sources p{overflow-wrap:anywhere}
.ml-modal-body fieldset{min-width:0;max-width:100%;box-sizing:border-box}
.ml-modal-body fieldset .ml-check{max-width:calc(100% - 8px);margin-right:8px;box-sizing:border-box;overflow-wrap:anywhere}
@media(max-width:650px){.ml-detail{grid-template-columns:minmax(0,1fr)}}
.ml-preview-box{display:block;position:relative;width:100%;height:100%;min-height:54px}.ml-preview-box>img,.ml-preview-box>video{display:block;width:100%;height:100%;object-fit:contain}.ml-media-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:10px;text-align:center;color:#596f62;font-size:12px;background:#edf2ee}.ml-preview-box[data-ml-load-state=loaded]>.ml-media-status{display:none}.ml-preview-box[data-ml-load-state=failed]>.ml-media-status{color:#7d4438;background:#fbefeb}.ml-preview-box:not([data-ml-load-state=loaded])>img{visibility:hidden}.ml-video-placeholder{padding:16px;text-align:center}.ml-card [data-ml-action=reload-thumbnail][hidden],.ml-occurrence [data-ml-action=reload-thumbnail][hidden]{display:none}
