/* 分享成图：预览浮层 + 回复栏「分享图」按钮 + 多视角/大师页按钮。图本身由 canvas 画，不受这里影响。 */
.sc-root { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; flex-direction: column; background: #000; color: #F4F1EA; }
.sc-root.hidden { display: none !important; }
@media (min-width: 431px) { .sc-root { left: 50%; right: auto; width: 430px; transform: translateX(-50%); } }
.sc-top { flex: none; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; height: 52px; padding: 0 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.sc-title { margin: 0; text-align: center; font-size: 16px; font-weight: 700; }
.sc-close { justify-self: start; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #C9C4BB; font-size: 14px; cursor: pointer; }
.sc-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 16px 12px; text-align: center; }
.sc-stage { position: relative; width: min(100%, 390px); margin: 0 auto; min-height: 220px; }
.sc-img { display: block; width: 100%; height: auto; border-radius: 12px; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; touch-action: pan-y; background: #0B0C0E; }
.sc-img:not([src]) { visibility: hidden; height: 220px; }
.sc-busy { position: absolute; inset: 0; margin: 0; display: none; align-items: center; justify-content: center; color: #A7A39A; font-size: 14px; }
.sc-root.is-busy .sc-busy { display: flex; }
.sc-hint { margin: 18px 0 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.sc-sub { margin: 6px 0 0; font-size: 12.5px; color: #A7A39A; line-height: 1.5; }
.sc-actions { flex: none; display: flex; gap: 12px; justify-content: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.97); }
.sc-btn { flex: 1 1 0; max-width: 180px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.42); background: transparent; color: #F4F1EA; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sc-btn.sc-save { background: #F4F1EA; color: #0B0C0E; border-color: #F4F1EA; }
.sc-btn:disabled { opacity: 0.45; cursor: default; }
.sc-toast { position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(8px); max-width: 86%; padding: 9px 16px; border-radius: 12px; background: rgba(32, 30, 26, 0.96); border: 1px solid rgba(201, 169, 110, 0.4); color: #F4F1EA; font-size: 13.5px; line-height: 1.45; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.sc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sc-full { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; padding: 56px 12px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sc-full.hidden { display: none !important; }
.sc-full-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; touch-action: manipulation; background: #0B0C0E; }
.sc-full-hint { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: #F4F1EA; text-shadow: 0 1px 8px rgba(0,0,0,0.8); pointer-events: none; }
.sc-full-close { position: absolute; top: 8px; left: 8px; min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: #C9C4BB; font-size: 14px; cursor: pointer; }
html.sc-open, html.sc-open body { overscroll-behavior: none; }

/* 回复底部操作栏：细线圆角小按钮「分享图」，跟复制/点赞同一行 */
#chat .voice-row.act-row > .act-shareimg { order: 7; width: auto; min-width: 0; height: 28px; padding: 0 9px 0 7px; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; font-size: 11.5px; line-height: 1; white-space: nowrap; margin-left: 4px; display: inline-flex; align-items: center; }
#chat .voice-row.act-row > .act-shareimg svg { width: 15px; height: 15px; flex: none; }
#chat .voice-row.act-row > .act-shareimg .act-btn-txt { display: inline; }
@media (max-width: 374px) { #chat .voice-row.act-row > .act-shareimg { padding: 0 7px 0 6px; margin-left: 2px; } #chat .voice-row.act-row > .act-shareimg .act-btn-txt { font-size: 11px; } }

/* 多视角结果里的按钮 */
.lens-shareimg { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--hc2-border, rgba(255, 255, 255, 0.18)); background: transparent; color: var(--hc2-text, inherit); font-size: 13px; font-weight: 500; cursor: pointer; }
.lens-shareimg svg { flex: none; }
.council-share-img { }
