.smart-share-dialog {
  width: min(100% - 2rem, 34rem);
  max-width: 34rem;
  max-height: min(90vh, 48rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 1.25rem;
  background: #0b1120;
  color: #e2e8f0;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}
.smart-share-dialog::backdrop {
  background: rgb(2 6 23 / 76%);
  backdrop-filter: blur(7px);
}
.smart-share-panel { padding: clamp(1.25rem, 5vw, 2rem); }
.smart-share-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.smart-share-heading h2 { margin: .2rem 0 0; color: #f8fafc; font-size: 1.5rem; line-height: 1.2; }
.smart-share-eyebrow { margin: 0; color: #a5b4fc; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.smart-share-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #334155;
  border-radius: .75rem;
  background: #111c32;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.5rem;
}
.smart-share-message {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #263247;
  border-radius: .85rem;
  background: #070d1a;
  color: #cbd5e1;
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.smart-share-networks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.smart-share-networks a, .smart-share-copy-row button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: .75rem;
  background: #111c32;
  color: #f8fafc;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.smart-share-networks a:hover, .smart-share-copy-row button:hover { border-color: #818cf8; background: #182440; }
.smart-share-networks a:focus-visible, .smart-share-copy-row button:focus-visible, .smart-share-close:focus-visible, .smart-share-copy-row input:focus-visible {
  outline: 3px solid #818cf8;
  outline-offset: 2px;
}
.smart-share-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; margin-top: .9rem; }
.smart-share-copy-row input {
  width: 100%;
  min-width: 0;
  padding: 0 .75rem;
  border: 1px solid #334155;
  border-radius: .75rem;
  background: #070d1a;
  color: #cbd5e1;
  font: inherit;
  font-size: .8rem;
}
.smart-share-copy-row button { padding: .5rem .85rem; background: #4f46e5; cursor: pointer; }
.smart-share-copy-row button:hover { background: #6366f1; }
.smart-share-privacy { margin: .85rem 0 0; color: #94a3b8; font-size: .75rem; line-height: 1.5; }
.smart-share-status { min-height: 1.25rem; margin: .4rem 0 0; color: #a5b4fc; font-size: .8rem; }
.smart-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: .6rem;
  background: #0b1120;
  color: #cbd5e1;
  padding: .5rem .85rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.smart-share-trigger:hover { border-color: #818cf8; color: #fff; }
.smart-share-trigger:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
.smart-share-toast {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: .8rem 1rem;
  border: 1px solid #334155;
  border-radius: .8rem;
  background: #111c32;
  color: #f8fafc;
  box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
  transition: opacity .16s ease, transform .16s ease;
}
.smart-share-toast.is-visible { opacity: 1; transform: translateY(0); }
[data-theme="light"] .smart-share-dialog {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 80px rgb(15 23 42 / 25%);
}
[data-theme="light"] .smart-share-dialog::backdrop { background: rgb(15 23 42 / 45%); }
[data-theme="light"] .smart-share-heading h2 { color: #0f172a; }
[data-theme="light"] .smart-share-message,
[data-theme="light"] .smart-share-copy-row input {
  border-color: #dbe3ee;
  background: #f8fafc;
  color: #334155;
}
[data-theme="light"] .smart-share-networks a,
[data-theme="light"] .smart-share-close {
  border-color: #dbe3ee;
  background: #f1f5f9;
  color: #1e293b;
}
[data-theme="light"] .smart-share-networks a:hover,
[data-theme="light"] .smart-share-close:hover { border-color: #818cf8; background: #eef2ff; }
[data-theme="light"] .smart-share-privacy { color: #64748b; }
[data-theme="light"] .smart-share-status { color: #4338ca; }
[data-theme="light"] .smart-share-toast {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 32px rgb(15 23 42 / 18%);
}
@media (max-width: 420px) {
  .smart-share-copy-row { grid-template-columns: 1fr; }
  .smart-share-copy-row input { min-height: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-share-networks a, .smart-share-copy-row button, .smart-share-toast { transition: none; }
}
