/* 결과 공유 버튼(요약 상자 오른쪽 위)과 공유 시트. 색은 style.css 의 변수를 따른다. */
#summary{padding-right:92px}
@media (min-width:761px){#summary{position:relative}}  /* 좁은 화면에서는 style.css 의 sticky 가 이미 기준 위치가 된다 */
.sharebtn{position:absolute;top:10px;right:10px;min-height:36px;padding:0 13px;border:1px solid var(--accent);border-radius:999px;background:transparent;color:var(--accent);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.sharebtn:hover,.sharebtn:focus-visible{background:var(--accent);color:#fff}
@media (prefers-color-scheme:dark){.sharebtn:hover,.sharebtn:focus-visible{color:#0b1220}}
.sheet{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,14,20,.66);backdrop-filter:blur(3px);overflow-y:auto}
.sheet [hidden]{display:none!important}
.sheet-card{width:100%;max-width:420px;max-height:100%;overflow-y:auto;background:var(--card);color:var(--text);border-radius:14px;padding:14px 14px 12px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.sheet-img{margin:0 0 12px;min-height:120px;display:flex;align-items:center;justify-content:center}
.sheet-img img{display:block;width:100%;max-height:56vh;max-height:56dvh;object-fit:contain;border-radius:10px;background:#0e1a2e}
.sb{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0 0 8px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer}
.sb-main{border:0;background:var(--accent);color:#fff;min-height:52px;font-size:16px}
.sb-ghost{background:transparent;font-weight:600;min-height:44px}
.sb-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sb-row .sb{margin:0 0 8px}
.sheet .hint{margin:4px 2px 0;text-align:center}
@media (prefers-color-scheme:dark){.sb-main{color:#0b1220}}
@media (max-width:760px){
  .sharebtn{min-height:40px;top:6px}
  .sheet{align-items:flex-end;padding:0}
  .sheet-card{max-width:none;border-radius:18px 18px 0 0;padding:14px 14px calc(12px + env(safe-area-inset-bottom,0px));max-height:100dvh}
}
