/* Scoped APM preview; shared site and other plugin windows are unchanged. */
body[data-plugin=apm] .header-inner{min-height:52px}
#apm{width:min(1400px,calc(100% - 24px));padding:12px 0 24px;color:#f2f2f2;font:500 13px/1.35 "Segoe UI",sans-serif;--muted:#929292;--line:#3e3e42}
#apm *{box-sizing:border-box}#apm button,#apm input,#apm select{font:inherit;color:inherit;border:0;border-radius:4px}
#apm button{background:#4b4b4b;min-height:22px;padding:2px 5px;cursor:pointer}#apm button:hover{background:#713131}#apm button:disabled{opacity:.5;cursor:default}
#apm input:not([type=checkbox]),#apm select{background:#2d2d2d;height:24px;padding:2px 4px;max-width:100%;min-width:0}#apm input::placeholder{color:var(--muted)}
#apm input[type=checkbox]{appearance:none;position:relative;width:23px;height:23px;min-width:23px;background:#2e2e2e;margin:0;border-radius:4px;cursor:pointer;vertical-align:middle}
#apm input[type=checkbox]:checked::after{content:"";position:absolute;left:5px;top:1px;width:9px;height:15px;border:solid #d7d7d7;border-width:0 4px 4px 0;transform:rotate(45deg)}
#apm .check{display:inline-flex;align-items:center;gap:4px;min-height:23px;white-space:nowrap}
#apm .demo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:900px;margin:0 auto 10px}#apm .field{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}#apm .demo-note{margin-left:auto;color:#98a1b2;font-size:12px;font-weight:400}
#apm .window{width:900px;max-width:100%;min-width:300px;min-height:340px;margin:auto;background:#0e0e0e;border-radius:3px;resize:both;overflow:auto;display:flex;flex-direction:column}
#apm .titlebar{display:flex;align-items:center;min-height:24px;height:24px;flex:none;padding:2px 4px;background:#531919;gap:8px}
#apm .title-actions{margin-left:auto;display:flex;gap:2px}#apm .title-actions button{background:transparent;padding:0;width:18px;height:20px;min-height:20px;font-size:17px;line-height:20px}#apm .title-actions button:hover{background:#ffffff25}
#apm .window-menu{display:flex;gap:5px;padding:4px 8px}#apm .window-body{padding:6px 8px 7px;display:flex;flex-direction:column;flex:1;min-height:0;overflow:visible}
#apm p{margin:0}#apm .intro{margin:2px 0 4px}#apm .trust-row{margin-bottom:3px}#apm .update-row{margin-bottom:4px}
#apm .toolbar{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:8px;flex-wrap:wrap;margin-bottom:4px;flex:none}#apm .plugin-count{margin:0 0 4px}
#apm .picker-anchor{position:relative}#apm .picker-button{width:180px;text-align:left;padding-right:27px;position:relative;border-radius:3px;background:#2e2e2e}
#apm .picker-button::after{content:"▼";position:absolute;top:0;right:0;width:23px;height:100%;background:#505050;text-align:center;font-size:17px;border-radius:0 3px 3px 0}
#apm .picker{position:absolute;left:0;top:calc(100% + 3px);width:290px;max-width:calc(100vw - 38px);padding:7px;background:#171717;border:1px solid #777;z-index:8;box-shadow:0 5px 15px #0008}
#apm .picker .field,#apm .picker input[type=search]{width:100%}#apm .picker-options{display:flex;flex-direction:column;gap:5px;max-height:240px;overflow:auto;margin-top:7px}
#apm .table-wrap{height:calc(34px + 27px * var(--plugin-rows,4));min-height:104px;flex:1 0 calc(34px + 27px * var(--plugin-rows,4));overflow:auto;position:relative;max-width:100%}
#apm table{table-layout:fixed;border-collapse:collapse;width:100%;height:100%;min-width:570px;font-size:13px;line-height:21px;text-align:left}
#apm th,#apm td{padding:0 4px;white-space:nowrap;text-overflow:clip;overflow:hidden;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}#apm th:last-child,#apm td:last-child{border-right:0}
#apm th{background:#303034;font-weight:600;position:sticky;top:0;z-index:1;height:22px}#apm tbody tr{height:27px}#apm td{vertical-align:middle}#apm td:first-child,#apm th:first-child{padding-left:0}
#apm tbody tr:nth-child(even) td{background:#1e1e1e}#apm tr.selected td{background:#383838!important}#apm tr[data-plugin-id]{cursor:pointer}
#apm tr.blank{height:auto}#apm tbody tr.blank td{border-bottom:0;background:#0e0e0e}#apm .cell-button{display:block;width:100%;min-height:25px;padding:1px 0;text-align:left;white-space:nowrap;background:transparent;border-radius:0;overflow:hidden;color:inherit}#apm .cell-button:hover{background:#ffffff0d}
#apm .window-footer{flex:none;padding-top:5px}#apm .selection{margin:0 0 5px}#apm .selection-details{margin:0 0 4px}#apm .selection-details p{margin:0;min-height:21px;overflow-wrap:anywhere}
#apm .options{padding:3px 0 2px;border-top:1px solid var(--line)}#apm .options-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 4px}
#apm .status{border-top:1px solid var(--line);padding-top:4px;margin-top:1px;min-height:25px;overflow-wrap:anywhere}#apm .error{color:#ff5959;margin:0 0 5px;overflow-wrap:anywhere}#apm .good{color:#65e980}#apm .muted{color:var(--muted)}#apm .empty{margin:4px 0}#apm .progress{margin:4px 0;color:#dbbc72}
#apm .demo-details{max-width:900px;margin:10px auto 0;color:#98a1b2;font-size:12px;font-weight:400}#apm .demo-details summary{cursor:pointer;width:max-content;max-width:100%}#apm .demo-details p{margin:7px 0}#apm .package-url{overflow-wrap:anywhere}#apm .demo-details code{font:inherit}
#apm .request-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#apm .stages{margin:8px 0;padding-left:24px}#apm .stages .done{color:#65e980}#apm .demo-footer{max-width:900px;margin:8px auto 0;color:#98a1b2;font-size:11px;font-weight:400}
#apm .window.collapsed{height:24px!important;min-height:0;resize:none;overflow:hidden}#apm .window.closed{min-height:0;height:auto!important;padding:16px;resize:none}#apm .window.closed p{margin-bottom:8px}
#apm .modal-backdrop{position:fixed;inset:0;background:#0009;z-index:50;padding:18px;display:grid;grid-template-columns:minmax(0,1fr);place-items:center}#apm .modal{width:620px;max-width:100%;min-width:0;max-height:calc(100vh - 36px);overflow:auto;padding:12px;background:#141414;border:1px solid #777}
#apm .modal h2{display:block;font-size:14px;letter-spacing:0;margin:0 0 10px}#apm .modal h2::after{display:none}#apm .modal p{margin:8px 0;overflow-wrap:anywhere}#apm .modal-actions{display:flex;gap:7px}
#apm :focus-visible{outline:2px solid #9cf;outline-offset:1px}#apm ::-webkit-scrollbar{width:14px;height:14px}#apm ::-webkit-scrollbar-track{background:#151515}#apm ::-webkit-scrollbar-thumb{background:#515151;border:3px solid #151515;border-radius:8px}#apm ::-webkit-scrollbar-corner{background:#151515}
@media(max-width:650px){#apm .window{resize:vertical}#apm .demo-note{margin-left:0;flex-basis:100%}#apm .toolbar{gap:6px}#apm .picker{left:auto;right:0}#apm .trust-row .check{white-space:normal;align-items:flex-start}#apm .options-row{gap:6px}#apm table.directories-hidden{min-width:360px}#apm .titlebar{font-size:12px}#apm .titlebar>span{overflow:hidden;white-space:nowrap}#apm .window-footer{padding-top:7px}}
