/* Secondary room action, matching dark-neon's 4px rhythm. No floating table UI. */
.room-share-slot { margin: 0; min-width: 0; }
.room-share-slot[hidden], .room-share-dismiss[hidden] { display: none !important; }
.room-share-row { display: flex; align-items: center; gap: 8px; padding: 4px 12px; min-height: 48px; border-bottom: 1px solid var(--line, #242424); background: var(--surface, #151515); color: var(--ink, #fff); font-family: var(--sans, system-ui, sans-serif); }
.room-share-copy { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.room-share-hint { color: var(--ink-2, #8a8a8a); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.is-waiting .room-share-hint { color: var(--ink, #fff); }
.room-share-action, .room-share-dismiss, .room-share-dialog button { font: 600 13px/1.35 var(--sans, system-ui, sans-serif); min-height: 44px; border: 1px solid var(--line, #242424); color: var(--ink, #fff); background: transparent; cursor: pointer; transition: transform 120ms var(--ease, ease-out), background 120ms var(--ease, ease-out); }
.room-share-action { flex: none; max-width: 45%; padding: 8px 12px; border-radius: var(--r-pill, 999px); overflow-wrap: anywhere; }
.room-share-dismiss { flex: none; width: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; font-size: 22px; color: var(--ink-2, #8a8a8a); }
.room-share-action:hover:not(:disabled), .room-share-dismiss:hover, .room-share-dialog button:hover:not(:disabled) { background: var(--surface-2, #1c1c1c); }
.room-share-action:active:not(:disabled), .room-share-dialog button:active:not(:disabled) { transform: scale(.98); }
.room-share-action:focus-visible, .room-share-dismiss:focus-visible, .room-share-dialog button:focus-visible { outline: 2px solid var(--neon, #e5ff3d); outline-offset: 2px; }
.room-share-action:disabled, .room-share-dialog button:disabled { opacity: .45; cursor: default; }
.room-share-dialog { box-sizing: border-box; width: min(360px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line, #242424); border-radius: var(--r-sheet, 24px); background: var(--surface, #151515); color: var(--ink, #fff); font-family: var(--sans, system-ui, sans-serif); }
.room-share-dialog::backdrop { background: rgb(0 0 0 / .65); }
.room-share-dialog h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.room-share-dialog p { margin: 0; color: var(--ink-2, #8a8a8a); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.room-share-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.room-share-dialog button { min-height: 48px; padding: 12px; border-radius: var(--r-pill, 999px); overflow-wrap: anywhere; }
.room-share-dialog .room-share-confirm { background: var(--neon, #e5ff3d); border-color: transparent; color: var(--neon-ink, #0a0a0a); }
.room-share-dialog .room-share-confirm:hover:not(:disabled) { background: var(--gold-deep, #c8e02c); }
@media (max-width: 360px) { .room-share-row { gap: 4px; padding-inline: 8px; } .room-share-action { padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .room-share-action, .room-share-dialog button { transition: none; transform: none !important; } }
/* 邀请好友(2026-11-02):分享条多一颗「邀请好友」,点开是底部弹出的分享选单。颜色跟着当下的主题变量走(牛牛白底也对),
 * 只有 Telegram 蓝、WhatsApp 绿是品牌色。 */
.room-share-action[hidden] { display: none !important; }
.invite-share { box-sizing: border-box; width: 100%; max-width: min(480px, 100%); max-height: 100%; margin: auto auto 0; padding: 0; border: 0; background: transparent; color: var(--ink, #fff); font-family: var(--sans, system-ui, sans-serif); overflow: visible; }
.invite-share::backdrop { background: rgb(0 0 0 / .6); }
.invite-share-sheet { padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line, #242424); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--surface, #151515); animation: invite-share-up 220ms var(--ease, cubic-bezier(.2, .8, .2, 1)); }
@keyframes invite-share-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.invite-share-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invite-share h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.invite-share-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2, #8a8a8a); cursor: pointer; }
.invite-share-x svg { width: 20px; height: 20px; }
.invite-share-body { margin: 0 0 16px; color: var(--ink-2, #8a8a8a); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.invite-share-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; }
.invite-share-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 88px; padding: 8px 2px; border: 0; border-radius: 16px; background: transparent; color: var(--ink, #fff); font: 600 12px/1.3 var(--sans, system-ui, sans-serif); cursor: pointer; transition: transform 120ms var(--ease, ease-out), background 120ms var(--ease, ease-out); }
.invite-share-opt:active { transform: scale(.96); background: var(--surface-2, #1c1c1c); }
.invite-share-opt:focus-visible, .invite-share-x:focus-visible { outline: 2px solid var(--ink, #fff); outline-offset: 2px; }
.invite-share-label { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.invite-share-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.invite-share-ico svg { width: 26px; height: 26px; }
.invite-share-ico.is-tg { background: #229ed9; color: #fff; }
.invite-share-ico.is-tg svg, .invite-share-ico.is-wa svg { width: 30px; height: 30px; }
.invite-share-ico.is-wa { background: #25d366; color: #fff; }
.invite-share-ico.is-plain { background: var(--surface-2, #1c1c1c); color: var(--ink, #fff); box-shadow: inset 0 0 0 1px var(--line, #242424); }
.invite-share-link { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #1c1c1c); color: var(--ink-2, #8a8a8a); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.invite-share-copybuf { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .invite-share-sheet { animation: none; } .invite-share-opt { transition: none; transform: none !important; } }
