#paihaowuPanel {
  position: fixed; z-index: 71; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #dfe4ed; border-radius: 8px;
  box-shadow: 0 14px 40px rgba(20, 28, 48, .24); overflow: hidden;
}
#paihaowuPanel[hidden] { display: none; }
.phw-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px; padding: 9px 10px; border-bottom: 1px solid #e7eaf0;
  cursor: move; user-select: none; touch-action: none;
}
.phw-head strong { color: #2b6de8; font-size: 14px; }
.phw-actions { display: flex; gap: 4px; }
.phw-actions a { text-decoration: none; display: inline-flex; align-items: center; }
.phw-toolbar { display: flex; gap: 5px; flex-wrap: wrap; padding: 7px 10px; border-bottom: 1px solid #e7eaf0; }
.phw-head, .phw-toolbar, .phw-status { flex: 0 0 auto; }
.phw-status { padding: 6px 10px; color: #8a641c; font-size: 12px; }
#paihaowuFrame { display: block; width: 100%; flex: 1 1 0; min-height: 0; border: 0; background: #fff; }
.phw-resize {
  position: absolute; right: 0; bottom: 0; width: 22px; height: 22px;
  cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #9badc8 51%, #9badc8 57%, transparent 58%, transparent 68%, #9badc8 69%, #9badc8 75%, transparent 76%);
}
#paihaowuPanel.phw-expanded { inset: 12px; }
.phw-expanded .phw-head { cursor: default; }
.phw-expanded .phw-resize { display: none; }
.phw-return, .phw-switch { display: none; }
body.yt-moving #paihaowuFrame, body.yt-float-resizing #paihaowuFrame, body.yt-resizing #paihaowuFrame { pointer-events: none; }
@media (max-width: 700px) {
  body.phw-open { overflow: hidden; }
  #paihaowuPanel, #paihaowuPanel.phw-expanded {
    inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0;
  }
  .phw-head { cursor: default; }
  .phw-desktop, .phw-resize { display: none; }
  .phw-switch, body.phw-open .phw-return { display: inline-flex; }
  body.phw-open .yt-dock-head { flex-wrap: wrap; }
  body.phw-open .yt-dock-head-actions { flex-wrap: wrap; }
}
