.inventory-history-actor-link {
  appearance: none;
  border: 0;
  padding: 0;
  color: #00c8f0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.inventory-history-actor-link:hover,
.inventory-history-actor-link:focus-visible {
  color: #6ce7ff;
  text-decoration-color: currentColor;
}

.actor-contribution-dialog {
  width: min(92vw, 660px);
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(107, 231, 255, .22);
  border-radius: 24px;
  color: #f5f8ff;
  background: #0a0f2c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .56);
  overflow: hidden;
}

.actor-contribution-dialog::backdrop {
  background: rgba(2, 5, 18, .72);
  backdrop-filter: blur(9px);
}

.actor-contribution-shell {
  max-height: inherit;
  overflow: auto;
}

.actor-contribution-shell > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: rgba(10, 15, 44, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.actor-contribution-shell header span,
.actor-contribution-section h3 {
  color: #7f8aa8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.actor-contribution-shell h2,
.actor-contribution-section h3,
.actor-contribution-shell p { margin: 0; }
.actor-contribution-shell h2 { margin-top: 4px; font: 700 1.35rem/1.15 "Syne", sans-serif; }
.actor-contribution-shell header button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); font-size: 1.45rem; cursor: pointer; }

.actor-contribution-summary { display: flex; align-items: center; gap: 14px; padding: 22px 22px 10px; }
.actor-contribution-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: #04101c; background: linear-gradient(135deg, #00c8f0, #77f0ff); font: 800 1rem "Syne", sans-serif; }
.actor-contribution-summary div { display: grid; gap: 4px; }
.actor-contribution-summary strong { color: #00c8f0; }
.actor-contribution-summary div span { color: #b9c3da; }
.actor-contribution-bio { padding: 4px 22px 18px; color: #cbd4e8; line-height: 1.6; }

.actor-contribution-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 22px 20px; }
.actor-contribution-stats div { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035); }
.actor-contribution-stats strong, .actor-contribution-stats span { display: block; }
.actor-contribution-stats strong { color: #fff; font-size: .86rem; overflow-wrap: anywhere; }
.actor-contribution-stats span { margin-top: 5px; color: #7f8aa8; font-size: .7rem; }
.actor-contribution-section { padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.07); }
.actor-contribution-section h3 { margin-bottom: 13px; }
.actor-contribution-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.actor-contribution-skills span { padding: 7px 10px; border-radius: 999px; color: #b7f5ff; background: rgba(0,200,240,.1); border: 1px solid rgba(0,200,240,.18); font-size: .78rem; }
.actor-contribution-muted { color: #7f8aa8; }
.actor-contribution-actions { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.actor-contribution-actions li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 0 0 16px; }
.actor-contribution-actions li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: -1px; width: 1px; background: rgba(0,200,240,.22); }
.actor-contribution-actions i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #00c8f0; box-shadow: 0 0 0 4px rgba(0,200,240,.1); }
.actor-contribution-actions div { display: grid; gap: 3px; }
.actor-contribution-actions span, .actor-contribution-actions time { color: #8e99b5; font-size: .75rem; }
.actor-contribution-item-link { width: max-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: #00c8f0; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(0,200,240,.38); text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.actor-contribution-loading, .actor-contribution-empty { padding: 42px 22px; text-align: center; }
.actor-contribution-loading { display: grid; justify-items: center; gap: 12px; color: #aab5cd; }
.actor-contribution-loading i { width: 26px; height: 26px; border: 3px solid rgba(0,200,240,.18); border-top-color: #00c8f0; border-radius: 50%; animation: actor-spin .7s linear infinite; }
.actor-contribution-empty p { margin-top: 8px; color: #8e99b5; }
@keyframes actor-spin { to { transform: rotate(360deg); } }

@media (max-width: 639px) {
  .actor-contribution-dialog { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .actor-contribution-stats { grid-template-columns: 1fr; }
}
