/* Student DZ — discreet page sharing controls */
.student-share-tools{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:100%;margin:14px auto 20px;padding:0 12px;box-sizing:border-box;position:relative;z-index:2;direction:rtl}
.student-share-tools *{box-sizing:border-box}
.student-share-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 20px;border:1px solid #b91c1c;border-radius:999px;background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;font-weight:700;font-size:1rem;line-height:1.25;font-family:inherit;box-shadow:0 3px 10px rgba(185,28,28,.16);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;animation:student-share-pulse 1.25s ease-out 2}
.student-share-button:hover{color:#fff;background:linear-gradient(135deg,#c81e1e,#991b1b);box-shadow:0 5px 14px rgba(185,28,28,.23);transform:translateY(-1px)}
.student-share-button:active{transform:scale(.97)}
.student-share-button:focus-visible,.student-share-help:focus-visible{outline:3px solid var(--primary-light,#00a680);outline-offset:3px}
.student-share-button svg{width:18px;height:18px;flex:0 0 18px}
.student-share-help-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.student-share-help{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dc6262;border-radius:50%;background:var(--bg-card,#fff);color:#c62828;font-weight:800;font-size:1.25rem;line-height:1;font-family:inherit;cursor:pointer;box-shadow:0 2px 8px rgba(185,28,28,.1);transition:background .18s ease,color .18s ease,transform .18s ease}
.student-share-help:hover,.student-share-help[aria-expanded="true"]{background:#b91c1c;color:#fff;transform:translateY(-1px)}
.student-share-tip{position:absolute;z-index:1002;top:calc(100% + 10px);inset-inline-end:0;width:min(290px,calc(100vw - 32px));padding:12px 14px;border:1px solid var(--border-color,#e0e0e0);border-radius:12px;background:var(--bg-card,#fff);color:var(--text-main,#2c3e50);box-shadow:0 8px 24px rgba(0,0,0,.14);font-size:.92rem;line-height:1.65;text-align:right;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;pointer-events:none}
.student-share-tip::before{content:"";position:absolute;top:-6px;inset-inline-end:14px;width:10px;height:10px;border-top:1px solid var(--border-color,#e0e0e0);border-inline-start:1px solid var(--border-color,#e0e0e0);background:var(--bg-card,#fff);transform:rotate(45deg)}
.student-share-tip.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.student-share-tip strong{display:block;margin-bottom:3px;color:var(--primary-color,#007a5e);font-weight:800}
.student-share-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-theme="dark"] .student-share-help{background:var(--bg-card,#1e1e1e);color:#ff7777;border-color:#b84b4b}
[data-theme="dark"] .student-share-help:hover,[data-theme="dark"] .student-share-help[aria-expanded="true"]{background:#b91c1c;color:#fff}
@keyframes student-share-pulse{0%,100%{box-shadow:0 3px 10px rgba(185,28,28,.16)}50%{box-shadow:0 0 0 6px rgba(220,38,38,.12),0 5px 15px rgba(185,28,28,.22)}}
@media(hover:hover) and (pointer:fine){.student-share-help-wrap:hover .student-share-tip,.student-share-help-wrap:focus-within .student-share-tip{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}}
@media(max-width:480px){.student-share-tools{gap:8px;margin:12px auto 16px;padding-inline:8px}.student-share-button{min-height:42px;padding:10px 16px;font-size:.94rem}.student-share-help{width:40px;height:40px}.student-share-tip{inset-inline-end:-2px;width:min(270px,calc(100vw - 28px));font-size:.88rem}}
@media(prefers-reduced-motion:reduce){.student-share-button{animation:none!important;transition:none}.student-share-help,.student-share-tip{transition:none}}
