html.yb-copy-protected.yb-cp-text-select body,
html.yb-copy-protected.yb-cp-text-select body * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
html.yb-copy-protected.yb-cp-text-select.yb-cp-allow-forms :is(input,textarea,select,[contenteditable]:not([contenteditable="false"]),[role="textbox"]),
html.yb-copy-protected.yb-cp-text-select.yb-cp-allow-forms :is([contenteditable]:not([contenteditable="false"]),[role="textbox"]) *,
html.yb-copy-protected.yb-cp-text-select [data-yb-copy-allow],
html.yb-copy-protected.yb-cp-text-select [data-yb-copy-allow] *,
html.yb-copy-protected.yb-cp-text-select :is(share-button,.share-button,.yb-hero-share-btn,input[readonly],textarea[readonly]),
html.yb-copy-protected.yb-cp-text-select :is(share-button,.share-button,.yb-hero-share-btn) * {
  -webkit-user-select: text !important;
  user-select: text !important;
}
html.yb-copy-protected.yb-cp-image-drag img {
  -webkit-user-drag: none;
}
html.yb-copy-protected.yb-cp-image-callout :is(img,picture) {
  -webkit-touch-callout: none;
}
html.yb-copy-protected [data-yb-copy-allow] img,
html.yb-copy-protected img[data-yb-copy-allow] {
  -webkit-user-drag: auto;
  -webkit-touch-callout: default;
}
.yb-copy-protection-notice {
  position: fixed;
  z-index: 2147483646;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: #14334b;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  font: 500 14px/1.6 system-ui, sans-serif;
  overflow-wrap: anywhere;
  text-align: center;
  pointer-events: none;
}
.yb-copy-protection-notice[hidden] { display: none !important; }
.yb-copy-protection-watermark {
  position: fixed;
  inset: 0;
  z-index: 2147483643;
  pointer-events: none;
  background-repeat: repeat;
}
.yb-copy-protection-shield {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #334155;
  font: 500 18px/1.6 system-ui, sans-serif;
  pointer-events: none;
}
.yb-copy-protection-shield[hidden] { display: none !important; }
@media print {
  html.yb-copy-protected.yb-cp-print-content body { display: none !important; }
  html.yb-copy-protected.yb-cp-print-content::after {
    display: block !important;
    content: '此頁面已啟用防抄保護，無法列印內容。';
    color: #111;
    background: #fff;
    font: 16px/1.6 sans-serif;
  }
  .yb-copy-protection-notice,
  .yb-copy-protection-watermark,
  .yb-copy-protection-shield { display: none !important; }
}
