/* Share button next to "Help & display" in the home header, plus its dialog (links + classroom QR). */
.hub-home-refresh .home-brand .top-controls > .share-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #d7dce3;border-radius:12px;background:#fff;color:#252b37;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.hub-home-refresh .home-brand .top-controls > .share-btn:hover{border-color:#8b5cf6;background:#f7f3ff;color:#56339f}
.hub-home-refresh .home-brand .top-controls > .share-btn:focus-visible,.share-dialog button:focus-visible,.share-dialog a:focus-visible{outline:3px solid #8b5cf6;outline-offset:3px}
.share-btn svg{width:18px;height:18px;display:block}
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .share-btn{background:#141c2c;border-color:#2e3c56;color:#f8fafc}
html[data-theme="dark"] .hub-home-refresh .home-brand .top-controls > .share-btn:hover{background:#1c2740;border-color:#8b5cf6}
.share-dialog{width:min(94vw,640px);max-height:92vh;overflow:auto;background:#fff;color:#151b24;border:1px solid #d7dce3;border-radius:18px;padding:22px;box-shadow:0 24px 70px #0006}
.share-dialog::backdrop,.qr-big::backdrop{background:#0b0f1aea}
html[data-theme="dark"] .share-dialog{background:#141c2c;color:#f8fafc;border-color:#2e3c56}
.share-top{position:relative;text-align:center;margin-bottom:16px;padding:0 48px}
.share-top h2{margin:0 0 4px;font-size:clamp(20px,3.4vw,26px);letter-spacing:-.5px}
.share-top p{margin:0;font-size:14px;color:#657080}
html[data-theme="dark"] .share-top p{color:#b8c2d4}
.share-close{position:absolute;top:0;right:0;background:none;border:1px solid #d7dce3;color:inherit;border-radius:10px;min-width:44px;min-height:44px;font-size:22px;line-height:1;cursor:pointer}
html[data-theme="dark"] .share-close{border-color:#2e3c56}
.share-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.share-card{border:1px solid #d7dce3;border-radius:14px;padding:16px;background:linear-gradient(125deg,#fff 52%,#35d8c214)}
html[data-theme="dark"] .share-card{border-color:#2e3c56;background:#1a2337}
.share-card h3{font-size:17px;margin:0 0 12px}
.share-qr{display:block;width:min(100%,200px);aspect-ratio:1;margin:0 auto 12px;background:#fff;border-radius:12px;padding:4px;border:1px solid #d7dce3}
.share-qr img{display:block;width:100%;height:100%}
.share-qr-btn,.share-item{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:100%;min-height:44px;padding:0 16px;margin:0 0 8px;background:#fff;border:1px solid #d7dce3;border-radius:12px;color:#252b37;font:inherit;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer}
.share-qr-btn{justify-content:center}
.share-qr-btn:hover,.share-item:hover{border-color:#8b5cf6;background:#f7f3ff;color:#56339f}
html[data-theme="dark"] .share-qr-btn,html[data-theme="dark"] .share-item{background:#141c2c;border-color:#2e3c56;color:#f8fafc}
html[data-theme="dark"] .share-qr-btn:hover,html[data-theme="dark"] .share-item:hover{background:#1c2740;border-color:#8b5cf6}
.share-status{min-height:18px;margin:6px 2px 0;font-size:13px;color:#117a70}
html[data-theme="dark"] .share-status{color:#6ee7d8}
.qr-big{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#fff;align-items:center;justify-content:center;cursor:pointer}
.qr-big[open]{display:flex}
.qr-big img{width:min(88vh,88vw);height:min(88vh,88vw);display:block}
@media (max-width:640px){.share-grid{grid-template-columns:1fr}.share-dialog{padding:16px 14px}}
@media (forced-colors:active){.share-dialog,.share-card,.share-item,.share-qr-btn,.share-close,.share-btn{border:1px solid CanvasText}.share-btn svg{stroke:currentColor}}
