.claude-topbar {
  position: fixed;
  inset: 20px 20px auto;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.claude-topbar .platform-entry,
.claude-topbar .language-switch {
  position: static;
  flex: 0 0 auto;
  pointer-events: auto;
  white-space: nowrap;
}

.claude-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.claude-topbar-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.claude-topbar .repair-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(230, 223, 216, 0.94);
  border-radius: var(--radius-pill);
  color: var(--primary-active);
  background: rgba(250, 249, 245, 0.88);
  box-shadow: 0 10px 28px rgba(37, 35, 32, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
  text-align: center;
  pointer-events: auto;
  transition: color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.claude-topbar .repair-entry:hover {
  color: var(--primary-active);
  background: rgba(250, 249, 245, 0.98);
  text-decoration: none;
}

.claude-topbar .repair-entry:active {
  transform: scale(0.97);
}

.claude-topbar .repair-entry-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--on-primary);
  background: var(--primary);
}

.claude-topbar .repair-entry-icon svg {
  width: 17px;
  height: 17px;
}

.claude-topbar .repair-entry-external {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  opacity: 0.75;
}

@media (max-width: 620px) {
  .claude-topbar {
    inset: 12px 12px auto;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
  }

  .claude-topbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .claude-topbar-platforms {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .claude-topbar .repair-entry {
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .claude-topbar .repair-entry-icon {
    width: 22px;
    height: 22px;
  }

  .claude-topbar + .page-shell {
    padding-top: 126px;
  }
}
