/* Плагины: значки в боковой панели, палитра команд, уведомления, окна и настройки. */
#plugin-ribbon { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 4px; }
#plugin-status { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 8px; }
#plugin-status:empty { display: none; }

#plugin-palette { width: min(560px, 94vw); margin-top: 10vh; }
#plugin-palette-input { width: 100%; }
#plugin-palette-list { max-height: 55vh; overflow-y: auto; margin-top: 8px; }

#plugin-notices { position: fixed; inset: 12px 12px auto auto; margin: 0; padding: 0; border: 0; background: none; color: var(--text); overflow: visible; max-width: min(360px, 90vw); }
#plugin-notices:popover-open { display: flex; flex-direction: column; gap: 6px; }
#plugin-notices:empty { display: none; }
.plugin-notice { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; box-shadow: var(--shadow); font-size: 14px; white-space: pre-wrap; cursor: pointer; }

.plugin-modal { width: min(620px, 94vw); max-height: 86vh; }
.plugin-modal-close { float: right; }
.plugin-modal-title { font-size: 16px; margin: 4px 0 12px; }
.plugin-modal-title:empty { margin: 0; }

.setting-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.setting-item-info { flex: 1; min-width: 0; }
.setting-item-control { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 60%; }
.setting-item-heading { font-weight: 600; }
.setting-item.is-disabled { opacity: .5; }
.setting-textarea { resize: vertical; min-width: 220px; }
.setting-toggle, .plugin-toggle { width: 18px; height: 18px; accent-color: var(--accent); }

.plugin-item + .plugin-item { border-top: 1px solid var(--line); }
.plugin-name small { margin-left: 8px; }
.plugin-error { font-size: 13px; overflow-wrap: anywhere; }
.plugin-rendered { display: contents; }

@media (max-width: 760px) {
  #plugin-ribbon { order: -1; justify-content: center; }
  #plugin-status { display: none; }
}
