/* Lesson-only selection. The existing copy/cut/download/print guards remain active. */
#ekhtebarLearningReader #ekhtebarLearningBody,
#ekhtebarLearningReader #ekhtebarLearningBody *:not(button):not(input):not(textarea) {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -webkit-touch-callout: none !important;
}
#ekhtebarLearningBody .ek-style-bold { font-weight: 800 !important; }
#ekhtebarLearningBody .ek-style-underline { text-decoration-line: underline !important; text-underline-offset: .15em; }
.ek-style-popover {
    position: fixed; z-index: 1200; box-sizing: border-box;
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    width: max-content; max-width: calc(100vw - 16px); padding: 6px;
    background: #fff; color: #0f172a; border: 1px solid #cbd5e1;
    border-radius: 12px; box-shadow: 0 8px 28px rgba(15,23,42,.22);
    direction: rtl; font: 13px/1.5 system-ui, Tahoma, sans-serif;
}
.ek-style-popover[hidden] { display: none !important; }
.ek-style-popover button { cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #111827; min-width: 34px; height: 34px; border-radius: 8px; padding: 3px 8px; }
.ek-style-popover button:focus-visible, .ek-style-popover input:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.ek-style-popover button[data-color] { color: var(--dot); font-size: 23px; line-height: 1; }
.ek-style-popover .ek-style-scope { white-space: nowrap; padding: 2px 6px; font-size: 11px; color: #475569; }
.ek-style-popover .ek-style-custom { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; }
.ek-style-popover input[type="color"] { width: 32px; height: 32px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 6px; }
.ek-style-popover .ek-style-state { min-width: 0; font-size: 11px; color: #475569; }
@media (max-width: 480px) {
  .ek-style-popover { gap: 3px; padding: 5px; border-radius: 10px; }
  .ek-style-popover button { min-width: 37px; height: 39px; padding: 3px 7px; }
  .ek-style-popover .ek-style-scope { width: 100%; }
}
