/* 宿寫 InnPen：分享面板（作者網站與寫作台共用；不跟版型或主題配色，固定中性樣子，各社群用自己的品牌色圖示） */
.sp-dim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 90; }
.sp-sheet {
  position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; background: #fff; color: #1d1d1d;
  border-radius: 18px 18px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  font: 14px/1.4 "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; max-height: 90vh; overflow-y: auto;
}
.sp-dim[hidden], .sp-sheet[hidden], .sp-toast[hidden] { display: none; }
.sp-grab { width: 40px; height: 4px; border-radius: 4px; background: #d6d1ca; margin: 0 auto 12px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.sp-head h2 { font-size: 1.05rem; margin: 0; color: #1d1d1d; }
.sp-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1EEE9; color: #1d1d1d; cursor: pointer; display: grid; place-items: center; }
.sp-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sp-tip { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #EAF6F6; font-size: 13px; }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.sp-opt { display: grid; justify-items: center; gap: 6px; font: inherit; font-size: 12px; color: #1d1d1d; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: center; border-radius: 12px; }
.sp-opt:focus-visible { outline: 3px solid #1780c3; outline-offset: 2px; }
.sp-opt i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 15px/1 system-ui, sans-serif; font-style: normal; }
.sp-opt i svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-opt i.sp-neutral { background: #F1EEE9; color: #1d1d1d; }
.sp-opt i.sp-neutral svg { stroke: #1d1d1d; }
.sp-toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(92vw, 420px); background: #1d1d1d; color: #fff; border-radius: 12px; padding: 12px 14px;
  font: 14px/1.5 "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.sp-toast b { display: block; }
@media (min-width: 700px) {
  .sp-sheet { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: 460px; border-radius: 18px; padding: 22px 24px 24px; }
  .sp-grab { display: none; }
  .sp-grid { grid-template-columns: repeat(6, 1fr); }
}
