/* Plugin manager: compact controls (Claude/ChatGPT scale), app colours cyan #7de9df to violet #bc9cf7. */
.ps-main > .rc-box[data-rc="plugins"] { display: none; }
.pm-box { margin: 0 0 14px; font-size: 12.5px; color: var(--text, #e7eaf1); }
.pm-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line, #2a303b); margin-bottom: 10px; }
.pm-tab { all: unset; box-sizing: border-box; padding: 5px 10px; font-size: 12.5px; color: var(--muted, #8e98ac); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pm-tab[aria-selected="true"] { color: var(--text, #e7eaf1); border-image: linear-gradient(90deg, #7de9df, #bc9cf7) 1; }
.pm-tab:focus-visible, .pm-btn:focus-visible { outline: 2px solid #7de9df; outline-offset: 1px; }
.pm-note { margin: 0 0 8px; padding: 5px 8px; border-radius: 6px; background: rgba(125, 233, 223, .08); color: #7de9df; }
.pm-muted { color: var(--muted, #8e98ac); margin: 2px 0; font-size: 12px; }
.pm-err { color: var(--red, #f79b9b); margin: 4px 0; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.pm-card, .pm-inst { border: 1px solid var(--line, #2a303b); border-radius: 8px; padding: 8px 10px; background: var(--panel-soft, #191e28); }
.pm-inst { margin-top: 8px; }
.pm-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pm-top .pm-switch { margin-left: auto; }
.pm-d { margin: 4px 0 6px; color: var(--muted, #8e98ac); font-size: 12px; line-height: 1.35; }
.pm-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pm-row .pm-btn:last-child, .pm-card .pm-row > .pm-primary { margin-left: auto; }
.pm-host { color: var(--dim, #68748b); font-family: var(--mono, monospace); font-size: 11px; word-break: break-all; margin: 2px 0; }
.pm-badge, .pm-chip { font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 999px; border: 1px solid var(--line, #2a303b); color: var(--muted, #8e98ac); }
.pm-official { color: #7de9df; border-color: rgba(125, 233, 223, .5); }
.pm-community { color: #bc9cf7; border-color: rgba(188, 156, 247, .5); }
.pm-unverified { color: #e7c58a; border-color: rgba(231, 197, 138, .5); }
.pm-btn { all: unset; box-sizing: border-box; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; font-size: 12px; border-radius: 6px; border: 1px solid var(--line, #2a303b); cursor: pointer; color: var(--text, #e7eaf1); background: transparent; }
.pm-btn:hover { background: rgba(255, 255, 255, .06); }
.pm-btn[disabled] { opacity: .45; cursor: default; }
.pm-primary { border: 0; color: #0a0d14; font-weight: 600; background: linear-gradient(90deg, #7de9df, #bc9cf7); }
.pm-primary:hover { background: linear-gradient(90deg, #7de9df, #bc9cf7); filter: brightness(1.08); }
.pm-danger { color: var(--red, #f79b9b); border-color: rgba(247, 155, 155, .4); }
.pm-search { display: flex; gap: 6px; }
.pm-search input, .pm-field input, .pm-dialog > input { flex: 1; height: 28px; padding: 0 8px; font-size: 12.5px; border-radius: 6px; border: 1px solid var(--line, #2a303b); background: var(--bg, #080b10); color: var(--text, #e7eaf1); min-width: 0; box-sizing: border-box; }
.pm-field { display: block; margin: 8px 0; color: var(--muted, #8e98ac); }
.pm-field input { display: block; width: 100%; margin-top: 4px; }
.pm-tools { margin-top: 6px; }
.pm-tools summary { cursor: pointer; color: var(--muted, #8e98ac); font-size: 12px; }
.pm-tool { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line-soft, #252a35); }
.pm-toolname { flex: 1; min-width: 0; font-family: var(--mono, monospace); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-box select.pm-select { width: 132px; flex: none; min-width: 0; margin: 0; text-indent: 0; appearance: auto; height: 24px; font-size: 11.5px; border-radius: 6px; border: 1px solid var(--line, #2a303b); background: var(--bg, #080b10); color: var(--text, #e7eaf1); padding: 0 4px; }
.pm-switch { position: relative; display: inline-block; width: 30px; height: 16px; }
.pm-switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.pm-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--line, #2a303b); transition: background .15s; }
.pm-slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pm-switch input:checked + .pm-slider { background: linear-gradient(90deg, #7de9df, #bc9cf7); }
.pm-switch input:checked + .pm-slider::after { transform: translateX(14px); }
.pm-switch input:disabled { cursor: default; } .pm-switch input:disabled + .pm-slider { opacity: .4; }
.pm-dialog { width: min(440px, calc(100vw - 32px)); max-height: 86vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line, #2a303b); border-radius: 10px; background: var(--panel-soft, #191e28); color: var(--text, #e7eaf1); font-size: 12.5px; }
.pm-dialog::backdrop { background: rgba(5, 7, 13, .6); }
.pm-title { margin: 0 0 6px; font-size: 14px; }
.pm-sub { margin: 10px 0 4px; font-size: 12px; color: var(--muted, #8e98ac); font-weight: 600; }
.pm-where { margin: 2px 0 6px; word-break: break-all; }
.pm-where code { font-family: var(--mono, monospace); font-size: 11.5px; color: #7de9df; }
.pm-metarow { display: flex; gap: 6px; }
.pm-toollist { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; }
.pm-toollist li { padding: 3px 0; border-top: 1px solid var(--line-soft, #252a35); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.pm-toollist strong { font-family: var(--mono, monospace); font-size: 11.5px; }
.pm-hint { color: var(--dim, #68748b); font-size: 11.5px; margin: 6px 0; }
.pm-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
@media (max-width: 520px) { .pm-grid { grid-template-columns: 1fr; } }
