.guide-share {
  margin: 24px 0 32px;
  padding: 20px;
  border: 1px solid var(--line, #e1e6ef);
  border-radius: 14px;
  background: #f8faff;
  scroll-margin-top: 90px;
}
.guide-share-title { display: block; color: var(--navy, #152d93); font-size: 16px; }
.guide-share-description { margin: 6px 0 16px; color: #526075; font-size: 14px; }
.guide-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #d7dfed;
  border-radius: 9px;
  background: #fff;
  color: #243858;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.guide-share-button:hover { background: #edf3ff; border-color: #8facdf; }
.guide-share-button:focus-visible, .guide-share summary:focus-visible, .guide-share textarea:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; }
.guide-share-primary { border-color: #0b57d0; background: #0b57d0; color: #fff; }
.guide-share-primary:hover { background: #0847ae; color: #fff; }
.guide-share-naver { color: #08753b; }
.guide-share-button:disabled { opacity: .6; cursor: wait; }
.guide-share-preview { margin-top: 14px; font-size: 13px; }
.guide-share-preview summary { width: fit-content; min-height: 44px; padding: 10px 0; color: #526075; cursor: pointer; }
.guide-share-text { margin: 8px 0; padding: 14px; border-radius: 8px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; color: #39485c; }
.guide-share-hint, .guide-share-status { margin: 8px 0 0; color: #526075; font-size: 12px; }
.guide-share-status:empty { display: none; }
.guide-share-fallback { margin-top: 12px; }
.guide-share-fallback label { display: block; margin-bottom: 6px; font-size: 13px; }
.guide-share-fallback textarea { display: block; width: 100%; padding: 12px; border: 1px solid #8facdf; border-radius: 8px; background: #fff; color: #243858; font: inherit; font-size: 16px; resize: vertical; }
.guide-share-end { margin-top: 32px; text-align: center; }
.guide-share-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.guide-share-toolbar .eyebrow { flex: 1; min-width: 0; }
.guide-share-top { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid #d7dfed; border-radius: 10px; background: #fff; color: #39485c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.guide-share-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guide-share-top:hover { background: #f0f5ff; color: #0b57d0; }
.guide-share-top:focus-visible, .guide-share-close:focus-visible, .guide-share-url-row input:focus-visible { outline: 3px solid #0b57d0; outline-offset: 3px; }
.guide-share-dialog { width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid #e1e6ef; border-radius: 22px; background: #fff; color: #242424; box-shadow: 0 20px 80px #152d9333; }
.guide-share-dialog:not([open]) { display: none; }
.guide-share-dialog::backdrop { background: #101a3680; }
.guide-share-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.guide-share-dialog-header h2 { margin: 0; font-size: 24px; }
.guide-share-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #526075; font: inherit; font-size: 32px; line-height: 1; cursor: pointer; }
.guide-share-close:hover { background: #f0f5ff; }
.guide-share-dialog .guide-share { margin: 0; padding: 0; border: 0; background: transparent; }
.guide-share-dialog .guide-share-title, .guide-share-dialog .guide-share-link-button { display: none; }
.guide-share-dialog .guide-share-description { margin: 0 0 20px; }
.guide-share-dialog .guide-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-share-dialog .guide-share-actions .guide-share-button { min-height: 64px; padding: 12px; font-size: 14px; text-align: center; }
.guide-share-url-row { display: flex; align-items: stretch; margin-top: 20px; }
.guide-share-url-row input { flex: 1; min-width: 0; padding: 12px; border: 1px solid #d7dfed; border-right: 0; border-radius: 10px 0 0 10px; background: #f8faff; color: #0b57d0; font: inherit; font-size: 16px; text-overflow: ellipsis; }
.guide-share-url-row .guide-share-button { flex: 0 0 auto; border-radius: 0 10px 10px 0; }
@media (max-width: 640px) {
  .guide-share { padding: 16px; }
  .guide-share-actions > .guide-share-button { flex: 1 1 calc(50% - 8px); }
  .guide-share-dialog { padding: 20px; border-radius: 18px; }
  .guide-share-toolbar { gap: 8px; }
  .guide-share-top { gap: 5px; padding: 8px 10px; }
}
@media print { .guide-share, .guide-share-end, .guide-share-top, .guide-share-dialog { display: none; } }
