/* The Share button (share.js): last in the column of body tools at the stage's end edge — under Whole body
   (body-tools.css), in the same rounded square. Phones place it in phone.css. Its menu opens beside it. */
.shr { position: absolute; z-index: 3; top: 166px; inset-inline-end: 12px; }
.shr.open { z-index: 30; } /* its menu drops over the Meridians panel below the tool column */
.shr-btn { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 1px solid var(--bt-line, var(--line)); border-radius: 12px;
  background: color-mix(in srgb, var(--bt-card, #fff) 94%, transparent); backdrop-filter: blur(8px); color: var(--bt-ink, var(--ink));
  box-shadow: 0 4px 14px #0000001f; cursor: pointer; transition: transform .12s, border-color .15s, color .15s; }
.shr-btn:hover, .shr.open .shr-btn { border-color: var(--bt-acc, var(--indigo)); color: var(--bt-acc, var(--indigo)); }
.shr-btn:active { transform: scale(.94); }
.shr-btn:focus-visible { outline: 2px solid var(--bt-acc, var(--indigo)); outline-offset: 2px; }
.shr-menu svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shr-menu { position: absolute; top: 0; inset-inline-end: calc(100% + 8px); display: flex; flex-direction: column; min-width: 160px; padding: 6px; border: 1px solid var(--line, #d7dbe6);
  border-radius: 14px; background: var(--d-panel, #fff); box-shadow: 0 8px 28px #0004; }
.shr-menu[hidden] { display: none; }
.shr-menu :is(a, button) { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink, #1c2033);
  font: 600 14px "Plus Jakarta Sans", Heebo, system-ui, sans-serif; text-align: start; text-decoration: none; cursor: pointer; }
.shr-menu :is(a, button):hover { background: var(--d-soft, #eef0ff); }

/* The small Share buttons beside one thing (share-btn.js); "Link copied" shows under one for a moment. */
.shr-in { position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--d-panel, #fff); color: var(--ink); cursor: pointer; }
.shr-in:hover { border-color: var(--indigo); color: var(--indigo); }
.shr-in svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.shr-in[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 9; padding: 4px 8px; border-radius: 6px; background: #1b1f27; color: #fff;
  font: 600 12px "Plus Jakarta Sans", Heebo, system-ui, sans-serif; white-space: nowrap; }
#learnPanel .lbar .shr-in { margin-inline-start: auto; }
#quizPanel .qz-card { position: relative; }
#quizPanel .qz-card > button.shr-in { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--d-panel, #fff); }
#methodPanel .m-sh { display: grid; position: relative; z-index: 3; margin: 0 0 -30px; margin-inline: auto 40px; }
.pdet { position: relative; }
.pdet .pdet-sh { position: absolute; inset-block-start: 8px; inset-inline-end: 44px; z-index: 1; }
.pdet .pdet-sh.solo { inset-inline-end: 8px; }
.stage .flow-in-sh { position: absolute; top: 18px; inset-inline-end: 64px; z-index: 7; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #1b1f27cc; color: #fff; }
.stage .flow-in-sh:hover { background: #1b1f27; color: #fff; }
/* The same menu, floating under a small Share button (share.js). */
.shr-menu.shr-float { position: fixed; z-index: 60; }
/* In a lesson's bar: a square as tall as "All lessons" beside it. */
#learnPanel .lbar .shr-in { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 10px; color: var(--indigo); }
#learnPanel .lbar .shr-in svg { width: 18px; height: 18px; }
