/* Local canvas results reuse established panel colors. Source states are not claimed pixel-exact. */
.jmc-editor .jlp-panel { width:320px;top:56px;bottom:60px;max-width:calc(100% - 76px); }
.jmc-editor .jlp-panel .jmc-sidepanel-header { min-height:42px;padding:8px 12px;border-bottom:0; }
.jmc-editor .jlp-panel .jmc-sidepanel-title { font-size:13px;line-height:22px; }
.jmc-editor .jlp-searchbox { display:flex;flex:0 0 auto;align-items:center;gap:8px;margin:0 12px 10px;padding:0 8px;border:1px solid #ffffff0d;border-radius:8px;background:#ffffff08; }
.jmc-editor .jlp-searchbox>svg,.jmc-editor .jlp-glyph { width:16px;height:16px;flex:0 0 16px; }
.jmc-editor .jlp-searchbox .jmc-panel-input { flex:1;min-width:0;height:30px;margin:0;padding:2px 0;border:0;background:transparent;font-size:13px;line-height:22px; }
.jmc-editor .jlp-category-wrap { position:relative;flex:0 0 auto;min-width:0;padding:0 28px 0 6px; }
.jmc-editor .jlp-categories { display:flex;gap:4px;overflow:auto;scrollbar-width:none; }
.jmc-editor .jlp-category { flex:0 0 auto;height:36px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#94949f;white-space:nowrap;font-size:13px;font-weight:500;line-height:22px; }
.jmc-editor .jlp-category[aria-selected="true"] { background:#ffffff0b;color:#eeeef2; }
.jmc-editor .jlp-category-next { position:absolute;inset:0 0 0 auto;width:28px;height:36px;padding:0;background:#202022;color:#b5b5be;font-size:22px; }
.jmc-editor .jlp-count { flex:0 0 auto;margin:6px 12px;color:#777783;font-size:11px;line-height:18px; }
.jmc-editor .jlp-body { padding:0 6px 8px; }
.jmc-editor .jlp-results { display:flex;flex-direction:column;gap:4px; }
.jmc-editor .jlp-result { position:relative;min-width:0;border-radius:12px;overflow:hidden;background:#ffffff03; }
.jmc-editor .jlp-result:hover { background:#ffffff08; }
.jmc-editor .jlp-result-control { display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:8px 54px 8px 8px;border:0;border-radius:12px;background:transparent;color:#d6d6de;text-align:left; }
.jmc-editor .jlp-thumb { display:flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;height:44px;overflow:hidden;border-radius:6px;background:#ffffff08;color:#92929f; }
.jmc-editor .jlp-thumbnail { display:block;width:100%;height:100%;object-fit:cover;pointer-events:none; }
.jmc-editor .jlp-result-words { display:flex;flex-direction:column;min-width:0;gap:1px; }
.jmc-editor .jlp-result-title { overflow:hidden;color:#dddde5;font-size:13px;line-height:20px;white-space:nowrap;text-overflow:ellipsis; }
.jmc-editor .jlp-result-type { color:#83838f;font-size:11px;line-height:16px; }
.jmc-editor .jlp-result-excerpt { overflow:hidden;color:#92929e;font-size:11px;line-height:16px;white-space:nowrap;text-overflow:ellipsis; }
.jmc-editor .jlp-search .jlp-result-excerpt { display:none; }
.jmc-editor .jlp-preview-toggle { position:absolute;right:8px;top:19px;padding:2px 3px;border:0;border-radius:4px;background:transparent;color:#9898a5;font-size:11px;line-height:20px; }
.jmc-editor .jlp-preview { display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:8px;background:#141416; }
.jmc-editor .jlp-preview-media { display:block;width:100%;max-height:220px;object-fit:contain; }
.jmc-editor .jlp-preview-media:is(audio) { height:40px; }
.jmc-editor .jlp-assets { inset:0;z-index:160;align-items:center;justify-content:center;width:100%;max-width:none;border:0;border-radius:0;background:#0008;box-shadow:none; }
.jmc-editor .jlp-asset-dialog { display:flex;flex-direction:column;width:801px;height:620px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);min-width:0;min-height:0;overflow:hidden;border-radius:20px;background:#1a1a1a; }
.jmc-editor .jlp-assets .jmc-sidepanel-header { flex:0 0 64px;padding:14px 24px; }
.jmc-editor .jlp-collections { display:flex;gap:4px; }
.jmc-editor .jlp-collection { height:36px;padding:4px 16px;border:0;border-radius:8px;background:transparent;color:#a2a2ac;font-size:13px;font-weight:500;line-height:22px; }
.jmc-editor .jlp-collection[aria-selected="true"] { color:#f0f0f4;background:#ffffff0d; }
.jmc-editor .jlp-assets .jlp-searchbox { align-self:flex-end;width:200px;margin:0 24px 10px; }
.jmc-editor .jlp-assets .jlp-searchbox input { height:34px; }
.jmc-editor .jlp-assets .jlp-category-wrap { margin:0 18px;padding-right:0; }
.jmc-editor .jlp-assets .jlp-category-next { display:none; }
.jmc-editor .jlp-assets .jlp-count { margin-left:24px; }
.jmc-editor .jlp-assets .jlp-body { padding:0 24px 12px; }
.jmc-editor .jlp-assets .jlp-results { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:start; }
.jmc-editor .jlp-assets .jlp-result-control { flex-direction:column;align-items:stretch;gap:8px;padding:8px 8px 28px; }
.jmc-editor .jlp-assets .jlp-result-control[aria-pressed="true"] { box-shadow:inset 0 0 0 2px #9cdbe5;background:#ffffff08; }
.jmc-editor .jlp-assets .jlp-thumb { width:100%;height:100px;flex-basis:auto; }
.jmc-editor .jlp-assets .jlp-preview-toggle { top:auto;bottom:4px; }
.jmc-editor .jlp-assets .jlp-footer { min-height:76px;flex-direction:row;align-items:center;padding:16px 24px 24px; }
.jmc-editor .jlp-footer-text { display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;color:#c8c8d2;font-size:12px; }
.jmc-editor .jlp-footer-text small { color:#777783;font-size:10px; }
.jmc-editor .jlp-confirm { height:36px;min-width:72px;border:0;border-radius:8px;background:#c6e6ee;color:#17242a;font-size:13px; }
.jmc-editor .jlp-confirm:disabled { opacity:.35;cursor:not-allowed; }
.jmc-editor .jlp-media-unavailable { color:#90909c;font-size:11px;line-height:18px; }
.jmc-editor .jlp-footer { display:flex;flex:0 0 auto;flex-direction:column;gap:8px;padding:10px 12px;border-top:1px solid #ffffff08; }
.jmc-editor .jlp-footer .jmc-panel-empty { margin:0;padding:0;font-size:10px;line-height:16px; }
.jmc-editor .jlp-panel :is(button,input,audio,video):focus-visible { outline:2px solid #76cde0;outline-offset:-2px; }
@media(max-width:760px){.jmc-editor .jlp-panel{top:54px;right:8px;bottom:56px;width:min(320px,calc(100% - 74px));max-width:calc(100% - 74px);}.jmc-editor .jlp-result-control{gap:7px;padding-right:46px;}.jmc-editor .jlp-thumb{flex-basis:38px;width:38px;height:38px;}.jmc-editor .jlp-preview-toggle{right:6px;}.jmc-editor .jlp-preview-media{max-height:180px;}}
@media(max-width:760px){.jmc-editor .jlp-assets{inset:0;width:100%;max-width:none;}.jmc-editor .jlp-asset-dialog{max-width:calc(100% - 16px);max-height:calc(100% - 16px);border-radius:16px;}.jmc-editor .jlp-assets .jmc-sidepanel-header{padding:10px 12px;flex-basis:56px;}.jmc-editor .jlp-assets .jlp-body{padding:0 12px 8px;}.jmc-editor .jlp-assets .jlp-results{grid-template-columns:repeat(2,minmax(0,1fr));}.jmc-editor .jlp-assets .jlp-thumb{width:100%;height:86px;flex-basis:auto;}.jmc-editor .jlp-assets .jlp-footer{padding:12px;gap:8px;}.jmc-editor .jlp-assets .jlp-searchbox{margin-right:12px;}.jmc-editor .jlp-collection{padding:4px 12px;}}
@media(prefers-reduced-motion:reduce){.jmc-editor .jlp-panel *{scroll-behavior:auto!important;}}
.jmc-editor .jlp-asset-tools{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;margin:0 24px 10px;min-width:0}
.jmc-editor .jlp-assets .jlp-asset-tools .jlp-searchbox{flex:0 1 200px;width:200px;min-width:0;margin:0}
.jmc-editor .jlp-filter-trigger{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:#a2a2ad}
.jmc-editor .jlp-filter-trigger[aria-pressed="true"],.jmc-editor .jlp-filter-trigger[aria-expanded="true"]{background:#ffffff12;color:#e9eef2}
.jmc-editor .jlp-filter-trigger svg{width:18px;height:18px}
.jmc-editor .jlp-filter-popup{position:fixed;z-index:8;display:flex;flex-direction:column;flex:0 0 auto;width:200px;max-height:444px;padding:8px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ffffff12;border-radius:12px;background:#262626;box-shadow:0 8px 32px #0006;color:#f0f0f4;font-size:13px;line-height:20px}
.jmc-editor .jlp-date-popup{width:280px;height:220px}
.jmc-editor .jlp-filter-popup:not(.jlp-date-popup){height:444px;padding:3px;overflow:hidden}
.jmc-editor .jlp-filter-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px;scrollbar-width:thin}
.jmc-editor .jlp-date-range{display:flex;flex:0 0 auto;align-items:center;gap:4px;min-height:32px;margin-bottom:4px;color:#93939e}
.jmc-editor .jlp-date-input{flex:1 1 0;min-width:0;width:0;height:32px;padding:3px;border:1px solid #ffffff16;border-radius:6px;background:#ffffff08;color:#ececf2;font:inherit;font-size:12px;color-scheme:dark}
.jmc-editor .jlp-date-input[aria-invalid="true"]{border-color:#ed8491}
.jmc-editor .jlp-date-preset{flex:0 0 32px;width:100%;height:32px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:#a0a0aa;text-align:left;font:inherit}
.jmc-editor .jlp-date-preset[aria-pressed="true"]{background:#ffffff10;color:#f4f4f7}
.jmc-editor .jlp-filter-group{min-width:0;margin:0 0 8px;padding:0;border:0}
.jmc-editor .jlp-filter-group .jlp-filter-heading{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0;padding:4px 12px;color:#93939e;font-size:12px;line-height:20px;font-weight:400}
.jmc-editor .jlp-filter-clear{min-height:20px;padding:0 0 0 8px;border:0;border-radius:4px;background:transparent;color:#c4c4ce;font:inherit;font-size:12px;line-height:20px}
.jmc-editor .jlp-filter-clear:hover{color:#ededf2}
.jmc-editor .jlp-filter-choices{display:flex;flex-direction:column;gap:0}
.jmc-editor .jlp-filter-choice{display:flex;flex:0 0 36px;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;height:36px;min-height:36px;max-height:36px;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#d5d5dc;text-align:left;font:inherit;font-size:13px;line-height:18px}
.jmc-editor .jlp-filter-choice:hover,.jmc-editor .jlp-filter-choice:focus-visible{background:#ffffff10}
.jmc-editor .jlp-filter-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jmc-editor .jlp-filter-check{flex:0 0 16px;visibility:hidden;color:#ededf2;text-align:right}
.jmc-editor .jlp-filter-choice[aria-checked="true"] .jlp-filter-check{visibility:visible}
.jmc-editor .jlp-filter-note{flex:0 0 auto;margin:4px 0 0;color:#878793;font-size:10px;line-height:14px;overflow-wrap:anywhere}
.jmc-editor .jlp-filter-error{flex:0 0 auto;margin:4px 0;color:#ed9ca6;font-size:11px;line-height:16px}
.jmc-editor .jlp-filter-popup :is(button,input):focus-visible{outline:2px solid #76cde0;outline-offset:-2px}
.jmc-editor .jlp-favorite{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:28px;height:28px;padding:5px;border:0;border-radius:6px;background:#101014a6;color:#a8a8b3}
.jmc-editor .jlp-favorite svg{width:18px;height:18px}
.jmc-editor .jlp-favorite[aria-pressed="true"]{color:#f6ce79}
.jmc-editor .jlp-favorite[aria-pressed="true"] svg path{fill:currentColor}
@media(max-width:760px){.jmc-editor .jlp-asset-tools{margin:0 12px 10px;gap:6px}.jmc-editor .jlp-assets .jlp-asset-tools .jlp-searchbox{flex:1;width:auto}}

/* Search is anchored below its toolbar trigger; its input starts the panel. */
.jmc-editor .jlp-search .jmc-sidepanel-header { position:absolute;z-index:1;top:4px;right:2px;min-height:0;padding:0; }
.jmc-editor .jlp-search .jmc-sidepanel-title { display:none; }
.jmc-editor .jlp-search .jmc-sidepanel-close { width:18px;height:18px;font-size:14px; }
.jmc-editor .jlp-search .jlp-searchbox { margin:18px 16px 6px;padding:2px 12px; }
.jmc-editor .jlp-search .jlp-searchbox .jmc-panel-input { height:26px;padding:0; }
.jmc-editor .jlp-search .jlp-count { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.jmc-editor .jlp-search .jlp-body { padding:4px 4px 8px; }
.jmc-editor .jlp-search .jlp-result-excerpt { display:none; }
