.radiografia-share-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(122, 194, 232, 0.28);
  border-radius: 8px;
  color: rgba(210, 247, 255, 0.94);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.radiografia-share-link:hover,
.radiografia-share-link:focus-visible {
  color: #fff;
  border-color: rgba(210, 247, 255, 0.58);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  outline: none;
}

.radiografia-share-link svg {
  width: 20px;
  height: 20px;
}

.radiografia-share-link::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(78% 6%, 92% 12%, 96% 26%, 90% 40%, 76% 45%, 63% 39%, 34% 55%, 63% 72%, 76% 66%, 90% 71%, 96% 85%, 90% 98%, 76% 100%, 63% 92%, 31% 73%, 21% 79%, 7% 75%, 0 62%, 5% 48%, 20% 43%, 31% 49%, 63% 31%, 62% 18%);
}

.radiografia-share-link:has(svg)::before {
  display: none;
}

.radiografia-share-link path,
.radiografia-share-link circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.latest-list > a[data-share-enhanced="true"] {
  position: relative;
  grid-template-columns: 160px 1fr auto 42px;
  padding-right: 1rem;
}

.latest-report-row {
  display: grid;
  grid-template-columns: 160px 1fr auto auto 42px;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1rem;
  border-radius: 8px;
  background: rgba(4, 54, 72, 0.96);
  border: 1px solid rgba(122, 194, 232, 0.24);
  color: #fff;
}

.latest-report-row time {
  color: #7ce3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latest-report-row span {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
}

.latest-report-row__graphs,
.latest-report-row__pdf {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(122, 194, 232, 0.28);
  border-radius: 8px;
  padding: 0 1rem;
  background: transparent;
  color: #7ce3ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.latest-report-row__graphs {
  border-color: rgba(232, 213, 176, 0.46);
  color: #fff;
  background: rgba(232, 213, 176, 0.1);
}

.latest-report-row__pdf--disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.latest-list .latest-report-row .radiografia-share-link {
  display: inline-grid !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  transform: none;
}

.latest-list .latest-report-row .radiografia-share-link svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
}

.latest-list .latest-report-row .radiografia-share-link::before {
  display: none !important;
}

.radiografia-share-link--list {
  justify-self: end;
}

.share-panel-open {
  overflow: hidden;
}

.share-panel[hidden] {
  display: none;
}

.share-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.share-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 20, 0.72);
  backdrop-filter: blur(8px);
}

.share-panel__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(122, 194, 232, 0.28);
  border-radius: 8px;
  background: #062233;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 45px rgba(124, 227, 255, 0.12);
  color: #fff;
  padding: 1.4rem;
}

.share-panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.share-panel__eyebrow {
  margin: 0 2.5rem 0.45rem 0;
  color: #7ce3ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-panel h2 {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.share-panel__title {
  margin: 0.85rem 0 1rem;
  color: rgba(230, 247, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.share-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.share-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(124, 227, 255, 0.42);
  border-radius: 8px;
  color: #001924;
  background: #7ce3ff;
  padding: 0.78rem 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.share-panel__button--ghost {
  color: #dff9ff;
  background: rgba(255, 255, 255, 0.07);
}

.share-panel__button--primary {
  width: 100%;
  margin-top: 0.15rem;
}

.share-panel__button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.share-panel__link-label,
.share-panel__form label {
  display: grid;
  gap: 0.35rem;
  color: rgba(230, 247, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(122, 194, 232, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 14, 21, 0.62);
  padding: 0.78rem 0.85rem;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.share-panel input:focus {
  border-color: rgba(124, 227, 255, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 227, 255, 0.14);
}

.share-panel__form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.share-panel__status {
  min-height: 1.2rem;
  margin: 0;
  color: #7ce3ff;
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .latest-list > a[data-share-enhanced="true"] {
    grid-template-columns: 1fr 42px;
  }

  .latest-list > a[data-share-enhanced="true"] time,
  .latest-list > a[data-share-enhanced="true"] span,
  .latest-list > a[data-share-enhanced="true"] strong {
    grid-column: 1;
  }

  .radiografia-share-link--list {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .latest-report-row {
    grid-template-columns: 1fr 42px;
    gap: 0.45rem 1rem;
  }

  .latest-report-row time,
  .latest-report-row span,
  .latest-report-row__graphs,
  .latest-report-row__pdf {
    grid-column: 1;
  }

  .share-panel {
    align-items: end;
    padding: 0;
  }

  .share-panel__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
    padding: 1.15rem;
  }

  .share-panel__actions {
    grid-template-columns: 1fr;
  }
}
