/* PM Skills extension UI — scoped with #pm-skills-* ids to avoid clashing with host pages */
#pm-skills-launcher {
  position: fixed; right: 18px; bottom: 92px; z-index: 2147483646;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: #d97757; color: #fff; font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .12s ease, box-shadow .12s ease;
}
#pm-skills-launcher:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
#pm-skills-launcher span { font-size: 15px; }

#pm-skills-panel {
  position: fixed; right: 18px; bottom: 138px; z-index: 2147483646;
  width: 380px; max-width: calc(100vw - 36px); max-height: 70vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: #1c1c1c; border: 1px solid #e4e4e7; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28); font: 13px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  #pm-skills-panel { background: #1f1f23; color: #ececf1; border-color: #34343a; }
  #pm-skills-panel .pm-search { background: #2a2a30; color: #ececf1; border-color: #3a3a42; }
  #pm-skills-panel .pm-row:hover { background: #2a2a30; }
  #pm-skills-panel .pm-bundle { background: #3a2a24; color: #f0b59e; }
  #pm-skills-panel .pm-foot, #pm-skills-panel .pm-desc { color: #a1a1aa; }
}
#pm-skills-panel .pm-panel-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(128,128,128,.18);
}
#pm-skills-panel .pm-count { font-size: 11px; color: #888; margin-left: auto; }
#pm-skills-panel .pm-close { border: none; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
#pm-skills-panel .pm-close:hover { opacity: 1; }
#pm-skills-panel .pm-search {
  margin: 10px 14px 6px; padding: 9px 11px; border: 1px solid #e4e4e7; border-radius: 9px;
  font: inherit; outline: none;
}
#pm-skills-panel .pm-search:focus { border-color: #d97757; box-shadow: 0 0 0 3px rgba(217,119,87,.18); }
#pm-skills-panel .pm-list { overflow-y: auto; padding: 4px 8px 8px; }
#pm-skills-panel .pm-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left;
  padding: 9px 10px; border: none; background: none; border-radius: 9px; cursor: pointer; color: inherit;
}
#pm-skills-panel .pm-row:hover { background: #f5f5f7; }
#pm-skills-panel .pm-title { font-weight: 600; }
#pm-skills-panel .pm-bundle {
  justify-self: end; align-self: start; font-size: 10px; font-weight: 600; text-transform: capitalize;
  background: #fbeae3; color: #b95a38; padding: 2px 7px; border-radius: 999px;
}
#pm-skills-panel .pm-desc { grid-column: 1 / -1; font-size: 11.5px; color: #666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pm-skills-panel .pm-empty { padding: 18px; text-align: center; color: #999; }
#pm-skills-panel .pm-foot { padding: 9px 14px; border-top: 1px solid rgba(128,128,128,.18); font-size: 11px; color: #777; }
#pm-skills-panel .pm-foot a { color: #d97757; text-decoration: none; }

#pm-skills-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px); z-index: 2147483647;
  background: #1c1c1c; color: #fff; padding: 10px 16px; border-radius: 10px; font: 500 13px system-ui, sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#pm-skills-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
