.tool-share {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tool-share-button {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(13, 27, 44, .82);
  box-shadow: 0 9px 28px rgba(0, 0, 0, .15);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tool-share-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: var(--cyan);
}

.tool-share-button:hover {
  border-color: rgba(98, 222, 246, .55);
  background: rgba(98, 222, 246, .08);
  transform: translateY(-1px);
}

.tool-share-button:focus-visible {
  outline: 3px solid rgba(98, 222, 246, .22);
  outline-offset: 3px;
}

.tool-share-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.tool-share-button[data-state="success"] {
  border-color: rgba(117, 224, 167, .5);
  color: #c9f7dd;
  background: rgba(117, 224, 167, .08);
}

.tool-share-status {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.tool-share-status:empty { display: none; }

.nav-actions .tool-share-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tool-share-button { min-height: 40px; padding-inline: 13px; }
  .nav-actions .tool-share-button { padding-inline: 12px; }
  .nav-actions .tool-share-button span { display: none; }
  .tool-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-share-button { transition: none; }
}

@media print {
  .tool-share { display: none !important; }
}
