.home-share-trigger { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.home-share-trigger:hover { color: var(--accent); border-color: var(--accent); }
.home-share-dialog { position: fixed; left: max(16px, var(--share-left)); top: max(16px, var(--share-top)); width: min(328px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: 0; padding: 18px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 48px #0003; }
.home-share-dialog::backdrop { background: #0005; }
.home-share-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.home-share-head h2 { margin: 0; font: 700 18px/1.35 var(--font-serif); }
.home-share-head button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 22px; }
.home-share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.home-share-options a, .home-share-options button { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 700; }
.home-share-options [hidden] { display: none; }
.home-share-wechat { display: grid; justify-items: center; gap: 5px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.home-share-wechat img { width: 156px; height: 156px; background: white; }
.home-share-url { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.home-share-url input { width: 100%; min-height: 38px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; }
.home-share-status { display: block; min-height: 22px; margin-top: 6px; color: var(--forest); font-size: 12px; }
@media (max-width: 640px) {
  .home-share-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: min(85dvh, 640px); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 6px 6px 0 0; }
}
